@progress/kendo-react-inputs 14.5.0-develop.14 → 14.5.0-develop.15

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 (39) hide show
  1. package/checkbox/Checkbox.js +1 -1
  2. package/checkbox/Checkbox.mjs +64 -64
  3. package/colors/ColorGradient.js +1 -1
  4. package/colors/ColorGradient.mjs +74 -72
  5. package/colors/ColorInput.js +1 -1
  6. package/colors/ColorInput.mjs +57 -45
  7. package/colors/ColorPalette.js +1 -1
  8. package/colors/ColorPalette.mjs +84 -81
  9. package/colors/ColorPicker.js +1 -1
  10. package/colors/ColorPicker.mjs +162 -160
  11. package/colors/FlatColorPicker.js +1 -1
  12. package/colors/FlatColorPicker.mjs +86 -94
  13. package/dist/cdn/js/kendo-react-inputs.js +1 -1
  14. package/messages/index.d.ts +55 -0
  15. package/messages/index.js +1 -1
  16. package/messages/index.mjs +82 -60
  17. package/numerictextbox/NumericTextBox.js +1 -1
  18. package/numerictextbox/NumericTextBox.mjs +115 -115
  19. package/package-metadata.js +1 -1
  20. package/package-metadata.mjs +2 -2
  21. package/package.json +10 -10
  22. package/radiobutton/RadioButton.js +1 -1
  23. package/radiobutton/RadioButton.mjs +23 -20
  24. package/radiobutton/interfaces/RadioButtonProps.d.ts +7 -0
  25. package/range-slider/RangeSlider.d.ts +8 -0
  26. package/range-slider/RangeSlider.js +11 -11
  27. package/range-slider/RangeSlider.mjs +189 -186
  28. package/rating/Rating.js +2 -2
  29. package/rating/Rating.mjs +3 -3
  30. package/signature/Signature.js +1 -1
  31. package/signature/Signature.mjs +80 -84
  32. package/slider/Slider.js +1 -1
  33. package/slider/Slider.mjs +139 -131
  34. package/slider/SliderLabel.js +1 -1
  35. package/slider/SliderLabel.mjs +3 -2
  36. package/switch/Switch.js +1 -1
  37. package/switch/Switch.mjs +52 -54
  38. package/textarea/TextArea.js +1 -1
  39. package/textarea/TextArea.mjs +29 -31
@@ -8,98 +8,98 @@
8
8
  import * as n from "react";
9
9
  import t from "prop-types";
10
10
  import { useInternationalization as tt, useLocalization as nt } from "@progress/kendo-react-intl";
11
- import { usePropsContext as rt, useId as at, useCustomComponent as ve, useWebMcpRegister as ot, dispatchEvent as Q, useKendoPaste as st, getActiveElement as ye, useIsomorphicLayoutEffect as ut, classNames as lt, kendoThemeMaps as Ve, getTabIndex as ct, createPropsContext as it } from "@progress/kendo-react-common";
11
+ import { usePropsContext as rt, useId as at, useCustomComponent as ye, useWebMcpRegister as ot, dispatchEvent as X, useKendoPaste as st, getActiveElement as Ve, useIsomorphicLayoutEffect as ut, classNames as lt, kendoThemeMaps as Ce, getTabIndex as it, createPropsContext as ct } from "@progress/kendo-react-common";
12
12
  import { chevronUpIcon as dt, chevronDownIcon as mt } from "@progress/kendo-svg-icons";
13
13
  import { FloatingLabel as ft } from "@progress/kendo-react-labels";
14
14
  import { numericIncreaseValue as A, messages as H, numericDecreaseValue as K } from "../messages/index.mjs";
