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

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
@@ -12,13 +12,14 @@ export { ColorInput };
12
12
  export { type InputChangeEvent } from './input/interfaces/InputChangeEvent.js';
13
13
  export { messages as inputsMessages, numericDecreaseValue, numericIncreaseValue } from './messages/index.js';
14
14
  export { ColorGradient, ColorGradientWithoutContext, type ColorGradientHandle, ColorGradientPropsContext, type ColorGradientState } from './colors/ColorGradient.js';
15
- export { ColorPalette, ColorPaletteWithoutContext, type ColorPaletteHandle, ColorPalettePropsContext, type ColorPaletteState } from './colors/ColorPalette.js';
15
+ export { ColorPalette, ColorPaletteWithoutContext, ColorPalettePropsContext, type ColorPaletteState } from './colors/ColorPalette.js';
16
16
  export { PALETTEPRESETS } from './colors/models/palette-presets.js';
17
17
  export * from './colors/ColorPicker.js';
18
18
  export * from './colors/interfaces/ColorGradientChangeEvent.js';
19
19
  export * from './colors/interfaces/ColorGradientProps.js';
20
20
  export * from './colors/interfaces/ColorPaletteChangeEvent.js';
21
21
  export * from './colors/interfaces/ColorPaletteProps.js';
22
+ export * from './colors/interfaces/ColorPaletteHandle.js';
22
23
  export * from './colors/interfaces/ColorPickerBlurEvent.js';
23
24
  export * from './colors/interfaces/ColorPickerChangeEvent.js';
24
25
  export * from './colors/interfaces/ColorPickerFocusEvent.js';
package/index.d.ts CHANGED
@@ -12,13 +12,14 @@ export { ColorInput };
12
12
  export { type InputChangeEvent } from './input/interfaces/InputChangeEvent.js';
13
13
  export { messages as inputsMessages, numericDecreaseValue, numericIncreaseValue } from './messages/index.js';
14
14
  export { ColorGradient, ColorGradientWithoutContext, type ColorGradientHandle, ColorGradientPropsContext, type ColorGradientState } from './colors/ColorGradient.js';
15
- export { ColorPalette, ColorPaletteWithoutContext, type ColorPaletteHandle, ColorPalettePropsContext, type ColorPaletteState } from './colors/ColorPalette.js';
15
+ export { ColorPalette, ColorPaletteWithoutContext, ColorPalettePropsContext, type ColorPaletteState } from './colors/ColorPalette.js';
16
16
  export { PALETTEPRESETS } from './colors/models/palette-presets.js';
17
17
  export * from './colors/ColorPicker.js';
18
18
  export * from './colors/interfaces/ColorGradientChangeEvent.js';
19
19
  export * from './colors/interfaces/ColorGradientProps.js';
20
20
  export * from './colors/interfaces/ColorPaletteChangeEvent.js';
21
21
  export * from './colors/interfaces/ColorPaletteProps.js';
22
+ export * from './colors/interfaces/ColorPaletteHandle.js';
22
23
  export * from './colors/interfaces/ColorPickerBlurEvent.js';
23
24
  export * from './colors/interfaces/ColorPickerChangeEvent.js';
24
25
  export * from './colors/interfaces/ColorPickerFocusEvent.js';
