@progress/kendo-react-buttons 9.0.0-develop.2 → 9.0.0-develop.21

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.
@@ -10,7 +10,7 @@ const e = {
10
10
  name: "@progress/kendo-react-buttons",
11
11
  productName: "KendoReact",
12
12
  productCodes: ["KENDOUIREACT", "KENDOUICOMPLETE"],
13
- publishDate: 1729236152,
13
+ publishDate: 1731068481,
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.2",
3
+ "version": "9.0.0-develop.21",
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.2",
27
- "@progress/kendo-react-popup": "9.0.0-develop.2",
26
+ "@progress/kendo-react-common": "9.0.0-develop.21",
27
+ "@progress/kendo-react-popup": "9.0.0-develop.21",
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"
@@ -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 c=require("react"),i=require("prop-types"),n=require("@progress/kendo-react-common"),u=require("../util.js"),p=require("../package-metadata.js");function b(h){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(h){for(const t in h)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(h,t);Object.defineProperty(e,t,o.get?o:{enumerable:!0,get:()=>h[t]})}}return e.default=h,Object.freeze(e)}const l=b(c),a=class a extends l.Component{constructor(e){super(e),this._element=null,this.offsetHeight=0,this.offsetWidth=0,this.buttons=[],this.focusedSelector=this.selectors.map(t=>t+":focus").join(","),this.setTabIndex=t=>{const{tabIndex:o=a.defaultProps.tabIndex}=this.props;this.buttons.forEach((r,s)=>{r.tabIndex=s===t?o:-1})},this.onKeyDown=t=>{const o=t.target;if(!(t.keyCode===n.Keys.left||t.keyCode===n.Keys.right||t.keyCode===n.Keys.home||t.keyCode===n.Keys.end)||t.defaultPrevented||this.buttons.findIndex(d=>d===o)===-1)return;const s=this.focusedIndex;t.keyCode===n.Keys.left?this.focusButton(s,s===0?this.buttons.length-1:s-1):this.focusButton(s,s===this.buttons.length-1?0:s+1),t.keyCode===n.Keys.home&&this.focusButton(s,0),t.keyCode===n.Keys.end&&this.focusButton(s,this.buttons.length-1)},this.onWindowResize=t=>{const o=this.element;if(!o)return;const r=o.offsetWidth,s=o.offsetHeight;if(this.offsetWidth!==r||this.offsetHeight!==s){this.offsetWidth=r,this.offsetHeight=s;const d={offsetWidth:this.offsetWidth,offsetHeight:this.offsetHeight};this.props.onResize&&this.props.onResize.call(void 0,{target:this,...d,nativeEvent:t})}},n.validatePackage(p.packageMetadata)}get selectors(){return this.props.buttons||u.toolbarButtons}get focusedIndex(){const e=this.element&&this.element.querySelector(this.focusedSelector);return Math.max(0,this.buttons.findIndex(t=>t===e))}get element(){return this._element}componentDidMount(){window.addEventListener("resize",this.onWindowResize);const e=this.element;e&&(this.offsetWidth=e.offsetWidth,this.offsetHeight=e.offsetHeight,this.props.keyboardNavigation!==!1&&(this.buttons=Array.from(e.querySelectorAll(this.selectors.join(","))),this.setTabIndex(0)))}componentDidUpdate(){const e=this.element;!e||this.props.keyboardNavigation===!1||(this.buttons=Array.from(e.querySelectorAll(this.selectors.join(","))),this.setTabIndex(this.focusedIndex))}componentWillUnmount(){window.removeEventListener("resize",this.onWindowResize),this.buttons.length=0}render(){return l.createElement("div",{id:this.props.id,"aria-label":this.props.ariaLabel,className:n.classNames("k-toolbar k-toolbar-solid",{[`k-toolbar-${n.kendoThemeMaps.sizeMap[this.props.size]||this.props.size}`]:this.props.size},this.props.className),style:this.props.style,role:this.props.role!==void 0?this.props.role||void 0:"toolbar",dir:this.props.dir,ref:e=>this._element=e,onKeyDown:this.props.keyboardNavigation!==!1?this.onKeyDown:void 0},this.props.children)}focusButton(e,t){const{tabIndex:o=a.defaultProps.tabIndex}=this.props,r=this.buttons[t];if(r){r.tabIndex=o,r.focus();const s=this.buttons[e];s&&(s.tabIndex=-1)}}};a.propTypes={tabIndex:i.number,dir:i.string,keyboardNavigation:i.bool,style:i.object,className:i.string,role:i.string,onResize:i.func,buttons:i.arrayOf(i.string),size:i.oneOf([null,"small","medium","large"])},a.defaultProps={tabIndex:0,size:"medium"};let f=a;exports.Toolbar=f;
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;
@@ -6,122 +6,112 @@
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
8
  "use client";
