@progress/kendo-react-inputs 8.5.1-develop.1 → 9.0.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/checkbox/Checkbox.mjs +16 -40
- package/index.d.mts +3 -5
- package/index.d.ts +3 -5
- package/package-metadata.mjs +1 -1
- package/package.json +8 -8
package/checkbox/Checkbox.mjs
CHANGED
|
@@ -46,12 +46,9 @@ const Se = ye(), A = a.forwardRef((W, j) => {
|
|
|
46
46
|
touched: Ke,
|
|
47
47
|
modified: Te,
|
|
48
48
|
...le
|
|
49
|
-
} = E, l = a.useRef(null), D = a.useCallback(
|
|
50
|
-
()
|
|
51
|
-
|
|
52
|
-
},
|
|
53
|
-
[]
|
|
54
|
-
), c = a.useCallback(
|
|
49
|
+
} = E, l = a.useRef(null), D = a.useCallback(() => {
|
|
50
|
+
l.current && l.current.focus();
|
|
51
|
+
}, []), c = a.useCallback(
|
|
55
52
|
() => ({
|
|
56
53
|
element: l.current,
|
|
57
54
|
focus: D,
|
|
@@ -63,14 +60,9 @@ const Se = ye(), A = a.forwardRef((W, j) => {
|
|
|
63
60
|
);
|
|
64
61
|
a.useImperativeHandle(j, c);
|
|
65
62
|
const [ne, se] = a.useState(Z), [ce, re] = a.useState(_), K = typeof s == "boolean" || s === null, h = B !== void 0, r = K, v = r ? s : ce, C = h ? B : r ? void 0 : ne, T = C === void 0 && v, w = T ? v : C, d = T || r ? s === null ? s : void 0 : s || v, ie = w === null || d === null, L = Pe(), de = Fe(), O = (t) => de.toLanguageString(t, Me[t]), q = O(Ne), ue = O(ze), g = N !== void 0 ? N : i ? !!C : !0;
|
|
66
|
-
a.useEffect(
|
|
67
|
-
(
|
|
68
|
-
|
|
69
|
-
g ? "" : z || q
|
|
70
|
-
);
|
|
71
|
-
},
|
|
72
|
-
[g, z, q]
|
|
73
|
-
);
|
|
63
|
+
a.useEffect(() => {
|
|
64
|
+
l.current && l.current.setCustomValidity && l.current.setCustomValidity(g ? "" : z || q);
|
|
65
|
+
}, [g, z, q]);
|
|
74
66
|
const u = a.useCallback(
|
|
75
67
|
(t, n) => {
|
|
76
68
|
!r && !o && (re(n), !h && !o && se(n)), p && !o && V(
|
|
@@ -108,39 +100,23 @@ const Se = ye(), A = a.forwardRef((W, j) => {
|
|
|
108
100
|
[o]
|
|
109
101
|
), ke = a.useCallback(
|
|
110
102
|
(t) => {
|
|
111
|
-
k && !o && V(
|
|
112
|
-
k,
|
|
113
|
-
t,
|
|
114
|
-
c(),
|
|
115
|
-
void 0
|
|
116
|
-
);
|
|
103
|
+
k && !o && V(k, t, c(), void 0);
|
|
117
104
|
},
|
|
118
105
|
[k, o, c]
|
|
119
106
|
), fe = a.useCallback(
|
|
120
107
|
(t) => {
|
|
121
|
-
f && !o && V(
|
|
122
|
-
f,
|
|
123
|
-
t,
|
|
124
|
-
c(),
|
|
125
|
-
void 0
|
|
126
|
-
);
|
|
108
|
+
f && !o && V(f, t, c(), void 0);
|
|
127
109
|
},
|
|
128
110
|
[f, o, c]
|
|
129
|
-
), he = Ee(l, E.dir), ve = P(
|
|
130
|
-
"k-checkbox-wrap",
|
|
131
|
-
Q
|
|
132
|
-
), R = {
|
|
111
|
+
), he = Ee(l, E.dir), ve = P("k-checkbox-wrap", Q), R = {
|
|
133
112
|
type: "checkbox",
|
|
134
|
-
className: P(
|
|
135
|
-
|
|
136
|
-
{
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
"k-invalid k-invalid": !(g || S !== void 0 || S === !0)
|
|
142
|
-
}
|
|
143
|
-
),
|
|
113
|
+
className: P("k-checkbox", {
|
|
114
|
+
[`k-checkbox-${U.sizeMap[b] || b}`]: b,
|
|
115
|
+
[`k-rounded-${U.roundedMap[m] || m}`]: m,
|
|
116
|
+
"k-indeterminate": ie,
|
|
117
|
+
"k-disabled": o,
|
|
118
|
+
"k-invalid k-invalid": !(g || S !== void 0 || S === !0)
|
|
119
|
+
}),
|
|
144
120
|
ref: l,
|
|
145
121
|
name: ee,
|
|
146
122
|
id: I || L,
|
package/index.d.mts
CHANGED
|
@@ -29,12 +29,10 @@ import { SvgIconProps } from '@progress/kendo-react-common';
|
|
|
29
29
|
*
|
|
30
30
|
* @example
|
|
31
31
|
* ```jsx
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
* return <Checkbox />;
|
|
35
|
-
* }
|
|
32
|
+
* const App = () => {
|
|
33
|
+
* return <Checkbox />;
|
|
36
34
|
* }
|
|
37
|
-
* ReactDOM.
|
|
35
|
+
* const root = ReactDOM.createRoot(document.getElementById('app'));
|
|
38
36
|
* ```
|
|
39
37
|
*/
|
|
40
38
|
export declare const Checkbox: React_2.ForwardRefExoticComponent<CheckboxProps & React_2.RefAttributes<CheckboxHandle | null>>;
|
package/index.d.ts
CHANGED
|
@@ -29,12 +29,10 @@ import { SvgIconProps } from '@progress/kendo-react-common';
|
|
|
29
29
|
*
|
|
30
30
|
* @example
|
|
31
31
|
* ```jsx
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
* return <Checkbox />;
|
|
35
|
-
* }
|
|
32
|
+
* const App = () => {
|
|
33
|
+
* return <Checkbox />;
|
|
36
34
|
* }
|
|
37
|
-
* ReactDOM.
|
|
35
|
+
* const root = ReactDOM.createRoot(document.getElementById('app'));
|
|
38
36
|
* ```
|
|
39
37
|
*/
|
|
40
38
|
export declare const Checkbox: React_2.ForwardRefExoticComponent<CheckboxProps & React_2.RefAttributes<CheckboxHandle | null>>;
|
package/package-metadata.mjs
CHANGED
|
@@ -10,7 +10,7 @@ const e = {
|
|
|
10
10
|
name: "@progress/kendo-react-inputs",
|
|
11
11
|
productName: "KendoReact",
|
|
12
12
|
productCodes: ["KENDOUIREACT", "KENDOUICOMPLETE"],
|
|
13
|
-
publishDate:
|
|
13
|
+
publishDate: 1729154267,
|
|
14
14
|
version: "",
|
|
15
15
|
licensingDocsUrl: "https://www.telerik.com/kendo-react-ui/components/my-license/"
|
|
16
16
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-react-inputs",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "9.0.0-develop.1",
|
|
4
4
|
"description": "React Inputs offer a customizable interface for users to enter and pick different information. KendoReact Input package",
|
|
5
5
|
"author": "Progress",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -25,13 +25,13 @@
|
|
|
25
25
|
"@progress/kendo-drawing": "^1.20.4",
|
|
26
26
|
"@progress/kendo-inputs-common": "^3.1.0",
|
|
27
27
|
"@progress/kendo-licensing": "^1.3.4",
|
|
28
|
-
"@progress/kendo-react-animation": "
|
|
29
|
-
"@progress/kendo-react-buttons": "
|
|
30
|
-
"@progress/kendo-react-common": "
|
|
31
|
-
"@progress/kendo-react-dialogs": "
|
|
32
|
-
"@progress/kendo-react-intl": "
|
|
33
|
-
"@progress/kendo-react-labels": "
|
|
34
|
-
"@progress/kendo-react-popup": "
|
|
28
|
+
"@progress/kendo-react-animation": "9.0.0-develop.1",
|
|
29
|
+
"@progress/kendo-react-buttons": "9.0.0-develop.1",
|
|
30
|
+
"@progress/kendo-react-common": "9.0.0-develop.1",
|
|
31
|
+
"@progress/kendo-react-dialogs": "9.0.0-develop.1",
|
|
32
|
+
"@progress/kendo-react-intl": "9.0.0-develop.1",
|
|
33
|
+
"@progress/kendo-react-labels": "9.0.0-develop.1",
|
|
34
|
+
"@progress/kendo-react-popup": "9.0.0-develop.1",
|
|
35
35
|
"@progress/kendo-svg-icons": "^3.0.0",
|
|
36
36
|
"react": "^16.8.2 || ^17.0.0 || ^18.0.0",
|
|
37
37
|
"react-dom": "^16.8.2 || ^17.0.0 || ^18.0.0"
|