@progress/kendo-react-inputs 8.2.1-develop.5 → 8.3.0-develop.10

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
@@ -14,6 +14,7 @@ import { FormComponentValidity } from '@progress/kendo-react-common';
14
14
  import { HTMLAttributes } from 'react';
15
15
  import { IconHandle } from '@progress/kendo-react-common';
16
16
  import { IconProps } from '@progress/kendo-react-common';
17
+ import { InputsClassStructure } from '@progress/kendo-react-common';
17
18
  import { JSX as JSX_2 } from 'react/jsx-runtime';
18
19
  import { NumberFormatOptions } from '@progress/kendo-react-intl';
19
20
  import { PopupAnimation } from '@progress/kendo-react-popup';
@@ -1306,7 +1307,7 @@ export declare const InputPrefix: React_2.ForwardRefExoticComponent<React_2.HTML
1306
1307
  /**
1307
1308
  * Sets the `orientation` property of the `InputPrefix` component.
1308
1309
  */
1309
- orientation?: "horizontal" | "vertical" | undefined;
1310
+ orientation?: "vertical" | "horizontal" | undefined;
1310
1311
  } & React_2.RefAttributes<InputPrefixHandle>>;
1311
1312
 
1312
1313
  /**
@@ -1368,6 +1369,10 @@ export declare interface InputProps extends Omit_2<React_2.InputHTMLAttributes<H
1368
1369
  * Triggered after value change.
1369
1370
  */
1370
1371
  onChange?: (event: InputChangeEvent) => void;
1372
+ /**
1373
+ * @hidden
1374
+ */
1375
+ unstyled?: InputsClassStructure;
1371
1376
  }
1372
1377
 
1373
1378
  /**
@@ -1385,7 +1390,7 @@ export declare const InputSeparator: React_2.ForwardRefExoticComponent<React_2.H
1385
1390
  /**
1386
1391
  * Sets the `orientation` property of the `InputSeparator` component.
1387
1392
  */
1388
- orientation?: "horizontal" | "vertical" | undefined;
1393
+ orientation?: "vertical" | "horizontal" | undefined;
1389
1394
  } & React_2.RefAttributes<InputSeparatorHandle>>;
1390
1395
 
1391
1396
  /**
@@ -1457,7 +1462,7 @@ export declare const InputSuffix: React_2.ForwardRefExoticComponent<React_2.HTML
1457
1462
  /**
1458
1463
  * Sets the `orientation` property of the `InputSuffix` component.
1459
1464
  */
1460
- orientation?: "horizontal" | "vertical" | undefined;
1465
+ orientation?: "vertical" | "horizontal" | undefined;
1461
1466
  } & React_2.RefAttributes<InputSuffixHandle>>;
1462
1467
 
1463
1468
  /**
@@ -1847,6 +1852,10 @@ export declare interface MaskedTextBoxProps extends FormComponentProps {
1847
1852
  * Represents the `autoFocus` HTML attribute that will be applied to the input element of the MaskedTextBox. (Defaults to `false`)
1848
1853
  */
1849
1854
  autoFocus?: boolean;
1855
+ /**
1856
+ * @hidden
1857
+ */
1858
+ unstyled?: InputsClassStructure;
1850
1859
  }
1851
1860
 
1852
1861
  /**
@@ -4348,6 +4357,10 @@ export declare interface TextBoxProps extends Omit<React_2.InputHTMLAttributes<H
4348
4357
  * Represents the `autoFocus` HTML attribute that will be applied to the input element of the TextBox. (Defaults to `false`)
4349
4358
  */
4350
4359
  autoFocus?: boolean;
4360
+ /**
4361
+ * @hidden
4362
+ */
4363
+ unstyled?: InputsClassStructure;
4351
4364
  }
4352
4365
 
4353
4366
  /**
package/index.d.ts CHANGED
@@ -14,6 +14,7 @@ import { FormComponentValidity } from '@progress/kendo-react-common';
14
14
  import { HTMLAttributes } from 'react';
15
15
  import { IconHandle } from '@progress/kendo-react-common';
16
16
  import { IconProps } from '@progress/kendo-react-common';
17
+ import { InputsClassStructure } from '@progress/kendo-react-common';
17
18
  import { JSX as JSX_2 } from 'react/jsx-runtime';
18
19
  import { NumberFormatOptions } from '@progress/kendo-react-intl';
19
20
  import { PopupAnimation } from '@progress/kendo-react-popup';
@@ -1306,7 +1307,7 @@ export declare const InputPrefix: React_2.ForwardRefExoticComponent<React_2.HTML
1306
1307
  /**
1307
1308
  * Sets the `orientation` property of the `InputPrefix` component.
1308
1309
  */
1309
- orientation?: "horizontal" | "vertical" | undefined;
1310
+ orientation?: "vertical" | "horizontal" | undefined;
1310
1311
  } & React_2.RefAttributes<InputPrefixHandle>>;
1311
1312
 
1312
1313
  /**
@@ -1368,6 +1369,10 @@ export declare interface InputProps extends Omit_2<React_2.InputHTMLAttributes<H
1368
1369
  * Triggered after value change.
1369
1370
  */
1370
1371
  onChange?: (event: InputChangeEvent) => void;
1372
+ /**
1373
+ * @hidden
1374
+ */
1375
+ unstyled?: InputsClassStructure;
1371
1376
  }
1372
1377
 
1373
1378
  /**
@@ -1385,7 +1390,7 @@ export declare const InputSeparator: React_2.ForwardRefExoticComponent<React_2.H
1385
1390
  /**
1386
1391
  * Sets the `orientation` property of the `InputSeparator` component.
1387
1392
  */
1388
- orientation?: "horizontal" | "vertical" | undefined;
1393
+ orientation?: "vertical" | "horizontal" | undefined;
1389
1394
  } & React_2.RefAttributes<InputSeparatorHandle>>;
1390
1395
 
1391
1396
  /**
@@ -1457,7 +1462,7 @@ export declare const InputSuffix: React_2.ForwardRefExoticComponent<React_2.HTML
1457
1462
  /**
1458
1463
  * Sets the `orientation` property of the `InputSuffix` component.
1459
1464
  */
