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

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/switch/Switch.mjs CHANGED
@@ -6,29 +6,29 @@
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
8
  "use client";
9
- import * as a from "react";
9
+ import * as s from "react";
10
10
  import t from "prop-types";
11
- import { dispatchEvent as C, noop as h, Keys as m, validatePackage as S, classNames as p, kendoThemeMaps as c, getTabIndex as N, createPropsContext as D, withIdHOC as E, withPropsContext as M } from "@progress/kendo-react-common";
12
- import { provideLocalizationService as L } from "@progress/kendo-react-intl";
13
- import { switchValidation as f, messages as B } from "../messages/index.mjs";
11
+ import { dispatchEvent as C, noop as h, Keys as f, validatePackage as S, classNames as p, kendoThemeMaps as g, getTabIndex as N, createPropsContext as D, withIdHOC as E, withPropsContext as L } from "@progress/kendo-react-common";
12
+ import { provideLocalizationService as M } from "@progress/kendo-react-intl";
13
+ import { switchValidation as v, messages as B } from "../messages/index.mjs";
14
14
  import { packageMetadata as O } from "../package-metadata.mjs";
15
- const r = class r extends a.Component {
15
+ const a = class a extends s.Component {
16
16
  /**
17
17
  * @hidden
18
18
  */
19
- constructor(l) {
20
- super(l), this.setValidity = () => {
19
+ constructor(r) {
20
+ super(r), this.setValidity = () => {
21
21
  this._input && this._input.setCustomValidity && this._input.setCustomValidity(
22
- this.validity.valid ? "" : this.props.validationMessage || this.defaultValidationMessage.toLanguageString(f, B[f])
22
+ this.validity.valid ? "" : this.props.validationMessage || this.defaultValidationMessage.toLanguageString(v, B[v])
23
23
  );
24
- }, this.limit = (e, i, s) => {
25
- const d = s.offsetWidth, o = i.offsetWidth;
26
- return e < 0 ? 0 : e > d - o ? d - o : e;
24
+ }, this.limit = (e, i, o) => {
25
+ const n = o.offsetWidth, l = i.offsetWidth;
26
+ return e < 0 ? 0 : e > n - l ? n - l : e;
27
27
  }, this.toggle = (e, i) => {
28
28
  this.setState({ checked: e }), this.valueDuringOnChange = e, C(this.props.onChange, i, this, { value: e }), this.valueDuringOnChange = void 0;
29
- }, this._element = null, this._wrapper = null, this._input = null, this._id = this.props.id, this.defaultValidationMessage = L(this), this.focus = () => {
29
+ }, this._element = null, this._wrapper = null, this._input = null, this._id = this.props.id, this.defaultValidationMessage = M(this), this.focus = () => {
30
30
  this.actionElement && this.actionElement.focus();
31
- }, this.dummyInput = (e) => /* @__PURE__ */ a.createElement(
31
+ }, this.dummyInput = (e) => /* @__PURE__ */ s.createElement(
32
32
  "input",
33
33
  {
34
34
  type: "checkbox",
@@ -49,7 +49,7 @@ const r = class r extends a.Component {
49
49
  if (this.props.disabled)
50
50
  return;
51
51
  const { keyCode: i } = e;
52
- (i === m.space || i === m.enter) && (this.toggle(!this.value, e), e.preventDefault());
52
+ (i === f.space || i === f.enter) && (this.toggle(!this.value, e), e.preventDefault());
53
53
  }, this.handleWrapperFocus = (e) => {
54
54
  if (this.props.disabled)
55
55
  return;
@@ -63,7 +63,7 @@ const r = class r extends a.Component {
63
63
  const { onBlur: i } = this.props;
64
64
  i && i.call(void 0, e);
65
65
  }, S(O), this.state = {
66
- checked: l.defaultChecked || r.defaultProps.defaultChecked,
66
+ checked: r.defaultChecked || a.defaultProps.defaultChecked,
67
67
  focused: !1
68
68
  };
69
69
  }
@@ -89,9 +89,9 @@ const r = class r extends a.Component {
89
89
  * Represents the validity state into which the Switch is set.
90
90
  */
91
91
  get validity() {
92
- const l = this.props.validationMessage !== void 0, e = this.props.valid !== void 0 ? this.props.valid : this.props.required ? !!this.value : !0, i = this.props.valid !== void 0 ? this.props.valid : e;
92
+ const r = this.props.validationMessage !== void 0, e = this.props.valid !== void 0 ? this.props.valid : this.props.required ? !!this.value : !0, i = this.props.valid !== void 0 ? this.props.valid : e;
93
93
  return {
94
- customError: l,
94
+ customError: r,
95
95
  valid: i,
96
96
  valueMissing: this.value === null
97
97
  };
@@ -100,13 +100,13 @@ const r = class r extends a.Component {
100
100
  * @hidden
101
101
  */
102
102
  get validityStyles() {
103
- return this.props.validityStyles !== void 0 ? this.props.validityStyles : r.defaultProps.validityStyles;
103
+ return this.props.validityStyles !== void 0 ? this.props.validityStyles : a.defaultProps.validityStyles;
104
104
  }
105
105
  /**
106
106
  * @hidden
107
107
  */
108
108
  get required() {
109
- return this.props.required !== void 0 ? this.props.required : r.defaultProps.required;
109
+ return this.props.required !== void 0 ? this.props.required : a.defaultProps.required;
110
110
  }
111
111
  /**
112
112
  * @hidden
@@ -124,16 +124,15 @@ const r = class r extends a.Component {
124
124
  * @hidden
125
125
  */
126
126
  render() {
127
- const { focused: l } = this.state, { dir: e, disabled: i, trackRounded: s, thumbRounded: d, size: o, offLabel: g, onLabel: v, tabIndex: b } = this.props;
127
+ const { focused: r } = this.state, { dir: e, disabled: i, trackRounded: o, thumbRounded: n, size: l, offLabel: u, onLabel: m, tabIndex: b } = this.props;
128
128
  this.dir = e || this.element && getComputedStyle(this.element).direction || void 0;
129
129
  const y = !this.validityStyles || this.validity.valid, k = p(
130
130
  "k-switch",
131
131
  {
132
- [`k-switch-${c.sizeMap[o] || o}`]: o,
133
- [`k-rounded-${c.roundedMap[s] || s}`]: s,
132
+ [`k-switch-${g.sizeMap[l] || l}`]: l,
134
133
  "k-switch-on": this.value,
135
134
  "k-switch-off": !this.value,
136
- "k-focus": l,
135
+ "k-focus": r,
137
136
  "k-disabled": i,
138
137
  "k-invalid": !y
139
138
  },
@@ -145,11 +144,11 @@ const r = class r extends a.Component {
145
144
  "aria-describedby": this.props.ariaDescribedBy,
146
145
  "aria-label": this.props.ariaLabel
147
146
  };
148
- return /* @__PURE__ */ a.createElement(
147
+ return /* @__PURE__ */ s.createElement(
149
148
  "span",
150
149
  {
151
- ref: (n) => {
152
- this._wrapper = n;
150
+ ref: (d) => {
151
+ this._wrapper = d;
153
152
  },
154
153
  role: "switch",
155
154
  ...w,
@@ -163,26 +162,26 @@ const r = class r extends a.Component {
163
162
  accessKey: this.props.accessKey,
164
163
  id: this.props.id || this._id
165
164
  },
166
- /* @__PURE__ */ a.createElement(
165
+ /* @__PURE__ */ s.createElement(
167
166
  "span",
168
167
  {
169
168
  className: p(
170
169
  "k-switch-track",
171
- { [`k-rounded-${c.roundedMap[s] || s}`]: s }
170
+ { [`k-rounded-${g.roundedMap[o] || o}`]: o }
172
171
  ),
173
- ref: (n) => {
174
- this._element = n;
172
+ ref: (d) => {
173
+ this._element = d;
175
174
  }
176
175
  },
177
176
  this.dummyInput(this.value),
178
- /* @__PURE__ */ a.createElement("span", { className: "k-switch-label-on" }, v),
179
- /* @__PURE__ */ a.createElement("span", { className: "k-switch-label-off" }, g)
177
+ m ? /* @__PURE__ */ s.createElement("span", { className: "k-switch-label-on" }, m) : "",
178
+ u ? /* @__PURE__ */ s.createElement("span", { className: "k-switch-label-off" }, u) : ""
180
179
  ),
181
- /* @__PURE__ */ a.createElement("span", { className: "k-switch-thumb-wrap" }, /* @__PURE__ */ a.createElement("span", { className: p("k-switch-thumb", { [`k-rounded-${d}`]: d }) }))
180
+ /* @__PURE__ */ s.createElement("span", { className: "k-switch-thumb-wrap" }, /* @__PURE__ */ s.createElement("span", { className: p("k-switch-thumb", { [`k-rounded-${n}`]: n }) }))
182
181
  );
183
182
  }
184
183
  };
185
- r.displayName = "Switch", r.propTypes = {
184
+ a.displayName = "Switch", a.propTypes = {
186
185
  accessKey: t.string,
187
186
  checked: t.bool,
188
187
  className: t.string,
@@ -205,7 +204,7 @@ r.displayName = "Switch", r.propTypes = {
205
204
  onChange: t.any,
206
205
  onFocus: t.any,
207
206
  onLabel: t.string
208
- }, r.defaultProps = {
207
+ }, a.defaultProps = {
209
208
  disabled: !1,
210
209
  defaultChecked: !1,
211
210
  size: "medium",
@@ -218,11 +217,11 @@ r.displayName = "Switch", r.propTypes = {
218
217
  required: !1,
219
218
  validityStyles: !0
220
219
  };
221
- let u = r;
222
- const V = D(), I = E(M(V, u));
220
+ let c = a;
221
+ const V = D(), I = E(L(V, c));
223
222
  I.displayName = "KendoReactSwitch";
224
223
  export {
225
224
  I as Switch,
226
225
  V as SwitchPropsContext,
227
- u as SwitchWithoutContext
226
+ c as SwitchWithoutContext
228
227
  };
@@ -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 re=require("react"),e=require("prop-types"),a=require("@progress/kendo-react-common");function ne(s){const u=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const o in s)if(o!=="default"){const l=Object.getOwnPropertyDescriptor(s,o);Object.defineProperty(u,o,l.get?l:{enumerable:!0,get:()=>s[o]})}}return u.default=s,Object.freeze(u)}const t=ne(re),V=a.createPropsContext(),m=t.forwardRef((s,u)=>{const o=a.usePropsContext(V,s),{size:l,rounded:p,fillMode:k,prefix:z=void 0,suffix:A=void 0,ariaDescribedBy:B,ariaLabelledBy:w,autoSize:N,className:j,defaultValue:R,disabled:n,readOnly:q,required:b,rows:D,id:H,name:F,placeholder:$,style:L,tabIndex:_,value:g,valid:P,validationMessage:T,validityStyles:O,onChange:x,onFocus:v,onBlur:y,visited:se,touched:le,modified:ie,...K}=o,r=t.useRef(null),S=t.useCallback(()=>{r.current&&r.current.focus()},[]),[E,M]=t.useState(R),[G,J]=a.useCustomComponent(z),[Q,U]=a.useCustomComponent(A),d=g!==void 0,c=d?g:E,f=t.useCallback(()=>({element:r,focus:S,get value(){return c},get name(){return r.current&&r.current.name}}),[S,c]);t.useImperativeHandle(u,f);const[W,I]=t.useState("auto"),X=a.useId(),Y=a.useDir(r,o.dir),h=P!==void 0?P:b?!!c:!0;t.useEffect(()=>{r.current&&r.current.setCustomValidity&&r.current.setCustomValidity(h?"":T||"")},[h,T]),a.useIsomorphicLayoutEffect(()=>{r.current&&I(`${r.current.scrollHeight}px`)},[c]);const Z=t.useCallback(i=>{const C=i.target.value;I("auto"),!d&&!n&&M(C),x&&!n&&a.dispatchEvent(x,i,{...f(),value:C},{value:C})},[M,x,n,d]),ee=t.useCallback(i=>{v&&!n&&a.dispatchEvent(v,i,f(),void 0)},[v,n]),te=t.useCallback(i=>{y&&!n&&a.dispatchEvent(y,i,f(),void 0)},[y,n]),ae={id:H||X,role:"textbox",name:F,className:"k-input-inner !k-overflow-auto",ref:r,disabled:n,rows:D,placeholder:$,readOnly:q,required:b,tabIndex:a.getTabIndex(_,n),style:N?{resize:"none",overflow:"hidden",height:W}:{},"aria-labelledby":w,"aria-describedby":B,"aria-multiline":!0,"aria-disabled":n||void 0,value:d?g:E,...K,onChange:Z,onFocus:ee,onBlur:te};return t.createElement("span",{className:a.classNames("k-input","k-textarea",{[`k-input-${a.kendoThemeMaps.sizeMap[l]||l}`]:l,[`k-input-${k}`]:k,[`k-rounded-${a.kendoThemeMaps.roundedMap[p]||p}`]:p,"k-invalid":!(h||O!==void 0||O===!0),"k-required":b,"k-disabled":n},j),style:L,dir:Y},o.prefix&&t.createElement(G,{...J}),t.createElement("textarea",{...ae}),o.suffix&&t.createElement(Q,{...U}))});m.propTypes={ariaDescribedBy:e.string,ariaLabelledBy:e.string,autoSize:e.bool,className:e.string,defaultValue:e.string,dir:e.string,disabled:e.bool,readOnly:e.bool,rows:e.number,id:e.string,name:e.string,placeholder:e.string,style:e.object,tabIndex:e.number,value:e.oneOfType([e.string,e.arrayOf(e.string),e.number]),onChange:e.func,onFocus:e.func,onBlur:e.func,size:e.oneOf([null,"small","medium","large"]),rounded:e.oneOf([null,"small","medium","large","full"]),fillMode:e.oneOf([null,"solid","flat","outline"])};const oe={size:"medium",rounded:"medium",fillMode:"solid"};m.displayName="KendoTextArea";m.defaultProps=oe;exports.TextArea=m;exports.TextAreaPropsContext=V;
8
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ne=require("react"),e=require("prop-types"),a=require("@progress/kendo-react-common");function oe(s){const u=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const o in s)if(o!=="default"){const l=Object.getOwnPropertyDescriptor(s,o);Object.defineProperty(u,o,l.get?l:{enumerable:!0,get:()=>s[o]})}}return u.default=s,Object.freeze(u)}const t=oe(ne),A=a.createPropsContext(),m=t.forwardRef((s,u)=>{const o=a.usePropsContext(A,s),{size:l,rounded:p,fillMode:O,prefix:B=void 0,suffix:N=void 0,ariaDescribedBy:w,ariaLabelledBy:j,autoSize:P,className:R,defaultValue:q,disabled:n,readOnly:D,required:b,rows:H,id:F,name:$,placeholder:L,style:_,tabIndex:K,value:g,valid:T,validationMessage:z,validityStyles:S,onChange:v,onFocus:x,onBlur:y,visited:le,touched:ie,modified:ue,resizable:h,...G}=o,r=t.useRef(null),E=t.useCallback(()=>{r.current&&r.current.focus()},[]),[M,I]=t.useState(q),[J,Q]=a.useCustomComponent(B),[U,W]=a.useCustomComponent(N),d=g!==void 0,c=d?g:M,f=t.useCallback(()=>({element:r,focus:E,get value(){return c},get name(){return r.current&&r.current.name}}),[E,c]);t.useImperativeHandle(u,f);const[X,V]=t.useState("auto"),Y=a.useId(),Z=a.useDir(r,o.dir),C=T!==void 0?T:b?!!c:!0;t.useEffect(()=>{r.current&&r.current.setCustomValidity&&r.current.setCustomValidity(C?"":z||"")},[C,z]),a.useIsomorphicLayoutEffect(()=>{r.current&&V(`${r.current.scrollHeight}px`)},[c]);const ee=t.useCallback(i=>{const k=i.target.value;V("auto"),!d&&!n&&I(k),v&&!n&&a.dispatchEvent(v,i,{...f(),value:k},{value:k})},[I,v,n,d]),te=t.useCallback(i=>{x&&!n&&a.dispatchEvent(x,i,f(),void 0)},[x,n]),ae=t.useCallback(i=>{y&&!n&&a.dispatchEvent(y,i,f(),void 0)},[y,n]),re={id:F||Y,role:"textbox",name:$,className:a.classNames("k-input-inner","!k-overflow-auto",{"k-resize":!P&&h!=="none"}),ref:r,disabled:n,rows:H,placeholder:L,readOnly:D,required:b,tabIndex:a.getTabIndex(K,n),style:P?{resize:"none",overflow:"hidden",height:X}:h?{resize:h}:{},"aria-labelledby":j,"aria-describedby":w,"aria-multiline":!0,"aria-disabled":n||void 0,value:d?g:M,...G,onChange:ee,onFocus:te,onBlur:ae};return t.createElement("span",{className:a.classNames("k-input","k-textarea",{[`k-input-${a.kendoThemeMaps.sizeMap[l]||l}`]:l,[`k-input-${O}`]:O,[`k-rounded-${a.kendoThemeMaps.roundedMap[p]||p}`]:p,"k-invalid":!(C||S!==void 0||S===!0),"k-required":b,"k-disabled":n},R),style:_,dir:Z},o.prefix&&t.createElement(J,{...Q}),t.createElement("textarea",{...re}),o.suffix&&t.createElement(U,{...W}))});m.propTypes={ariaDescribedBy:e.string,ariaLabelledBy:e.string,autoSize:e.bool,className:e.string,defaultValue:e.string,dir:e.string,disabled:e.bool,readOnly:e.bool,rows:e.number,id:e.string,name:e.string,placeholder:e.string,style:e.object,tabIndex:e.number,value:e.oneOfType([e.string,e.arrayOf(e.string),e.number]),onChange:e.func,onFocus:e.func,onBlur:e.func,size:e.oneOf([null,"small","medium","large"]),rounded:e.oneOf([null,"small","medium","large","full"]),fillMode:e.oneOf([null,"solid","flat","outline"]),resizable:e.oneOf(["none","both","horizontal","vertical"])};const se={size:"medium",rounded:"medium",fillMode:"solid"};m.displayName="KendoTextArea";m.defaultProps=se;exports.TextArea=m;exports.TextAreaPropsContext=A;
@@ -8,49 +8,50 @@
8
8
  "use client";
9
9
  import * as t from "react";
10
10
  import e from "prop-types";
11
- import { createPropsContext as ne, usePropsContext as se, useCustomComponent as E, useId as oe, useDir as le, useIsomorphicLayoutEffect as ie, dispatchEvent as v, getTabIndex as ue, classNames as de, kendoThemeMaps as z } from "@progress/kendo-react-common";
12
- const ce = ne(), y = t.forwardRef((M, O) => {
13
- const s = se(ce, M), {
11
+ import { createPropsContext as se, usePropsContext as le, useCustomComponent as O, useId as ie, useDir as ue, useIsomorphicLayoutEffect as de, dispatchEvent as h, classNames as M, getTabIndex as ce, kendoThemeMaps as S } from "@progress/kendo-react-common";
12
+ const fe = se(), y = t.forwardRef((w, A) => {
13
+ const o = le(fe, w), {
14
14
  size: u,
15
15
  rounded: d,
16
- fillMode: h,
17
- prefix: S = void 0,
18
- suffix: w = void 0,
19
- ariaDescribedBy: A,
20
- ariaLabelledBy: N,
21
- autoSize: H,
22
- className: F,
23
- defaultValue: R,
16
+ fillMode: k,
17
+ prefix: N = void 0,
18
+ suffix: H = void 0,
19
+ ariaDescribedBy: F,
20
+ ariaLabelledBy: R,
21
+ autoSize: C,
22
+ className: $,
23
+ defaultValue: D,
24
24
  disabled: r,
25
- readOnly: $,
25
+ readOnly: L,
26
26
  required: c,
27
- rows: D,
28
- id: L,
29
- name: q,
30
- placeholder: j,
31
- style: K,
32
- tabIndex: G,
27
+ rows: q,
28
+ id: j,
29
+ name: K,
30
+ placeholder: G,
31
+ style: J,
32
+ tabIndex: Q,
33
33
  value: f,
34
- valid: C,
35
- validationMessage: k,
36
- validityStyles: P,
34
+ valid: z,
35
+ validationMessage: P,
36
+ validityStyles: I,
37
37
  onChange: m,
38
38
  onFocus: p,
39
39
  onBlur: b,
40
40
  // Removed to support direct use in Form Field component
41
- visited: me,
42
- touched: pe,
43
- modified: be,
44
- ...J
45
- } = s, a = t.useRef(null), I = t.useCallback(
41
+ visited: pe,
42
+ touched: be,
43
+ modified: xe,
44
+ resizable: x,
45
+ ...U
46
+ } = o, a = t.useRef(null), T = t.useCallback(
46
47
  () => {
47
48
  a.current && a.current.focus();
48
49
  },
49
50
  []
50
- ), [T, V] = t.useState(R), [Q, U] = E(S), [W, X] = E(w), o = f !== void 0, l = o ? f : T, i = t.useCallback(
51
+ ), [V, B] = t.useState(D), [W, X] = O(N), [Y, Z] = O(H), s = f !== void 0, l = s ? f : V, i = t.useCallback(
51
52
  () => ({
52
53
  element: a,
53
- focus: I,
54
+ focus: T,
54
55
  get value() {
55
56
  return l;
56
57
  },
@@ -58,40 +59,40 @@ const ce = ne(), y = t.forwardRef((M, O) => {
58
59
  return a.current && a.current.name;
59
60
  }
60
61
  }),
61
- [I, l]
62
+ [T, l]
62
63
  );
63
- t.useImperativeHandle(O, i);
64
- const [Y, B] = t.useState("auto"), Z = oe(), _ = le(a, s.dir), x = C !== void 0 ? C : c ? !!l : !0;
64
+ t.useImperativeHandle(A, i);
65
+ const [_, E] = t.useState("auto"), ee = ie(), te = ue(a, o.dir), g = z !== void 0 ? z : c ? !!l : !0;
65
66
  t.useEffect(
66
67
  () => {
67
68
  a.current && a.current.setCustomValidity && a.current.setCustomValidity(
68
- x ? "" : k || ""
69
+ g ? "" : P || ""
69
70
  );
70
71
  },
71
- [x, k]
72
- ), ie(
72
+ [g, P]
73
+ ), de(
73
74
  () => {
74
- a.current && B(`${a.current.scrollHeight}px`);
75
+ a.current && E(`${a.current.scrollHeight}px`);
75
76
  },
76
77
  [l]
77
78
  );
78
- const ee = t.useCallback(
79
+ const ae = t.useCallback(
79
80
  (n) => {
80
- const g = n.target.value;
81
- B("auto"), !o && !r && V(g), m && !r && v(
81
+ const v = n.target.value;
82
+ E("auto"), !s && !r && B(v), m && !r && h(
82
83
  m,
83
84
  n,
84
85
  {
85
86
  ...i(),
86
- value: g
87
+ value: v
87
88
  },
88
- { value: g }
89
+ { value: v }
89
90
  );
90
91
  },
91
- [V, m, r, o]
92
- ), te = t.useCallback(
92
+ [B, m, r, s]
93
+ ), re = t.useCallback(
93
94
  (n) => {
94
- p && !r && v(
95
+ p && !r && h(
95
96
  p,
96
97
  n,
97
98
  i(),
@@ -99,9 +100,9 @@ const ce = ne(), y = t.forwardRef((M, O) => {
99
100
  );
100
101
  },
101
102
  [p, r]
102
- ), ae = t.useCallback(
103
+ ), ne = t.useCallback(
103
104
  (n) => {
104
- b && !r && v(
105
+ b && !r && h(
105
106
  b,
106
107
  n,
107
108
  i(),
@@ -109,51 +110,51 @@ const ce = ne(), y = t.forwardRef((M, O) => {
109
110
  );
110
111
  },
111
112
  [b, r]
112
- ), re = {
113
- id: L || Z,
113
+ ), oe = {
114
+ id: j || ee,
114
115
  role: "textbox",
115
- name: q,
116
- className: "k-input-inner !k-overflow-auto",
116
+ name: K,
117
+ className: M("k-input-inner", "!k-overflow-auto", { "k-resize": !C && x !== "none" }),
117
118
  ref: a,
118
119
  disabled: r,
119
- rows: D,
120
- placeholder: j,
121
- readOnly: $,
120
+ rows: q,
121
+ placeholder: G,
122
+ readOnly: L,
122
123
  required: c,
123
- tabIndex: ue(G, r),
124
- style: H ? { resize: "none", overflow: "hidden", height: Y } : {},
125
- "aria-labelledby": N,
126
- "aria-describedby": A,
124
+ tabIndex: ce(Q, r),
125
+ style: C ? { resize: "none", overflow: "hidden", height: _ } : x ? { resize: x } : {},
126
+ "aria-labelledby": R,
127
+ "aria-describedby": F,
127
128
  "aria-multiline": !0,
128
129
  "aria-disabled": r || void 0,
129
- value: o ? f : T,
130
- ...J,
131
- onChange: ee,
132
- onFocus: te,
133
- onBlur: ae
130
+ value: s ? f : V,
131
+ ...U,
132
+ onChange: ae,
133
+ onFocus: re,
134
+ onBlur: ne
134
135
  };
135
136
  return /* @__PURE__ */ t.createElement(
136
137
  "span",
137
138
  {
138
- className: de(
139
+ className: M(
139
140
  "k-input",
140
141
  "k-textarea",
141
142
  {
142
- [`k-input-${z.sizeMap[u] || u}`]: u,
143
- [`k-input-${h}`]: h,
144
- [`k-rounded-${z.roundedMap[d] || d}`]: d,
145
- "k-invalid": !(x || P !== void 0 || P === !0),
143
+ [`k-input-${S.sizeMap[u] || u}`]: u,
144
+ [`k-input-${k}`]: k,
145
+ [`k-rounded-${S.roundedMap[d] || d}`]: d,
146
+ "k-invalid": !(g || I !== void 0 || I === !0),
146
147
  "k-required": c,
147
148
  "k-disabled": r
148
149
  },
149
- F
150
+ $
150
151
  ),
151
- style: K,
152
- dir: _
152
+ style: J,
153
+ dir: te
153
154
  },
154
- s.prefix && /* @__PURE__ */ t.createElement(Q, { ...U }),
155
- /* @__PURE__ */ t.createElement("textarea", { ...re }),
156
- s.suffix && /* @__PURE__ */ t.createElement(W, { ...X })
155
+ o.prefix && /* @__PURE__ */ t.createElement(W, { ...X }),
156
+ /* @__PURE__ */ t.createElement("textarea", { ...oe }),
157
+ o.suffix && /* @__PURE__ */ t.createElement(Y, { ...Z })
157
158
  );
158
159
  });
159
160
  y.propTypes = {
@@ -181,16 +182,17 @@ y.propTypes = {
181
182
  onBlur: e.func,
182
183
  size: e.oneOf([null, "small", "medium", "large"]),
183
184
  rounded: e.oneOf([null, "small", "medium", "large", "full"]),
184
- fillMode: e.oneOf([null, "solid", "flat", "outline"])
185
+ fillMode: e.oneOf([null, "solid", "flat", "outline"]),
186
+ resizable: e.oneOf(["none", "both", "horizontal", "vertical"])
185
187
  };
186
- const fe = {
188
+ const me = {
187
189
  size: "medium",
188
190
  rounded: "medium",
189
191
  fillMode: "solid"
190
192
  };
191
193
  y.displayName = "KendoTextArea";
192
- y.defaultProps = fe;
194
+ y.defaultProps = me;
193
195
  export {
194
196
  y as TextArea,
195
- ce as TextAreaPropsContext
197
+ fe as TextAreaPropsContext
196
198
  };