package/input/Input.js CHANGED
@@ -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 Y=require("react"),r=require("prop-types"),i=require("@progress/kendo-react-common"),Z=require("@progress/kendo-react-labels");function $(l){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(l){for(const u in l)if(u!=="default"){const c=Object.getOwnPropertyDescriptor(l,u);Object.defineProperty(o,u,c.get?c:{enumerable:!0,get:()=>l[u]})}}return o.default=l,Object.freeze(o)}const a=$(Y),P=a.forwardRef((l,o)=>{const c=a.useContext(R).call(void 0,l),[,S]=a.useReducer(t=>t,!0),n=i.applyDefaultProps(c,ee),{className:V,label:f,labelClassName:x,id:w,validationMessage:I,defaultValue:D,valid:k,unstyled:F,visited:te,touched:ae,modified:re,autoFocus:q,ariaLabelledBy:B,ariaDescribedBy:T,validityStyles:E,style:L,ariaLabel:U,...j}=n,K=i.useUnstyled(),y=F||K;y&&y.uInput;const _=i.useId(),[A,G]=a.useState({value:D}),M=w||_,e=a.useRef(null),d=a.useRef(void 0),g=a.useRef(null),N=n.name||n.id,H=()=>{e.current&&e.current.focus()},m=()=>d.current!==void 0?d.current:n.value!==void 0?n.value:A.value,v=()=>{const t={badInput:e.current?e.current.validity.badInput:!1,patternMismatch:e.current?e.current.validity.patternMismatch:!1,rangeOverflow:e.current?e.current.validity.rangeOverflow:!1,rangeUnderflow:e.current?e.current.validity.rangeUnderflow:!1,stepMismatch:e.current?e.current.validity.stepMismatch:!1,tooLong:e.current?e.current.validity.tooLong:!1,typeMismatch:e.current?e.current.validity.typeMismatch:!1,valueMissing:e.current?e.current.validity.valueMissing:!1};return{...t,customError:I!==void 0,valid:k!==void 0?k:e.current?!z(t):!0}};a.useImperativeHandle(g,()=>({element:e.current,props:n,get value(){return m()},name:n.name,get validity(){return v()},focus:H})),a.useImperativeHandle(o,()=>g.current);const z=t=>{let s=!1;for(const p in t)t.hasOwnProperty(p)&&(s=s||!!t[p]);return s},b=!E||v().valid,J=i.classNames("k-input",{"k-invalid":!b,"k-disabled":n.disabled},V),Q=()=>{e.current&&e.current.setCustomValidity&&(v().valid||!E?e.current.classList.remove("k-invalid"):e.current.classList.add("k-invalid"),e.current.setCustomValidity(v().valid?"":I||""))},{onChange:h}=n,C=a.useCallback(t=>{G({value:t.target.value}),d.current=t.target.value,h&&h({syntheticEvent:t,nativeEvent:t.nativeEvent,value:t.target.value,target:g.current}),d.current=void 0},[h]),W=a.useCallback(t=>{const s=t!=null?String(t):"",p={target:e.current,currentTarget:e.current,nativeEvent:new Event("change")};e.current&&(e.current.value=s),C(p)},[C]);i.useKendoPaste(e,{fieldName:N||"",onValueChange:W,enabled:!!N});const X=t=>{if(t.animationName==="autoFillStart"){const s=t.target.parentNode;s&&s.classList.contains("k-empty")&&s.classList.remove("k-empty")}};a.useEffect(()=>{S()},[]),a.useEffect(()=>{Q()});const O=a.createElement("input",{"aria-labelledby":B,"aria-describedby":T,"aria-disabled":n.disabled||void 0,"aria-invalid":!b||void 0,"aria-label":U||void 0,...j,style:f?void 0:L,value:m(),id:M,autoFocus:q,className:J,onChange:C,onAnimationStart:X,ref:e});return f?a.createElement(Z.FloatingLabel,{label:f,labelClassName:x,editorId:M,editorValue:String(m()),editorValid:b,editorDisabled:n.disabled,editorPlaceholder:n.placeholder,children:O,style:L,dir:n.dir,unstyled:y}):O}),R=i.createPropsContext(),ee={defaultValue:"",required:!1,validityStyles:!0,autoFocus:!1};P.displayName="KendoReactInput";P.propTypes={label:r.node,labelClassName:r.string,validationMessage:r.string,required:r.bool,validate:r.bool,id:r.string,ariaLabelledBy:r.string,ariaDescribedBy:r.string,ariaLabel:r.string,autoFocus:r.bool,value:r.oneOfType([r.string,r.number,r.array])};exports.Input=P;exports.InputPropsContext=R;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Y=require("react"),r=require("prop-types"),i=require("@progress/kendo-react-common"),Z=require("@progress/kendo-react-labels");function $(l){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(l){for(const u in l)if(u!=="default"){const c=Object.getOwnPropertyDescriptor(l,u);Object.defineProperty(o,u,c.get?c:{enumerable:!0,get:()=>l[u]})}}return o.default=l,Object.freeze(o)}const a=$(Y),C=a.forwardRef((l,o)=>{const c=a.useContext(O).call(void 0,l),[,R]=a.useReducer(t=>t,!0),n=i.applyDefaultProps(c,ee),{className:S,label:f,labelClassName:V,id:x,validationMessage:P,defaultValue:w,valid:k,unstyled:D,visited:te,touched:ae,modified:re,autoFocus:F,ariaLabelledBy:q,ariaDescribedBy:B,validityStyles:I,style:E,ariaLabel:T,...U}=n,j=i.useUnstyled(),K=D||j,_=i.useId(),[A,G]=a.useState({value:w}),L=x||_,e=a.useRef(null),d=a.useRef(void 0),y=a.useRef(null),M=n.name||n.id,H=()=>{e.current&&e.current.focus()},g=()=>d.current!==void 0?d.current:n.value!==void 0?n.value:A.value,v=()=>{const t={badInput:e.current?e.current.validity.badInput:!1,patternMismatch:e.current?e.current.validity.patternMismatch:!1,rangeOverflow:e.current?e.current.validity.rangeOverflow:!1,rangeUnderflow:e.current?e.current.validity.rangeUnderflow:!1,stepMismatch:e.current?e.current.validity.stepMismatch:!1,tooLong:e.current?e.current.validity.tooLong:!1,typeMismatch:e.current?e.current.validity.typeMismatch:!1,valueMissing:e.current?e.current.validity.valueMissing:!1};return{...t,customError:P!==void 0,valid:k!==void 0?k:e.current?!z(t):!0}};a.useImperativeHandle(y,()=>({element:e.current,props:n,get value(){return g()},name:n.name,get validity(){return v()},focus:H})),a.useImperativeHandle(o,()=>y.current);const z=t=>{let s=!1;for(const p in t)t.hasOwnProperty(p)&&(s=s||!!t[p]);return s},m=!I||v().valid,J=i.classNames("k-input",{"k-invalid":!m,"k-disabled":n.disabled},S),Q=()=>{e.current&&e.current.setCustomValidity&&(v().valid||!I?e.current.classList.remove("k-invalid"):e.current.classList.add("k-invalid"),e.current.setCustomValidity(v().valid?"":P||""))},{onChange:b}=n,h=a.useCallback(t=>{G({value:t.target.value}),d.current=t.target.value,b&&b({syntheticEvent:t,nativeEvent:t.nativeEvent,value:t.target.value,target:y.current}),d.current=void 0},[b]),W=a.useCallback(t=>{const s=t!=null?String(t):"",p={target:e.current,currentTarget:e.current,nativeEvent:new Event("change")};e.current&&(e.current.value=s),h(p)},[h]);i.useKendoPaste(e,{fieldName:M||"",onValueChange:W,enabled:!!M});const X=t=>{if(t.animationName==="autoFillStart"){const s=t.target.parentNode;s&&s.classList.contains("k-empty")&&s.classList.remove("k-empty")}};a.useEffect(()=>{R()},[]),a.useEffect(()=>{Q()});const N=a.createElement("input",{"aria-labelledby":q,"aria-describedby":B,"aria-disabled":n.disabled||void 0,"aria-invalid":!m||void 0,"aria-label":T||void 0,...U,style:f?void 0:E,value:g(),id:L,autoFocus:F,className:J,onChange:h,onAnimationStart:X,ref:e});return f?a.createElement(Z.FloatingLabel,{label:f,labelClassName:V,editorId:L,editorValue:String(g()),editorValid:m,editorDisabled:n.disabled,editorPlaceholder:n.placeholder,children:N,style:E,dir:n.dir,unstyled:K}):N}),O=i.createPropsContext(),ee={defaultValue:"",required:!1,validityStyles:!0,autoFocus:!1};C.displayName="KendoReactInput";C.propTypes={label:r.node,labelClassName:r.string,validationMessage:r.string,required:r.bool,validate:r.bool,id:r.string,ariaLabelledBy:r.string,ariaDescribedBy:r.string,ariaLabel:r.string,autoFocus:r.bool,value:r.oneOfType([r.string,r.number,r.array])};exports.Input=C;exports.InputPropsContext=O;
package/input/Input.mjs CHANGED
@@ -7,36 +7,34 @@
7
7
  */
