@progress/kendo-react-buttons 9.0.0-develop.2 → 9.0.0-develop.20
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/Button.js +1 -1
- package/Button.mjs +91 -108
- package/ButtonGroup.js +1 -1
- package/ButtonGroup.mjs +47 -67
- package/Chip/Chip.mjs +22 -56
- package/Chip/ChipList.mjs +2 -20
- package/Chip/chip-list-contexts.mjs +13 -4
- package/FloatingActionButton/FloatingActionButton.js +1 -1
- package/FloatingActionButton/FloatingActionButton.mjs +243 -272
- package/FloatingActionButton/FloatingActionButtonItem.mjs +3 -6
- package/ListButton/ButtonItem.js +1 -1
- package/ListButton/ButtonItem.mjs +30 -27
- package/ListButton/utils/popup.js +1 -1
- package/ListButton/utils/popup.mjs +8 -8
- package/README.md +60 -58
- package/dist/cdn/js/kendo-react-buttons.js +1 -1
- package/index.d.mts +56 -168
- package/index.d.ts +56 -168
- package/index.mjs +6 -2
- package/package-metadata.mjs +1 -1
- package/package.json +3 -3
- package/toolbar/Toolbar.js +1 -1
- package/toolbar/Toolbar.mjs +100 -110
- package/toolbar/tools/ToolbarItem.js +1 -1
- package/toolbar/tools/ToolbarItem.mjs +15 -32
- package/toolbar/tools/ToolbarSeparator.js +1 -1
- package/toolbar/tools/ToolbarSeparator.mjs +1 -8
- package/toolbar/tools/ToolbarSpacer.mjs +8 -18
package/package-metadata.mjs
CHANGED
|
@@ -10,7 +10,7 @@ const e = {
|
|
|
10
10
|
name: "@progress/kendo-react-buttons",
|
|
11
11
|
productName: "KendoReact",
|
|
12
12
|
productCodes: ["KENDOUIREACT", "KENDOUICOMPLETE"],
|
|
13
|
-
publishDate:
|
|
13
|
+
publishDate: 1731056544,
|
|
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-buttons",
|
|
3
|
-
"version": "9.0.0-develop.
|
|
3
|
+
"version": "9.0.0-develop.20",
|
|
4
4
|
"description": "All you need in React Button in one package: disabled/enabled states, built-in styles and more. KendoReact Buttons package",
|
|
5
5
|
"author": "Progress",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"sideEffects": false,
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"@progress/kendo-licensing": "^1.3.4",
|
|
26
|
-
"@progress/kendo-react-common": "9.0.0-develop.
|
|
27
|
-
"@progress/kendo-react-popup": "9.0.0-develop.
|
|
26
|
+
"@progress/kendo-react-common": "9.0.0-develop.20",
|
|
27
|
+
"@progress/kendo-react-popup": "9.0.0-develop.20",
|
|
28
28
|
"@progress/kendo-svg-icons": "^3.0.0",
|
|
29
29
|
"react": "^16.8.2 || ^17.0.0 || ^18.0.0",
|
|
30
30
|
"react-dom": "^16.8.2 || ^17.0.0 || ^18.0.0"
|
package/toolbar/Toolbar.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 E=require("react"),u=require("prop-types"),a=require("@progress/kendo-react-common"),H=require("../util.js"),P=require("../package-metadata.js");function W(o){const l=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const i in o)if(i!=="default"){const d=Object.getOwnPropertyDescriptor(o,i);Object.defineProperty(l,i,d.get?d:{enumerable:!0,get:()=>o[i]})}}return l.default=o,Object.freeze(l)}const r=W(E),p=r.forwardRef((o,l)=>{a.validatePackage(P.packageMetadata);const{children:i,className:d,id:j,ariaLabel:q,keyboardNavigation:h,role:I,onResize:x,dir:S,style:T,tabIndex:z=O.tabIndex,size:k=O.size}=o,v=r.useRef(!1),n=r.useRef(null),b=r.useRef(0),y=r.useRef(0),s=r.useRef([]),m=r.useMemo(()=>o.buttons||H.toolbarButtons,[o.buttons]),C=r.useMemo(()=>m.map(e=>e+":focus").join(","),[m]),w=()=>{const e=n.current&&n.current.querySelector(C);return Math.max(0,s.current.findIndex(c=>c===e))},R=r.useRef({element:null,props:o});r.useImperativeHandle(R,()=>({element:n.current,props:o})),r.useImperativeHandle(l,()=>R.current),r.useEffect(()=>(window.addEventListener("resize",M),n.current&&(y.current=n.current.offsetWidth,b.current=n.current.offsetHeight,h!==!1&&(s.current=Array.from(n.current.querySelectorAll(m.join(","))),K(0))),()=>{window.removeEventListener("resize",M),s.current.length=0}),[]),r.useEffect(()=>{if(v.current){if(!n.current||h===!1)return;s.current=Array.from(n.current.querySelectorAll(m.join(","))),K(w())}else v.current=!0});const K=e=>{s.current.forEach((c,t)=>{c.tabIndex=t===e?z:-1})},N=e=>{const c=e.keyCode===a.Keys.left||e.keyCode===a.Keys.right||e.keyCode===a.Keys.home||e.keyCode===a.Keys.end,t=w();!c||e.defaultPrevented||s.current.findIndex(f=>f===e.target)===-1||(e.keyCode===a.Keys.left?g(t,t===0?s.current.length-1:t-1):g(t,t===s.current.length-1?0:t+1),e.keyCode===a.Keys.home&&g(t,0),e.keyCode===a.Keys.end&&g(t,s.current.length-1))},g=(e,c)=>{const t=s.current[c];if(t){t.tabIndex=z,t.focus();const f=s.current[e];f&&(f.tabIndex=-1)}},M=e=>{if(!n.current)return;const c=n.current.offsetWidth,t=n.current.offsetHeight;if(y.current!==c||b.current!==t){y.current=c,b.current=t;const f={offsetWidth:y.current,offsetHeight:b.current};x&&x.call(void 0,{target:R.current,...f,nativeEvent:e})}};return r.createElement("div",{id:j,"aria-label":q,className:a.classNames("k-toolbar k-toolbar-solid",{[`k-toolbar-${a.kendoThemeMaps.sizeMap[k]||k}`]:k},d),style:T,role:I!==void 0?I||void 0:"toolbar",dir:S,ref:n,onKeyDown:h!==!1?N:void 0},i)}),O={tabIndex:0,size:"medium"};p.displayName="KendoReactToolbar";p.propTypes={tabIndex:u.number,dir:u.string,keyboardNavigation:u.bool,style:u.object,className:u.string,role:u.string,onResize:u.func,buttons:u.arrayOf(u.string.isRequired),size:u.oneOf([null,"small","medium","large"])};exports.Toolbar=p;
|
package/toolbar/Toolbar.mjs
CHANGED
|
@@ -6,122 +6,112 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
|
-
import * as
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
12
|
-
import { toolbarButtons as
|
|
13
|
-
import { packageMetadata as
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
return;
|
|
31
|
-
const n = i.offsetWidth, e = i.offsetHeight;
|
|
32
|
-
if (this.offsetWidth !== n || this.offsetHeight !== e) {
|
|
33
|
-
this.offsetWidth = n, this.offsetHeight = e;
|
|
34
|
-
const f = { offsetWidth: this.offsetWidth, offsetHeight: this.offsetHeight };
|
|
35
|
-
this.props.onResize && this.props.onResize.call(void 0, { target: this, ...f, nativeEvent: t });
|
|
36
|
-
}
|
|
37
|
-
}, l(m);
|
|
38
|
-
}
|
|
39
|
-
get selectors() {
|
|
40
|
-
return this.props.buttons || c;
|
|
41
|
-
}
|
|
42
|
-
get focusedIndex() {
|
|
43
|
-
const s = this.element && this.element.querySelector(this.focusedSelector);
|
|
9
|
+
import * as r from "react";
|
|
10
|
+
import c from "prop-types";
|
|
11
|
+
import { validatePackage as j, classNames as q, kendoThemeMaps as A, Keys as u } from "@progress/kendo-react-common";
|
|
12
|
+
import { toolbarButtons as B } from "../util.mjs";
|
|
13
|
+
import { packageMetadata as O } from "../package-metadata.mjs";
|
|
14
|
+
const v = r.forwardRef((i, C) => {
|
|
15
|
+
j(O);
|
|
16
|
+
const {
|
|
17
|
+
children: E,
|
|
18
|
+
className: H,
|
|
19
|
+
id: M,
|
|
20
|
+
ariaLabel: N,
|
|
21
|
+
keyboardNavigation: b,
|
|
22
|
+
role: h,
|
|
23
|
+
onResize: k,
|
|
24
|
+
dir: T,
|
|
25
|
+
style: W,
|
|
26
|
+
tabIndex: x = w.tabIndex,
|
|
27
|
+
size: y = w.size
|
|
28
|
+
} = i, I = r.useRef(!1), n = r.useRef(null), f = r.useRef(0), l = r.useRef(0), o = r.useRef([]), d = r.useMemo(() => i.buttons || B, [i.buttons]), K = r.useMemo(() => d.map((e) => e + ":focus").join(","), [d]), R = () => {
|
|
29
|
+
const e = n.current && n.current.querySelector(K);
|
|
44
30
|
return Math.max(
|
|
45
31
|
0,
|
|
46
|
-
|
|
32
|
+
o.current.findIndex((s) => s === e)
|
|
47
33
|
);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
{
|
|
83
|
-
id: this.props.id,
|
|
84
|
-
"aria-label": this.props.ariaLabel,
|
|
85
|
-
className: p(
|
|
86
|
-
"k-toolbar k-toolbar-solid",
|
|
87
|
-
{
|
|
88
|
-
[`k-toolbar-${u.sizeMap[this.props.size] || this.props.size}`]: this.props.size
|
|
89
|
-
},
|
|
90
|
-
this.props.className
|
|
91
|
-
),
|
|
92
|
-
style: this.props.style,
|
|
93
|
-
role: this.props.role !== void 0 ? this.props.role || void 0 : "toolbar",
|
|
94
|
-
dir: this.props.dir,
|
|
95
|
-
ref: (s) => this._element = s,
|
|
96
|
-
onKeyDown: this.props.keyboardNavigation !== !1 ? this.onKeyDown : void 0
|
|
97
|
-
},
|
|
98
|
-
this.props.children
|
|
99
|
-
);
|
|
100
|
-
}
|
|
101
|
-
focusButton(s, t) {
|
|
102
|
-
const { tabIndex: i = h.defaultProps.tabIndex } = this.props, n = this.buttons[t];
|
|
103
|
-
if (n) {
|
|
104
|
-
n.tabIndex = i, n.focus();
|
|
105
|
-
const e = this.buttons[s];
|
|
106
|
-
e && (e.tabIndex = -1);
|
|
34
|
+
}, g = r.useRef({ element: null, props: i });
|
|
35
|
+
r.useImperativeHandle(
|
|
36
|
+
g,
|
|
37
|
+
() => ({
|
|
38
|
+
element: n.current,
|
|
39
|
+
props: i
|
|
40
|
+
})
|
|
41
|
+
), r.useImperativeHandle(C, () => g.current), r.useEffect(() => (window.addEventListener("resize", z), n.current && (l.current = n.current.offsetWidth, f.current = n.current.offsetHeight, b !== !1 && (o.current = Array.from(
|
|
42
|
+
n.current.querySelectorAll(d.join(","))
|
|
43
|
+
), p(0))), () => {
|
|
44
|
+
window.removeEventListener("resize", z), o.current.length = 0;
|
|
45
|
+
}), []), r.useEffect(() => {
|
|
46
|
+
if (I.current) {
|
|
47
|
+
if (!n.current || b === !1)
|
|
48
|
+
return;
|
|
49
|
+
o.current = Array.from(
|
|
50
|
+
n.current.querySelectorAll(d.join(","))
|
|
51
|
+
), p(R());
|
|
52
|
+
} else
|
|
53
|
+
I.current = !0;
|
|
54
|
+
});
|
|
55
|
+
const p = (e) => {
|
|
56
|
+
o.current.forEach((s, t) => {
|
|
57
|
+
s.tabIndex = t === e ? x : -1;
|
|
58
|
+
});
|
|
59
|
+
}, S = (e) => {
|
|
60
|
+
const s = e.keyCode === u.left || e.keyCode === u.right || e.keyCode === u.home || e.keyCode === u.end, t = R();
|
|
61
|
+
!s || e.defaultPrevented || o.current.findIndex((a) => a === e.target) === -1 || (e.keyCode === u.left ? m(t, t === 0 ? o.current.length - 1 : t - 1) : m(t, t === o.current.length - 1 ? 0 : t + 1), e.keyCode === u.home && m(t, 0), e.keyCode === u.end && m(t, o.current.length - 1));
|
|
62
|
+
}, m = (e, s) => {
|
|
63
|
+
const t = o.current[s];
|
|
64
|
+
if (t) {
|
|
65
|
+
t.tabIndex = x, t.focus();
|
|
66
|
+
const a = o.current[e];
|
|
67
|
+
a && (a.tabIndex = -1);
|
|
107
68
|
}
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
69
|
+
}, z = (e) => {
|
|
70
|
+
if (!n.current)
|
|
71
|
+
return;
|
|
72
|
+
const s = n.current.offsetWidth, t = n.current.offsetHeight;
|
|
73
|
+
if (l.current !== s || f.current !== t) {
|
|
74
|
+
l.current = s, f.current = t;
|
|
75
|
+
const a = { offsetWidth: l.current, offsetHeight: f.current };
|
|
76
|
+
k && k.call(void 0, { target: g.current, ...a, nativeEvent: e });
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
return /* @__PURE__ */ r.createElement(
|
|
80
|
+
"div",
|
|
81
|
+
{
|
|
82
|
+
id: M,
|
|
83
|
+
"aria-label": N,
|
|
84
|
+
className: q(
|
|
85
|
+
"k-toolbar k-toolbar-solid",
|
|
86
|
+
{
|
|
87
|
+
[`k-toolbar-${A.sizeMap[y] || y}`]: y
|
|
88
|
+
},
|
|
89
|
+
H
|
|
90
|
+
),
|
|
91
|
+
style: W,
|
|
92
|
+
role: h !== void 0 ? h || void 0 : "toolbar",
|
|
93
|
+
dir: T,
|
|
94
|
+
ref: n,
|
|
95
|
+
onKeyDown: b !== !1 ? S : void 0
|
|
96
|
+
},
|
|
97
|
+
E
|
|
98
|
+
);
|
|
99
|
+
}), w = {
|
|
121
100
|
tabIndex: 0,
|
|
122
101
|
size: "medium"
|
|
123
102
|
};
|
|
124
|
-
|
|
103
|
+
v.displayName = "KendoReactToolbar";
|
|
104
|
+
v.propTypes = {
|
|
105
|
+
tabIndex: c.number,
|
|
106
|
+
dir: c.string,
|
|
107
|
+
keyboardNavigation: c.bool,
|
|
108
|
+
style: c.object,
|
|
109
|
+
className: c.string,
|
|
110
|
+
role: c.string,
|
|
111
|
+
onResize: c.func,
|
|
112
|
+
buttons: c.arrayOf(c.string.isRequired),
|
|
113
|
+
size: c.oneOf([null, "small", "medium", "large"])
|
|
114
|
+
};
|
|
125
115
|
export {
|
|
126
|
-
|
|
116
|
+
v as Toolbar
|
|
127
117
|
};
|
|
@@ -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 i=require("react"),
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react"),u=require("prop-types"),m=require("@progress/kendo-react-common");function d(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const n=d(i),a=n.forwardRef((e,r)=>{const{id:t,className:o,style:s,children:l}=e,c=n.useRef(null);return n.useImperativeHandle(r,()=>({element:c.current})),n.createElement("div",{id:t,className:m.classNames("k-toolbar-item",o),style:s,ref:c},l)});a.displayName="KendoReactToolbarItem";a.propTypes={className:u.string};exports.ToolbarItem=a;
|
|
@@ -6,39 +6,22 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
|
-
import * as
|
|
10
|
-
import
|
|
11
|
-
import { classNames as
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
*/
|
|
25
|
-
render() {
|
|
26
|
-
return /* @__PURE__ */ s.createElement(
|
|
27
|
-
"div",
|
|
28
|
-
{
|
|
29
|
-
id: this.props.id,
|
|
30
|
-
className: p("k-toolbar-item", this.props.className),
|
|
31
|
-
style: this.props.style,
|
|
32
|
-
ref: (r) => this._element = r
|
|
33
|
-
},
|
|
34
|
-
this.props.children
|
|
35
|
-
);
|
|
36
|
-
}
|
|
9
|
+
import * as e from "react";
|
|
10
|
+
import c from "prop-types";
|
|
11
|
+
import { classNames as i } from "@progress/kendo-react-common";
|
|
12
|
+
const t = e.forwardRef((s, a) => {
|
|
13
|
+
const { id: o, className: m, style: l, children: n } = s, r = e.useRef(null);
|
|
14
|
+
return e.useImperativeHandle(
|
|
15
|
+
a,
|
|
16
|
+
() => ({
|
|
17
|
+
element: r.current
|
|
18
|
+
})
|
|
19
|
+
), /* @__PURE__ */ e.createElement("div", { id: o, className: i("k-toolbar-item", m), style: l, ref: r }, n);
|
|
20
|
+
});
|
|
21
|
+
t.displayName = "KendoReactToolbarItem";
|
|
22
|
+
t.propTypes = {
|
|
23
|
+
className: c.string
|
|
37
24
|
};
|
|
38
|
-
e.propTypes = {
|
|
39
|
-
className: i.string
|
|
40
|
-
};
|
|
41
|
-
let t = e;
|
|
42
25
|
export {
|
|
43
26
|
t as ToolbarItem
|
|
44
27
|
};
|
|
@@ -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 o=require("react"),c=require("@progress/kendo-react-common");function n(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const s=n(o),l=e=>s.createElement("div",{className:c.classNames("k-separator",e.className)});exports.ToolbarSeparator=l;
|
|
@@ -8,14 +8,7 @@
|
|
|
8
8
|
"use client";
|
|
9
9
|
import * as e from "react";
|
|
10
10
|
import { classNames as r } from "@progress/kendo-react-common";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @hidden
|
|
14
|
-
*/
|
|
15
|
-
render() {
|
|
16
|
-
return /* @__PURE__ */ e.createElement("div", { className: r("k-separator", this.props.className) });
|
|
17
|
-
}
|
|
18
|
-
}
|
|
11
|
+
const t = (a) => /* @__PURE__ */ e.createElement("div", { className: r("k-separator", a.className) });
|
|
19
12
|
export {
|
|
20
13
|
t as ToolbarSeparator
|
|
21
14
|
};
|
|
@@ -9,24 +9,14 @@
|
|
|
9
9
|
import * as e from "react";
|
|
10
10
|
import m from "prop-types";
|
|
11
11
|
import { classNames as n } from "@progress/kendo-react-common";
|
|
12
|
-
const r = e.forwardRef(
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
() => n(
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
[s.className]
|
|
21
|
-
);
|
|
22
|
-
return /* @__PURE__ */ e.createElement(
|
|
23
|
-
"span",
|
|
24
|
-
{
|
|
25
|
-
ref: a,
|
|
26
|
-
className: l
|
|
27
|
-
}
|
|
28
|
-
);
|
|
29
|
-
});
|
|
12
|
+
const r = e.forwardRef(
|
|
13
|
+
(s, t) => {
|
|
14
|
+
const a = e.useRef(null), c = e.useRef(null);
|
|
15
|
+
e.useImperativeHandle(c, () => ({ element: a.current })), e.useImperativeHandle(t, () => ({ element: a.current }));
|
|
16
|
+
const l = e.useMemo(() => n("k-spacer", s.className), [s.className]);
|
|
17
|
+
return /* @__PURE__ */ e.createElement("span", { ref: a, className: l });
|
|
18
|
+
}
|
|
19
|
+
);
|
|
30
20
|
r.displayName = "KendoReactToolbarSpacer";
|
|
31
21
|
r.propTypes = {
|
|
32
22
|
className: m.string
|