1460
- orientation?: "horizontal" | "vertical" | undefined;
1465
+ orientation?: "vertical" | "horizontal" | undefined;
1461
1466
  } & React_2.RefAttributes<InputSuffixHandle>>;
1462
1467
 
1463
1468
  /**
@@ -1847,6 +1852,10 @@ export declare interface MaskedTextBoxProps extends FormComponentProps {
1847
1852
  * Represents the `autoFocus` HTML attribute that will be applied to the input element of the MaskedTextBox. (Defaults to `false`)
1848
1853
  */
1849
1854
  autoFocus?: boolean;
1855
+ /**
1856
+ * @hidden
1857
+ */
1858
+ unstyled?: InputsClassStructure;
1850
1859
  }
1851
1860
 
1852
1861
  /**
@@ -4348,6 +4357,10 @@ export declare interface TextBoxProps extends Omit<React_2.InputHTMLAttributes<H
4348
4357
  * Represents the `autoFocus` HTML attribute that will be applied to the input element of the TextBox. (Defaults to `false`)
4349
4358
  */
4350
4359
  autoFocus?: boolean;
4360
+ /**
4361
+ * @hidden
4362
+ */
4363
+ unstyled?: InputsClassStructure;
4351
4364
  }
4352
4365
 
4353
4366
  /**
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 client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("react"),a=require("prop-types"),n=require("@progress/kendo-react-common"),k=require("@progress/kendo-react-labels"),O=require("../package-metadata.js");function P(l){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(l){for(const t in l)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(l,t);Object.defineProperty(e,t,i.get?i:{enumerable:!0,get:()=>l[t]})}}return e.default=l,Object.freeze(e)}const u=P(S),s=class s extends u.Component{constructor(e){super(e),this._input=null,this.focus=()=>{this._input&&this._input.focus()},this.isInvalid=t=>{let i=!1;for(let r in t)t.hasOwnProperty(r)&&(i=i||!!t[r]);return i},this.setValidity=()=>{this._input&&this._input.setCustomValidity&&(this.validity.valid||!this.validityStyles?this._input.classList.remove("k-invalid"):this._input.classList.add("k-invalid"),this._input.setCustomValidity(this.validity.valid?"":this.props.validationMessage||""))},this.handleChange=t=>{this.setState({value:t.target.value}),this.valueDuringOnChange=t.target.value,this.props.onChange&&this.props.onChange.call(void 0,{syntheticEvent:t,nativeEvent:t.nativeEvent,value:t.target.value,target:this}),this.valueDuringOnChange=void 0},this.handleAutoFill=t=>{if(t.animationName==="autoFillStart"){let i=t.target.parentNode;i&&i.classList.contains("k-empty")&&i.classList.remove("k-empty")}},n.validatePackage(O.packageMetadata),this.state={value:this.props.defaultValue||s.defaultProps.defaultValue}}get _inputId(){return this.props.id}get element(){return this._input}get value(){return this.valueDuringOnChange!==void 0?this.valueDuringOnChange:this.props.value!==void 0?this.props.value:this.state.value}get name(){return this.props.name}get validity(){const e={badInput:this._input?this._input.validity.badInput:!1,patternMismatch:this._input?this._input.validity.patternMismatch:!1,rangeOverflow:this._input?this._input.validity.rangeOverflow:!1,rangeUnderflow:this._input?this._input.validity.rangeUnderflow:!1,stepMismatch:this._input?this._input.validity.stepMismatch:!1,tooLong:this._input?this._input.validity.tooLong:!1,typeMismatch:this._input?this._input.validity.typeMismatch:!1,valueMissing:this._input?this._input.validity.valueMissing:!1};return{...e,customError:this.props.validationMessage!==void 0,valid:this.props.valid!==void 0?this.props.valid:this._input?!this.isInvalid(e):!0}}get validityStyles(){return this.props.validityStyles!==void 0?this.props.validityStyles:s.defaultProps.validityStyles}componentDidMount(){this.forceUpdate()}componentDidUpdate(){this.setValidity()}render(){const{className:e,label:t,labelClassName:i,id:r,validationMessage:I,defaultValue:L,valid:D,visited:N,touched:V,modified:w,autoFocus:f,ariaLabelledBy:m,ariaDescribedBy:b,validityStyles:q,style:p,ariaLabel:_,...o}=this.props,h=r||this._inputId,c=!this.validityStyles||this.validity.valid,C=n.classNames(e,"k-input k-input-md k-rounded-md k-input-solid"),v=u.createElement("input",{"aria-labelledby":m,"aria-describedby":b,"aria-disabled":this.props.disabled||void 0,"aria-invalid":!c||void 0,"aria-label":_||void 0,...o,style:t?void 0:p,value:this.value,id:h,autoFocus:f,className:C,onChange:this.handleChange,onAnimationStart:this.handleAutoFill,ref:M=>{this._input=M}});return t?u.createElement(k.FloatingLabel,{label:t,labelClassName:i,editorId:h,editorValue:String(this.value),editorValid:c,editorDisabled:o.disabled,editorPlaceholder:o.placeholder,children:v,style:p,dir:o.dir}):v}};s.displayName="Input",s.propTypes={label:a.string,labelClassName:a.string,validationMessage:a.string,required:a.bool,validate:a.bool,id:a.string,ariaLabelledBy:a.string,ariaDescribedBy:a.string,ariaLabel:a.string,autoFocus:a.bool},s.defaultProps={defaultValue:"",required:!1,validityStyles:!0,autoFocus:!1};let d=s;const g=n.createPropsContext(),y=n.withIdHOC(n.withPropsContext(g,d));y.displayName="KendoReactInput";exports.Input=y;exports.InputPropsContext=g;exports.InputWithoutContext=d;
8
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const I=require("react"),a=require("prop-types"),l=require("@progress/kendo-react-common"),P=require("@progress/kendo-react-labels"),L=require("../package-metadata.js");function D(n){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const t in n)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,i.get?i:{enumerable:!0,get:()=>n[t]})}}return e.default=n,Object.freeze(e)}const p=D(I),s=class s extends p.Component{constructor(e){super(e),this._input=null,this.focus=()=>{this._input&&this._input.focus()},this.isInvalid=t=>{let i=!1;for(let r in t)t.hasOwnProperty(r)&&(i=i||!!t[r]);return i},this.setValidity=()=>{this._input&&this._input.setCustomValidity&&(this.validity.valid||!this.validityStyles?this._input.classList.remove("k-invalid"):this._input.classList.add("k-invalid"),this._input.setCustomValidity(this.validity.valid?"":this.props.validationMessage||""))},this.handleChange=t=>{this.setState({value:t.target.value}),this.valueDuringOnChange=t.target.value,this.props.onChange&&this.props.onChange.call(void 0,{syntheticEvent:t,nativeEvent:t.nativeEvent,value:t.target.value,target:this}),this.valueDuringOnChange=void 0},this.handleAutoFill=t=>{if(t.animationName==="autoFillStart"){let i=t.target.parentNode;i&&i.classList.contains("k-empty")&&i.classList.remove("k-empty")}},l.validatePackage(L.packageMetadata),this.state={value:this.props.defaultValue||s.defaultProps.defaultValue}}get _inputId(){return this.props.id}get element(){return this._input}get value(){return this.valueDuringOnChange!==void 0?this.valueDuringOnChange:this.props.value!==void 0?this.props.value:this.state.value}get name(){return this.props.name}get validity(){const e={badInput:this._input?this._input.validity.badInput:!1,patternMismatch:this._input?this._input.validity.patternMismatch:!1,rangeOverflow:this._input?this._input.validity.rangeOverflow:!1,rangeUnderflow:this._input?this._input.validity.rangeUnderflow:!1,stepMismatch:this._input?this._input.validity.stepMismatch:!1,tooLong:this._input?this._input.validity.tooLong:!1,typeMismatch:this._input?this._input.validity.typeMismatch:!1,valueMissing:this._input?this._input.validity.valueMissing:!1};return{...e,customError:this.props.validationMessage!==void 0,valid:this.props.valid!==void 0?this.props.valid:this._input?!this.isInvalid(e):!0}}get validityStyles(){return this.props.validityStyles!==void 0?this.props.validityStyles:s.defaultProps.validityStyles}componentDidMount(){this.forceUpdate()}componentDidUpdate(){this.setValidity()}render(){const{className:e,label:t,labelClassName:i,id:r,validationMessage:N,defaultValue:V,valid:k,unstyled:h,visited:w,touched:q,modified:F,autoFocus:m,ariaLabelledBy:b,ariaDescribedBy:_,validityStyles:E,style:c,ariaLabel:C,...o}=this.props,v=r||this._inputId,u=!this.validityStyles||this.validity.valid,M=h&&h.uInput,S=l.classNames(e,l.uInput.input({c:M,invalid:!u,disabled:this.props.disabled})),y=p.createElement("input",{"aria-labelledby":b,"aria-describedby":_,"aria-disabled":this.props.disabled||void 0,"aria-invalid":!u||void 0,"aria-label":C||void 0,...o,style:t?void 0:c,value:this.value,id:v,autoFocus:m,className:S,onChange:this.handleChange,onAnimationStart:this.handleAutoFill,ref:O=>{this._input=O}});return t?p.createElement(P.FloatingLabel,{label:t,labelClassName:i,editorId:v,editorValue:String(this.value),editorValid:u,editorDisabled:o.disabled,editorPlaceholder:o.placeholder,children:y,style:c,dir:o.dir}):y}};s.displayName="Input",s.propTypes={label:a.string,labelClassName:a.string,validationMessage:a.string,required:a.bool,validate:a.bool,id:a.string,ariaLabelledBy:a.string,ariaDescribedBy:a.string,ariaLabel:a.string,autoFocus:a.bool},s.defaultProps={defaultValue:"",required:!1,validityStyles:!0,autoFocus:!1};let d=s;const g=l.createPropsContext(),f=l.withIdHOC(l.withPropsContext(g,l.withUnstyledHOC(d)));f.displayName="KendoReactInput";exports.Input=f;exports.InputPropsContext=g;exports.InputWithoutContext=d;
package/input/Input.mjs CHANGED
@@ -6,40 +6,40 @@
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
8
  "use client";
9
- import * as r from "react";
10
- import t from "prop-types";
11
- import { validatePackage as b, classNames as _, createPropsContext as C, withIdHOC as M, withPropsContext as S } from "@progress/kendo-react-common";
12
- import { FloatingLabel as L } from "@progress/kendo-react-labels";
13
- import { packageMetadata as V } from "../package-metadata.mjs";
14
- const e = class e extends r.Component {
15
- constructor(s) {
16
- super(s), this._input = null, this.focus = () => {
9
+ import * as d from "react";
10
+ import i from "prop-types";
11
+ import { validatePackage as C, classNames as M, uInput as S, createPropsContext as I, withIdHOC as L, withPropsContext as V, withUnstyledHOC as N } from "@progress/kendo-react-common";
12
+ import { FloatingLabel as P } from "@progress/kendo-react-labels";
13
+ import { packageMetadata as D } from "../package-metadata.mjs";
14
+ const s = class s extends d.Component {
15
+ constructor(e) {
16
+ super(e), this._input = null, this.focus = () => {
17
17
  this._input && this._input.focus();
18
- }, this.isInvalid = (i) => {
18
+ }, this.isInvalid = (t) => {
19
19
  let a = !1;
20
- for (let l in i)
21
- i.hasOwnProperty(l) && (a = a || !!i[l]);
20
+ for (let l in t)
21
+ t.hasOwnProperty(l) && (a = a || !!t[l]);
22
22
  return a;
23
23
  }, this.setValidity = () => {
24
24
  this._input && this._input.setCustomValidity && (this.validity.valid || !this.validityStyles ? this._input.classList.remove("k-invalid") : this._input.classList.add("k-invalid"), this._input.setCustomValidity(
25
25
  this.validity.valid ? "" : this.props.validationMessage || ""
26
26
  ));
27
- }, this.handleChange = (i) => {
27
+ }, this.handleChange = (t) => {
28
28
  this.setState({
29
- value: i.target.value
30
- }), this.valueDuringOnChange = i.target.value, this.props.onChange && this.props.onChange.call(void 0, {
31
- syntheticEvent: i,
32
- nativeEvent: i.nativeEvent,
33
- value: i.target.value,
29
+ value: t.target.value
30
+ }), this.valueDuringOnChange = t.target.value, this.props.onChange && this.props.onChange.call(void 0, {
31
+ syntheticEvent: t,
32
+ nativeEvent: t.nativeEvent,
33
+ value: t.target.value,
34
34
  target: this
35
35
  }), this.valueDuringOnChange = void 0;
36
- }, this.handleAutoFill = (i) => {
37
- if (i.animationName === "autoFillStart") {
38
- let a = i.target.parentNode;
36
+ }, this.handleAutoFill = (t) => {
37
+ if (t.animationName === "autoFillStart") {
38
+ let a = t.target.parentNode;
39
39
  a && a.classList.contains("k-empty") && a.classList.remove("k-empty");
40
40
  }
41
- }, b(V), this.state = {
42
- value: this.props.defaultValue || e.defaultProps.defaultValue
41
+ }, C(D), this.state = {
42
+ value: this.props.defaultValue || s.defaultProps.defaultValue
43
43
  };
44
44
  }
45
45
  get _inputId() {
@@ -67,7 +67,7 @@ const e = class e extends r.Component {
67
67
  * Represents the validity state into which the Input is set.
68
68
  */
