@progress/kendo-react-inputs 7.4.0-develop.1 → 7.4.0-develop.11

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.
@@ -6,410 +6,453 @@
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
8
  "use client";
9
- import * as r from "react";
10
- import n from "prop-types";
11
- import { useInternationalization as ue, useLocalization as ce } from "@progress/kendo-react-intl";
12
- import { createPropsContext as de, validatePackage as me, usePropsContext as fe, useId as be, useCustomComponent as _, dispatchEvent as B, getActiveElement as H, useIsomorphicLayoutEffect as pe, classNames as ge, kendoThemeMaps as K, getTabIndex as ve } from "@progress/kendo-react-common";
13
- import { caretAltUpIcon as ye, caretAltDownIcon as Ce } from "@progress/kendo-svg-icons";
14
- import { FloatingLabel as Ve } from "@progress/kendo-react-labels";
15
- import { packageMetadata as ke } from "../package-metadata.mjs";
16
- import { numericIncreaseValue as h, messages as S, numericDecreaseValue as O } from "../messages/index.mjs";
17
- import { getInitialState as U, formatValue as I, getStateOrPropsValue as F, rangeValue as L, sanitizeNumber as $, decreaseValue as W, increaseValue as Y } from "./utils/index.mjs";
18
- import { Button as J } from "@progress/kendo-react-buttons";
19
- const xe = "Please enter a valid value!", Ee = de(), T = r.forwardRef((b, Q) => {
20
- me(ke);
21
- const e = fe(Ee, b), X = be(), z = e.id || X, s = ue(), y = ce(), l = r.useRef(null), C = r.useRef(), [Z, p] = r.useState(!1), o = r.useRef(U()), V = r.useRef(!1), P = r.useRef(), g = r.useRef(e.defaultValue), v = I(
22
- o.current.focused && !e.disabled ? o.current.currentLooseValue : F(e.value, g.current),
23
- e.format,
9
+ import * as n from "react";
10
+ import t from "prop-types";
11
+ import { useInternationalization as Ye, useLocalization as Je } from "@progress/kendo-react-intl";
12
+ import { createPropsContext as Qe, validatePackage as Xe, usePropsContext as Ze, useId as et, useCustomComponent as pe, dispatchEvent as Y, getActiveElement as be, useIsomorphicLayoutEffect as tt, classNames as nt, kendoThemeMaps as ge, getTabIndex as rt } from "@progress/kendo-react-common";
13
+ import { caretAltUpIcon as at, caretAltDownIcon as lt } from "@progress/kendo-svg-icons";
14
+ import { FloatingLabel as st } from "@progress/kendo-react-labels";
15
+ import { packageMetadata as ut } from "../package-metadata.mjs";
16
+ import { numericIncreaseValue as R, messages as B, numericDecreaseValue as M } from "../messages/index.mjs";
17
+ import { getInitialState as ve, formatValue as F, getStateOrPropsValue as J, rangeValue as T, sanitizeNumber as ye, decreaseValue as Ve, increaseValue as ke } from "./utils/index.mjs";
18
+ import { Button as Ce } from "@progress/kendo-react-buttons";
19
+ const ot = "Please enter a valid value!", ct = Qe(), Q = n.forwardRef((k, Ee) => {
20
+ Xe(ut);
21
+ const z = Ze(ct, k), {
22
+ className: Se,
23
+ value: p,
24
+ defaultValue: xe,
25
+ step: b,
26
+ format: l,
27
+ width: X,
28
+ tabIndex: he,
29
+ accessKey: Ie,
30
+ title: Le,
31
+ placeholder: Z,
32
+ min: c,
33
+ max: i,
34
+ spinners: Oe,
35
+ disabled: u,
36
+ dir: ee,
37
+ name: G,
38
+ label: h,
39
+ id: Pe,
40
+ prefix: Ne,
41
+ suffix: De,
42
+ ariaDescribedBy: Re,
43
+ validityStyles: te,
44
+ ariaLabelledBy: Be,
45
+ required: j,
46
+ ariaLabel: Me,
47
+ inputType: Fe,
48
+ rangeOnEnter: ne,
49
+ readOnly: g,
50
+ onChange: C,
51
+ onFocus: re,
52
+ onBlur: ae,
53
+ validationMessage: q,
54
+ children: Te,
55
+ size: A,
56
+ rounded: _,
57
+ fillMode: le,
58
+ style: se,
59
+ inputStyle: ze,
60
+ valid: H,
61
+ ...ue
62
+ } = z, Ge = et(), oe = Pe || Ge, s = Ye(), I = Je(), a = n.useRef(null), L = n.useRef(), [je, E] = n.useState(!1), o = n.useRef(ve()), O = n.useRef(!1), K = n.useRef(), S = n.useRef(xe), x = F(
63
+ o.current.focused && !u ? o.current.currentLooseValue : J(p, S.current),
64
+ l,
24
65
  s
25
66
  );
26
- P.current = v;
27
- const [ee] = _(e.prefix), [te] = _(e.suffix);
28
- r.useEffect(
67
+ K.current = x;
68
+ const [qe] = pe(Ne), [Ae] = pe(De);
69
+ n.useEffect(
29
70
  () => {
30
- l.current && l.current.setCustomValidity && l.current.setCustomValidity(
31
- E().valid ? "" : e.validationMessage || xe
71
+ a.current && a.current.setCustomValidity && a.current.setCustomValidity(
72
+ D().valid ? "" : q || ot
32
73
  );
33
74
  }
34
75
  );
35
- const q = r.useCallback(
76
+ const ce = n.useCallback(
36
77
  () => {
37
- l.current && l.current.focus();
78
+ a.current && a.current.focus();
38
79
  },
39
80
  []
40
- ), k = r.useCallback(
41
- () => C.current !== void 0 ? C.current : F(e.value, g.current),
42
- [e.value]
43
- ), G = r.useCallback(
44
- () => e.name,
45
- [e.name]
46
- ), x = r.useCallback(
47
- () => e.required,
48
- [e.required]
49
- ), E = r.useCallback(
81
+ ), P = n.useCallback(
82
+ () => L.current !== void 0 ? L.current : J(p, S.current),
83
+ [p]
84
+ ), ie = n.useCallback(
85
+ () => G,
86
+ [G]
87
+ ), N = n.useCallback(
88
+ () => j,
89
+ [j]
90
+ ), D = n.useCallback(
50
91
  () => {
51
- const a = e.validationMessage !== void 0, t = k(), m = e.valid !== void 0 ? e.valid : !o.current.valueIsOutOfRange && (!x() || t != null);
92
+ const r = q !== void 0, e = P(), y = H !== void 0 ? H : !o.current.valueIsOutOfRange && (!N() || e != null);
52
93
  return {
53
- customError: a,
54
- valid: m,
55
- valueMissing: t == null
94
+ customError: r,
95
+ valid: y,
96
+ valueMissing: e == null
56
97
  };
57
98
  },
58
- [e.validationMessage, e.valid, k, x]
59
- ), N = r.useCallback(
60
- () => e.validityStyles,
61
- [e.validityStyles]
62
- ), j = r.useCallback(
63
- () => e,
64
- [e]
65
- ), d = r.useCallback(
99
+ [q, H, P, N]
100
+ ), w = n.useCallback(
101
+ () => te,
102
+ [te]
103
+ ), de = n.useCallback(
104
+ () => z,
105
+ [z]
106
+ ), v = n.useCallback(
66
107
  () => {
67
- const a = {
68
- element: l.current,
69
- focus: q
108
+ const r = {
109
+ element: a.current,
110
+ focus: ce
70
111
  };
71
- return Object.defineProperty(a, "name", { get: G }), Object.defineProperty(a, "value", { get: k }), Object.defineProperty(a, "validity", { get: E }), Object.defineProperty(a, "validityStyles", { get: N }), Object.defineProperty(a, "required", { get: x }), Object.defineProperty(a, "props", { get: j }), a;
112
+ return Object.defineProperty(r, "name", { get: ie }), Object.defineProperty(r, "value", { get: P }), Object.defineProperty(r, "validity", { get: D }), Object.defineProperty(r, "validityStyles", { get: w }), Object.defineProperty(r, "required", { get: N }), Object.defineProperty(r, "props", { get: de }), r;
72
113
  },
73
- [G, k, E, N, x, q, j]
114
+ [ie, P, D, w, N, ce, de]
74
115
  );
75
- r.useImperativeHandle(Q, d);
76
- const u = r.useCallback(
116
+ n.useImperativeHandle(Ee, v);
117
+ const m = n.useCallback(
77
118
  () => ({
78
- eventValue: F(e.value, g.current),
79
- prevLooseValue: P.current,
80
- currentLooseValue: l.current.value,
81
- selectionStart: l.current.selectionStart,
82
- selectionEnd: l.current.selectionEnd,
119
+ eventValue: J(p, S.current),
120
+ prevLooseValue: K.current,
121
+ currentLooseValue: a.current.value,
122
+ selectionStart: a.current.selectionStart,
123
+ selectionEnd: a.current.selectionEnd,
83
124
  decimalSelect: !1,
84
125
  valueIsCorrected: !1,
85
126
  valueIsOutOfRange: !1,
86
- isPaste: V.current,
127
+ isPaste: O.current,
87
128
  focused: o.current.focused
88
129
  }),
89
- [e.value]
90
- ), c = r.useCallback(
91
- (a, t) => {
92
- if (e.disabled)
130
+ [p]
131
+ ), f = n.useCallback(
132
+ (r, e) => {
133
+ if (u)
93
134
  return;
94
- C.current = t.eventValue, g.current = t.eventValue;
95
- const m = I(L(t.eventValue, e.min, e.max), e.format, s), i = L(s.parseNumber(m, e.format), e.min, e.max);
96
- i !== t.eventValue && (t.valueIsOutOfRange = !0, t.eventValue = i, g.current = i), e.value !== t.eventValue && B(
97
- e.onChange,
98
- a,
99
- d(),
100
- { value: t.eventValue }
101
- ), C.current = void 0, o.current = t, p((M) => !M);
135
+ L.current = e.eventValue, S.current = e.eventValue;
136
+ const y = F(T(e.eventValue, c, i), l, s), d = T(s.parseNumber(y, l), c, i);
137
+ d !== e.eventValue && (e.valueIsOutOfRange = !0, e.eventValue = d, S.current = d), p !== e.eventValue && Y(
138
+ C,
139
+ r,
140
+ v(),
141
+ { value: e.eventValue }
142
+ ), L.current = void 0, o.current = e, E((W) => !W);
102
143
  },
103
- [e.value, e.onChange, e.disabled, p, d]
104
- ), ne = r.useCallback(
105
- (a) => {
106
- const t = u();
107
- V.current = !1, c(a, $(t, e.format, s));
144
+ [p, C, u, E, v]
145
+ ), _e = n.useCallback(
146
+ (r) => {
147
+ const e = m();
148
+ O.current = !1, f(r, ye(e, l, s));
108
149
  },
109
- [e.format, e.onChange, s, c, u]
110
- ), re = r.useCallback(
111
- (a) => {
112
- let t = u();
113
- const m = s.parseNumber(String(t.currentLooseValue), e.format);
114
- if (t.selectionEnd > t.selectionStart && t.selectionEnd - t.selectionStart === String(t.currentLooseValue).length) {
115
- const i = s.numberSymbols(), f = i && a.key === i.minusSign, M = i && a.key === i.decimal;
116
- V.current = !f && !M;
150
+ [l, C, s, f, m]
151
+ ), He = n.useCallback(
152
+ (r) => {
153
+ let e = m();
154
+ const y = s.parseNumber(String(e.currentLooseValue), l);
155
+ if (e.selectionEnd > e.selectionStart && e.selectionEnd - e.selectionStart === String(e.currentLooseValue).length) {
156
+ const d = s.numberSymbols(), V = d && r.key === d.minusSign, W = d && r.key === d.decimal;
157
+ O.current = !V && !W;
117
158
  return;
118
159
  }
119
- switch (a.keyCode) {
160
+ switch (r.keyCode) {
120
161
  case 38:
121
- Y(
122
- m,
123
- t,
124
- e.step,
125
- e.min,
126
- e.max,
127
- e.format,
162
+ ke(
163
+ y,
164
+ e,
165
+ b,
166
+ c,
167
+ i,
168
+ l,
128
169
  s
129
170
  );
130
171
  break;
131
172
  case 40:
132
- W(
133
- m,
134
- t,
135
- e.step,
136
- e.min,
137
- e.max,
138
- e.format,
173
+ Ve(
174
+ y,
175
+ e,
176
+ b,
177
+ c,
178
+ i,
179
+ l,
139
180
  s
140
181
  );
141
182
  break;
142
183
  case 13: {
143
- if (e.rangeOnEnter === !1)
184
+ if (ne === !1)
144
185
  return;
145
- const i = I(L(m, e.min, e.max), e.format, s), f = L(s.parseNumber(i, e.format), e.min, e.max);
146
- t.eventValue = f, t.currentLooseValue = I(f, e.format, s), t.selectionStart = t.selectionEnd = t.currentLooseValue.length;
186
+ const d = F(T(y, c, i), l, s), V = T(s.parseNumber(d, l), c, i);
187
+ e.eventValue = V, e.currentLooseValue = F(V, l, s), e.selectionStart = e.selectionEnd = e.currentLooseValue.length;
147
188
  break;
148
189
  }
149
190
  case 110: {
150
- const i = l.current, f = s.numberSymbols();
151
- i && (t.currentLooseValue = t.currentLooseValue.slice(0, t.selectionStart) + f.decimal + t.currentLooseValue.slice(t.selectionEnd), t.selectionStart = t.selectionEnd = t.selectionStart + 1, t = $(t, e.format, s));
191
+ const d = a.current, V = s.numberSymbols();
192
+ d && (e.currentLooseValue = e.currentLooseValue.slice(0, e.selectionStart) + V.decimal + e.currentLooseValue.slice(e.selectionEnd), e.selectionStart = e.selectionEnd = e.selectionStart + 1, e = ye(e, l, s));
152
193
  break;
153
194
  }
154
195
  default:
155
196
  return;
156
197
  }
157
- a.preventDefault(), c(a, t);
198
+ r.preventDefault(), f(r, e);
158
199
  },
159
- [e.format, e.min, e.max, e.step, e.onChange, e.rangeOnEnter, c, u]
160
- ), ae = r.useCallback(
200
+ [l, c, i, b, C, ne, f, m]
201
+ ), Ke = n.useCallback(
161
202
  () => {
162
- V.current = !0;
203
+ O.current = !0;
163
204
  },
164
205
  []
165
- ), D = r.useCallback(
166
- (a) => {
167
- if (e.readOnly || e.disabled)
206
+ ), U = n.useCallback(
207
+ (r) => {
208
+ if (g || u)
168
209
  return;
169
- const t = u();
170
- Y(
171
- s.parseNumber(String(t.currentLooseValue), e.format),
172
- t,
173
- e.step,
174
- e.min,
175
- e.max,
176
- e.format,
210
+ const e = m();
211
+ ke(
212
+ s.parseNumber(String(e.currentLooseValue), l),
213
+ e,
214
+ b,
215
+ c,
216
+ i,
217
+ l,
177
218
  s
178
- ), c(a, t);
219
+ ), f(r, e);
179
220
  },
180
- [e.format, e.min, e.max, e.step, e.onChange, e.readOnly, e.disabled, c, u]
181
- ), R = r.useCallback(
182
- (a) => {
183
- if (e.readOnly || e.disabled)
221
+ [l, c, i, b, C, g, u, f, m]
222
+ ), $ = n.useCallback(
223
+ (r) => {
224
+ if (g || u)
184
225
  return;
185
- const t = u();
186
- W(
187
- s.parseNumber(String(t.currentLooseValue), e.format),
188
- t,
189
- e.step,
190
- e.min,
191
- e.max,
192
- e.format,
226
+ const e = m();
227
+ Ve(
228
+ s.parseNumber(String(e.currentLooseValue), l),
229
+ e,
230
+ b,
231
+ c,
232
+ i,
233
+ l,
193
234
  s
194
- ), c(a, t);
235
+ ), f(r, e);
195
236
  },
196
- [e.format, e.min, e.max, e.step, e.onChange, e.readOnly, e.disabled, c, u]
197
- ), le = r.useCallback(
198
- (a) => {
199
- const t = H(document);
200
- !document || t !== l.current || !l.current || e.readOnly || e.disabled || (a.nativeEvent.deltaY < 0 && D(a), a.nativeEvent.deltaY > 0 && R(a));
237
+ [l, c, i, b, C, g, u, f, m]
238
+ ), we = n.useCallback(
239
+ (r) => {
240
+ const e = be(document);
241
+ !document || e !== a.current || !a.current || g || u || (r.nativeEvent.deltaY < 0 && U(r), r.nativeEvent.deltaY > 0 && $(r));
201
242
  },
202
- [D, R, e.disabled, e.readOnly]
203
- ), se = r.useCallback(
204
- (a) => {
205
- o.current.currentLooseValue = P.current, o.current.focused = !0, B(
206
- e.onFocus,
207
- a,
208
- d(),
243
+ [U, $, u, g]
244
+ ), Ue = n.useCallback(
245
+ (r) => {
246
+ o.current.currentLooseValue = K.current, o.current.focused = !0, Y(
247
+ re,
248
+ r,
249
+ v(),
209
250
  {}
210
- ), p((t) => !t);
251
+ ), E((e) => !e);
211
252
  },
212
- [e.onFocus, p, d]
213
- ), oe = r.useCallback(
214
- (a) => {
215
- o.current = U(), B(
216
- e.onBlur,
217
- a,
218
- d(),
253
+ [re, E, v]
254
+ ), $e = n.useCallback(
255
+ (r) => {
256
+ o.current = ve(), Y(
257
+ ae,
258
+ r,
259
+ v(),
219
260
  {}
220
- ), p((t) => !t);
261
+ ), E((e) => !e);
221
262
  },
222
- [e.onBlur, p, d]
223
- ), ie = r.useCallback(
224
- (a) => {
225
- if (document && l.current) {
226
- const t = H(document);
227
- a.preventDefault(), t !== l.current && l.current.focus();
263
+ [ae, E, v]
264
+ ), We = n.useCallback(
265
+ (r) => {
266
+ if (document && a.current) {
267
+ const e = be(document);
268
+ r.preventDefault(), e !== a.current && a.current.focus();
228
269
  }
229
270
  },
230
271
  []
231
272
  );
232
- pe(
273
+ tt(
233
274
  () => {
234
- l.current && l.current.type !== "number" && o.current.selectionStart !== void 0 && o.current.selectionEnd !== void 0 && (l.current.selectionStart = o.current.selectionStart, l.current.selectionEnd = o.current.selectionEnd, o.current.selectionStart = void 0, o.current.selectionEnd = void 0);
275
+ a.current && a.current.type !== "number" && o.current.selectionStart !== void 0 && o.current.selectionEnd !== void 0 && (a.current.selectionStart = o.current.selectionStart, a.current.selectionEnd = o.current.selectionEnd, o.current.selectionStart = void 0, o.current.selectionEnd = void 0);
235
276
  },
236
- [Z]
277
+ [je]
237
278
  );
238
- const w = !N() || E().valid, A = /* @__PURE__ */ r.createElement(
279
+ const me = !w() || D().valid, fe = /* @__PURE__ */ n.createElement(
239
280
  "span",
240
281
  {
241
- dir: e.dir,
242
- style: e.label ? e.style : { width: e.width, ...e.style },
243
- className: ge(
282
+ dir: ee,
283
+ style: h ? se : { width: X, ...se },
284
+ className: nt(
244
285
  "k-input",
245
286
  "k-numerictextbox",
246
287
  {
247
- [`k-input-${K.sizeMap[e.size] || e.size}`]: e.size,
248
- [`k-input-${e.fillMode}`]: e.fillMode,
249
- [`k-rounded-${K.roundedMap[e.rounded] || e.rounded}`]: e.rounded,
250
- "k-invalid": !w,
251
- "k-required": e.required,
252
- "k-disabled": e.disabled
288
+ [`k-input-${ge.sizeMap[A] || A}`]: A,
289
+ [`k-input-${le}`]: le,
290
+ [`k-rounded-${ge.roundedMap[_] || _}`]: _,
291
+ "k-invalid": !me,
292
+ "k-required": j,
293
+ "k-disabled": u
253
294
  },
254
- e.className
295
+ Se
255
296
  ),
256
- "aria-disabled": e.disabled ? "true" : void 0
297
+ "aria-disabled": u ? "true" : void 0,
298
+ ...h ? {} : ue
257
299
  },
258
- /* @__PURE__ */ r.createElement(ee, null),
259
- /* @__PURE__ */ r.createElement(
300
+ /* @__PURE__ */ n.createElement(qe, null),
301
+ /* @__PURE__ */ n.createElement(
260
302
  "input",
261
303
  {
262
304
  role: "spinbutton",
263
- value: v === null ? "" : v,
264
- tabIndex: ve(e.tabIndex, e.disabled),
265
- accessKey: e.accessKey,
266
- disabled: e.disabled,
267
- title: e.title,
268
- "aria-disabled": e.disabled ? "true" : void 0,
269
- "aria-valuemin": e.min,
270
- "aria-valuemax": e.max,
271
- "aria-label": e.ariaLabel,
272
- "aria-labelledby": e.ariaLabelledBy,
273
- "aria-describedby": e.ariaDescribedBy,
274
- placeholder: e.placeholder,
305
+ value: x === null ? "" : x,
306
+ tabIndex: rt(he, u),
307
+ accessKey: Ie,
308
+ disabled: u,
309
+ title: Le,
310
+ "aria-disabled": u ? "true" : void 0,
311
+ "aria-valuemin": c,
312
+ "aria-valuemax": i,
313
+ "aria-label": Me,
314
+ "aria-labelledby": Be,
315
+ "aria-describedby": Re,
316
+ placeholder: Z,
275
317
  spellCheck: !1,
276
318
  autoComplete: "off",
277
319
  autoCorrect: "off",
278
- type: e.inputType || "tel",
320
+ type: Fe || "tel",
279
321
  className: "k-input-inner",
280
- id: z,
281
- name: e.name,
282
- readOnly: e.readOnly,
283
- style: e.inputStyle,
284
- onChange: ne,
285
- onFocus: se,
286
- onBlur: oe,
287
- onKeyDown: re,
288
- onPaste: ae,
289
- onWheel: le,
290
- ref: l
322
+ id: oe,
323
+ name: G,
324
+ readOnly: g,
325
+ style: ze,
326
+ onChange: _e,
327
+ onFocus: Ue,
328
+ onBlur: $e,
329
+ onKeyDown: He,
330
+ onPaste: Ke,
331
+ onWheel: we,
332
+ ref: a
291
333
  }
292
334
  ),
293
- /* @__PURE__ */ r.createElement(te, null),
294
- e.children,
295
- e.spinners && /* @__PURE__ */ r.createElement(
335
+ /* @__PURE__ */ n.createElement(Ae, null),
336
+ Te,
337
+ Oe && /* @__PURE__ */ n.createElement(
296
338
  "span",
297
339
  {
298
340
  className: "k-input-spinner k-spin-button",
299
- onMouseDown: ie
341
+ onMouseDown: We
300
342
  },
301
- /* @__PURE__ */ r.createElement(
302
- J,
343
+ /* @__PURE__ */ n.createElement(
344
+ Ce,
303
345
  {
304
346
  tabIndex: -1,
305
347
  type: "button",
306
348
  icon: "caret-alt-up",
307
- svgIcon: ye,
349
+ svgIcon: at,
308
350
  rounded: null,
309
351
  className: "k-spinner-increase",
310
- "aria-label": y.toLanguageString(h, S[h]),
311
- title: y.toLanguageString(h, S[h]),
312
- onClick: D
352
+ "aria-label": I.toLanguageString(R, B[R]),
353
+ title: I.toLanguageString(R, B[R]),
354
+ onClick: U
313
355
  }
314
356
  ),
315
- /* @__PURE__ */ r.createElement(
316
- J,
357
+ /* @__PURE__ */ n.createElement(
358
+ Ce,
317
359
  {
318
360
  tabIndex: -1,
319
361
  type: "button",
320
362
  icon: "caret-alt-down",
321
- svgIcon: Ce,
363
+ svgIcon: lt,
322
364
  rounded: null,
323
365
  className: "k-spinner-decrease",
324
- "aria-label": y.toLanguageString(O, S[O]),
325
- title: y.toLanguageString(O, S[O]),
326
- onClick: R
366
+ "aria-label": I.toLanguageString(M, B[M]),
367
+ title: I.toLanguageString(M, B[M]),
368
+ onClick: $
327
369
  }
328
370
  )
329
371
  )
330
372
  );
331
- return e.label ? /* @__PURE__ */ r.createElement(
332
- Ve,
373
+ return h ? /* @__PURE__ */ n.createElement(
374
+ st,
333
375
  {
334
- label: e.label,
335
- editorId: z,
336
- editorValue: v === null ? "" : v,
337
- editorValid: w,
338
- editorDisabled: e.disabled,
339
- editorPlaceholder: e.placeholder,
340
- children: A,
341
- style: { width: e.width },
342
- dir: e.dir
376
+ label: h,
377
+ editorId: oe,
378
+ editorValue: x === null ? "" : x,
379
+ editorValid: me,
380
+ editorDisabled: u,
381
+ editorPlaceholder: Z,
382
+ children: fe,
383
+ style: { width: X },
384
+ dir: ee,
385
+ ...ue
343
386
  }
344
- ) : A;
387
+ ) : fe;
345
388
  });
346
- T.propTypes = {
347
- value: n.number,
348
- defaultValue: n.number,
349
- step: n.number,
350
- format: n.oneOfType([
351
- n.string,
352
- n.shape({
353
- style: n.oneOf(["decimal", "currency", "percent", "scientific", "accounting"]),
354
- currency: n.string,
355
- currencyDisplay: n.oneOf(["symbol", "code", "name"]),
356
- useGrouping: n.bool,
357
- minimumIntegerDigits: n.number,
358
- minimumFractionDigits: n.number,
359
- maximumFractionDigits: n.number
389
+ Q.propTypes = {
390
+ value: t.number,
391
+ defaultValue: t.number,
392
+ step: t.number,
393
+ format: t.oneOfType([
394
+ t.string,
395
+ t.shape({
396
+ style: t.oneOf(["decimal", "currency", "percent", "scientific", "accounting"]),
397
+ currency: t.string,
398
+ currencyDisplay: t.oneOf(["symbol", "code", "name"]),
399
+ useGrouping: t.bool,
400
+ minimumIntegerDigits: t.number,
401
+ minimumFractionDigits: t.number,
402
+ maximumFractionDigits: t.number
360
403
  })
361
404
  ]),
362
- width: n.oneOfType([
363
- n.string,
364
- n.number
405
+ width: t.oneOfType([
406
+ t.string,
407
+ t.number
365
408
  ]),
366
- tabIndex: n.number,
367
- accessKey: n.string,
368
- title: n.string,
369
- placeholder: n.string,
370
- min: n.number,
371
- max: n.number,
372
- spinners: n.bool,
373
- disabled: n.bool,
374
- readOnly: n.bool,
375
- dir: n.string,
376
- name: n.string,
377
- label: n.string,
378
- validationMessage: n.string,
379
- required: n.bool,
380
- id: n.string,
381
- rangeOnEnter: n.bool,
382
- ariaLabelledBy: n.string,
383
- ariaDescribedBy: n.string,
384
- ariaLabel: n.string,
385
- onChange: n.func,
386
- onFocus: n.func,
387
- onBlur: n.func,
388
- size: n.oneOf([null, "small", "medium", "large"]),
389
- rounded: n.oneOf([null, "small", "medium", "large", "full"]),
390
- fillMode: n.oneOf([null, "solid", "flat", "outline"])
409
+ tabIndex: t.number,
410
+ accessKey: t.string,
411
+ title: t.string,
412
+ placeholder: t.string,
413
+ min: t.number,
414
+ max: t.number,
415
+ spinners: t.bool,
416
+ disabled: t.bool,
417
+ readOnly: t.bool,
418
+ dir: t.string,
419
+ name: t.string,
420
+ label: t.string,
421
+ validationMessage: t.string,
422
+ required: t.bool,
423
+ id: t.string,
424
+ rangeOnEnter: t.bool,
425
+ ariaLabelledBy: t.string,
426
+ ariaDescribedBy: t.string,
427
+ ariaLabel: t.string,
428
+ onChange: t.func,
429
+ onFocus: t.func,
430
+ onBlur: t.func,
431
+ size: t.oneOf([null, "small", "medium", "large"]),
432
+ rounded: t.oneOf([null, "small", "medium", "large", "full"]),
433
+ fillMode: t.oneOf([null, "solid", "flat", "outline"])
391
434
  };
392
- T.displayName = "KendoNumericTextBox";
393
- T.defaultProps = {
394
- prefix: (b) => null,
395
- suffix: (b) => null,
435
+ Q.displayName = "KendoNumericTextBox";
436
+ Q.defaultProps = {
437
+ prefix: (k) => null,
438
+ suffix: (k) => null,
396
439
  step: 1,
397
440
  spinners: !0,
398
441
  disabled: !1,
399
442
  required: !1,
400
443
  validityStyles: !0,
401
444
  rangeOnEnter: !0,
402
- onChange: (b) => {
445
+ onChange: (k) => {
403
446
  },
404
- onFocus: (b) => {
447
+ onFocus: (k) => {
405
448
  },
406
- onBlur: (b) => {
449
+ onBlur: (k) => {
407
450
  },
408
451
  size: "medium",
409
452
  rounded: "medium",
410
453
  fillMode: "solid"
411
454
  };
412
455
  export {
413
- T as NumericTextBox,
414
- Ee as NumericTextBoxPropsContext
456
+ Q as NumericTextBox,
457
+ ct as NumericTextBoxPropsContext
415
458
  };