@progress/kendo-react-dateinputs 12.3.0-develop.3 → 12.3.0-develop.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,111 +5,114 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- import * as o from "react";
8
+ import * as n from "react";
9
9
  import e from "prop-types";
10
- import { Popup as at } from "@progress/kendo-react-popup";
11
- import { cloneDate as oe, getDate as lt } from "@progress/kendo-date-math";
12
- import { useId as it, useAdaptiveModeContext as ut, usePropsContext as st, canUseDOM as re, AsyncFocusBlur as ct, classNames as ae, kendoThemeMaps as le, createPropsContext as dt, Keys as O } from "@progress/kendo-react-common";
13
- import { calendarIcon as ft } from "@progress/kendo-svg-icons";
14
- import { DateInput as mt } from "../dateinput/DateInput.mjs";
15
- import { Calendar as pt } from "../calendar/components/Calendar.mjs";
16
- import { nullable as a, MAX_DATE as gt, MIN_DATE as ht, isInDateRange as vt, setTime as bt } from "../utils.mjs";
17
- import { toggleCalendar as ie, messages as wt } from "../messages/index.mjs";
18
- import { useLocalization as yt } from "@progress/kendo-react-intl";
19
- import { ToggleButton as Ct } from "./ToggleButton.mjs";
20
- import { PickerFloatingLabel as Dt } from "../hooks/usePickerFloatingLabel.mjs";
21
- import { ActionSheetContent as Ot } from "@progress/kendo-react-layout";
22
- import { AdaptiveMode as Mt } from "../common/AdaptiveMode.mjs";
23
- const ue = o.forwardRef((n, se) => {
24
- const L = it(n.id), ce = yt(), h = ut(), {
25
- defaultShow: de = l.defaultShow,
26
- defaultValue: fe = l.defaultValue,
27
- dateInput: me = l.dateInput,
28
- calendar: pe = l.calendar,
29
- toggleButton: ge = l.toggleButton,
30
- popup: he = l.popup,
10
+ import { Popup as ut } from "@progress/kendo-react-popup";
11
+ import { cloneDate as le, getDate as st } from "@progress/kendo-date-math";
12
+ import { useId as ct, useAdaptiveModeContext as dt, usePropsContext as ft, canUseDOM as ie, AsyncFocusBlur as mt, classNames as ue, kendoThemeMaps as se, createPropsContext as pt, Keys as O } from "@progress/kendo-react-common";
13
+ import { calendarIcon as gt } from "@progress/kendo-svg-icons";
14
+ import { DateInput as ht } from "../dateinput/DateInput.mjs";
15
+ import { Calendar as vt } from "../calendar/components/Calendar.mjs";
16
+ import { nullable as r, MAX_DATE as bt, MIN_DATE as wt, isInDateRange as yt, setTime as Ct } from "../utils.mjs";
17
+ import { toggleCalendar as ce, messages as Dt } from "../messages/index.mjs";
18
+ import { useLocalization as Ot } from "@progress/kendo-react-intl";
19
+ import { ToggleButton as Mt } from "./ToggleButton.mjs";
20
+ import { PickerFloatingLabel as kt } from "../hooks/usePickerFloatingLabel.mjs";
21
+ import { ActionSheetContent as Pt } from "@progress/kendo-react-layout";
22
+ import { AdaptiveMode as Rt } from "../common/AdaptiveMode.mjs";
23
+ const de = n.forwardRef((a, fe) => {
24
+ const L = ct(a.id), me = Ot(), h = dt(), {
25
+ defaultShow: pe = l.defaultShow,
26
+ defaultValue: ge = l.defaultValue,
27
+ dateInput: he = l.dateInput,
28
+ calendar: ve = l.calendar,
29
+ toggleButton: be = l.toggleButton,
30
+ popup: we = l.popup,
31
31
  disabled: v = l.disabled,
32
- format: ve = l.format,
32
+ format: ye = l.format,
33
33
  max: R = l.max,
34
- min: I = l.min,
34
+ min: _ = l.min,
35
35
  popupSettings: b = l.popupSettings,
36
- tabIndex: be = l.tabIndex,
37
- weekNumber: we = l.weekNumber,
36
+ tabIndex: Ce = l.tabIndex,
37
+ weekNumber: De = l.weekNumber,
38
38
  validityStyles: K = l.validityStyles,
39
- size: S = l.size,
40
- rounded: _ = l.rounded,
39
+ size: I = l.size,
40
+ rounded: S = l.rounded,
41
41
  fillMode: E = l.fillMode,
42
- autoFocus: ye = l.autoFocus,
42
+ autoFocus: Oe = l.autoFocus,
43
43
  show: q,
44
- autoSwitchParts: Ce,
45
- autoSwitchKeys: De,
46
- twoDigitYearMax: Oe,
47
- ariaLabel: Me,
48
- adaptive: Pt,
49
- adaptiveTitle: ke = n.label || void 0,
50
- adaptiveSubtitle: Pe,
51
- formatPlaceholder: Re,
52
- inputAttributes: Ie,
44
+ autoSwitchParts: Me,
45
+ autoSwitchKeys: ke,
46
+ twoDigitYearMax: Pe,
47
+ ariaLabel: Re,
48
+ adaptive: It,
49
+ adaptiveTitle: _e = a.label || void 0,
50
+ adaptiveSubtitle: Ie,
51
+ formatPlaceholder: Se,
52
+ inputAttributes: Ee,
53
53
  validationMessage: W,
54
- visited: Rt,
54
+ visited: St,
55
55
  value: B,
56
- touched: It,
57
- modified: St,
58
- _adaptiveMode: _t = h,
56
+ touched: Et,
57
+ modified: Bt,
58
+ _adaptiveMode: xt = h,
59
59
  valid: H,
60
- focusedDate: Se,
61
- id: _e,
62
- ariaLabelledBy: Ee,
63
- ariaDescribedBy: Be,
64
- placeholder: xe,
65
- ...U
66
- } = st(kt, n), x = () => {
67
- if (re)
60
+ focusedDate: Be,
61
+ id: xe,
62
+ ariaLabelledBy: Te,
63
+ ariaDescribedBy: Ae,
64
+ placeholder: Ve,
65
+ onChange: U,
66
+ onOpen: Y,
67
+ onClose: $,
68
+ ...j
69
+ } = ft(_t, a), x = () => {
70
+ if (ie)
68
71
  return y.current && y.current.ownerDocument || window.document;
69
- }, u = () => !!(g.windowWidth && h && g.windowWidth <= (h == null ? void 0 : h.medium) && n.adaptive), f = () => {
72
+ }, u = () => !!(g.windowWidth && h && g.windowWidth <= (h == null ? void 0 : h.medium) && a.adaptive), f = () => {
70
73
  const t = M.current !== void 0 ? M.current : B !== void 0 ? B : g.value;
71
- return t !== null ? oe(t) : null;
72
- }, i = () => k.current !== void 0 ? k.current : q !== void 0 ? q : g.show, Te = () => me || l.dateInput, Ae = () => ge || l.toggleButton, Ve = () => pe || l.calendar, Fe = () => he || l.popup, Y = () => n.required !== void 0 ? n.required : !1, T = () => {
73
- const t = f() || B || null, r = I, s = R, P = vt(t, r, s), F = W !== void 0, N = (!Y() || t != null) && P, z = H !== void 0 ? H : N;
74
+ return t !== null ? le(t) : null;
75
+ }, i = () => k.current !== void 0 ? k.current : q !== void 0 ? q : g.show, Fe = () => he || l.dateInput, Ne = () => be || l.toggleButton, ze = () => ve || l.calendar, Le = () => we || l.popup, X = () => a.required !== void 0 ? a.required : !1, T = () => {
76
+ const t = f() || B || null, o = _, s = R, P = yt(t, o, s), F = W !== void 0, N = (!X() || t != null) && P, z = H !== void 0 ? H : N;
74
77
  return {
75
78
  customError: F,
76
79
  rangeOverflow: t && s.getTime() < t.getTime() || !1,
77
- rangeUnderflow: t && t.getTime() < r.getTime() || !1,
80
+ rangeUnderflow: t && t.getTime() < o.getTime() || !1,
78
81
  valid: z,
79
82
  valueMissing: t === null
80
83
  };
81
- }, Ne = (t) => {
82
- for (const r of t)
83
- D({ windowWidth: r.target.clientWidth });
84
- }, ze = () => {
84
+ }, Ke = (t) => {
85
+ for (const o of t)
86
+ D({ windowWidth: o.target.clientWidth });
87
+ }, qe = () => {
85
88
  c.current && c.current.focus();
86
- }, $ = (t) => {
89
+ }, Z = (t) => {
87
90
  d.current = t;
88
91
  }, m = (t) => {
89
- i() !== t && (D({ show: t }), t && n.onOpen && n.onOpen.call(void 0, { target: w.current }), !t && n.onClose && n.onClose.call(void 0, { target: w.current }));
90
- }, Le = (t) => {
91
- const r = f();
92
- return r && t ? bt(t, r) : t;
93
- }, Ke = (t) => {
94
- b != null && b.onMouseDownOutside && b.onMouseDownOutside.call(void 0, t);
95
- }, j = (t, r) => {
96
- D({ value: oe(t || void 0) }), M.current = t, k.current = !1, u() || (p.current = !0), n.onChange && n.onChange.call(void 0, {
97
- syntheticEvent: r.syntheticEvent,
98
- nativeEvent: r.nativeEvent,
92
+ i() !== t && (D({ show: t }), t && Y && Y({ target: w.current }), !t && $ && $({ target: w.current }));
93
+ }, We = (t) => {
94
+ const o = f();
95
+ return o && t ? Ct(t, o) : t;
96
+ }, He = (t) => {
97
+ b != null && b.onMouseDownOutside && b.onMouseDownOutside(t);
98
+ }, G = (t, o) => {
99
+ D({ value: le(t || void 0) }), M.current = t, k.current = !1, u() || (p.current = !0), U && U({
100
+ syntheticEvent: o.syntheticEvent,
101
+ nativeEvent: o.nativeEvent,
99
102
  value: f(),
100
103
  show: i(),
101
104
  target: w.current
102
105
  }), M.current = void 0, k.current = void 0, m(!1);
103
- }, qe = (t) => {
104
- const r = Le(t.value);
105
- j(r, t);
106
- }, X = () => {
107
- const { popupClass: t, ...r } = b, s = i(), P = f(), F = P && lt(P), N = ae(t), z = {
106
+ }, Ue = (t) => {
107
+ const o = We(t.value);
108
+ G(o, t);
109
+ }, J = () => {
110
+ const { popupClass: t, ...o } = b, s = i(), P = f(), F = P && st(P), N = ue(t), z = {
108
111
  popupClass: "k-datepicker-popup",
109
112
  show: s,
110
113
  anchor: y.current,
111
114
  className: N,
112
- id: G,
115
+ id: ee,
113
116
  anchorAlign: {
114
117
  horizontal: "left",
115
118
  vertical: "bottom"
@@ -118,53 +121,53 @@ const ue = o.forwardRef((n, se) => {
118
121
  horizontal: "left",
119
122
  vertical: "top"
120
123
  },
121
- ...r,
122
- onMouseDownOutside: Ke
123
- }, te = {
124
+ ...o,
125
+ onMouseDownOutside: He
126
+ }, re = {
124
127
  disabled: v,
125
128
  value: F,
126
- min: I,
129
+ min: _,
127
130
  max: R,
128
- weekNumber: we,
129
- focusedDate: Se,
131
+ weekNumber: De,
132
+ focusedDate: Be,
130
133
  className: u() ? "k-calendar-lg" : "",
131
134
  navigation: !u(),
132
- onChange: qe
133
- }, ne = Ve(), rt = Fe();
134
- return u() ? /* @__PURE__ */ o.createElement(ne, { _ref: $, ...te }) : /* @__PURE__ */ o.createElement(rt, { ...z }, /* @__PURE__ */ o.createElement(ne, { _ref: $, ...te }));
135
- }, Z = () => {
135
+ onChange: Ue
136
+ }, ae = ze(), it = Le();
137
+ return u() ? /* @__PURE__ */ n.createElement(ae, { _ref: Z, ...re }) : /* @__PURE__ */ n.createElement(it, { ...z }, /* @__PURE__ */ n.createElement(ae, { _ref: Z, ...re }));
138
+ }, Q = () => {
136
139
  D({ focused: !1 }), m(!1);
137
- }, We = () => {
138
- const { windowWidth: t = 0 } = g, r = {
140
+ }, Ye = () => {
141
+ const { windowWidth: t = 0 } = g, o = {
139
142
  expand: i(),
140
- onClose: Z,
141
- title: ke,
142
- subTitle: Pe,
143
+ onClose: Q,
144
+ title: _e,
145
+ subTitle: Ie,
143
146
  windowWidth: t
144
147
  };
145
- return /* @__PURE__ */ o.createElement(Mt, { ...r }, /* @__PURE__ */ o.createElement(Ot, null, X()));
146
- }, He = (t) => {
147
- j(t.value, t);
148
- }, Ue = () => {
148
+ return /* @__PURE__ */ n.createElement(Rt, { ...o }, /* @__PURE__ */ n.createElement(Pt, null, J()));
149
+ }, $e = (t) => {
150
+ G(t.value, t);
151
+ }, je = () => {
149
152
  D({ focused: !0 });
150
- }, Ye = () => {
153
+ }, Xe = () => {
151
154
  m(!i());
152
155
  }, A = () => {
153
156
  v || (p.current = !0, m(!i()));
154
- }, $e = (t) => {
157
+ }, Ze = (t) => {
155
158
  t.preventDefault();
156
- }, je = (t) => {
157
- const { altKey: r, keyCode: s } = t;
159
+ }, Ge = (t) => {
160
+ const { altKey: o, keyCode: s } = t;
158
161
  if (s === O.esc && i()) {
159
162
  p.current = !0, m(!1);
160
163
  return;
161
164
  }
162
- r && (s === O.up || s === O.down) && (t.preventDefault(), t.stopPropagation(), p.current = s === O.up, m(s === O.down));
163
- }, w = o.useRef(null), y = o.useRef(null), c = o.useRef(null), d = o.useRef(null);
164
- o.useImperativeHandle(
165
+ o && (s === O.up || s === O.down) && (t.preventDefault(), t.stopPropagation(), p.current = s === O.up, m(s === O.down));
166
+ }, w = n.useRef(null), y = n.useRef(null), c = n.useRef(null), d = n.useRef(null);
167
+ n.useImperativeHandle(
165
168
  w,
166
169
  () => ({
167
- props: n,
170
+ props: a,
168
171
  get element() {
169
172
  return y.current;
170
173
  },
@@ -175,7 +178,7 @@ const ue = o.forwardRef((n, se) => {
175
178
  return c.current;
176
179
  },
177
180
  get name() {
178
- return n.name;
181
+ return a.name;
179
182
  },
180
183
  get show() {
181
184
  return i();
@@ -189,139 +192,139 @@ const ue = o.forwardRef((n, se) => {
189
192
  get mobileMode() {
190
193
  return u();
191
194
  },
192
- togglePopup: Ye,
195
+ togglePopup: Xe,
193
196
  // Hidden Methods but still accessible
194
- focus: ze
197
+ focus: qe
195
198
  })
196
- ), o.useImperativeHandle(se, () => w.current);
197
- const M = o.useRef(void 0), k = o.useRef(void 0), Xe = o.useRef(null), p = o.useRef(!1), V = o.useRef(!1), C = o.useRef(null), [g, Ze] = o.useState({
198
- value: fe,
199
- show: de,
199
+ ), n.useImperativeHandle(fe, () => w.current);
200
+ const M = n.useRef(void 0), k = n.useRef(void 0), Je = n.useRef(null), p = n.useRef(!1), V = n.useRef(!1), C = n.useRef(null), [g, Qe] = n.useState({
201
+ value: ge,
202
+ show: pe,
200
203
  focused: !1
201
- }), [, Ge] = o.useReducer((t) => t, !0), D = (t) => {
202
- Ze((r) => ({ ...r, ...t }));
204
+ }), [, et] = n.useReducer((t) => t, !0), D = (t) => {
205
+ Qe((o) => ({ ...o, ...t }));
203
206
  };
204
- o.useEffect(() => {
207
+ n.useEffect(() => {
205
208
  d.current && d.current.element && i() && !V.current && d.current.element.focus({ preventScroll: !0 }), u() && i() && !V.current && setTimeout(() => {
206
209
  d.current && d.current.element && d.current.element.focus({ preventScroll: !0 });
207
210
  }, 300), c.current && c.current.element && !i() && p.current && c.current.element.focus({ preventScroll: !0 }), V.current = i(), p.current = !1;
208
- }), o.useEffect(() => {
211
+ }), n.useEffect(() => {
209
212
  var t;
210
- return C.current = re && window.ResizeObserver && new window.ResizeObserver((r) => Ne(r)), i() && Ge(), (t = x()) != null && t.body && C.current && C.current.observe(x().body), () => {
211
- var r;
212
- clearTimeout(Xe.current), (r = x()) != null && r.body && C.current && C.current.disconnect();
213
+ return C.current = ie && window.ResizeObserver && new window.ResizeObserver((o) => Ke(o)), i() && et(), (t = x()) != null && t.body && C.current && C.current.observe(x().body), () => {
214
+ var o;
215
+ clearTimeout(Je.current), (o = x()) != null && o.body && C.current && C.current.disconnect();
213
216
  };
214
217
  }, []);
215
- const G = L + "-popup-id", Je = X(), Qe = Te(), et = f(), tt = Ae(), nt = We(), J = !K || T().valid, Q = ce.toLanguageString(ie, wt[ie]), ot = {
218
+ const ee = L + "-popup-id", tt = J(), nt = Fe(), ot = f(), rt = Ne(), at = Ye(), te = !K || T().valid, ne = me.toLanguageString(ce, Dt[ce]), lt = {
216
219
  disabled: v,
217
- format: ve,
218
- formatPlaceholder: Re,
219
- id: _e,
220
- ariaLabelledBy: Ee,
221
- ariaDescribedBy: Be,
222
- ariaLabel: Me,
220
+ format: ye,
221
+ formatPlaceholder: Se,
222
+ id: xe,
223
+ ariaLabelledBy: Te,
224
+ ariaDescribedBy: Ae,
225
+ ariaLabel: Re,
223
226
  max: R,
224
- min: I,
225
- name: n.name,
226
- onChange: He,
227
- required: n.required,
227
+ min: _,
228
+ name: a.name,
229
+ onChange: $e,
230
+ required: a.required,
228
231
  _ref: c,
229
- tabIndex: i() ? -1 : be,
230
- title: n.title,
232
+ tabIndex: i() ? -1 : Ce,
233
+ title: a.title,
231
234
  valid: T().valid,
232
235
  validationMessage: W,
233
236
  validityStyles: K,
234
- value: et,
237
+ value: ot,
235
238
  label: void 0,
236
- placeholder: g.focused ? null : xe,
239
+ placeholder: g.focused ? null : Ve,
237
240
  ariaExpanded: i(),
238
241
  size: null,
239
242
  fillMode: null,
240
243
  rounded: null,
241
- autoFill: n.autoFill,
242
- twoDigitYearMax: Oe,
243
- enableMouseWheel: n.enableMouseWheel,
244
- autoCorrectParts: n.autoCorrectParts,
245
- autoSwitchParts: Ce,
246
- autoSwitchKeys: De,
247
- allowCaretMode: n.allowCaretMode,
248
- inputAttributes: Ie
249
- }, ee = /* @__PURE__ */ o.createElement(
250
- ct,
244
+ autoFill: a.autoFill,
245
+ twoDigitYearMax: Pe,
246
+ enableMouseWheel: a.enableMouseWheel,
247
+ autoCorrectParts: a.autoCorrectParts,
248
+ autoSwitchParts: Me,
249
+ autoSwitchKeys: ke,
250
+ allowCaretMode: a.allowCaretMode,
251
+ inputAttributes: Ee
252
+ }, oe = /* @__PURE__ */ n.createElement(
253
+ mt,
251
254
  {
252
- onFocus: Ue,
253
- onBlur: u() ? void 0 : Z,
254
- onSyncBlur: n.onBlur,
255
- onSyncFocus: n.onFocus
255
+ onFocus: je,
256
+ onBlur: u() ? void 0 : Q,
257
+ onSyncBlur: a.onBlur,
258
+ onSyncFocus: a.onFocus
256
259
  },
257
- (t) => /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement(
260
+ (t) => /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement(
258
261
  "span",
259
262
  {
260
- ...n.label ? {} : U,
263
+ ...a.label ? {} : j,
261
264
  ref: y,
262
- className: ae(
265
+ className: ue(
263
266
  "k-input",
264
267
  "k-datepicker",
265
268
  {
266
- [`k-input-${le.sizeMap[S] || S}`]: S,
267
- [`k-rounded-${le.roundedMap[_] || _}`]: _,
269
+ [`k-input-${se.sizeMap[I] || I}`]: I,
270
+ [`k-rounded-${se.roundedMap[S] || S}`]: S,
268
271
  [`k-input-${E}`]: E,
269
- "k-invalid": !J,
270
- "k-required": Y(),
272
+ "k-invalid": !te,
273
+ "k-required": X(),
271
274
  "k-disabled": v
272
275
  },
273
- n.className
276
+ a.className
274
277
  ),
275
- onKeyDown: je,
276
- style: { width: n.width },
278
+ onKeyDown: Ge,
279
+ style: { width: a.width },
277
280
  onFocus: u() ? A : t.onFocus,
278
281
  onBlur: t.onBlur,
279
282
  onClick: u() ? A : void 0
280
283
  },
281
- /* @__PURE__ */ o.createElement(
282
- Qe,
284
+ /* @__PURE__ */ n.createElement(
285
+ nt,
283
286
  {
284
287
  _ref: c,
285
288
  ariaRole: "combobox",
286
289
  ariaExpanded: i(),
287
- ariaControls: G,
288
- autoFocus: ye,
289
- ...ot
290
+ ariaControls: ee,
291
+ autoFocus: Oe,
292
+ ...lt
290
293
  }
291
294
  ),
292
- /* @__PURE__ */ o.createElement(
293
- tt,
295
+ /* @__PURE__ */ n.createElement(
296
+ rt,
294
297
  {
295
298
  type: "button",
296
299
  icon: "calendar",
297
- svgIcon: ft,
298
- title: Q,
300
+ svgIcon: gt,
301
+ title: ne,
299
302
  className: "k-input-button",
300
303
  rounded: null,
301
304
  onClick: u() ? void 0 : A,
302
- "aria-label": Q,
305
+ "aria-label": ne,
303
306
  fillMode: E,
304
- onMouseDown: $e
307
+ onMouseDown: Ze
305
308
  }
306
309
  ),
307
- !u() && Je
308
- ), u() && nt)
310
+ !u() && tt
311
+ ), u() && at)
309
312
  );
310
- return n.label ? /* @__PURE__ */ o.createElement(
311
- Dt,
313
+ return a.label ? /* @__PURE__ */ n.createElement(
314
+ kt,
312
315
  {
313
316
  dateInput: c,
314
- label: n.label,
317
+ label: a.label,
315
318
  editorId: L,
316
- editorValid: J,
319
+ editorValid: te,
317
320
  editorDisabled: v,
318
- children: ee,
319
- style: { width: n.width },
320
- ...U
321
+ children: oe,
322
+ style: { width: a.width },
323
+ ...j
321
324
  }
322
- ) : ee;
325
+ ) : oe;
323
326
  });
324
- ue.propTypes = {
327
+ de.propTypes = {
325
328
  className: e.string,
326
329
  defaultShow: e.bool,
327
330
  defaultValue: e.instanceOf(Date),
@@ -330,34 +333,34 @@ ue.propTypes = {
330
333
  format: e.oneOfType([
331
334
  e.string,
332
335
  e.shape({
333
- skeleton: a(e.string),
334
- pattern: a(e.string),
335
- date: a(e.oneOf(["short", "medium", "long", "full"])),
336
- time: a(e.oneOf(["short", "medium", "long", "full"])),
337
- datetime: a(e.oneOf(["short", "medium", "long", "full"])),
338
- era: a(e.oneOf(["narrow", "short", "long"])),
339
- year: a(e.oneOf(["numeric", "2-digit"])),
340
- month: a(e.oneOf(["numeric", "2-digit", "narrow", "short", "long"])),
341
- day: a(e.oneOf(["numeric", "2-digit"])),
342
- weekday: a(e.oneOf(["narrow", "short", "long"])),
343
- hour: a(e.oneOf(["numeric", "2-digit"])),
344
- hour12: a(e.bool),
345
- minute: a(e.oneOf(["numeric", "2-digit"])),
346
- second: a(e.oneOf(["numeric", "2-digit"])),
347
- timeZoneName: a(e.oneOf(["short", "long"]))
336
+ skeleton: r(e.string),
337
+ pattern: r(e.string),
338
+ date: r(e.oneOf(["short", "medium", "long", "full"])),
339
+ time: r(e.oneOf(["short", "medium", "long", "full"])),
340
+ datetime: r(e.oneOf(["short", "medium", "long", "full"])),
341
+ era: r(e.oneOf(["narrow", "short", "long"])),
342
+ year: r(e.oneOf(["numeric", "2-digit"])),
343
+ month: r(e.oneOf(["numeric", "2-digit", "narrow", "short", "long"])),
344
+ day: r(e.oneOf(["numeric", "2-digit"])),
345
+ weekday: r(e.oneOf(["narrow", "short", "long"])),
346
+ hour: r(e.oneOf(["numeric", "2-digit"])),
347
+ hour12: r(e.bool),
348
+ minute: r(e.oneOf(["numeric", "2-digit"])),
349
+ second: r(e.oneOf(["numeric", "2-digit"])),
350
+ timeZoneName: r(e.oneOf(["short", "long"]))
348
351
  })
349
352
  ]),
350
353
  formatPlaceholder: e.oneOfType([
351
- a(
354
+ r(
352
355
  e.oneOf(["wide", "narrow", "short", "formatPattern"])
353
356
  ),
354
357
  e.shape({
355
- year: a(e.string),
356
- month: a(e.string),
357
- day: a(e.string),
358
- hour: a(e.string),
359
- minute: a(e.string),
360
- second: a(e.string)
358
+ year: r(e.string),
359
+ month: r(e.string),
360
+ day: r(e.string),
361
+ hour: r(e.string),
362
+ minute: r(e.string),
363
+ second: r(e.string)
361
364
  })
362
365
  ]),
363
366
  id: e.string,
@@ -368,9 +371,9 @@ ue.propTypes = {
368
371
  max: e.instanceOf(Date),
369
372
  name: e.string,
370
373
  popupSettings: e.shape({
371
- animate: a(e.bool),
372
- appendTo: a(e.any),
373
- popupClass: a(e.string)
374
+ animate: r(e.bool),
375
+ appendTo: r(e.any),
376
+ popupClass: r(e.string)
374
377
  }),
375
378
  show: e.bool,
376
379
  tabIndex: e.number,
@@ -393,14 +396,14 @@ ue.propTypes = {
393
396
  const l = {
394
397
  defaultShow: !1,
395
398
  defaultValue: null,
396
- dateInput: mt,
397
- calendar: pt,
398
- toggleButton: Ct,
399
- popup: at,
399
+ dateInput: ht,
400
+ calendar: vt,
401
+ toggleButton: Mt,
402
+ popup: ut,
400
403
  disabled: !1,
401
404
  format: "d",
402
- max: gt,
403
- min: ht,
405
+ max: bt,
406
+ min: wt,
404
407
  popupSettings: {},
405
408
  tabIndex: 0,
406
409
  weekNumber: !1,
@@ -409,10 +412,10 @@ const l = {
409
412
  rounded: "medium",
410
413
  fillMode: "solid",
411
414
  autoFocus: !1
412
- }, kt = dt();
413
- ue.displayName = "KendoReactDatePicker";
415
+ }, _t = pt();
416
+ de.displayName = "KendoReactDatePicker";
414
417
  export {
415
- ue as DatePicker,
416
- kt as DatePickerPropsContext,
418
+ de as DatePicker,
419
+ _t as DatePickerPropsContext,
417
420
  l as datePickerDefaultProps
418
421
  };