9
- import * as a from "react";
10
- import o from "prop-types";
11
- import { Keys as r, validatePackage as l, classNames as p, kendoThemeMaps as u } from "@progress/kendo-react-common";
12
- import { toolbarButtons as c } from "../util.mjs";
13
- import { packageMetadata as m } from "../package-metadata.mjs";
14
- const h = class h extends a.Component {
15
- constructor(s) {
16
- super(s), this._element = null, this.offsetHeight = 0, this.offsetWidth = 0, this.buttons = [], this.focusedSelector = this.selectors.map((t) => t + ":focus").join(","), this.setTabIndex = (t) => {
17
- const { tabIndex: i = h.defaultProps.tabIndex } = this.props;
18
- this.buttons.forEach((n, e) => {
19
- n.tabIndex = e === t ? i : -1;
20
- });
21
- }, this.onKeyDown = (t) => {
22
- const i = t.target;
23
- if (!(t.keyCode === r.left || t.keyCode === r.right || t.keyCode === r.home || t.keyCode === r.end) || t.defaultPrevented || this.buttons.findIndex((f) => f === i) === -1)
24
- return;
25
- const e = this.focusedIndex;
26
- t.keyCode === r.left ? this.focusButton(e, e === 0 ? this.buttons.length - 1 : e - 1) : this.focusButton(e, e === this.buttons.length - 1 ? 0 : e + 1), t.keyCode === r.home && this.focusButton(e, 0), t.keyCode === r.end && this.focusButton(e, this.buttons.length - 1);
27
- }, this.onWindowResize = (t) => {
28
- const i = this.element;
29
- if (!i)
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
- this.buttons.findIndex((t) => t === s)
32
+ o.current.findIndex((s) => s === e)
47
33
  );
48
- }
49
- /**
50
- * Returns the HTML element of the Toolbar component.
51
- */
52
- get element() {
53
- return this._element;
54
- }
55
- /**
56
- * @hidden
57
- */
58
- componentDidMount() {
59
- window.addEventListener("resize", this.onWindowResize);
60
- const s = this.element;
61
- s && (this.offsetWidth = s.offsetWidth, this.offsetHeight = s.offsetHeight, this.props.keyboardNavigation !== !1 && (this.buttons = Array.from(s.querySelectorAll(this.selectors.join(","))), this.setTabIndex(0)));
62
- }
63
- /**
64
- * @hidden
65
- */
66
- componentDidUpdate() {
67
- const s = this.element;
68
- !s || this.props.keyboardNavigation === !1 || (this.buttons = Array.from(s.querySelectorAll(this.selectors.join(","))), this.setTabIndex(this.focusedIndex));
69
- }
70
- /**
71
- * @hidden
72
- */
73
- componentWillUnmount() {
74
- window.removeEventListener("resize", this.onWindowResize), this.buttons.length = 0;
75
- }
76
- /**
77
- * @hidden
78
- */
79
- render() {
80
- return /* @__PURE__ */ a.createElement(
81
- "div",
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
- h.propTypes = {
111
- tabIndex: o.number,
112
- dir: o.string,
113
- keyboardNavigation: o.bool,
114
- style: o.object,
115
- className: o.string,
116
- role: o.string,
117
- onResize: o.func,
118
- buttons: o.arrayOf(o.string),
119
- size: o.oneOf([null, "small", "medium", "large"])
120
- }, h.defaultProps = {
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
- let d = h;
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
- d as Toolbar
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"),a=require("prop-types"),l=require("@progress/kendo-react-common");function u(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const c=u(i),n=class n extends c.PureComponent{constructor(){super(...arguments),this._element=null}get element(){return this._element}render(){return c.createElement("div",{id:this.props.id,className:l.classNames("k-toolbar-item",this.props.className),style:this.props.style,ref:t=>this._element=t},this.props.children)}};n.propTypes={className:a.string};let s=n;exports.ToolbarItem=s;
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 s from "react";
10
- import i from "prop-types";
11
- import { classNames as p } from "@progress/kendo-react-common";
12
- const e = class e extends s.PureComponent {
13
- constructor() {
14
- super(...arguments), this._element = null;
15
- }
16
- /**
17
- * Returns the HTML element of the ToolbarItem component.
18
- */
19
- get element() {
20
- return this._element;
21
- }
22
- /**
23
- * @hidden
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 n=require("react"),c=require("@progress/kendo-react-common");function s(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 o=s(n);class l extends o.PureComponent{render(){return o.createElement("div",{className:c.classNames("k-separator",this.props.className)})}}exports.ToolbarSeparator=l;
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
- class t extends e.PureComponent {
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((s, t) => {
13
- const a = e.useRef(null), c = e.useRef(null);
14
- e.useImperativeHandle(c, () => ({ element: a.current })), e.useImperativeHandle(t, () => ({ element: a.current }));
15
- const l = e.useMemo(
16
- () => n(
17
- "k-spacer",
18
- s.className
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