69
69
  get validity() {
70
- const s = {
70
+ const e = {
71
71
  badInput: this._input ? this._input.validity.badInput : !1,
72
72
  patternMismatch: this._input ? this._input.validity.patternMismatch : !1,
73
73
  rangeOverflow: this._input ? this._input.validity.rangeOverflow : !1,
@@ -78,16 +78,16 @@ const e = class e extends r.Component {
78
78
  valueMissing: this._input ? this._input.validity.valueMissing : !1
79
79
  };
80
80
  return {
81
- ...s,
81
+ ...e,
82
82
  customError: this.props.validationMessage !== void 0,
83
- valid: this.props.valid !== void 0 ? this.props.valid : this._input ? !this.isInvalid(s) : !0
83
+ valid: this.props.valid !== void 0 ? this.props.valid : this._input ? !this.isInvalid(e) : !0
84
84
  };
85
85
  }
86
86
  /**
87
87
  * @hidden
88
88
  */
89
89
  get validityStyles() {
90
- return this.props.validityStyles !== void 0 ? this.props.validityStyles : e.defaultProps.validityStyles;
90
+ return this.props.validityStyles !== void 0 ? this.props.validityStyles : s.defaultProps.validityStyles;
91
91
  }
92
92
  /**
93
93
  * @hidden
@@ -106,84 +106,91 @@ const e = class e extends r.Component {
106
106
  */
107
107
  render() {
108
108
  const {
109
- className: s,
110
- label: i,
109
+ className: e,
110
+ label: t,
111
111
  labelClassName: a,
112
112
  id: l,
113
- validationMessage: P,
114
- defaultValue: D,
115
- valid: I,
113
+ validationMessage: F,
114
+ defaultValue: k,
115
+ valid: E,
116
+ unstyled: p,
116
117
  // Removed to support direct use in Form Field component
117
- visited: O,
118
- touched: w,
119
- modified: F,
120
- autoFocus: v,
121
- ariaLabelledBy: c,
122
- ariaDescribedBy: y,
123
- validityStyles: E,
124
- style: o,
125
- ariaLabel: g,
118
+ visited: B,
119
+ touched: U,
120
+ modified: x,
121
+ autoFocus: c,
122
+ ariaLabelledBy: y,
123
+ ariaDescribedBy: g,
124
+ validityStyles: A,
125
+ style: u,
126
+ ariaLabel: m,
126
127
  ...n
127
- } = this.props, p = l || this._inputId, u = !this.validityStyles || this.validity.valid, m = _(s, "k-input k-input-md k-rounded-md k-input-solid"), h = /* @__PURE__ */ r.createElement(
128
+ } = this.props, h = l || this._inputId, r = !this.validityStyles || this.validity.valid, f = p && p.uInput, b = M(e, S.input(
129
+ {
130
+ c: f,
131
+ invalid: !r,
132
+ disabled: this.props.disabled
133
+ }
134
+ )), v = /* @__PURE__ */ d.createElement(
128
135
  "input",
129
136
  {
130
- "aria-labelledby": c,
131
- "aria-describedby": y,
137
+ "aria-labelledby": y,
138
+ "aria-describedby": g,
132
139
  "aria-disabled": this.props.disabled || void 0,
133
- "aria-invalid": !u || void 0,
134
- "aria-label": g || void 0,
140
+ "aria-invalid": !r || void 0,
141
+ "aria-label": m || void 0,
135
142
  ...n,
136
- style: i ? void 0 : o,
143
+ style: t ? void 0 : u,
137
144
  value: this.value,
138
- id: p,
139
- autoFocus: v,
140
- className: m,
145
+ id: h,
146
+ autoFocus: c,
147
+ className: b,
141
148
  onChange: this.handleChange,
142
149
  onAnimationStart: this.handleAutoFill,
143
- ref: (f) => {
144
- this._input = f;
150
+ ref: (_) => {
151
+ this._input = _;
145
152
  }
146
153
  }
147
154
  );
148
- return i ? /* @__PURE__ */ r.createElement(
149
- L,
155
+ return t ? /* @__PURE__ */ d.createElement(
156
+ P,
150
157
  {
151
- label: i,
158
+ label: t,
152
159
  labelClassName: a,
153
- editorId: p,
160
+ editorId: h,
154
161
  editorValue: String(this.value),
155
- editorValid: u,
162
+ editorValid: r,
156
163
  editorDisabled: n.disabled,
157
164
  editorPlaceholder: n.placeholder,
158
- children: h,
159
- style: o,
165
+ children: v,
166
+ style: u,
160
167
  dir: n.dir
161
168
  }
162
- ) : h;
169
+ ) : v;
163
170
  }
164
171
  };
165
- e.displayName = "Input", e.propTypes = {
166
- label: t.string,
167
- labelClassName: t.string,
168
- validationMessage: t.string,
169
- required: t.bool,
170
- validate: t.bool,
171
- id: t.string,
172
- ariaLabelledBy: t.string,
173
- ariaDescribedBy: t.string,
174
- ariaLabel: t.string,
175
- autoFocus: t.bool
176
- }, e.defaultProps = {
172
+ s.displayName = "Input", s.propTypes = {
173
+ label: i.string,
174
+ labelClassName: i.string,
175
+ validationMessage: i.string,
176
+ required: i.bool,
177
+ validate: i.bool,
178
+ id: i.string,
179
+ ariaLabelledBy: i.string,
180
+ ariaDescribedBy: i.string,
181
+ ariaLabel: i.string,
182
+ autoFocus: i.bool
183
+ }, s.defaultProps = {
177
184
  defaultValue: "",
178
185
  required: !1,
179
186
  validityStyles: !0,
180
187
  autoFocus: !1
181
188
  };
182
- let d = e;
183
- const k = C(), N = M(S(k, d));
184
- N.displayName = "KendoReactInput";
189
+ let o = s;
190
+ const O = I(), w = L(V(O, N(o)));
191
+ w.displayName = "KendoReactInput";
185
192
  export {
186
- N as Input,
187
- k as InputPropsContext,
188
- d as InputWithoutContext
193
+ w as Input,
194
+ O as InputPropsContext,
195
+ o as InputWithoutContext
189
196
  };
@@ -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 client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("@progress/kendo-react-common"),l=require("react");function s(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,a.get?a:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const r=s(l),c=r.forwardRef(({orientation:e="horizontal",...t},n)=>{const a=r.useRef(null),u=r.useRef(null);return r.useImperativeHandle(a,()=>({element:u.current})),r.useImperativeHandle(n,()=>a.current),r.createElement("span",{...t,className:o.classNames("k-input-prefix",t.className,`k-input-prefix-${e}`)})});c.displayName="KendoReactInputPrefix";exports.InputPrefix=c;
8
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("react"),r=require("@progress/kendo-react-common");function f(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const s in e)if(s!=="default"){const a=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(t,s,a.get?a:{enumerable:!0,get:()=>e[s]})}}return t.default=e,Object.freeze(t)}const n=f(m),u=n.forwardRef(({orientation:e="horizontal",...t},s)=>{const a=n.useRef(null),o=n.useRef(null),c=r.useUnstyled(),l=c&&c.uTextBox;n.useImperativeHandle(a,()=>({element:o.current})),n.useImperativeHandle(s,()=>a.current);const i=n.useMemo(()=>r.classNames(r.uTextBox.prefix({c:l,orientation:e}),t.className),[t.className,l,e]);return n.createElement("span",{...t,className:i})});u.displayName="KendoReactInputPrefix";exports.InputPrefix=u;
@@ -6,19 +6,27 @@
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
8
  "use client";
9
- import { classNames as l } from "@progress/kendo-react-common";
10
9
  import * as e from "react";
11
- const u = e.forwardRef(({ orientation: r = "horizontal", ...t }, a) => {
12
- const n = e.useRef(null), s = e.useRef(null);
13
- return e.useImperativeHandle(
14
- n,
15
- () => ({ element: s.current })
16
- ), e.useImperativeHandle(
10
+ import { useUnstyled as u, classNames as o, uTextBox as x } from "@progress/kendo-react-common";
11
+ const f = e.forwardRef(({ orientation: t = "horizontal", ...s }, r) => {
12
+ const a = e.useRef(null), c = e.useRef(null), n = u(), l = n && n.uTextBox;
13
+ e.useImperativeHandle(
17
14
  a,
18
- () => n.current
19
- ), /* @__PURE__ */ e.createElement("span", { ...t, className: l("k-input-prefix", t.className, `k-input-prefix-${r}`) });
15
+ () => ({ element: c.current })
16
+ ), e.useImperativeHandle(
17
+ r,
18
+ () => a.current
19
+ );
20
+ const m = e.useMemo(
21
+ () => o(x.prefix({
22
+ c: l,
23
+ orientation: t
24
+ }), s.className),
25
+ [s.className, l, t]
26
+ );
27
+ return /* @__PURE__ */ e.createElement("span", { ...s, className: m });
20
28
  });
21
- u.displayName = "KendoReactInputPrefix";
29
+ f.displayName = "KendoReactInputPrefix";
22
30
  export {
23
- u as InputPrefix
31
+ f as InputPrefix
24
32
  };
@@ -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 client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react"),o=require("@progress/kendo-react-common");function l(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const r=l(s),a=r.forwardRef(({orientation:e="horizontal",...t},n)=>{const u=r.useRef(null),c=r.useRef(null);return r.useImperativeHandle(u,()=>({element:c.current})),r.useImperativeHandle(n,()=>u.current),r.createElement("span",{...t,className:o.classNames("k-input-suffix",t.className,`k-input-suffix-${e}`)})});a.displayName="KendoReactInputSuffix";exports.InputSuffix=a;
8
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react"),u=require("@progress/kendo-react-common");function m(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const s in e)if(s!=="default"){const a=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(t,s,a.get?a:{enumerable:!0,get:()=>e[s]})}}return t.default=e,Object.freeze(t)}const n=m(i),r=n.forwardRef(({orientation:e="horizontal",...t},s)=>{const a=n.useRef(null),o=n.useRef(null),c=u.useUnstyled(),l=c&&c.uTextBox;n.useImperativeHandle(a,()=>({element:o.current})),n.useImperativeHandle(s,()=>a.current);const f=n.useMemo(()=>u.classNames(u.uTextBox.suffix({c:l,orientation:e}),t.className),[t.className,l,e]);return n.createElement("span",{...t,className:f})});r.displayName="KendoReactInputSuffix";exports.InputSuffix=r;
@@ -7,18 +7,26 @@
7
7
  */
8
8
  "use client";
9
9
  import * as e from "react";
10
- import { classNames as r } from "@progress/kendo-react-common";
11
- const l = e.forwardRef(({ orientation: a = "horizontal", ...t }, s) => {
12
- const n = e.useRef(null), u = e.useRef(null);
13
- return e.useImperativeHandle(
14
- n,
15
- () => ({ element: u.current })
10
+ import { useUnstyled as o, classNames as r, uTextBox as f } from "@progress/kendo-react-common";
11
+ const x = e.forwardRef(({ orientation: t = "horizontal", ...s }, u) => {
12
+ const a = e.useRef(null), c = e.useRef(null), n = o(), l = n && n.uTextBox;
13
+ e.useImperativeHandle(
14
+ a,
15
+ () => ({ element: c.current })
16
16
  ), e.useImperativeHandle(
17
- s,
18
- () => n.current
19
- ), /* @__PURE__ */ e.createElement("span", { ...t, className: r("k-input-suffix", t.className, `k-input-suffix-${a}`) });
17
+ u,
18
+ () => a.current
19
+ );
20
+ const m = e.useMemo(
21
+ () => r(f.suffix({
22
+ c: l,
23
+ orientation: t
24
+ }), s.className),
25
+ [s.className, l, t]
26
+ );
27
+ return /* @__PURE__ */ e.createElement("span", { ...s, className: m });
20
28
  });
21
- l.displayName = "KendoReactInputSuffix";
29
+ x.displayName = "KendoReactInputSuffix";
22
30
  export {
23
- l as InputSuffix
31
+ x as InputSuffix
24
32
  };
@@ -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 client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const x=require("react"),e=require("prop-types"),C=require("./masking.service.js"),c=require("./utils.js"),o=require("@progress/kendo-react-common"),_=require("@progress/kendo-react-labels"),S=require("../package-metadata.js");function O(h){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(h){for(const t in h)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(h,t);Object.defineProperty(s,t,i.get?i:{enumerable:!0,get:()=>h[t]})}}return s.default=h,Object.freeze(s)}const u=O(x),l=class l extends u.Component{constructor(s){super(s),this.state={},this._inputId=`k-${this.props.id}`,this._service=new C.MaskingService,this._isPasted=!1,this._selection=[null,null],this._input=null,this.focus=()=>{this._input&&this._input.focus()},this.pasteHandler=t=>{const{selectionStart:i,selectionEnd:r}=t.target;r!==i&&(this._isPasted=!0,this._selection=[i||0,r||0])},this.onChangeHandler=t=>{const i=t.currentTarget,r=i.value,n=this._selection[0]||0,a=this._selection[1]||0;if(!this.props.mask){this._isPasted=!1,this._selection=[null,null],this.triggerOnChange(r,t);return}const p=this.value;let d;if(this._isPasted){this._isPasted=!1;const v=p.length-a,g=r.length-v;d=this._service.maskInRange(r.slice(n,g),p,n,a)}else d=this._service.maskInput(r,p,i.selectionStart||0);this._selection=[d.selection,d.selection],this.triggerOnChange(d.value,t)},this.focusHandler=t=>{this.state.focused||(this.setState({focused:!0}),this.props.onFocus&&this.props.onFocus.call(void 0,{target:this,syntheticEvent:t,nativeEvent:t.nativeEvent}))},this.blurHandler=t=>{this.state.focused&&(this.setState({focused:!1}),this.props.onBlur&&this.props.onBlur.call(void 0,{target:this,syntheticEvent:t,nativeEvent:t.nativeEvent}))},this.setValidity=()=>{this.element&&this.element.setCustomValidity(this.validity.valid?"":this.props.validationMessage||"")},o.validatePackage(S.packageMetadata)}get element(){return this._input}get value(){return this._valueDuringOnChange!==void 0?this._valueDuringOnChange:this.props.value!==void 0?this.props.value:this.state.value!==void 0?this.state.value:this.props.defaultValue!==void 0?this.props.defaultValue:""}get rawValue(){return this._service.rawValue(this.value)}get validity(){const s=this.value,t=this._service.validationValue(s),i=this.props.validationMessage!==void 0,r=this.props.valid!==void 0?this.props.valid:(!this.required||!!t)&&(!this.props.maskValidation||!this.props.prompt||s.indexOf(this.props.prompt)===-1);return{customError:i,valid:r,valueMissing:!t}}get validityStyles(){return this.props.validityStyles!==void 0?this.props.validityStyles:l.defaultProps.validityStyles}get required(){return this.props.required!==void 0?this.props.required:l.defaultProps.required}get name(){return this.props.name}componentDidUpdate(s,t){if(this.element&&this.state.focused&&t.focused){let[i,r]=this._selection;const n=s.selection,a=this.props.selection;(!n&&a||n&&a&&(n.start!==a.start||n.end!==a.end))&&(i=a.start,r=a.end),i!==null&&r!==null&&this.element.setSelectionRange(i,r)}c.maskingChanged(s,this.props)&&this.updateService(),this.setValidity()}componentDidMount(){this.updateService(),this.setValidity()}render(){const{size:s=l.defaultProps.size,fillMode:t=l.defaultProps.fillMode,rounded:i=l.defaultProps.rounded,autoFocus:r=l.defaultProps.autoFocus}=this.props,n=this.props.id||this._inputId,a=!this.validityStyles||this.validity.valid,p=this.props.style||{},{prefix:d=l.defaultProps.prefix,suffix:v=l.defaultProps.suffix}=this.props,[g]=o.useCustomComponent(d),[k]=o.useCustomComponent(v),m=u.createElement("span",{dir:this.props.dir,className:o.classNames("k-maskedtextbox k-input",{[`k-input-${o.kendoThemeMaps.sizeMap[s]||s}`]:s,[`k-input-${t}`]:t,[`k-rounded-${o.kendoThemeMaps.roundedMap[i]||i}`]:i,"k-invalid":!a,"k-required":this.required,"k-disabled":this.props.disabled},this.props.className),style:this.props.label?p:{width:this.props.width,...p}},u.createElement(g,null),u.createElement("input",{type:"text",autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",autoFocus:r,spellCheck:!1,className:"k-input-inner",value:this.value,id:n,"aria-labelledby":this.props.ariaLabelledBy,"aria-describedby":this.props.ariaDescribedBy,"aria-placeholder":this.props.mask,name:this.props.name,tabIndex:o.getTabIndex(this.props.tabIndex,this.props.disabled,!0),accessKey:this.props.accessKey,title:this.props.title,disabled:this.props.disabled||void 0,readOnly:this.props.readonly||void 0,placeholder:this.props.placeholder,ref:P=>this._input=P,onChange:this.onChangeHandler,onPaste:this.pasteHandler,onFocus:this.focusHandler,onBlur:this.blurHandler,onDragStart:c.returnFalse,onDrop:c.returnFalse}),u.createElement(k,null));return this.props.label?u.createElement(_.FloatingLabel,{label:this.props.label,editorId:n,editorValue:this.value,editorValid:a,editorDisabled:this.props.disabled,editorPlaceholder:this.props.placeholder,children:m,style:{width:this.props.width},dir:this.props.dir}):m}triggerOnChange(s,t){if(this.setState({value:s}),this.props.onChange){this._valueDuringOnChange=s;const i={syntheticEvent:t,nativeEvent:t.nativeEvent,selectionStart:this._selection[0],selectionEnd:this._selection[1],target:this,value:this.value};this.props.onChange.call(void 0,i),this._valueDuringOnChange=void 0}}updateService(s){const t=Object.assign({includeLiterals:this.props.includeLiterals,mask:this.props.mask,prompt:this.props.prompt,promptPlaceholder:this.props.promptPlaceholder,rules:this.rules},s);this._service.update(t)}get rules(){return Object.assign({},c.defaultRules,this.props.rules)}};l.displayName="MaskedTextBox",l.propTypes={value:e.string,defaultValue:e.string,placeholder:e.string,title:e.string,dir:e.string,id:e.string,style:e.object,className:e.string,prefix:e.any,suffix:e.any,ariaLabelledBy:e.string,ariaDescribedBy:e.string,width:e.oneOfType([e.string,e.number]),tabIndex:e.number,accessKey:e.string,disabled:e.bool,readonly:e.bool,prompt:e.string,promptPlaceholder:e.string,includeLiterals:e.bool,maskValidation:e.bool,mask:e.string,rules:function(s,t,i){const r=s.rules;return r!==void 0&&!Object.entries(r).some(a=>typeof a!="string"||!(r[a]instanceof RegExp))?new Error("Invalid prop `"+t+"` supplied to `"+i+"`. Validation failed."):null},selection:e.shape({start:e.number.isRequired,end:e.number.isRequired}),name:e.string,label:e.string,validationMessage:e.string,required:e.bool,valid:e.bool,validityStyles:e.bool,onChange:e.func,size:e.oneOf([null,"small","medium","large"]),rounded:e.oneOf([null,"small","medium","large","full"]),fillMode:e.oneOf([null,"solid","flat","outline"]),autoFocus:e.bool},l.defaultProps={prompt:"_",promptPlaceholder:" ",includeLiterals:!1,maskValidation:!0,rules:c.defaultRules,required:!1,validityStyles:!0,prefix:s=>null,suffix:s=>null,size:"medium",rounded:"medium",fillMode:"solid",autoFocus:!1};let f=l;const y=o.createPropsContext(),b=o.withIdHOC(o.withPropsContext(y,f));b.displayName="KendoReactMaskedTextBox";exports.MaskedTextBox=b;exports.MaskedTextBoxPropsContext=y;exports.MaskedTextBoxWithoutContext=f;
8
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("react"),e=require("prop-types"),O=require("./masking.service.js"),h=require("./utils.js"),o=require("@progress/kendo-react-common"),M=require("@progress/kendo-react-labels"),E=require("../package-metadata.js");function V(c){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(c){for(const t in c)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(c,t);Object.defineProperty(s,t,i.get?i:{enumerable:!0,get:()=>c[t]})}}return s.default=c,Object.freeze(s)}const p=V(S),l=class l extends p.Component{constructor(s){super(s),this.state={},this._inputId=`k_${this.props.id}`,this._service=new O.MaskingService,this._isPasted=!1,this._selection=[null,null],this._input=null,this.focus=()=>{this._input&&this._input.focus()},this.pasteHandler=t=>{const{selectionStart:i,selectionEnd:a}=t.target;a!==i&&(this._isPasted=!0,this._selection=[i||0,a||0])},this.onChangeHandler=t=>{const i=t.currentTarget,a=i.value,n=this._selection[0]||0,r=this._selection[1]||0;if(!this.props.mask){this._isPasted=!1,this._selection=[null,null],this.triggerOnChange(a,t);return}const u=this.value;let d;if(this._isPasted){this._isPasted=!1;const f=u.length-r,v=a.length-f;d=this._service.maskInRange(a.slice(n,v),u,n,r)}else d=this._service.maskInput(a,u,i.selectionStart||0);this._selection=[d.selection,d.selection],this.triggerOnChange(d.value,t)},this.focusHandler=t=>{this.state.focused||(this.setState({focused:!0}),this.props.onFocus&&this.props.onFocus.call(void 0,{target:this,syntheticEvent:t,nativeEvent:t.nativeEvent}))},this.blurHandler=t=>{this.state.focused&&(this.setState({focused:!1}),this.props.onBlur&&this.props.onBlur.call(void 0,{target:this,syntheticEvent:t,nativeEvent:t.nativeEvent}))},this.setValidity=()=>{this.element&&this.element.setCustomValidity(this.validity.valid?"":this.props.validationMessage||"")},o.validatePackage(E.packageMetadata)}get element(){return this._input}get value(){return this._valueDuringOnChange!==void 0?this._valueDuringOnChange:this.props.value!==void 0?this.props.value:this.state.value!==void 0?this.state.value:this.props.defaultValue!==void 0?this.props.defaultValue:""}get rawValue(){return this._service.rawValue(this.value)}get validity(){const s=this.value,t=this._service.validationValue(s),i=this.props.validationMessage!==void 0,a=this.props.valid!==void 0?this.props.valid:(!this.required||!!t)&&(!this.props.maskValidation||!this.props.prompt||s.indexOf(this.props.prompt)===-1);return{customError:i,valid:a,valueMissing:!t}}get validityStyles(){return this.props.validityStyles!==void 0?this.props.validityStyles:l.defaultProps.validityStyles}get required(){return this.props.required!==void 0?this.props.required:l.defaultProps.required}get name(){return this.props.name}componentDidUpdate(s,t){if(this.element&&this.state.focused&&t.focused){let[i,a]=this._selection;const n=s.selection,r=this.props.selection;(!n&&r||n&&r&&(n.start!==r.start||n.end!==r.end))&&(i=r.start,a=r.end),i!==null&&a!==null&&this.element.setSelectionRange(i,a)}h.maskingChanged(s,this.props)&&this.updateService(),this.setValidity()}componentDidMount(){this.updateService(),this.setValidity()}render(){const{size:s=l.defaultProps.size,fillMode:t=l.defaultProps.fillMode,rounded:i=l.defaultProps.rounded,autoFocus:a=l.defaultProps.autoFocus,unstyled:n,className:r}=this.props,u=this.props.id||this._inputId,d=!this.validityStyles||this.validity.valid,f=this.props.style||{},v=n&&n.uMaskedTextBox,{prefix:x=l.defaultProps.prefix,suffix:P=l.defaultProps.suffix}=this.props,[C]=o.useCustomComponent(x),[k]=o.useCustomComponent(P),m=p.createElement("span",{dir:this.props.dir,className:o.classNames(o.uMaskedTextBox.wrapper({c:v,invalid:!d,disabled:this.props.disabled,size:s,fillMode:t,rounded:i}),r),style:this.props.label?f:{width:this.props.width,...f}},p.createElement(C,null),p.createElement("input",{type:"text",autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",autoFocus:a,spellCheck:!1,className:o.classNames(o.uMaskedTextBox.input({c:v})),value:this.value,id:u,"aria-labelledby":this.props.ariaLabelledBy,"aria-describedby":this.props.ariaDescribedBy,"aria-placeholder":this.props.mask,name:this.props.name,tabIndex:o.getTabIndex(this.props.tabIndex,this.props.disabled,!0),accessKey:this.props.accessKey,title:this.props.title,disabled:this.props.disabled||void 0,readOnly:this.props.readonly||void 0,placeholder:this.props.placeholder,ref:_=>this._input=_,onChange:this.onChangeHandler,onPaste:this.pasteHandler,onFocus:this.focusHandler,onBlur:this.blurHandler,onDragStart:h.returnFalse,onDrop:h.returnFalse}),p.createElement(k,null));return this.props.label?p.createElement(M.FloatingLabel,{label:this.props.label,editorId:u,editorValue:this.value,editorValid:d,editorDisabled:this.props.disabled,editorPlaceholder:this.props.placeholder,children:m,style:{width:this.props.width},dir:this.props.dir}):m}triggerOnChange(s,t){if(this.setState({value:s}),this.props.onChange){this._valueDuringOnChange=s;const i={syntheticEvent:t,nativeEvent:t.nativeEvent,selectionStart:this._selection[0],selectionEnd:this._selection[1],target:this,value:this.value};this.props.onChange.call(void 0,i),this._valueDuringOnChange=void 0}}updateService(s){const t=Object.assign({includeLiterals:this.props.includeLiterals,mask:this.props.mask,prompt:this.props.prompt,promptPlaceholder:this.props.promptPlaceholder,rules:this.rules},s);this._service.update(t)}get rules(){return Object.assign({},h.defaultRules,this.props.rules)}};l.displayName="MaskedTextBox",l.propTypes={value:e.string,defaultValue:e.string,placeholder:e.string,title:e.string,dir:e.string,id:e.string,style:e.object,className:e.string,prefix:e.any,suffix:e.any,ariaLabelledBy:e.string,ariaDescribedBy:e.string,width:e.oneOfType([e.string,e.number]),tabIndex:e.number,accessKey:e.string,disabled:e.bool,readonly:e.bool,prompt:e.string,promptPlaceholder:e.string,includeLiterals:e.bool,maskValidation:e.bool,mask:e.string,rules:function(s,t,i){const a=s.rules;return a!==void 0&&!Object.entries(a).some(r=>typeof r!="string"||!(a[r]instanceof RegExp))?new Error("Invalid prop `"+t+"` supplied to `"+i+"`. Validation failed."):null},selection:e.shape({start:e.number.isRequired,end:e.number.isRequired}),name:e.string,label:e.string,validationMessage:e.string,required:e.bool,valid:e.bool,validityStyles:e.bool,onChange:e.func,size:e.oneOf([null,"small","medium","large"]),rounded:e.oneOf([null,"small","medium","large","full"]),fillMode:e.oneOf([null,"solid","flat","outline"]),autoFocus:e.bool},l.defaultProps={prompt:"_",promptPlaceholder:" ",includeLiterals:!1,maskValidation:!0,rules:h.defaultRules,required:!1,validityStyles:!0,prefix:s=>null,suffix:s=>null,size:"medium",rounded:"medium",fillMode:"solid",autoFocus:!1};let g=l;const y=o.createPropsContext(),b=o.withIdHOC(o.withPropsContext(y,o.withUnstyledHOC(g)));b.displayName="KendoReactMaskedTextBox";exports.MaskedTextBox=b;exports.MaskedTextBoxPropsContext=y;exports.MaskedTextBoxWithoutContext=g;