@progress/kendo-react-inputs 13.4.0-develop.2 → 13.4.0-develop.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.mts CHANGED
@@ -44,7 +44,7 @@ export { sanitizeNumber } from './numerictextbox/utils/index.js';
44
44
  export { rangeReducer, RANGE_ACTION } from './range-slider/range-raducer.js';
45
45
  export * from './range-slider/RangeSlider.js';
46
46
  export * from './interfaces/ToggleBaseProps.js';
47
- export { Switch, SwitchWithoutContext, type SwitchHandle, type SwitchProps, type SwitchPropsContext, type SwitchState, type SwitchChangeEvent } from './switch/Switch.js';
47
+ export { Switch, SwitchWithoutContext, type SwitchHandle, type SwitchProps, type SwitchPropsContext, type SwitchChangeEvent } from './switch/Switch.js';
48
48
  export * from './checkbox/interfaces/CheckboxProps.js';
49
49
  export * from './checkbox/interfaces/CheckboxChangeEvent.js';
50
50
  export * from './checkbox/interfaces/CheckboxFocusEvent.js';
package/index.d.ts CHANGED
@@ -44,7 +44,7 @@ export { sanitizeNumber } from './numerictextbox/utils/index.js';
44
44
  export { rangeReducer, RANGE_ACTION } from './range-slider/range-raducer.js';
45
45
  export * from './range-slider/RangeSlider.js';
46
46
  export * from './interfaces/ToggleBaseProps.js';
47
- export { Switch, SwitchWithoutContext, type SwitchHandle, type SwitchProps, type SwitchPropsContext, type SwitchState, type SwitchChangeEvent } from './switch/Switch.js';
47
+ export { Switch, SwitchWithoutContext, type SwitchHandle, type SwitchProps, type SwitchPropsContext, type SwitchChangeEvent } from './switch/Switch.js';
48
48
  export * from './checkbox/interfaces/CheckboxProps.js';
49
49
  export * from './checkbox/interfaces/CheckboxChangeEvent.js';
50
50
  export * from './checkbox/interfaces/CheckboxFocusEvent.js';
package/input/Input.mjs CHANGED
@@ -7,10 +7,10 @@
7
7
  */
8
8
  import * as r from "react";
9
9
  import a from "prop-types";