8
8
  import * as a from "react";
9
9
  import r from "prop-types";
10
- import { createPropsContext as Q, applyDefaultProps as W, useUnstyled as X, useId as Y, classNames as Z, useKendoPaste as $ } from "@progress/kendo-react-common";
10
+ import { applyDefaultProps as Q, useUnstyled as W, useId as X, classNames as Y, useKendoPaste as Z, createPropsContext as $ } from "@progress/kendo-react-common";
11
11
  import { FloatingLabel as ee } from "@progress/kendo-react-labels";
12
- const E = a.forwardRef((k, L) => {
13
- const N = a.useContext(te).call(void 0, k), [, M] = a.useReducer((t) => t, !0), n = W(N, ae), {
14
- className: V,
12
+ const E = a.forwardRef((I, k) => {
13
+ const L = a.useContext(te).call(void 0, I), [, N] = a.useReducer((t) => t, !0), n = Q(L, ae), {
14
+ className: M,
15
15
  label: u,
16
- labelClassName: x,
17
- id: R,
18
- validationMessage: y,
19
- defaultValue: F,
20
- valid: g,
21
- unstyled: w,
16
+ labelClassName: V,
17
+ id: x,
18
+ validationMessage: m,
19
+ defaultValue: R,
20
+ valid: y,
21
+ unstyled: F,
22
22
  // Removed to support direct use in Form Field component
23
23
  visited: ne,
24
24
  touched: le,
25
25
  modified: se,
26
- autoFocus: B,
27
- ariaLabelledBy: S,
28
- ariaDescribedBy: U,
29
- validityStyles: b,
30
- style: h,
31
- ariaLabel: D,
32
- ...O
33
- } = n, T = X(), c = w || T;
34
- c && c.uInput;
35
- const K = Y(), [q, A] = a.useState({
36
- value: F
37
- }), C = R || K, e = a.useRef(null), s = a.useRef(void 0), d = a.useRef(null), I = n.name || n.id, G = () => {
26
+ autoFocus: w,
27
+ ariaLabelledBy: B,
28
+ ariaDescribedBy: S,
29
+ validityStyles: g,
30
+ style: b,
31
+ ariaLabel: U,
32
+ ...D
33
+ } = n, O = W(), T = F || O, K = X(), [q, A] = a.useState({
34
+ value: R
35
+ }), h = x || K, e = a.useRef(null), s = a.useRef(void 0), c = a.useRef(null), C = n.name || n.id, G = () => {
38
36
  e.current && e.current.focus();
39
- }, v = () => s.current !== void 0 ? s.current : n.value !== void 0 ? n.value : q.value, i = () => {
37
+ }, d = () => s.current !== void 0 ? s.current : n.value !== void 0 ? n.value : q.value, i = () => {
40
38
  const t = {
41
39
  badInput: e.current ? e.current.validity.badInput : !1,
42
40
  patternMismatch: e.current ? e.current.validity.patternMismatch : !1,
@@ -49,48 +47,48 @@ const E = a.forwardRef((k, L) => {
49
47
  };
50
48
  return {
51
49
  ...t,
52
- customError: y !== void 0,
53
- valid: g !== void 0 ? g : e.current ? !H(t) : !0
50
+ customError: m !== void 0,
51
+ valid: y !== void 0 ? y : e.current ? !H(t) : !0
54
52
  };
55
53
  };
56
- a.useImperativeHandle(d, () => ({
54
+ a.useImperativeHandle(c, () => ({
57
55
  element: e.current,
58
56
  props: n,
59
57
  get value() {
60
- return v();
58
+ return d();
61
59
  },
62
60
  name: n.name,
63
61
  get validity() {
64
62
  return i();
65
63
  },
66
64
  focus: G
67
- })), a.useImperativeHandle(L, () => d.current);
65
+ })), a.useImperativeHandle(k, () => c.current);
68
66
  const H = (t) => {
69
67
  let l = !1;
70
68
  for (const o in t)
71
69
  t.hasOwnProperty(o) && (l = l || !!t[o]);
72
70
  return l;
73
- }, p = !b || i().valid, _ = Z(
71
+ }, v = !g || i().valid, _ = Y(
74
72
  "k-input",
75
73
  {
76
- "k-invalid": !p,
74
+ "k-invalid": !v,
77
75
  "k-disabled": n.disabled
78
76
  },
79
- V
77
+ M
80
78
  ), j = () => {
81
- e.current && e.current.setCustomValidity && (i().valid || !b ? e.current.classList.remove("k-invalid") : e.current.classList.add("k-invalid"), e.current.setCustomValidity(i().valid ? "" : y || ""));
82
- }, { onChange: f } = n, m = a.useCallback(
79
+ e.current && e.current.setCustomValidity && (i().valid || !g ? e.current.classList.remove("k-invalid") : e.current.classList.add("k-invalid"), e.current.setCustomValidity(i().valid ? "" : m || ""));
80
+ }, { onChange: p } = n, f = a.useCallback(
83
81
  (t) => {
84
82
  A({
85
83
  value: t.target.value
86
- }), s.current = t.target.value, f && f({
84
+ }), s.current = t.target.value, p && p({
87
85
  syntheticEvent: t,
88
86
  nativeEvent: t.nativeEvent,
89
87
  value: t.target.value,
90
- target: d.current
88
+ target: c.current
91
89
  }), s.current = void 0;
92
90
  },
93
- [f]
91
+ [p]
94
92
  ), z = a.useCallback(
95
93
  (t) => {
96
94
  const l = t != null ? String(t) : "", o = {
@@ -98,14 +96,14 @@ const E = a.forwardRef((k, L) => {
98
96
  currentTarget: e.current,
99
97
  nativeEvent: new Event("change")
100
98
  };
101
- e.current && (e.current.value = l), m(o);
99
+ e.current && (e.current.value = l), f(o);
102
100
  },
103
- [m]
101
+ [f]
104
102
  );
105
- $(e, {
106
- fieldName: I || "",
103
+ Z(e, {
104
+ fieldName: C || "",
107
105
  onValueChange: z,
108
- enabled: !!I
106
+ enabled: !!C
109
107
  });
110
108
  const J = (t) => {
111
109
  if (t.animationName === "autoFillStart") {
@@ -114,25 +112,25 @@ const E = a.forwardRef((k, L) => {
114
112
  }
115
113
  };
116
114
  a.useEffect(() => {
117
- M();
115
+ N();
118
116
  }, []), a.useEffect(() => {
119
117
  j();
120
118
  });
121
119
  const P = /* @__PURE__ */ a.createElement(
122
120
  "input",
123
121
  {
124
- "aria-labelledby": S,
125
- "aria-describedby": U,
122
+ "aria-labelledby": B,
123
+ "aria-describedby": S,
126
124
  "aria-disabled": n.disabled || void 0,
127
- "aria-invalid": !p || void 0,
128
- "aria-label": D || void 0,
129
- ...O,
130
- style: u ? void 0 : h,
131
- value: v(),
132
- id: C,
133
- autoFocus: B,
125
+ "aria-invalid": !v || void 0,
126
+ "aria-label": U || void 0,
127
+ ...D,
128
+ style: u ? void 0 : b,
129
+ value: d(),
130
+ id: h,
131
+ autoFocus: w,
134
132
  className: _,
135
- onChange: m,
133
+ onChange: f,
136
134
  onAnimationStart: J,
137
135
  ref: e
138
136
  }
@@ -141,19 +139,19 @@ const E = a.forwardRef((k, L) => {
141
139
  ee,
142
140
  {
143
141
  label: u,
144
- labelClassName: x,
145
- editorId: C,
146
- editorValue: String(v()),
147
- editorValid: p,
142
+ labelClassName: V,
143
+ editorId: h,
144
+ editorValue: String(d()),
145
+ editorValid: v,
148
146
  editorDisabled: n.disabled,
149
147
  editorPlaceholder: n.placeholder,
150
148
  children: P,
151
- style: h,
149
+ style: b,
152
150
  dir: n.dir,
153
- unstyled: c
151
+ unstyled: T
154
152
  }
155
153
  ) : P;
156
- }), te = Q(), ae = {
154
+ }), te = $(), ae = {
157
155
  defaultValue: "",
158
156
  required: !1,
159
157
  validityStyles: !0,
@@ -9,7 +9,7 @@ import * as p from "react";
9
9
  import e from "prop-types";
10
10
  import { MaskingService as E } from "./masking.service.mjs";
11
11
  import { defaultRules as m, maskingChanged as V, returnFalse as b } from "./utils.mjs";
12
- import { withIdHOC as O, withPropsContext as M, createPropsContext as I, withUnstyledHOC as w, subscribeToKendoPaste as D, useCustomComponent as y, classNames as _, kendoThemeMaps as P, getTabIndex as H, uMaskedTextBox as T } from "@progress/kendo-react-common";
12
+ import { withIdHOC as O, withPropsContext as M, withUnstyledHOC as I, subscribeToKendoPaste as w, useCustomComponent as y, classNames as _, kendoThemeMaps as P, getTabIndex as D, uMaskedTextBox as H, createPropsContext as T } from "@progress/kendo-react-common";
13
13
  import { FloatingLabel as q } from "@progress/kendo-react-labels";
14
14
  const n = class n extends p.Component {
15
15
  constructor() {
@@ -139,7 +139,7 @@ const n = class n extends p.Component {
139
139
  componentDidMount() {
140
140
  this.updateService(), this.setValidity();
141
141
  const t = this.props.name || this.props.id;
142
- this.KendoPasteSubscription = D(this._input, {
142
+ this.KendoPasteSubscription = w(this._input, {
143
143
  fieldName: t,
144
144
  onValueChange: (s) => {
145
145
  this.handleKendoPasteValue(s);
@@ -195,7 +195,7 @@ const n = class n extends p.Component {
195
195
  autoCapitalize: "off",
196
196
  autoFocus: a,
197
197
  spellCheck: !1,
198
- className: _(T.inputInner({ c: k })),
198
+ className: _(H.inputInner({ c: k })),
199
199
  value: this.value,
200
200
  id: c,
201
201
  "aria-labelledby": this.props.ariaLabelledBy,
@@ -203,7 +203,7 @@ const n = class n extends p.Component {
203
203
  "aria-placeholder": this.props.mask,
204
204
  "aria-required": this.props.required,
205
205
  name: this.props.name,
206
- tabIndex: H(this.props.tabIndex, this.props.disabled, !0),
206
+ tabIndex: D(this.props.tabIndex, this.props.disabled, !0),
207
207
  accessKey: this.props.accessKey,
208
208
  title: this.props.title,
209
209
  disabled: this.props.disabled || void 0,
@@ -331,10 +331,10 @@ n.displayName = "MaskedTextBox", n.propTypes = {
331
331
  autoFocus: !1
332
332
  };
333
333
  let h = n;
334
- const B = I(), F = O(
334
+ const B = T(), F = O(
335
335
  M(
336
336
  B,
337
- w(h)
337
+ I(h)
338
338
  )
339
339
  );
340
340
  F.displayName = "KendoReactMaskedTextBox";
@@ -8,15 +8,15 @@
8
8
  import * as n from "react";
9
9
  import t from "prop-types";
10
10
  import { useInternationalization as et, useLocalization as tt } from "@progress/kendo-react-intl";
11
- import { createPropsContext as nt, usePropsContext as rt, useId as at, useCustomComponent as ge, dispatchEvent as Q, useKendoPaste as st, getActiveElement as ve, useIsomorphicLayoutEffect as ot, classNames as lt, kendoThemeMaps as ye, getTabIndex as ut } from "@progress/kendo-react-common";
11
+ import { usePropsContext as nt, useId as rt, useCustomComponent as ge, dispatchEvent as Q, useKendoPaste as at, getActiveElement as ve, useIsomorphicLayoutEffect as st, classNames as ot, kendoThemeMaps as ye, getTabIndex as lt, createPropsContext as ut } from "@progress/kendo-react-common";
12
12
  import { caretAltUpIcon as it, caretAltDownIcon as ct } from "@progress/kendo-svg-icons";
13
13
  import { FloatingLabel as dt } from "@progress/kendo-react-labels";
14
14
  import { numericIncreaseValue as G, messages as _, numericDecreaseValue as j } from "../messages/index.mjs";
15
15
  import { getInitialState as Ve, formatValue as O, getStateOrPropsValue as X, rangeValue as N, sanitizeNumber as Ce, decreaseValue as ke, increaseValue as Ee } from "./utils/index.mjs";
16
16
  import { Button as Se } from "@progress/kendo-react-buttons";
17
- const mt = "Please enter a valid value!", ft = nt(), he = n.forwardRef(
17
+ const mt = "Please enter a valid value!", ft = ut(), he = n.forwardRef(
18
18
  (k, xe) => {
19
- const K = rt(
19
+ const K = nt(
20
20
  ft,
21
21
  k
22
22
  ), {
@@ -66,7 +66,7 @@ const mt = "Please enter a valid value!", ft = nt(), he = n.forwardRef(
66
66
  autoFocus: Ge = c.autoFocus,
67
67
  inputAttributes: _e,
68
68
  ...ue
69
- } = K, je = at(), ie = ne || je, o = et(), B = tt(), a = n.useRef(null), M = n.useRef(void 0), [Ke, S] = n.useState(!1), i = n.useRef(Ve()), T = n.useRef(!1), $ = n.useRef(void 0), x = n.useRef(Le), ce = P || ne, I = O(
69
+ } = K, je = rt(), ie = ne || je, o = et(), B = tt(), a = n.useRef(null), M = n.useRef(void 0), [Ke, S] = n.useState(!1), i = n.useRef(Ve()), T = n.useRef(!1), $ = n.useRef(void 0), x = n.useRef(Le), ce = P || ne, I = O(
70
70
  i.current.focused && !l ? i.current.currentLooseValue : X(y, x.current),
71
71
  s,
72
72
  o
@@ -136,7 +136,7 @@ const mt = "Please enter a valid value!", ft = nt(), he = n.forwardRef(
136
136
  },
137
137
  [d, m, s, o, f]
138
138
  );
139
- st(a, {
139
+ at(a, {
140
140
  fieldName: ce,
141
141
  onValueChange: Ue,
142
142
  enabled: !!ce
@@ -239,7 +239,7 @@ const mt = "Please enter a valid value!", ft = nt(), he = n.forwardRef(
239
239
  r.preventDefault(), e !== a.current && a.current.focus();
240
240
  }
241
241
  }, []);
242
- ot(() => {
242
+ st(() => {
243
243
  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);
244
244
  }, [Ke]);
245
245
  const be = !W() || A().valid, pe = /* @__PURE__ */ n.createElement(
@@ -247,7 +247,7 @@ const mt = "Please enter a valid value!", ft = nt(), he = n.forwardRef(
247
247
  {
248
248
  dir: te,
249
249
  style: D ? re : { width: Z, ...re },
250
- className: lt(
250
+ className: ot(
251
251
  "k-input",
252
252
  "k-numerictextbox",
253
253
  {
@@ -269,7 +269,7 @@ const mt = "Please enter a valid value!", ft = nt(), he = n.forwardRef(
269
269
  {
270
270
  role: "spinbutton",
271
271
  value: I === null ? "" : I,
272
- tabIndex: ut(Oe, l),
272
+ tabIndex: lt(Oe, l),
273
273
  accessKey: Ne,
274
274
  disabled: l,
275
275
  title: Pe,
@@ -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: 1770377871,version:"13.4.0-develop.5",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: 1770669973,version:"14.0.0-develop.2",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.5',
11
+ version: '14.0.0-develop.2',
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.5",
3
+ "version": "14.0.0-develop.2",
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,17 +28,17 @@
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.5",
32
- "@progress/kendo-react-buttons": "13.4.0-develop.5",
33
- "@progress/kendo-react-common": "13.4.0-develop.5",
34
- "@progress/kendo-react-dialogs": "13.4.0-develop.5",
35
- "@progress/kendo-react-layout": "13.4.0-develop.5",
36
- "@progress/kendo-react-intl": "13.4.0-develop.5",
37
- "@progress/kendo-react-labels": "13.4.0-develop.5",
38
- "@progress/kendo-react-popup": "13.4.0-develop.5",
31
+ "@progress/kendo-react-animation": "14.0.0-develop.2",
32
+ "@progress/kendo-react-buttons": "14.0.0-develop.2",
33
+ "@progress/kendo-react-common": "14.0.0-develop.2",
34
+ "@progress/kendo-react-dialogs": "14.0.0-develop.2",
35
+ "@progress/kendo-react-layout": "14.0.0-develop.2",
36
+ "@progress/kendo-react-intl": "14.0.0-develop.2",
37
+ "@progress/kendo-react-labels": "14.0.0-develop.2",
38
+ "@progress/kendo-react-popup": "14.0.0-develop.2",
39
39
  "@progress/kendo-svg-icons": "^4.0.0",
40
- "react": "^16.8.2 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc",
41
- "react-dom": "^16.8.2 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"
40
+ "react": "^18.0.0 || ^19.0.0",
41
+ "react-dom": "^18.0.0 || ^19.0.0"
42
42
  },
43
43
  "dependencies": {
44
44
  "prop-types": "^15.6.0"
@@ -82,7 +82,7 @@
82
82
  "package": {
83
83
  "productName": "KendoReact",
84
84
  "productCode": "KENDOUIREACT",
85
- "publishDate": 1770377871,
85
+ "publishDate": 1770669973,
86
86
  "licensingDocsUrl": "https://www.telerik.com/kendo-react-ui/components/my-license/"
87
87
  }
88
88
  },
@@ -7,9 +7,9 @@
7
7
  */
8
8
  import * as e from "react";
9
9
  import a from "prop-types";
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), {
10
+ import { usePropsContext as S, useUnstyled as U, useId as A, dispatchEvent as d, getTabIndex as G, classNames as m, uRadioButton as b, createPropsContext as J } from "@progress/kendo-react-common";
11
+ const M = J(), x = e.forwardRef((E, F) => {
12
+ const I = S(M, E), {
13
13
  ariaDescribedBy: P,
14
14
  checked: p,
15
15
  children: f,
@@ -29,7 +29,7 @@ const M = S(), x = e.forwardRef((E, F) => {
29
29
  onBlur: i,
30
30
  required: H,
31
31
  ..._
32
- } = I, y = A(), u = y && y.uRadioButton, l = e.useRef(null), C = e.useCallback(() => {
32
+ } = I, y = U(), 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,7 +39,7 @@ const M = S(), x = e.forwardRef((E, F) => {
39
39
  [C]
40
40
  );
41
41
  e.useImperativeHandle(F, s);
42
- const v = G(), j = e.useCallback(
42
+ const v = A(), j = e.useCallback(
43
43
  (t) => {
44
44
  d(h, t, s(), {
45
45
  value: r
@@ -76,7 +76,7 @@ const M = S(), x = e.forwardRef((E, F) => {
76
76
  ),
77
77
  ref: l,
78
78
  disabled: n,
79
- tabIndex: J(w, n),
79
+ tabIndex: G(w, n),
80
80
  checked: p,
81
81
  style: q,
82
82
  "aria-describedby": P,
@@ -8,9 +8,9 @@
8
8
  import * as t from "react";
9
9
  import e from "prop-types";
10
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), {
11
+ import { usePropsContext as J, useUnstyled as M, focusFirstFocusableChild as Q, dispatchEvent as k, useId as W, classNames as P, uRadioGroup as E, useRtl as X, createPropsContext as Y } from "@progress/kendo-react-common";
12
+ const Z = Y(), G = t.forwardRef((r, I) => {
13
+ const m = J(Z, r), {
14
14
  id: N,
15
15
  ariaLabelledBy: B,
16
16
  ariaDescribedBy: F,
@@ -27,8 +27,8 @@ const Z = J(), G = t.forwardRef((r, I) => {
27
27
  item: D = $.item,
28
28
  onChange: c,
29
29
  onFocus: d
30
- } = m, f = Q(), y = f && f.uRadioGroup, o = t.useRef(null), C = t.useCallback(() => {
31
- o.current && W(o.current);
30
+ } = m, f = M(), y = f && f.uRadioGroup, o = t.useRef(null), C = t.useCallback(() => {
31
+ o.current && Q(o.current);
32
32
  }, []), i = t.useCallback(
33
33
  () => ({
34
34
  element: o.current,
@@ -58,14 +58,14 @@ const Z = J(), G = t.forwardRef((r, I) => {
58
58
  );
59
59
  },
60
60
  [d, s]
61
- ), T = X(), _ = P(
61
+ ), T = W(), _ = 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
- ), w = Y(o, m.dir), K = b && b.map((a, l) => {
68
+ ), w = X(o, m.dir), K = b && b.map((a, l) => {
69
69
  const g = u === a.value, U = u == null, R = {
70
70
  ...a,
71
71
  valid: z,
@@ -7,7 +7,7 @@
7
7
  */
8
8
  import * as a from "react";
9
9
  import S from "prop-types";
10
- import { createPropsContext as j, validatePackage as J, getLicenseMessage as Q, usePropsContext as Z, useDir as ee, Keys as m, useDraggable as te, classNames as ae, getTabIndex as V, WatermarkOverlay as re } from "@progress/kendo-react-common";
10
+ import { validatePackage as j, getLicenseMessage as J, usePropsContext as Q, useDir as Z, Keys as m, useDraggable as ee, classNames as te, getTabIndex as V, WatermarkOverlay as ae, createPropsContext as re } from "@progress/kendo-react-common";
11
11
  import { sliderDragTitle as $, messages as z } from "../messages/index.mjs";
12
12
  import { useLocalization as ne } from "@progress/kendo-react-intl";
13
13
  import { RANGE_ACTION as r, rangeReducer as le } from "./range-raducer.mjs";
@@ -21,8 +21,8 @@ const se = (n, s, p) => {
21
21
  [s, p]
22
22
  );
23
23
  return [c, e];
24
- }, ce = j(), K = a.forwardRef((n, s) => {
25
- const p = !J(P, { component: "RangeSlider" }), c = Q(P), i = Z(ce, n), e = {
24
+ }, ce = re(), K = a.forwardRef((n, s) => {
25
+ const p = !j(P, { component: "RangeSlider" }), c = J(P), i = Q(ce, n), e = {
26
26
  step: y.step,
27
27
  largeStep: y.largeStep,
28
28
  defaultValue: y.defaultValue,
@@ -43,7 +43,7 @@ const se = (n, s, p) => {
43
43
  ), O = a.useMemo(
44
44
  () => e.largeStep !== void 0 ? e.largeStep : y.largeStep,
45
45
  [e.largeStep, y.largeStep]
46
- ), o = ee(b, e.dir), W = (t, u) => {
46
+ ), o = Z(b, e.dir), W = (t, u) => {
47
47
  e.onChange && f.current && e.onChange.call(void 0, {
48
48
  value: t,
49
49
  target: f.current,
@@ -187,7 +187,7 @@ const se = (n, s, p) => {
187
187
  },
188
188
  [e.vertical, g, k, l]
189
189
  );
190
- return te(
190
+ return ee(
191
191
  R,
192
192
  {
193
193
  onPress: F,
@@ -208,7 +208,7 @@ const se = (n, s, p) => {
208
208
  style: e.style,
209
209
  ref: b,
210
210
  dir: o,
211
- className: ae(
211
+ className: te(
212
212
  "k-slider",
213
213
  {
214
214
  "k-rtl": o === "rtl",
@@ -297,7 +297,7 @@ const se = (n, s, p) => {
297
297
  )
298
298
  )
299
299
  )
300
- ), p && /* @__PURE__ */ a.createElement(re, { message: c }));
300
+ ), p && /* @__PURE__ */ a.createElement(ae, { message: c }));
301
301
  }), ie = {
302
302
  value: (n, s, p) => {
303
303
  if (n.value) {
package/rating/Rating.mjs CHANGED
@@ -7,7 +7,7 @@
7
7
  */
8
8
  import * as a from "react";
9
9
  import c from "prop-types";
10
- import { createPropsContext as te, usePropsContext as ae, useDir as ne, Keys as R, IconWrap as y, toIconName as B, classNames as le, getTabIndex as se, svgIconPropType as S } from "@progress/kendo-react-common";
10
+ import { usePropsContext as te, useDir as ae, Keys as R, IconWrap as y, toIconName as B, classNames as ne, getTabIndex as le, createPropsContext as se, svgIconPropType as S } from "@progress/kendo-react-common";
11
11
  import { starOutlineIcon as $, starIcon as K } from "@progress/kendo-svg-icons";
12
12
  import { RatingItem as oe } from "./RatingItem.mjs";
13
13
  import { RATING_ACTION as r, ratingReducer as ie } from "./rating-reducer.mjs";
@@ -20,8 +20,8 @@ const X = (n, g, v) => {
20
20
  const o = ie(g.state || e, { ...h, ...g });
21
21
  v && v(o, h.event), N(o);
22
22
  }];
23
- }, de = te(), q = a.forwardRef((n, g) => {
24
- const v = ae(de, n), e = {
23
+ }, de = se(), q = a.forwardRef((n, g) => {
24
+ const v = te(de, n), e = {
25
25
  dir: s.dir,
26
26
  min: s.min,
27
27
  max: s.max,
@@ -33,7 +33,7 @@ const X = (n, g, v) => {
33
33
  selection: s.selection,
34
34
  precision: s.precision,
35
35
  ...v
36
- }, N = me(), m = a.useRef(null), h = a.useRef(null), o = ne(h, e.dir);
36
+ }, N = me(), m = a.useRef(null), h = a.useRef(null), o = ae(h, e.dir);
37
37
  a.useImperativeHandle(m, () => ({
38
38
  element: h.current,
39
39
  props: e
@@ -244,8 +244,8 @@ const X = (n, g, v) => {
244
244
  ref: h,
245
245
  role: "slider",
246
246
  dir: o,
247
- tabIndex: se(e.tabIndex, e.disabled, void 0),
248
- className: le(
247
+ tabIndex: le(e.tabIndex, e.disabled, void 0),
248
+ className: ne(
249
249
  "k-rating",
250
250
  {
251
251
  "k-rtl": o === "rtl",