@progress/kendo-react-inputs 15.2.0-develop.1 → 15.2.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/checkbox/Checkbox.js +1 -1
- package/checkbox/Checkbox.mjs +79 -77
- package/colors/ColorContrastLabels.js +1 -1
- package/colors/ColorContrastLabels.mjs +2 -2
- package/colors/ColorGradient.js +1 -1
- package/colors/ColorGradient.mjs +51 -52
- package/colors/ColorPalette.js +1 -1
- package/colors/ColorPalette.mjs +71 -72
- package/colors/ColorPicker.js +1 -1
- package/colors/ColorPicker.mjs +247 -239
- package/colors/FlatColorPicker.d.ts +4 -4
- package/colors/FlatColorPicker.js +1 -1
- package/colors/FlatColorPicker.mjs +104 -100
- package/colors/interfaces/ColorPaletteProps.d.ts +7 -0
- package/colors/interfaces/ColorPickerPaletteSettings.d.ts +5 -0
- package/dist/cdn/js/kendo-react-inputs.js +1 -1
- package/maskedtextbox/MaskedTextBox.d.ts +1 -0
- package/maskedtextbox/MaskedTextBox.js +1 -1
- package/maskedtextbox/MaskedTextBox.mjs +26 -23
- package/maskedtextbox/MaskedTextBoxProps.d.ts +7 -0
- package/numerictextbox/NumericTextBox.js +1 -1
- package/numerictextbox/NumericTextBox.mjs +2 -2
- package/otpinput/OTPInput.js +1 -1
- package/otpinput/OTPInput.mjs +141 -143
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +10 -10
- package/radiobutton/RadioButton.js +1 -1
- package/radiobutton/RadioButton.mjs +32 -30
- package/range-slider/RangeSlider.js +11 -11
- package/range-slider/RangeSlider.mjs +54 -54
- package/rating/Rating.d.ts +12 -0
- package/rating/Rating.js +2 -2
- package/rating/Rating.mjs +91 -92
- package/slider/Slider.d.ts +12 -0
- package/slider/Slider.js +1 -1
- package/slider/Slider.mjs +61 -56
- package/switch/Switch.d.ts +15 -0
- package/switch/Switch.js +1 -1
- package/switch/Switch.mjs +82 -79
- package/textarea/TextArea.js +1 -1
- package/textarea/TextArea.mjs +11 -12
package/textarea/TextArea.mjs
CHANGED
|
@@ -14,7 +14,7 @@ const Fe = Pe(), L = t.forwardRef((j, W) => {
|
|
|
14
14
|
rounded: b = i.rounded,
|
|
15
15
|
fillMode: w = i.fillMode,
|
|
16
16
|
autoFocus: G = i.autoFocus,
|
|
17
|
-
flow:
|
|
17
|
+
flow: g = i.flow,
|
|
18
18
|
prefix: J = null,
|
|
19
19
|
suffix: Q = null,
|
|
20
20
|
ariaDescribedBy: U,
|
|
@@ -31,7 +31,7 @@ const Fe = Pe(), L = t.forwardRef((j, W) => {
|
|
|
31
31
|
placeholder: te,
|
|
32
32
|
style: ae,
|
|
33
33
|
tabIndex: re,
|
|
34
|
-
value:
|
|
34
|
+
value: v,
|
|
35
35
|
valid: I,
|
|
36
36
|
validationMessage: M,
|
|
37
37
|
validityStyles: S,
|
|
@@ -50,7 +50,7 @@ const Fe = Pe(), L = t.forwardRef((j, W) => {
|
|
|
50
50
|
a.current && a.current.focus();
|
|
51
51
|
}, []), E = t.useCallback(() => {
|
|
52
52
|
a.current && a.current.blur();
|
|
53
|
-
}, []), [O, B] = t.useState(Z), [se, A] = t.useState(!1), [le, ue] = q(J), [ie, ce] = q(Q), f =
|
|
53
|
+
}, []), [O, B] = t.useState(Z), [se, A] = t.useState(!1), [le, ue] = q(J), [ie, ce] = q(Q), f = v !== void 0, m = f ? v : O, N = F || P, n = t.useCallback(() => ({
|
|
54
54
|
element: a,
|
|
55
55
|
focus: V,
|
|
56
56
|
blur: E,
|
|
@@ -110,7 +110,7 @@ const Fe = Pe(), L = t.forwardRef((j, W) => {
|
|
|
110
110
|
onValueChange: be,
|
|
111
111
|
enabled: !!N
|
|
112
112
|
});
|
|
113
|
-
const
|
|
113
|
+
const ge = t.useMemo(() => {
|
|
114
114
|
let r = {};
|
|
115
115
|
return c ? r = {
|
|
116
116
|
resize: "none",
|
|
@@ -120,13 +120,13 @@ const Fe = Pe(), L = t.forwardRef((j, W) => {
|
|
|
120
120
|
...r,
|
|
121
121
|
...T
|
|
122
122
|
};
|
|
123
|
-
}, [c, l, H, T]),
|
|
123
|
+
}, [c, l, H, T]), ve = {
|
|
124
124
|
id: P || de,
|
|
125
125
|
name: F,
|
|
126
126
|
className: D("k-input-inner", "!k-overflow-auto", {
|
|
127
127
|
"k-resize": !c && l !== "none",
|
|
128
128
|
"k-resize-none": c || l === "none",
|
|
129
|
-
"!k-flex-none":
|
|
129
|
+
"!k-flex-none": g === "vertical"
|
|
130
130
|
}),
|
|
131
131
|
ref: a,
|
|
132
132
|
disabled: o,
|
|
@@ -136,12 +136,11 @@ const Fe = Pe(), L = t.forwardRef((j, W) => {
|
|
|
136
136
|
required: d,
|
|
137
137
|
tabIndex: we(re, o),
|
|
138
138
|
autoFocus: G,
|
|
139
|
-
style:
|
|
139
|
+
style: ge,
|
|
140
140
|
"aria-labelledby": X,
|
|
141
141
|
"aria-describedby": U,
|
|
142
|
-
"aria-disabled": o || void 0,
|
|
143
142
|
"aria-required": d,
|
|
144
|
-
value: f ?
|
|
143
|
+
value: f ? v : O,
|
|
145
144
|
...Object.assign({}, ne, oe),
|
|
146
145
|
onChange: C,
|
|
147
146
|
onFocus: me,
|
|
@@ -161,8 +160,8 @@ const Fe = Pe(), L = t.forwardRef((j, W) => {
|
|
|
161
160
|
"k-required": d,
|
|
162
161
|
"k-disabled": o,
|
|
163
162
|
"k-focus": se,
|
|
164
|
-
"!k-flex-col":
|
|
165
|
-
"!k-flex-row":
|
|
163
|
+
"!k-flex-col": g === "vertical",
|
|
164
|
+
"!k-flex-row": g === "horizontal"
|
|
166
165
|
},
|
|
167
166
|
Y
|
|
168
167
|
),
|
|
@@ -170,7 +169,7 @@ const Fe = Pe(), L = t.forwardRef((j, W) => {
|
|
|
170
169
|
dir: fe
|
|
171
170
|
},
|
|
172
171
|
s.prefix && /* @__PURE__ */ t.createElement(le, { ...ue }),
|
|
173
|
-
/* @__PURE__ */ t.createElement("textarea", { ...
|
|
172
|
+
/* @__PURE__ */ t.createElement("textarea", { ...ve }),
|
|
174
173
|
s.suffix && /* @__PURE__ */ t.createElement(ie, { ...ce })
|
|
175
174
|
);
|
|
176
175
|
});
|