10
- import { createPropsContext as z, applyDefaultProps as J, useUnstyled as Q, useId as W, classNames as X } from "@progress/kendo-react-common";
11
- import { FloatingLabel as Y } from "@progress/kendo-react-labels";
10
+ import { createPropsContext as j, applyDefaultProps as z, useUnstyled as J, useId as Q, classNames as W } from "@progress/kendo-react-common";
11
+ import { FloatingLabel as X } from "@progress/kendo-react-labels";
12
12
  const C = r.forwardRef((I, L) => {
13
- const M = r.useContext(Z).call(void 0, I), [, P] = r.useReducer((t) => t, !0), n = J(M, _), {
13
+ const M = r.useContext(Y).call(void 0, I), [, P] = r.useReducer((t) => t, !0), n = z(M, Z), {
14
14
  className: k,
15
15
  label: o,
16
16
  labelClassName: x,
@@ -30,9 +30,9 @@ const C = r.forwardRef((I, L) => {
30
30
  style: m,
31
31
  ariaLabel: U,
32
32
  ...B
33
- } = n, D = Q(), u = R || D;
33
+ } = n, D = J(), u = R || D;
34
34
  u && u.uInput;
35
- const O = W(), [S, T] = r.useState({
35
+ const O = Q(), [S, T] = r.useState({
36
36
  value: N
37
37
  }), g = E || O, e = r.useRef(null), l = r.useRef(void 0), d = r.useRef(null), q = () => {
38
38
  e.current && e.current.focus();
@@ -70,7 +70,7 @@ const C = r.forwardRef((I, L) => {
70
70
  for (const h in t)
71
71
  t.hasOwnProperty(h) && (i = i || !!t[h]);
72
72
  return i;
73
- }, v = !y || s().valid, G = X(
73
+ }, v = !y || s().valid, G = W(
74
74
  "k-input",
75
75
  {
76
76
  "k-invalid": !v,
@@ -79,7 +79,7 @@ const C = r.forwardRef((I, L) => {
79
79
  k
80
80
  ), H = () => {
81
81
  e.current && e.current.setCustomValidity && (s().valid || !y ? e.current.classList.remove("k-invalid") : e.current.classList.add("k-invalid"), e.current.setCustomValidity(s().valid ? "" : p || ""));
82
- }, K = (t) => {
82
+ }, _ = (t) => {
83
83
  T({
84
84
  value: t.target.value
85
85
  }), l.current = t.target.value, n.onChange && n.onChange.call(void 0, {
@@ -88,7 +88,7 @@ const C = r.forwardRef((I, L) => {
88
88
  value: t.target.value,
89
89
  target: d.current
90
90
  }), l.current = void 0;
91
- }, j = (t) => {
91
+ }, K = (t) => {
92
92
  if (t.animationName === "autoFillStart") {
93
93
  const i = t.target.parentNode;
94
94
  i && i.classList.contains("k-empty") && i.classList.remove("k-empty");
@@ -113,13 +113,13 @@ const C = r.forwardRef((I, L) => {
113
113
  id: g,
114
114
  autoFocus: V,
115
115
  className: G,
116
- onChange: K,
117
- onAnimationStart: j,
116
+ onChange: _,
117
+ onAnimationStart: K,
118
118
  ref: e
119
119
  }
120
120
  );
121
121
  return o ? /* @__PURE__ */ r.createElement(
122
- Y,
122
+ X,
123
123
  {
124
124
  label: o,
125
125
  labelClassName: x,
@@ -134,7 +134,7 @@ const C = r.forwardRef((I, L) => {
134
134
  unstyled: u
135
135
  }
136
136
  ) : b;
137
- }), Z = z(), _ = {
137
+ }), Y = j(), Z = {
138
138
  defaultValue: "",
139
139
  required: !1,
140
140
  validityStyles: !0,
@@ -156,5 +156,5 @@ C.propTypes = {
156
156
  };
157
157
  export {
158
158
  C as Input,
159
- Z as InputPropsContext
159
+ Y as InputPropsContext
160
160
  };
@@ -5,13 +5,13 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- import * as p from "react";
8
+ import * as d from "react";
9
9
  import e from "prop-types";
10
10
  import { MaskingService as E } from "./masking.service.mjs";
11
11
  import { defaultRules as g, maskingChanged as O, returnFalse as y } from "./utils.mjs";
12
- import { withIdHOC as V, withPropsContext as M, createPropsContext as I, withUnstyledHOC as w, useCustomComponent as b, classNames as k, kendoThemeMaps as x, getTabIndex as D, uMaskedTextBox as H } from "@progress/kendo-react-common";
12
+ import { withIdHOC as V, withPropsContext as M, createPropsContext as I, withUnstyledHOC as w, useCustomComponent as b, classNames as _, kendoThemeMaps as k, getTabIndex as D, uMaskedTextBox as H } from "@progress/kendo-react-common";
13
13
  import { FloatingLabel as q } from "@progress/kendo-react-labels";
14
- const l = class l extends p.Component {
14
+ const l = class l extends d.Component {
15
15
  constructor() {
16
16
  super(...arguments), this.state = {}, this._inputId = `k_${this.props.id}`, this._service = new E(), this._isPasted = !1, this._selection = [null, null], this._input = null, this.focus = () => {
17
17
  this._input && this._input.focus();
@@ -28,7 +28,7 @@ const l = class l extends p.Component {
28
28
  let n;
29
29
  if (this._isPasted) {
30
30
  this._isPasted = !1;
31
- const d = r.length - o, u = s.length - d;
31
+ const p = r.length - o, u = s.length - p;
32
32
  n = this._service.maskInRange(s.slice(a, u), r, a, o);
33
33
  } else
34
34
  n = this._service.maskInput(s, r, i.selectionStart || 0);
@@ -144,19 +144,19 @@ const l = class l extends p.Component {
144
144
  prefix: o = l.defaultProps.prefix,
145
145
  suffix: r = l.defaultProps.suffix,
146
146
  inputAttributes: n,
147
- unstyled: d,
147
+ unstyled: p,
148
148
  className: u
149
- } = this.props, c = this.props.id || this._inputId, f = !this.validityStyles || this.validity.valid, v = this.props.style || {}, _ = d && d.uMaskedTextBox, [C] = b(o), [P] = b(r), m = /* @__PURE__ */ p.createElement(
149
+ } = this.props, c = this.props.id || this._inputId, f = !this.validityStyles || this.validity.valid, v = this.props.style || {}, x = p && p.uMaskedTextBox, [C] = b(o), [P] = b(r), m = /* @__PURE__ */ d.createElement(
150
150
  "span",
151
151
  {
152
152
  dir: this.props.dir,
153
- className: k(
153
+ className: _(
154
154
  "k-input",
155
155
  "k-maskedtextbox",
156
156
  {
157
- [`k-input-${x.sizeMap[t] || t}`]: t,
157
+ [`k-input-${k.sizeMap[t] || t}`]: t,
158
158
  [`k-input-${i}`]: i,
159
- [`k-rounded-${x.roundedMap[s] || s}`]: s,
159
+ [`k-rounded-${k.roundedMap[s] || s}`]: s,
160
160
  "k-invalid": !f,
161
161
  "k-disabled": this.props.disabled
162
162
  },
@@ -164,8 +164,8 @@ const l = class l extends p.Component {
164
164
  ),
165
165
  style: this.props.label ? v : { width: this.props.width, ...v }
166
166
  },
167
- /* @__PURE__ */ p.createElement(C, null),
168
- /* @__PURE__ */ p.createElement(
167
+ /* @__PURE__ */ d.createElement(C, null),
168
+ /* @__PURE__ */ d.createElement(
169
169
  "input",
170
170
  {
171
171
  type: "text",
@@ -174,7 +174,7 @@ const l = class l extends p.Component {
174
174
  autoCapitalize: "off",
175
175
  autoFocus: a,
176
176
  spellCheck: !1,
177
- className: k(H.inputInner({ c: _ })),
177
+ className: _(H.inputInner({ c: x })),
178
178
  value: this.value,
179
179
  id: c,
180
180
  "aria-labelledby": this.props.ariaLabelledBy,
@@ -200,9 +200,9 @@ const l = class l extends p.Component {
200
200
  ...n
201
201
  }
202
202
  ),
203
- /* @__PURE__ */ p.createElement(P, null)
203
+ /* @__PURE__ */ d.createElement(P, null)
204
204
  );
205
- return this.props.label ? /* @__PURE__ */ p.createElement(
205
+ return this.props.label ? /* @__PURE__ */ d.createElement(
206
206
  q,
207
207
  {
208
208
  label: this.props.label,
@@ -16,7 +16,7 @@ import { getInitialState as ve, formatValue as A, getStateOrPropsValue as X, ran
16
16
  import { Button as Ce } from "@progress/kendo-react-buttons";
17
17
  const it = "Please enter a valid value!", ct = et(), Ee = r.forwardRef(
18
18
  (C, Se) => {
19
- const j = tt(
19
+ const _ = tt(
20
20
  ct,
21
21
  C
22
22
  ), {
@@ -32,7 +32,7 @@ const it = "Please enter a valid value!", ct = et(), Ee = r.forwardRef(
32
32
  min: c,
33
33
  max: d,
34
34
  dir: te,
35
- name: _,
35
+ name: j,
36
36
  label: O,
37
37
  id: Pe,
38
38
  ariaDescribedBy: Ne,
@@ -66,7 +66,7 @@ const it = "Please enter a valid value!", ct = et(), Ee = r.forwardRef(
66
66
  autoFocus: Ae = u.autoFocus,
67
67
  inputAttributes: Ge,
68
68
  ...le
69
- } = j, je = rt(), ue = Pe || je, o = Xe(), N = Ze(), a = r.useRef(null), D = r.useRef(void 0), [_e, S] = r.useState(!1), i = r.useRef(ve()), R = r.useRef(!1), U = r.useRef(void 0), h = r.useRef(he), I = A(
69
+ } = _, _e = rt(), ue = Pe || _e, o = Xe(), N = Ze(), a = r.useRef(null), D = r.useRef(void 0), [je, S] = r.useState(!1), i = r.useRef(ve()), R = r.useRef(!1), U = r.useRef(void 0), h = r.useRef(he), I = A(
70
70
  i.current.focused && !l ? i.current.currentLooseValue : X(g, h.current),
71
71
  s,
72
72
  o
@@ -80,14 +80,14 @@ const it = "Please enter a valid value!", ct = et(), Ee = r.forwardRef(
80
80
  });
81
81
  const ie = r.useCallback(() => {
82
82
  a.current && a.current.focus();
83
- }, []), F = r.useCallback(() => D.current !== void 0 ? D.current : X(g, h.current), [g]), ce = r.useCallback(() => _, [_]), B = r.useCallback(() => L, [L]), M = r.useCallback(() => {
83
+ }, []), F = r.useCallback(() => D.current !== void 0 ? D.current : X(g, h.current), [g]), ce = r.useCallback(() => j, [j]), B = r.useCallback(() => L, [L]), M = r.useCallback(() => {
84
84
  const n = H !== void 0, e = F(), V = K !== void 0 ? K : !i.current.valueIsOutOfRange && (!B() || e != null);
85
85
  return {
86
86
  customError: n,
87
87
  valid: V,
88
88
  valueMissing: e == null
89
89
  };
90
- }, [H, K, F, B]), $ = r.useCallback(() => ne, [ne]), de = r.useCallback(() => j, [j]), y = r.useCallback(() => {
90
+ }, [H, K, F, B]), $ = r.useCallback(() => ne, [ne]), de = r.useCallback(() => _, [_]), y = r.useCallback(() => {
91
91
  const n = {
92
92
  element: a.current,
93
93
  focus: ie
@@ -217,7 +217,7 @@ const it = "Please enter a valid value!", ct = et(), Ee = r.forwardRef(
217
217
  }, []);
218
218
  nt(() => {
219
219
  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);
220
- }, [_e]);
220
+ }, [je]);
221
221
  const me = !$() || M().valid, fe = /* @__PURE__ */ r.createElement(
222
222
  "span",
223
223
  {
@@ -264,7 +264,7 @@ const it = "Please enter a valid value!", ct = et(), Ee = r.forwardRef(
264
264
  type: Fe || "tel",
265
265
  className: "k-input-inner",
266
266
  id: ue,
267
- name: _,
267
+ name: j,
268
268
  readOnly: f,
269
269
  style: Me,
270
270
  onChange: we,
@@ -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: 1770287905,version:"13.4.0-develop.2",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: 1770312080,version:"13.4.0-develop.3",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/"});exports.packageMetadata=e;
@@ -8,6 +8,6 @@ export const packageMetadata = Object.freeze({
8
8
  productCode: 'KENDOUIREACT',
9
9
  productCodes: ['KENDOUIREACT'],
10
10
  publishDate: 0,
11
- version: '13.4.0-develop.2',
11
+ version: '13.4.0-develop.3',
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": "13.4.0-develop.2",
3
+ "version": "13.4.0-develop.3",
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": "13.4.0-develop.2",
32
- "@progress/kendo-react-buttons": "13.4.0-develop.2",
33
- "@progress/kendo-react-common": "13.4.0-develop.2",
34
- "@progress/kendo-react-dialogs": "13.4.0-develop.2",
35
- "@progress/kendo-react-layout": "13.4.0-develop.2",
36
- "@progress/kendo-react-intl": "13.4.0-develop.2",
37
- "@progress/kendo-react-labels": "13.4.0-develop.2",
38
- "@progress/kendo-react-popup": "13.4.0-develop.2",
31
+ "@progress/kendo-react-animation": "13.4.0-develop.3",
32
+ "@progress/kendo-react-buttons": "13.4.0-develop.3",
33
+ "@progress/kendo-react-common": "13.4.0-develop.3",
34
+ "@progress/kendo-react-dialogs": "13.4.0-develop.3",
35
+ "@progress/kendo-react-layout": "13.4.0-develop.3",
36
+ "@progress/kendo-react-intl": "13.4.0-develop.3",
37
+ "@progress/kendo-react-labels": "13.4.0-develop.3",
38
+ "@progress/kendo-react-popup": "13.4.0-develop.3",
39
39
  "@progress/kendo-svg-icons": "^4.0.0",
40
40
  "react": "^16.8.2 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc",
41
41
  "react-dom": "^16.8.2 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"
@@ -82,7 +82,7 @@
82
82
  "package": {
83
83
  "productName": "KendoReact",
84
84
  "productCode": "KENDOUIREACT",
85
- "publishDate": 1770287905,
85
+ "publishDate": 1770312080,
86
86
  "licensingDocsUrl": "https://www.telerik.com/kendo-react-ui/components/my-license/"
87
87
  }
88
88
  },
@@ -7,16 +7,16 @@
7
7
  */
8
8
  import * as e from "react";
9
9
  import a from "prop-types";
10
- import { createPropsContext as U, usePropsContext as A, useUnstyled as G, useId as J, dispatchEvent as d, getTabIndex as M, classNames as m, uRadioButton as b } from "@progress/kendo-react-common";
11
- const Q = U(), x = e.forwardRef((E, F) => {
12
- const I = A(Q, E), {
10
+ import { createPropsContext as S, usePropsContext as U, useUnstyled as A, useId as G, dispatchEvent as d, getTabIndex as J, classNames as m, uRadioButton as b } from "@progress/kendo-react-common";
11
+ const M = S(), x = e.forwardRef((E, F) => {
12
+ const I = U(M, E), {
13
13
  ariaDescribedBy: P,
14
14
  checked: p,
15
15
  children: f,
16
16
  className: k,
17
17
  disabled: n,
18
18
  id: g,
19
- size: N = V.size,
19
+ size: N = Q.size,
20
20
  label: o,
21
21
  labelPlacement: z,
22
22
  name: T,
@@ -28,8 +28,8 @@ const Q = U(), x = e.forwardRef((E, F) => {
28
28
  onFocus: c,
29
29
  onBlur: i,
30
30
  required: H,
31
- ...j
32
- } = I, y = G(), u = y && y.uRadioButton, l = e.useRef(null), C = e.useCallback(() => {
31
+ ..._
32
+ } = I, y = A(), u = y && y.uRadioButton, l = e.useRef(null), C = e.useCallback(() => {
33
33
  l.current && l.current.focus();
34
34
  }, []), s = e.useCallback(
35
35
  () => ({
@@ -39,14 +39,14 @@ const Q = U(), x = e.forwardRef((E, F) => {
39
39
  [C]
40
40
  );
41
41
  e.useImperativeHandle(F, s);
42
- const v = J(), K = e.useCallback(
42
+ const v = G(), j = e.useCallback(
43
43
  (t) => {
44
44
  d(h, t, s(), {
45
45
  value: r
46
46
  });
47
47
  },
48
48
  [h, r, n]
49
- ), L = e.useCallback(
49
+ ), K = e.useCallback(
50
50
  (t) => {
51
51
  c && !n && d(
52
52
  c,
@@ -56,12 +56,12 @@ const Q = U(), x = e.forwardRef((E, F) => {
56
56
  );
57
57
  },
58
58
  [c, n]
59
- ), O = e.useCallback(
59
+ ), L = e.useCallback(
60
60
  (t) => {
61
61
  i && !n && d(i, t, s(), void 0);
62
62
  },
63
63
  [i, n]
64
- ), S = {
64
+ ), O = {
65
65
  type: "radio",
66
66
  id: g || v,
67
67
  name: T,
@@ -76,16 +76,16 @@ const Q = U(), x = e.forwardRef((E, F) => {
76
76
  ),
77
77
  ref: l,
78
78
  disabled: n,
79
- tabIndex: M(w, n),
79
+ tabIndex: J(w, n),
80
80
  checked: p,
81
81
  style: q,
82
82
  "aria-describedby": P,
83
83
  "aria-required": H,
84
84
  value: r,
85
- onChange: K,
86
- onFocus: L,
87
- onBlur: O,
88
- ...j
85
+ onChange: j,
86
+ onFocus: K,
87
+ onBlur: L,
88
+ ..._
89
89
  }, B = /* @__PURE__ */ e.createElement(e.Fragment, null, o !== void 0 ? /* @__PURE__ */ e.createElement(
90
90
  "label",
91
91
  {
@@ -95,7 +95,7 @@ const Q = U(), x = e.forwardRef((E, F) => {
95
95
  "aria-label": o
96
96
  },
97
97
  o
98
- ) : null), R = /* @__PURE__ */ e.createElement("span", { className: m(b.wrap({ c: u })) }, /* @__PURE__ */ e.createElement("input", { ...S }));
98
+ ) : null), R = /* @__PURE__ */ e.createElement("span", { className: m(b.wrap({ c: u })) }, /* @__PURE__ */ e.createElement("input", { ...O }));
99
99
  return z === "before" ? /* @__PURE__ */ e.createElement(e.Fragment, null, B, R, f) : /* @__PURE__ */ e.createElement(e.Fragment, null, R, B, f);
100
100
  });
101
101
  x.propTypes = {
@@ -116,11 +116,11 @@ x.propTypes = {
116
116
  onFocus: a.func,
117
117
  onBlur: a.func
118
118
  };
119
- const V = {
119
+ const Q = {
120
120
  size: void 0
121
121
  };
122
122
  x.displayName = "KendoRadioButton";
123
123
  export {
124
124
  x as RadioButton,
125
- Q as RadioButtonPropsContext
125
+ M as RadioButtonPropsContext
126
126
  };
@@ -7,10 +7,10 @@
7
7
  */
8
8
  import * as t from "react";
9
9
  import e from "prop-types";
10
- import { RadioButton as J } from "./RadioButton.mjs";
11
- import { createPropsContext as M, usePropsContext as Q, useUnstyled as W, focusFirstFocusableChild as X, dispatchEvent as k, useId as Y, classNames as P, uRadioGroup as E, useRtl as Z } from "@progress/kendo-react-common";
12
- const _ = M(), G = t.forwardRef((r, I) => {
13
- const m = Q(_, r), {
10
+ import { RadioButton as A } from "./RadioButton.mjs";
11
+ import { createPropsContext as J, usePropsContext as M, useUnstyled as Q, focusFirstFocusableChild as W, dispatchEvent as k, useId as X, classNames as P, uRadioGroup as E, useRtl as Y } from "@progress/kendo-react-common";
12
+ const Z = J(), G = t.forwardRef((r, I) => {
13
+ const m = M(Z, r), {
14
14
  id: N,
15
15
  ariaLabelledBy: B,
16
16
  ariaDescribedBy: F,
@@ -27,8 +27,8 @@ const _ = M(), G = t.forwardRef((r, I) => {
27
27
  item: D = $.item,
28
28
  onChange: c,
29
29
  onFocus: d
30
- } = m, f = W(), y = f && f.uRadioGroup, o = t.useRef(null), C = t.useCallback(() => {
31
- o.current && X(o.current);
30
+ } = m, f = Q(), y = f && f.uRadioGroup, o = t.useRef(null), C = t.useCallback(() => {
31
+ o.current && W(o.current);
32
32
  }, []), i = t.useCallback(
33
33
  () => ({
34
34
  element: o.current,
@@ -58,21 +58,21 @@ const _ = M(), G = t.forwardRef((r, I) => {
58
58
  );
59
59
  },
60
60
  [d, s]
61
- ), T = Y(), w = P(
61
+ ), T = X(), _ = P(
62
62
  E.ul({
63
63
  c: y,
64
64
  horizontal: n === "horizontal",
65
65
  vertical: n === "vertical" || n === void 0
66
66
  }),
67
67
  x
68
- ), K = Z(o, m.dir), U = b && b.map((a, l) => {
69
- const g = u === a.value, A = u == null, R = {
68
+ ), w = Y(o, m.dir), K = b && b.map((a, l) => {
69
+ const g = u === a.value, U = u == null, R = {
70
70
  ...a,
71
71
  valid: z,
72
72
  checked: g,
73
73
  disabled: !!(a.disabled || s),
74
74
  labelPlacement: a.labelPlacement ? a.labelPlacement : j,
75
- tabIndex: a.tabIndex ? a.tabIndex : A && l === 0 || g ? 0 : -1,
75
+ tabIndex: a.tabIndex ? a.tabIndex : U && l === 0 || g ? 0 : -1,
76
76
  index: l,
77
77
  name: O || T,
78
78
  required: a.required,
@@ -91,7 +91,7 @@ const _ = M(), G = t.forwardRef((r, I) => {
91
91
  key: l,
92
92
  role: "none"
93
93
  },
94
- /* @__PURE__ */ t.createElement(J, { ...R })
94
+ /* @__PURE__ */ t.createElement(A, { ...R })
95
95
  );
96
96
  });
97
97
  return /* @__PURE__ */ t.createElement(
@@ -99,14 +99,14 @@ const _ = M(), G = t.forwardRef((r, I) => {
99
99
  {
100
100
  id: N,
101
101
  role: "radiogroup",
102
- className: w,
102
+ className: _,
103
103
  ref: o,
104
- dir: K,
104
+ dir: w,
105
105
  style: q,
106
106
  "aria-labelledby": B,
107
107
  "aria-describedby": F
108
108
  },
109
- U
109
+ K
110
110
  );
111
111
  }), $ = {
112
112
  item: (r) => /* @__PURE__ */ t.createElement("li", { ...r })
@@ -130,5 +130,5 @@ G.propTypes = {
130
130
  G.displayName = "KendoRadioGroup";
131
131
  export {
132
132
  G as RadioGroup,
133
- _ as RadioGroupPropsContext
133
+ Z as RadioGroupPropsContext
134
134
  };
@@ -59,18 +59,18 @@ const se = (n, s, p) => {
59
59
  state: e.value
60
60
  },
61
61
  W
62
- ), d = a.useMemo(() => e.value || x, [e.value, x]), q = a.useRef(null), R = a.useRef(null), h = a.useMemo(() => (d.start - g) / (k - g) * 100, [d.start, g, k]), D = a.useMemo(() => (d.end - g) / (k - g) * 100, [d.end, g, k]), B = a.useMemo(
62
+ ), d = a.useMemo(() => e.value || x, [e.value, x]), _ = a.useRef(null), R = a.useRef(null), h = a.useMemo(() => (d.start - g) / (k - g) * 100, [d.start, g, k]), D = a.useMemo(() => (d.end - g) / (k - g) * 100, [d.end, g, k]), q = a.useMemo(
63
63
  () => e.vertical ? { paddingTop: 0, height: "100%" } : {},
64
64
  [e.vertical]
65
- ), G = a.useMemo(
65
+ ), B = a.useMemo(
66
66
  () => e.vertical ? { marginTop: "0.5rem", marginBottom: "0.5rem" } : { marginLeft: "0.5rem", marginRight: "0.5rem" },
67
67
  [e.vertical]
68
68
  ), M = ne(), C = a.useCallback(
69
69
  (t) => {
70
70
  if (!R.current)
71
71
  return;
72
- const u = R.current.getBoundingClientRect(), v = e.vertical ? u.bottom - t.clientY : o === "rtl" ? u.right - t.clientX : t.clientX - u.left, I = e.vertical ? u.height : u.width, _ = v / I;
73
- return g + _ * (k - g);
72
+ const u = R.current.getBoundingClientRect(), v = e.vertical ? u.bottom - t.clientY : o === "rtl" ? u.right - t.clientX : t.clientX - u.left, I = e.vertical ? u.height : u.width, Y = v / I;
73
+ return g + Y * (k - g);
74
74
  },
75
75
  [
76
76
  R,
@@ -83,10 +83,10 @@ const se = (n, s, p) => {
83
83
  e.value && e.value.start,
84
84
  e.value && e.value.end
85
85
  ]
86
- ), U = a.useCallback(
86
+ ), G = a.useCallback(
87
87
  (t) => t <= d.start ? "start" : t >= d.end ? "end" : 2 * t < d.end + d.start ? "start" : "end",
88
88
  [x.start, x.end, e.value && e.value.start, e.value && e.value.end]
89
- ), X = a.useCallback(
89
+ ), U = a.useCallback(
90
90
  (t) => {
91
91
  switch (t.keyCode) {
92
92
  case m.right:
@@ -132,7 +132,7 @@ const se = (n, s, p) => {
132
132
  }
133
133
  },
134
134
  [l]
135
- ), F = a.useCallback(
135
+ ), X = a.useCallback(
136
136
  (t) => {
137
137
  switch (t.keyCode) {
138
138
  case m.right:
@@ -178,9 +178,9 @@ const se = (n, s, p) => {
178
178
  }
179
179
  },
180
180
  [l, o]
181
- ), Y = a.useCallback(
181
+ ), F = a.useCallback(
182
182
  (t) => {
183
- const u = C(t), v = U(u);
183
+ const u = C(t), v = G(u);
184
184
  L(v), v === "end" ? T.current.focus() : w.current.focus();
185
185
  const I = v === "end" ? r.end : r.start;
186
186
  l({ type: I, payload: u, event: t });
@@ -190,7 +190,7 @@ const se = (n, s, p) => {
190
190
  return te(
191
191
  R,
192
192
  {
193
- onPress: Y,
193
+ onPress: F,
194
194
  onDrag: (t) => {
195
195
  const u = C(t), v = E === "end" ? r.end : r.start;
196
196
  l({ type: v, payload: u, event: t });
@@ -228,10 +228,10 @@ const se = (n, s, p) => {
228
228
  flexGrow: 1,
229
229
  position: "relative",
230
230
  touchAction: "none",
231
- ...G
231
+ ...B
232
232
  }
233
233
  },
234
- e.children && /* @__PURE__ */ a.createElement("ul", { className: "k-reset k-slider-items", style: { ...B } }, a.Children.map(e.children, (t, u) => t && a.cloneElement(
234
+ e.children && /* @__PURE__ */ a.createElement("ul", { className: "k-reset k-slider-items", style: { ...q } }, a.Children.map(e.children, (t, u) => t && a.cloneElement(
235
235
  t,
236
236
  {
237
237
  position: 100 * (t.props.position - e.min) / (e.max - e.min),
@@ -244,7 +244,7 @@ const se = (n, s, p) => {
244
244
  /* @__PURE__ */ a.createElement(
245
245
  "div",
246
246
  {
247
- ref: q,
247
+ ref: _,
248
248
  className: "k-slider-track",
249
249
  style: e.vertical ? { bottom: 0, height: "100%" } : { [o === "rtl" ? "right" : "left"]: 0, width: "100%" }
250
250
  },
@@ -275,7 +275,7 @@ const se = (n, s, p) => {
275
275
  className: "k-draghandle k-draghandle-start",
276
276
  title: M.toLanguageString($, z[$]),
277
277
  style: e.vertical ? { bottom: "calc(" + h + "%)", zIndex: 1 } : o === "rtl" ? { right: "calc(" + h + "% - 13px)", zIndex: 1 } : { left: "calc(" + h + "%)", zIndex: 1 },
278
- onKeyDown: X
278
+ onKeyDown: U
279
279
  }
280
280
  ),
281
281
  /* @__PURE__ */ a.createElement(
@@ -292,7 +292,7 @@ const se = (n, s, p) => {
292
292
  className: "k-draghandle k-draghandle-end",
293
293
  title: M.toLanguageString($, z[$]),
294
294
  style: e.vertical ? { bottom: "calc(" + D + "%)", zIndex: 1 } : o === "rtl" ? { right: "calc(" + D + "% - 13px)", zIndex: 1 } : { left: "calc(" + D + "%)", zIndex: 1 },
295
- onKeyDown: F
295
+ onKeyDown: X
296
296
  }
297
297
  )
298
298
  )