@progress/kendo-react-inputs 7.4.0 → 7.5.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/colors/ColorInput.js +1 -1
- package/colors/ColorInput.mjs +40 -41
- package/colors/ColorPalette.js +1 -1
- package/colors/ColorPalette.mjs +1 -1
- package/colors/FlatColorPicker.js +1 -1
- package/colors/FlatColorPicker.mjs +71 -71
- package/colors/Picker.js +1 -1
- package/colors/Picker.mjs +15 -14
- package/dist/cdn/js/kendo-react-inputs.js +1 -1
- package/index.d.mts +32 -2
- package/index.d.ts +32 -2
- package/package-metadata.mjs +1 -1
- package/package.json +9 -9
- package/radiobutton/RadioButton.js +1 -1
- package/radiobutton/RadioButton.mjs +36 -35
- package/radiobutton/RadioGroup.js +1 -1
- package/radiobutton/RadioGroup.mjs +1 -1
- package/range-slider/RangeSlider.js +7 -7
- package/range-slider/RangeSlider.mjs +62 -60
- package/signature/Signature.js +1 -1
- package/signature/Signature.mjs +80 -79
- package/slider/Slider.js +1 -1
- package/slider/Slider.mjs +27 -25
- package/slider/SliderLabel.js +1 -1
- package/slider/SliderLabel.mjs +13 -18
- package/switch/Switch.js +1 -1
- package/switch/Switch.mjs +37 -38
- package/textarea/TextArea.js +1 -1
- package/textarea/TextArea.mjs +78 -76
package/switch/Switch.mjs
CHANGED
|
@@ -6,29 +6,29 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
|
-
import * as
|
|
9
|
+
import * as s from "react";
|
|
10
10
|
import t from "prop-types";
|
|
11
|
-
import { dispatchEvent as C, noop as h, Keys as
|
|
12
|
-
import { provideLocalizationService as
|
|
13
|
-
import { switchValidation as
|
|
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
|
|
15
|
+
const a = class a extends s.Component {
|
|
16
16
|
/**
|
|
17
17
|
* @hidden
|
|
18
18
|
*/
|
|
19
|
-
constructor(
|
|
20
|
-
super(
|
|
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(
|
|
22
|
+
this.validity.valid ? "" : this.props.validationMessage || this.defaultValidationMessage.toLanguageString(v, B[v])
|
|
23
23
|
);
|
|
24
|
-
}, this.limit = (e, i,
|
|
25
|
-
const
|
|
26
|
-
return e < 0 ? 0 : 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 =
|
|
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__ */
|
|
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 ===
|
|
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:
|
|
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
|
|
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:
|
|
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 :
|
|
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 :
|
|
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:
|
|
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-${
|
|
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":
|
|
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__ */
|
|
147
|
+
return /* @__PURE__ */ s.createElement(
|
|
149
148
|
"span",
|
|
150
149
|
{
|
|
151
|
-
ref: (
|
|
152
|
-
this._wrapper =
|
|
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__ */
|
|
165
|
+
/* @__PURE__ */ s.createElement(
|
|
167
166
|
"span",
|
|
168
167
|
{
|
|
169
168
|
className: p(
|
|
170
169
|
"k-switch-track",
|
|
171
|
-
{ [`k-rounded-${
|
|
170
|
+
{ [`k-rounded-${g.roundedMap[o] || o}`]: o }
|
|
172
171
|
),
|
|
173
|
-
ref: (
|
|
174
|
-
this._element =
|
|
172
|
+
ref: (d) => {
|
|
173
|
+
this._element = d;
|
|
175
174
|
}
|
|
176
175
|
},
|
|
177
176
|
this.dummyInput(this.value),
|
|
178
|
-
/* @__PURE__ */
|
|
179
|
-
/* @__PURE__ */
|
|
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__ */
|
|
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
|
-
|
|
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
|
-
},
|
|
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
|
|
222
|
-
const V = D(), I = E(
|
|
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
|
-
|
|
226
|
+
c as SwitchWithoutContext
|
|
228
227
|
};
|
package/textarea/TextArea.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
|
|
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;
|
package/textarea/TextArea.mjs
CHANGED
|
@@ -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
|
|
12
|
-
const
|
|
13
|
-
const
|
|
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:
|
|
17
|
-
prefix:
|
|
18
|
-
suffix:
|
|
19
|
-
ariaDescribedBy:
|
|
20
|
-
ariaLabelledBy:
|
|
21
|
-
autoSize:
|
|
22
|
-
className:
|
|
23
|
-
defaultValue:
|
|
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:
|
|
28
|
-
id:
|
|
29
|
-
name:
|
|
30
|
-
placeholder:
|
|
31
|
-
style:
|
|
32
|
-
tabIndex:
|
|
27
|
+
rows: q,
|
|
28
|
+
id: j,
|
|
29
|
+
name: K,
|
|
30
|
+
placeholder: G,
|
|
31
|
+
style: J,
|
|
32
|
+
tabIndex: Q,
|
|
33
33
|
value: f,
|
|
34
|
-
valid:
|
|
35
|
-
validationMessage:
|
|
36
|
-
validityStyles:
|
|
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:
|
|
42
|
-
touched:
|
|
43
|
-
modified:
|
|
44
|
-
|
|
45
|
-
|
|
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
|
-
), [
|
|
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:
|
|
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
|
-
[
|
|
62
|
+
[T, l]
|
|
62
63
|
);
|
|
63
|
-
t.useImperativeHandle(
|
|
64
|
-
const [
|
|
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
|
-
|
|
69
|
+
g ? "" : P || ""
|
|
69
70
|
);
|
|
70
71
|
},
|
|
71
|
-
[
|
|
72
|
-
),
|
|
72
|
+
[g, P]
|
|
73
|
+
), de(
|
|
73
74
|
() => {
|
|
74
|
-
a.current &&
|
|
75
|
+
a.current && E(`${a.current.scrollHeight}px`);
|
|
75
76
|
},
|
|
76
77
|
[l]
|
|
77
78
|
);
|
|
78
|
-
const
|
|
79
|
+
const ae = t.useCallback(
|
|
79
80
|
(n) => {
|
|
80
|
-
const
|
|
81
|
-
|
|
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:
|
|
87
|
+
value: v
|
|
87
88
|
},
|
|
88
|
-
{ value:
|
|
89
|
+
{ value: v }
|
|
89
90
|
);
|
|
90
91
|
},
|
|
91
|
-
[
|
|
92
|
-
),
|
|
92
|
+
[B, m, r, s]
|
|
93
|
+
), re = t.useCallback(
|
|
93
94
|
(n) => {
|
|
94
|
-
p && !r &&
|
|
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
|
-
),
|
|
103
|
+
), ne = t.useCallback(
|
|
103
104
|
(n) => {
|
|
104
|
-
b && !r &&
|
|
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
|
-
),
|
|
113
|
-
id:
|
|
113
|
+
), oe = {
|
|
114
|
+
id: j || ee,
|
|
114
115
|
role: "textbox",
|
|
115
|
-
name:
|
|
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:
|
|
120
|
-
placeholder:
|
|
121
|
-
readOnly:
|
|
120
|
+
rows: q,
|
|
121
|
+
placeholder: G,
|
|
122
|
+
readOnly: L,
|
|
122
123
|
required: c,
|
|
123
|
-
tabIndex:
|
|
124
|
-
style:
|
|
125
|
-
"aria-labelledby":
|
|
126
|
-
"aria-describedby":
|
|
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:
|
|
130
|
-
...
|
|
131
|
-
onChange:
|
|
132
|
-
onFocus:
|
|
133
|
-
onBlur:
|
|
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:
|
|
139
|
+
className: M(
|
|
139
140
|
"k-input",
|
|
140
141
|
"k-textarea",
|
|
141
142
|
{
|
|
142
|
-
[`k-input-${
|
|
143
|
-
[`k-input-${
|
|
144
|
-
[`k-rounded-${
|
|
145
|
-
"k-invalid": !(
|
|
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
|
-
|
|
150
|
+
$
|
|
150
151
|
),
|
|
151
|
-
style:
|
|
152
|
-
dir:
|
|
152
|
+
style: J,
|
|
153
|
+
dir: te
|
|
153
154
|
},
|
|
154
|
-
|
|
155
|
-
/* @__PURE__ */ t.createElement("textarea", { ...
|
|
156
|
-
|
|
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
|
|
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 =
|
|
194
|
+
y.defaultProps = me;
|
|
193
195
|
export {
|
|
194
196
|
y as TextArea,
|
|
195
|
-
|
|
197
|
+
fe as TextAreaPropsContext
|
|
196
198
|
};
|