15
- import { getInitialState as Ce, formatValue as N, getStateOrPropsValue as X, rangeValue as P, sanitizeNumber as ke, decreaseValue as he, increaseValue as Ee } from "./utils/index.mjs";
16
- import { Button as Se } from "@progress/kendo-react-buttons";
17
- const bt = "Please enter a valid value!", pt = it(), xe = n.forwardRef(
18
- (k, Ie) => {
15
+ import { getInitialState as ke, formatValue as N, getStateOrPropsValue as Z, rangeValue as P, sanitizeNumber as he, decreaseValue as Ee, increaseValue as Se } from "./utils/index.mjs";
16
+ import { Button as xe } from "@progress/kendo-react-buttons";
17
+ const bt = "Please enter a valid value!", pt = ct(), Ie = n.forwardRef(
18
+ (k, Le) => {
19
19
  const S = rt(
20
20
  pt,
21
21
  k
22
22
  ), {
23
- className: Le,
23
+ className: Oe,
24
24
  value: V,
25
- defaultValue: Oe,
25
+ defaultValue: Ne,
26
26
  format: o,
27
- width: Z,
28
- tabIndex: Ne,
29
- accessKey: Pe,
30
- title: Re,
31
- placeholder: ee,
27
+ width: ee,
28
+ tabIndex: Pe,
29
+ accessKey: Re,
30
+ title: De,
31
+ placeholder: te,
32
32
  min: d,
33
33
  max: m,
34
- dir: te,
34
+ dir: ne,
35
35
  name: R,
36
36
  label: D,
37
- id: ne,
38
- ariaDescribedBy: De,
39
- ariaLabelledBy: Fe,
40
- ariaLabel: Be,
41
- inputType: Me,
37
+ id: re,
38
+ ariaDescribedBy: Fe,
39
+ ariaLabelledBy: Be,
40
+ ariaLabel: Me,
41
+ inputType: Te,
42
42
  readOnly: g,
43
43
  validationMessage: _,
44
- children: Te,
44
+ children: ze,
45
45
  // Removed to support direct use in Form Field component
46
46
  touched: gt,
47
47
  visited: vt,
48
48
  modified: yt,
49
- style: re,
50
- inputStyle: ze,
49
+ style: ae,
50
+ inputStyle: qe,
51
51
  valid: w,
52
- step: C = i.step,
53
- spinners: qe = i.spinners,
54
- disabled: u = i.disabled,
55
- required: F = i.required,
56
- validityStyles: ae = i.validityStyles,
57
- prefix: Ge = i.prefix,
58
- suffix: je = i.suffix,
59
- onChange: h = i.onChange,
60
- onFocus: oe = i.onFocus,
61
- onBlur: se = i.onBlur,
62
- rangeOnEnter: ue = i.rangeOnEnter,
63
- size: x = i.size,
64
- rounded: U = i.rounded,
65
- fillMode: B = i.fillMode,
66
- autoFocus: Ae = i.autoFocus,
52
+ step: C = c.step,
53
+ spinners: U = c.spinners,
54
+ disabled: u = c.disabled,
55
+ required: F = c.required,
56
+ validityStyles: oe = c.validityStyles,
57
+ prefix: Ge = c.prefix,
58
+ suffix: je = c.suffix,
59
+ onChange: h = c.onChange,
60
+ onFocus: se = c.onFocus,
61
+ onBlur: ue = c.onBlur,
62
+ rangeOnEnter: le = c.rangeOnEnter,
63
+ size: x = c.size,
64
+ rounded: W = c.rounded,
65
+ fillMode: B = c.fillMode,
66
+ autoFocus: Ae = c.autoFocus,
67
67
  inputAttributes: He,
68
- ...le
69
- } = S, Ke = at(), ce = ne || Ke, s = tt(), M = nt(), a = n.useRef(null), T = n.useRef(void 0), [_e, E] = n.useState(!1), c = n.useRef(Ce()), z = n.useRef(!1), W = n.useRef(void 0), I = n.useRef(Oe), ie = R || ne, L = N(
70
- c.current.focused && !u ? c.current.currentLooseValue : X(V, I.current),
68
+ ...ie
69
+ } = S, Ke = at(), ce = re || Ke, s = tt(), M = nt(), a = n.useRef(null), T = n.useRef(void 0), [_e, E] = n.useState(!1), i = n.useRef(ke()), z = n.useRef(!1), $ = n.useRef(void 0), I = n.useRef(Ne), de = R || re, L = N(
70
+ i.current.focused && !u ? i.current.currentLooseValue : Z(V, I.current),
71
71
  o,
72
72
  s
73
73
  );
74
- W.current = L;
75
- const [we] = ve(Ge), [Ue] = ve(je);
74
+ $.current = L;
75
+ const [we] = ye(Ge), [Ue] = ye(je);
76
76
  n.useEffect(() => {
77
77
  a.current && a.current.setCustomValidity && a.current.setCustomValidity(
78
78
  j().valid ? "" : _ || bt
79
79
  );
80
80
  });
81
- const de = n.useCallback(() => {
81
+ const me = n.useCallback(() => {
82
82
  a.current && a.current.focus();
83
- }, []), q = n.useCallback(() => T.current !== void 0 ? T.current : X(V, I.current), [V]), me = n.useCallback(() => R, [R]), G = n.useCallback(() => F, [F]), j = n.useCallback(() => {
84
- const r = _ !== void 0, e = q(), b = w !== void 0 ? w : !c.current.valueIsOutOfRange && (!G() || e != null);
83
+ }, []), q = n.useCallback(() => T.current !== void 0 ? T.current : Z(V, I.current), [V]), fe = n.useCallback(() => R, [R]), G = n.useCallback(() => F, [F]), j = n.useCallback(() => {
84
+ const r = _ !== void 0, e = q(), b = w !== void 0 ? w : !i.current.valueIsOutOfRange && (!G() || e != null);
85
85
  return {
86
86
  customError: r,
87
87
  valid: b,
88
88
  valueMissing: e == null
89
89
  };
90
- }, [_, w, q, G]), $ = n.useCallback(() => ae, [ae]), fe = n.useCallback(() => S, [S]), v = n.useCallback(() => {
90
+ }, [_, w, q, G]), Y = n.useCallback(() => oe, [oe]), be = n.useCallback(() => S, [S]), v = n.useCallback(() => {
91
91
  const r = {
92
92
  element: a.current,
93
- focus: de
93
+ focus: me
94
94
  };
95
- return Object.defineProperty(r, "name", { get: me }), Object.defineProperty(r, "value", { get: q }), Object.defineProperty(r, "validity", { get: j }), Object.defineProperty(r, "validityStyles", { get: $ }), Object.defineProperty(r, "required", { get: G }), Object.defineProperty(r, "props", { get: fe }), r;
96
- }, [me, q, j, $, G, de, fe]);
97
- n.useImperativeHandle(Ie, v);
98
- const be = n.useRef(null);
99
- n.useImperativeHandle(be, v), ot("numerictextbox", be, S, S.webMcp);
95
+ return Object.defineProperty(r, "name", { get: fe }), Object.defineProperty(r, "value", { get: q }), Object.defineProperty(r, "validity", { get: j }), Object.defineProperty(r, "validityStyles", { get: Y }), Object.defineProperty(r, "required", { get: G }), Object.defineProperty(r, "props", { get: be }), r;
96
+ }, [fe, q, j, Y, G, me, be]);
97
+ n.useImperativeHandle(Le, v);
98
+ const pe = n.useRef(null);
99
+ n.useImperativeHandle(pe, v), ot("numerictextbox", pe, S, S.webMcp);
100
100
  const y = n.useCallback(() => ({
101
- eventValue: X(V, I.current),
102
- prevLooseValue: W.current,
101
+ eventValue: Z(V, I.current),
102
+ prevLooseValue: $.current,
103
103
  currentLooseValue: a.current.value,
104
104
  selectionStart: a.current.selectionStart,
105
105
  selectionEnd: a.current.selectionEnd,
@@ -107,16 +107,16 @@ const bt = "Please enter a valid value!", pt = it(), xe = n.forwardRef(
107
107
  valueIsCorrected: !1,
108
108
  valueIsOutOfRange: !1,
109
109
  isPaste: z.current,
110
- focused: c.current.focused
110
+ focused: i.current.focused
111
111
  }), [V]), f = n.useCallback(
112
112
  (r, e) => {
113
113
  if (u)
114
114
  return;
115
115
  T.current = e.eventValue, I.current = e.eventValue;
116
116
  const b = N(P(e.eventValue, d, m), o, s), l = P(s.parseNumber(b, o), d, m);
117
- l !== e.eventValue && (e.valueIsOutOfRange = !0, e.eventValue = l, I.current = l), V !== e.eventValue && Q(h, r, v(), {
117
+ l !== e.eventValue && (e.valueIsOutOfRange = !0, e.eventValue = l, I.current = l), V !== e.eventValue && X(h, r, v(), {
118
118
  value: e.eventValue
119
- }), T.current = void 0, c.current = e, E((O) => !O);
119
+ }), T.current = void 0, i.current = e, E((O) => !O);
120
120
  },
121
121
  [V, h, u, E, v]
122
122
  ), We = n.useCallback(
@@ -125,7 +125,7 @@ const bt = "Please enter a valid value!", pt = it(), xe = n.forwardRef(
125
125
  if (isNaN(e))
126
126
  return;
127
127
  const b = P(e, d, m), l = N(b, o, s), p = {
128
- ...c.current,
128
+ ...i.current,
129
129
  eventValue: b,
130
130
  currentLooseValue: l,
131
131
  selectionStart: l.length,
@@ -139,14 +139,14 @@ const bt = "Please enter a valid value!", pt = it(), xe = n.forwardRef(
139
139
  [d, m, o, s, f]
140
140
  );
141
141
  st(a, {
142
- fieldName: ie,
142
+ fieldName: de,
143
143
  onValueChange: We,
144
- enabled: !!ie
144
+ enabled: !!de
145
145
  });
146
146
  const $e = n.useCallback(
147
147
  (r) => {
148
148
  const e = y();
149
- z.current = !1, f(r, ke(e, o, s));
149
+ z.current = !1, f(r, he(e, o, s));
150
150
  },
151
151
  [o, h, s, f, y]
152
152
  ), Ye = n.useCallback(
@@ -162,13 +162,13 @@ const bt = "Please enter a valid value!", pt = it(), xe = n.forwardRef(
162
162
  }
163
163
  switch (r.keyCode) {
164
164
  case 38:
165
- Ee(b, e, C, d, m, o, s);
165
+ Se(b, e, C, d, m, o, s);
166
166
  break;
167
167
  case 40:
168
- he(b, e, C, d, m, o, s);
168
+ Ee(b, e, C, d, m, o, s);
169
169
  break;
170
170
  case 13: {
171
- if (ue === !1)
171
+ if (le === !1)
172
172
  return;
173
173
  const l = N(P(b, d, m), o, s), p = P(s.parseNumber(l, o), d, m);
174
174
  e.eventValue = p, e.currentLooseValue = N(p, o, s), e.selectionStart = e.selectionEnd = e.currentLooseValue.length;
@@ -176,7 +176,7 @@ const bt = "Please enter a valid value!", pt = it(), xe = n.forwardRef(
176
176
  }
177
177
  case 110: {
178
178
  const l = a.current, p = s.numberSymbols();
179
- l && (e.currentLooseValue = e.currentLooseValue.slice(0, e.selectionStart) + p.decimal + e.currentLooseValue.slice(e.selectionEnd), e.selectionStart = e.selectionEnd = e.selectionStart + 1, e = ke(e, o, s));
179
+ l && (e.currentLooseValue = e.currentLooseValue.slice(0, e.selectionStart) + p.decimal + e.currentLooseValue.slice(e.selectionEnd), e.selectionStart = e.selectionEnd = e.selectionStart + 1, e = he(e, o, s));
180
180
  break;
181
181
  }
182
182
  default:
@@ -184,15 +184,15 @@ const bt = "Please enter a valid value!", pt = it(), xe = n.forwardRef(
184
184
  }
185
185
  r.preventDefault(), f(r, e);
186
186
  },
187
- [o, d, m, C, h, ue, f, y]
187
+ [o, d, m, C, h, le, f, y]
188
188
  ), Je = n.useCallback(() => {
189
189
  z.current = !0;
190
- }, []), Y = n.useCallback(
190
+ }, []), J = n.useCallback(
191
191
  (r) => {
192
192
  if (g || u)
193
193
  return;
194
194
  const e = y();
195
- Ee(
195
+ Se(
196
196
  s.parseNumber(String(e.currentLooseValue), o),
197
197
  e,
198
198
  C,
@@ -203,12 +203,12 @@ const bt = "Please enter a valid value!", pt = it(), xe = n.forwardRef(
203
203
  ), f(r, e);
204
204
  },
205
205
  [o, d, m, C, h, g, u, f, y]
206
- ), J = n.useCallback(
206
+ ), Q = n.useCallback(
207
207
  (r) => {
208
208
  if (g || u)
209
209
  return;
210
210
  const e = y();
211
- he(
211
+ Ee(
212
212
  s.parseNumber(String(e.currentLooseValue), o),
213
213
  e,
214
214
  C,
@@ -221,49 +221,49 @@ const bt = "Please enter a valid value!", pt = it(), xe = n.forwardRef(
221
221
  [o, d, m, C, h, g, u, f, y]
222
222
  ), Qe = n.useCallback(
223
223
  (r) => {
224
- const e = ye(document);
225
- !document || e !== a.current || !a.current || g || u || (r.nativeEvent.deltaY < 0 && Y(r), r.nativeEvent.deltaY > 0 && J(r));
224
+ const e = Ve(document);
225
+ !document || e !== a.current || !a.current || g || u || (r.nativeEvent.deltaY < 0 && J(r), r.nativeEvent.deltaY > 0 && Q(r));
226
226
  },
227
- [Y, J, u, g]
227
+ [J, Q, u, g]
228
228
  ), Xe = n.useCallback(
229
229
  (r) => {
230
- c.current.currentLooseValue = W.current, c.current.focused = !0, Q(oe, r, v(), {}), E((e) => !e);
230
+ i.current.currentLooseValue = $.current, i.current.focused = !0, X(se, r, v(), {}), E((e) => !e);
231
231
  },
232
- [oe, E, v]
232
+ [se, E, v]
233
233
  ), Ze = n.useCallback(
234
234
  (r) => {
235
- c.current = Ce(), Q(se, r, v(), {}), E((e) => !e);
235
+ i.current = ke(), X(ue, r, v(), {}), E((e) => !e);
236
236
  },
237
- [se, E, v]
237
+ [ue, E, v]
238
238
  ), et = n.useCallback((r) => {
239
239
  if (document && a.current) {
240
- const e = ye(document);
240
+ const e = Ve(document);
241
241
  r.preventDefault(), e !== a.current && a.current.focus();
242
242
  }
243
243
  }, []);
244
244
  ut(() => {
245
- a.current && a.current.type !== "number" && c.current.selectionStart !== void 0 && c.current.selectionEnd !== void 0 && (a.current.selectionStart = c.current.selectionStart, a.current.selectionEnd = c.current.selectionEnd, c.current.selectionStart = void 0, c.current.selectionEnd = void 0);
245
+ a.current && a.current.type !== "number" && i.current.selectionStart !== void 0 && i.current.selectionEnd !== void 0 && (a.current.selectionStart = i.current.selectionStart, a.current.selectionEnd = i.current.selectionEnd, i.current.selectionStart = void 0, i.current.selectionEnd = void 0);
246
246
  }, [_e]);
247
- const pe = !$() || j().valid, ge = /* @__PURE__ */ n.createElement(
247
+ const ge = !Y() || j().valid, ve = /* @__PURE__ */ n.createElement(
248
248
  "span",
249
249
  {
250
- dir: te,
251
- style: D ? re : { width: Z, ...re },
250
+ dir: ne,
251
+ style: D ? ae : { width: ee, ...ae },
252
252
  className: lt(
253
253
  "k-input",
254
254
  "k-numerictextbox",
255
255
  {
256
- [`k-input-${Ve.sizeMap[x] || x}`]: x,
256
+ [`k-input-${Ce.sizeMap[x] || x}`]: x,
257
257
  [`k-input-${B}`]: B,
258
- [`k-rounded-${Ve.roundedMap[U] || U}`]: U,
259
- "k-invalid": !pe,
258
+ [`k-rounded-${Ce.roundedMap[W] || W}`]: W,
259
+ "k-invalid": !ge,
260
260
  "k-required": F,
261
261
  "k-disabled": u
262
262
  },
263
- Le
263
+ Oe
264
264
  ),
265
265
  "aria-disabled": u ? "true" : void 0,
266
- ...D ? {} : le
266
+ ...D ? {} : ie
267
267
  },
268
268
  /* @__PURE__ */ n.createElement(we, null),
269
269
  /* @__PURE__ */ n.createElement(
@@ -271,28 +271,28 @@ const bt = "Please enter a valid value!", pt = it(), xe = n.forwardRef(
271
271
  {
272
272
  role: "spinbutton",
273
273
  value: L === null ? "" : L,
274
- tabIndex: ct(Ne, u),
275
- accessKey: Pe,
274
+ tabIndex: it(Pe, u),
275
+ accessKey: Re,
276
276
  disabled: u,
277
- title: Re,
277
+ title: De,
278
278
  "aria-disabled": u ? "true" : void 0,
279
- "aria-valuemin": d,
280
- "aria-valuemax": m,
281
- "aria-label": Be,
282
- "aria-labelledby": Fe,
283
- "aria-describedby": De,
284
- "aria-required": F,
285
- placeholder: ee,
279
+ "aria-valuemin": U ? d : void 0,
280
+ "aria-valuemax": U ? m : void 0,
281
+ "aria-label": Me,
282
+ "aria-labelledby": Be,
283
+ "aria-describedby": Fe,
284
+ "aria-required": F || void 0,
285
+ placeholder: te,
286
286
  spellCheck: !1,
287
287
  autoComplete: "off",
288
288
  autoCorrect: "off",
289
289
  autoFocus: Ae,
290
- type: Me || "tel",
290
+ type: Te || "tel",
291
291
  className: "k-input-inner",
292
292
  id: ce,
293
293
  name: R,
294
294
  readOnly: g,
295
- style: ze,
295
+ style: qe,
296
296
  onChange: $e,
297
297
  onFocus: Xe,
298
298
  onBlur: Ze,
@@ -304,9 +304,9 @@ const bt = "Please enter a valid value!", pt = it(), xe = n.forwardRef(
304
304
  }
305
305
  ),
306
306
  /* @__PURE__ */ n.createElement(Ue, null),
307
- Te,
308
- qe && /* @__PURE__ */ n.createElement("span", { className: "k-input-spinner k-spin-button", onMouseDown: et }, /* @__PURE__ */ n.createElement(
309
- Se,
307
+ ze,
308
+ U && /* @__PURE__ */ n.createElement("span", { className: "k-input-spinner k-spin-button", onMouseDown: et }, /* @__PURE__ */ n.createElement(
309
+ xe,
310
310
  {
311
311
  tabIndex: -1,
312
312
  type: "button",
@@ -323,10 +323,10 @@ const bt = "Please enter a valid value!", pt = it(), xe = n.forwardRef(
323
323
  A,
324
324
  H[A]
325
325
  ),
326
- onClick: Y
326
+ onClick: J
327
327
  }
328
328
  ), /* @__PURE__ */ n.createElement(
329
- Se,
329
+ xe,
330
330
  {
331
331
  tabIndex: -1,
332
332
  type: "button",
@@ -343,7 +343,7 @@ const bt = "Please enter a valid value!", pt = it(), xe = n.forwardRef(
343
343
  K,
344
344
  H[K]
345
345
  ),
346
- onClick: J
346
+ onClick: Q
347
347
  }
348
348
  ))
349
349
  );
@@ -353,18 +353,18 @@ const bt = "Please enter a valid value!", pt = it(), xe = n.forwardRef(
353
353
  label: D,
354
354
  editorId: ce,
355
355
  editorValue: L === null ? "" : L,
356
- editorValid: pe,
356
+ editorValid: ge,
357
357
  editorDisabled: u,
358
- editorPlaceholder: ee,
359
- children: ge,
360
- style: { width: Z },
361
- dir: te,
362
- ...le
358
+ editorPlaceholder: te,
359
+ children: ve,
360
+ style: { width: ee },
361
+ dir: ne,
362
+ ...ie
363
363
  }
364
- ) : ge;
364
+ ) : ve;
365
365
  }
366
366
  );
367
- xe.propTypes = {
367
+ Ie.propTypes = {
368
368
  value: t.number,
369
369
  defaultValue: t.number,
370
370
  step: t.number,
@@ -408,7 +408,7 @@ xe.propTypes = {
408
408
  fillMode: t.oneOf(["solid", "flat", "outline"]),
409
409
  inputAttributes: t.object
410
410
  };
411
- const i = {
411
+ const c = {
412
412
  prefix: (k) => null,
413
413
  suffix: (k) => null,
414
414
  step: 1,
@@ -428,8 +428,8 @@ const i = {
428
428
  rounded: void 0,
429
429
  fillMode: void 0
430
430
  };
431
- xe.displayName = "KendoNumericTextBox";
431
+ Ie.displayName = "KendoNumericTextBox";
432
432
  export {
433
- xe as NumericTextBox,
433
+ Ie as NumericTextBox,
434
434
  pt as NumericTextBoxPropsContext
435
435
  };
@@ -5,4 +5,4 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=Object.freeze({name:"@progress/kendo-react-inputs",productName:"KendoReact",productCode:"KENDOUIREACT",productCodes:["KENDOUIREACT"],publishDate: 1778745611,version:"14.5.0-develop.14",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/"});exports.packageMetadata=e;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=Object.freeze({name:"@progress/kendo-react-inputs",productName:"KendoReact",productCode:"KENDOUIREACT",productCodes:["KENDOUIREACT"],publishDate: 1778773230,version:"14.5.0-develop.15",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/"});exports.packageMetadata=e;
@@ -7,7 +7,7 @@ export const packageMetadata = Object.freeze({
7
7
  productName: 'KendoReact',
8
8
  productCode: 'KENDOUIREACT',
9
9
  productCodes: ['KENDOUIREACT'],
10
- publishDate: 1778745611,
11
- version: '14.5.0-develop.14',
10
+ publishDate: 1778773230,
11
+ version: '14.5.0-develop.15',
12
12
  licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/components/my-license/'
13
13
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-react-inputs",
3
- "version": "14.5.0-develop.14",
3
+ "version": "14.5.0-develop.15",
4
4
  "description": "React Inputs offer a customizable interface for users to enter and pick different information. KendoReact Input package",
5
5
  "author": "Progress",
6
6
  "license": "SEE LICENSE IN LICENSE.md",
@@ -28,14 +28,14 @@
28
28
  "@progress/kendo-drawing": "^1.21.2",
29
29
  "@progress/kendo-inputs-common": "^3.1.0",
30
30
  "@progress/kendo-licensing": "^1.7.2",
31
- "@progress/kendo-react-animation": "14.5.0-develop.14",
32
- "@progress/kendo-react-buttons": "14.5.0-develop.14",
33
- "@progress/kendo-react-common": "14.5.0-develop.14",
34
- "@progress/kendo-react-dialogs": "14.5.0-develop.14",
35
- "@progress/kendo-react-layout": "14.5.0-develop.14",
36
- "@progress/kendo-react-intl": "14.5.0-develop.14",
37
- "@progress/kendo-react-labels": "14.5.0-develop.14",
38
- "@progress/kendo-react-popup": "14.5.0-develop.14",
31
+ "@progress/kendo-react-animation": "14.5.0-develop.15",
32
+ "@progress/kendo-react-buttons": "14.5.0-develop.15",
33
+ "@progress/kendo-react-common": "14.5.0-develop.15",
34
+ "@progress/kendo-react-dialogs": "14.5.0-develop.15",
35
+ "@progress/kendo-react-layout": "14.5.0-develop.15",
36
+ "@progress/kendo-react-intl": "14.5.0-develop.15",
37
+ "@progress/kendo-react-labels": "14.5.0-develop.15",
38
+ "@progress/kendo-react-popup": "14.5.0-develop.15",
39
39
  "@progress/kendo-svg-icons": "^4.9.0 || ^5.0.0",
40
40
  "react": "^18.0.0 || ^19.0.0",
41
41
  "react-dom": "^18.0.0 || ^19.0.0"
@@ -82,7 +82,7 @@
82
82
  "package": {
83
83
  "productName": "KendoReact",
84
84
  "productCode": "KENDOUIREACT",
85
- "publishDate": 1778745611,
85
+ "publishDate": 1778773230,
86
86
  "licensingDocsUrl": "https://www.telerik.com/kendo-react-ui/components/my-license/"
87
87
  }
88
88
  },
@@ -5,4 +5,4 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const M=require("react"),t=require("prop-types"),n=require("@progress/kendo-react-common");function K(a){const l=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(a){for(const s in a)if(s!=="default"){const r=Object.getOwnPropertyDescriptor(a,s);Object.defineProperty(l,s,r.get?r:{enumerable:!0,get:()=>a[s]})}}return l.default=a,Object.freeze(l)}const e=K(M),k=n.createPropsContext(),g=e.forwardRef((a,l)=>{const s=n.usePropsContext(k,a),{ariaDescribedBy:r,checked:y,children:v,className:x,disabled:o,id:B,size:F=L.size,label:d,labelPlacement:I,name:O,style:j,tabIndex:q,value:m,valid:z,onChange:h,onFocus:b,onBlur:p,required:S,...T}=s,C=n.useUnstyled(),f=C&&C.uRadioButton,u=e.useRef(null),R=e.useCallback(()=>{u.current&&u.current.focus()},[]),i=e.useCallback(()=>({element:u.current,focus:R}),[R]);e.useImperativeHandle(l,i);const P=n.useId(),D=e.useCallback(c=>{n.dispatchEvent(h,c,i(),{value:m})},[h,m,o]),w=e.useCallback(c=>{b&&!o&&n.dispatchEvent(b,c,i(),void 0)},[b,o]),_=e.useCallback(c=>{p&&!o&&n.dispatchEvent(p,c,i(),void 0)},[p,o]),H={type:"radio",id:B||P,name:O,className:n.classNames(n.uRadioButton.input({c:f,size:F,invalid:z===!1,checked:y}),x),ref:u,disabled:o,tabIndex:n.getTabIndex(q,o),checked:y,style:j,"aria-describedby":r,"aria-required":S,value:m,onChange:D,onFocus:w,onBlur:_,...T},E=e.createElement(e.Fragment,null,d!==void 0?e.createElement("label",{className:n.classNames(n.uRadioButton.label({c:f})),htmlFor:B||P,style:{userSelect:"none"},"aria-label":d},d):null),N=e.createElement("span",{className:n.classNames(n.uRadioButton.wrap({c:f}))},e.createElement("input",{...H}));return I==="before"?e.createElement(e.Fragment,null,E,N,v):e.createElement(e.Fragment,null,N,E,v)});g.propTypes={ariaDescribedBy:t.string,checked:t.bool,className:t.string,disabled:t.bool,id:t.string,size:t.oneOf(["small","medium","large"]),label:t.string,labelPlacement:t.string,name:t.string,style:t.object,tabIndex:t.number,value:t.any,valid:t.bool,onChange:t.func,onFocus:t.func,onBlur:t.func};const L={size:void 0};g.displayName="KendoRadioButton";exports.RadioButton=g;exports.RadioButtonPropsContext=k;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const M=require("react"),e=require("prop-types"),a=require("@progress/kendo-react-common");function K(n){const l=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const s in n)if(s!=="default"){const c=Object.getOwnPropertyDescriptor(n,s);Object.defineProperty(l,s,c.get?c:{enumerable:!0,get:()=>n[s]})}}return l.default=n,Object.freeze(l)}const t=K(M),k=a.createPropsContext(),g=t.forwardRef((n,l)=>{const s=a.usePropsContext(k,n),{ariaDescribedBy:c,ariaLabel:x,checked:y,children:v,className:F,disabled:o,id:B,size:I=U.size,label:d,labelPlacement:O,name:j,style:q,tabIndex:z,value:b,valid:S,onChange:h,onFocus:m,onBlur:p,required:T,...D}=s,C=a.useUnstyled(),f=C&&C.uRadioButton,i=t.useRef(null),R=t.useCallback(()=>{i.current&&i.current.focus()},[]),u=t.useCallback(()=>({element:i.current,focus:R}),[R]);t.useImperativeHandle(l,u);const P=a.useId(),w=t.useCallback(r=>{a.dispatchEvent(h,r,u(),{value:b})},[h,b,o]),L=t.useCallback(r=>{m&&!o&&a.dispatchEvent(m,r,u(),void 0)},[m,o]),_=t.useCallback(r=>{p&&!o&&a.dispatchEvent(p,r,u(),void 0)},[p,o]),H={type:"radio",id:B||P,name:j,className:a.classNames(a.uRadioButton.input({c:f,size:I,invalid:S===!1,checked:y}),F),ref:i,disabled:o,tabIndex:a.getTabIndex(z,o),checked:y,style:q,"aria-describedby":c,"aria-label":x,"aria-required":T,value:b,onChange:w,onFocus:L,onBlur:_,...D},E=t.createElement(t.Fragment,null,d!==void 0?t.createElement("label",{className:a.classNames(a.uRadioButton.label({c:f})),htmlFor:B||P,style:{userSelect:"none"},"aria-label":d},d):null),N=t.createElement("span",{className:a.classNames(a.uRadioButton.wrap({c:f}))},t.createElement("input",{...H}));return O==="before"?t.createElement(t.Fragment,null,E,N,v):t.createElement(t.Fragment,null,N,E,v)});g.propTypes={ariaDescribedBy:e.string,ariaLabel:e.string,checked:e.bool,className:e.string,disabled:e.bool,id:e.string,size:e.oneOf(["small","medium","large"]),label:e.string,labelPlacement:e.string,name:e.string,style:e.object,tabIndex:e.number,value:e.any,valid:e.bool,onChange:e.func,onFocus:e.func,onBlur:e.func};const U={size:void 0};g.displayName="KendoRadioButton";exports.RadioButton=g;exports.RadioButtonPropsContext=k;
@@ -7,18 +7,19 @@
7
7
  */
8
8
  import * as e from "react";
9
9
  import a from "prop-types";
10
- import { usePropsContext as U, useUnstyled as A, useId as G, dispatchEvent as d, getTabIndex as J, classNames as m, uRadioButton as b, createPropsContext as M } from "@progress/kendo-react-common";
11
- const Q = M(), x = e.forwardRef((E, F) => {
12
- const I = U(Q, E), {
10
+ import { usePropsContext as A, useUnstyled as G, useId as J, dispatchEvent as d, getTabIndex as M, classNames as m, uRadioButton as b, createPropsContext as Q } from "@progress/kendo-react-common";
11
+ const V = Q(), x = e.forwardRef((E, F) => {
12
+ const I = A(V, E), {
13
13
  ariaDescribedBy: P,
14
+ ariaLabel: k,
14
15
  checked: p,
15
16
  children: f,
16
- className: k,
17
+ className: N,
17
18
  disabled: n,
18
19
  id: g,
19
- size: N = V.size,
20
+ size: z = W.size,
20
21
  label: o,
21
- labelPlacement: z,
22
+ labelPlacement: L,
22
23
  name: T,
23
24
  style: q,
24
25
  tabIndex: w,
@@ -29,7 +30,7 @@ const Q = M(), x = e.forwardRef((E, F) => {
29
30
  onBlur: i,
30
31
  required: H,
31
32
  ...j
32
- } = I, y = A(), u = y && y.uRadioButton, l = e.useRef(null), C = e.useCallback(() => {
33
+ } = I, y = G(), u = y && y.uRadioButton, l = e.useRef(null), C = e.useCallback(() => {
33
34
  l.current && l.current.focus();
34
35
  }, []), s = e.useCallback(
35
36
  () => ({
@@ -39,14 +40,14 @@ const Q = M(), x = e.forwardRef((E, F) => {
39
40
  [C]
40
41
  );
41
42
  e.useImperativeHandle(F, s);
42
- const v = G(), K = e.useCallback(
43
+ const v = J(), K = e.useCallback(
43
44
  (t) => {
44
45
  d(h, t, s(), {
45
46
  value: r
46
47
  });
47
48
  },
48
49
  [h, r, n]
49
- ), L = e.useCallback(
50
+ ), O = e.useCallback(
50
51
  (t) => {
51
52
  c && !n && d(
52
53
  c,
@@ -56,35 +57,36 @@ const Q = M(), x = e.forwardRef((E, F) => {
56
57
  );
57
58
  },
58
59
  [c, n]
59
- ), O = e.useCallback(
60
+ ), S = e.useCallback(
60
61
  (t) => {
61
62
  i && !n && d(i, t, s(), void 0);
62
63
  },
63
64
  [i, n]
64
- ), S = {
65
+ ), U = {
65
66
  type: "radio",
66
67
  id: g || v,
67
68
  name: T,
68
69
  className: m(
69
70
  b.input({
70
71
  c: u,
71
- size: N,
72
+ size: z,
72
73
  invalid: D === !1,
73
74
  checked: p
74
75
  }),
75
- k
76
+ N
76
77
  ),
77
78
  ref: l,
78
79
  disabled: n,
79
- tabIndex: J(w, n),
80
+ tabIndex: M(w, n),
80
81
  checked: p,
81
82
  style: q,
82
83
  "aria-describedby": P,
84
+ "aria-label": k,
83
85
  "aria-required": H,
84
86
  value: r,
85
87
  onChange: K,
86
- onFocus: L,
87
- onBlur: O,
88
+ onFocus: O,
89
+ onBlur: S,
88
90
  ...j
89
91
  }, B = /* @__PURE__ */ e.createElement(e.Fragment, null, o !== void 0 ? /* @__PURE__ */ e.createElement(
90
92
  "label",
@@ -95,11 +97,12 @@ const Q = M(), x = e.forwardRef((E, F) => {
95
97
  "aria-label": o
96
98
  },
97
99
  o
98
- ) : null), R = /* @__PURE__ */ e.createElement("span", { className: m(b.wrap({ c: u })) }, /* @__PURE__ */ e.createElement("input", { ...S }));
99
- return z === "before" ? /* @__PURE__ */ e.createElement(e.Fragment, null, B, R, f) : /* @__PURE__ */ e.createElement(e.Fragment, null, R, B, f);
100
+ ) : null), R = /* @__PURE__ */ e.createElement("span", { className: m(b.wrap({ c: u })) }, /* @__PURE__ */ e.createElement("input", { ...U }));
101
+ return L === "before" ? /* @__PURE__ */ e.createElement(e.Fragment, null, B, R, f) : /* @__PURE__ */ e.createElement(e.Fragment, null, R, B, f);
100
102
  });
101
103
  x.propTypes = {
102
104
  ariaDescribedBy: a.string,
105
+ ariaLabel: a.string,
103
106
  checked: a.bool,
104
107
  className: a.string,
105
108
  disabled: a.bool,
@@ -116,11 +119,11 @@ x.propTypes = {
116
119
  onFocus: a.func,
117
120
  onBlur: a.func
118
121
  };
119
- const V = {
122
+ const W = {
120
123
  size: void 0
121
124
  };
122
125
  x.displayName = "KendoRadioButton";
123
126
  export {
124
127
  x as RadioButton,
125
- Q as RadioButtonPropsContext
128
+ V as RadioButtonPropsContext
126
129
  };