@progress/kendo-react-buttons 7.1.1-develop.4 → 7.1.1-develop.5

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/index.mjs CHANGED
@@ -3,27 +3,27 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  "use client";
6
- import * as n from "react";
6
+ import * as o from "react";
7
7
  import Ie from "react";
8
8
  import s from "prop-types";
9
- import { svgIconPropType as M, validatePackage as R, classNames as f, kendoThemeMaps as P, IconWrap as A, Keys as r, dispatchEvent as I, getActiveElement as se, useDir as xe, useMouse as $e, getTabIndex as me, toIconName as ve, getter as Me, useZIndexContext as rt, useId as Re, ZIndexContext as ct, withIdHOC as Ae } from "@progress/kendo-react-common";
9
+ import { svgIconPropType as M, validatePackage as R, classNames as f, kendoThemeMaps as P, IconWrap as $, Keys as r, dispatchEvent as I, getActiveElement as se, useDir as xe, useMouse as Ae, getTabIndex as me, toIconName as ve, getter as Me, useZIndexContext as rt, useId as Re, ZIndexContext as ct, withIdHOC as $e } from "@progress/kendo-react-common";
10
10
  import { Popup as De } from "@progress/kendo-react-popup";
11
11
  import { caretAltDownIcon as dt, xCircleIcon as ut } from "@progress/kendo-svg-icons";
12
12
  const O = {
13
13
  name: "@progress/kendo-react-buttons",
14
14
  productName: "KendoReact",
15
15
  productCodes: ["KENDOUIREACT", "KENDOUICOMPLETE"],
16
- publishDate: 1707215749,
16
+ publishDate: 1707401033,
17
17
  version: "",
18
18
  licensingDocsUrl: "https://www.telerik.com/kendo-react-ui/components/my-license/"
19
19
  };
20
- function ht({ imageUrl: e, name: o, iconClass: t, svgIcon: i, imageAlt: a }) {
21
- return e ? /* @__PURE__ */ n.createElement("img", { role: "presentation", className: "k-button-icon", alt: a, src: e }) : o || i ? /* @__PURE__ */ n.createElement(A, { className: "k-button-icon", name: o, icon: i }) : t ? /* @__PURE__ */ n.createElement("span", { role: "presentation", className: f("k-button-icon", t) }) : null;
20
+ function ht({ imageUrl: e, name: n, iconClass: t, svgIcon: i, imageAlt: a }) {
21
+ return e ? /* @__PURE__ */ o.createElement("img", { role: "presentation", className: "k-button-icon", alt: a, src: e }) : n || i ? /* @__PURE__ */ o.createElement($, { className: "k-button-icon", name: n, icon: i }) : t ? /* @__PURE__ */ o.createElement("span", { role: "presentation", className: f("k-button-icon", t) }) : null;
22
22
  }
23
- const ee = class extends n.Component {
23
+ const ee = class extends o.Component {
24
24
  constructor(e) {
25
- super(e), this._element = null, this.handleClick = (o) => {
26
- this.toggleIfApplicable(), this.props.onClick && this.props.onClick.call(void 0, o);
25
+ super(e), this._element = null, this.handleClick = (n) => {
26
+ this.toggleIfApplicable(), this.props.onClick && this.props.onClick.call(void 0, n);
27
27
  }, R(O), this.state = { selected: this.props.togglable === !0 && this.props.selected === !0 };
28
28
  }
29
29
  /**
@@ -42,8 +42,8 @@ const ee = class extends n.Component {
42
42
  /**
43
43
  * @hidden
44
44
  */
45
- static getDerivedStateFromProps(e, o) {
46
- return e.togglable && e.selected !== void 0 && e.selected !== o.selected ? { selected: e.selected } : null;
45
+ static getDerivedStateFromProps(e, n) {
46
+ return e.togglable && e.selected !== void 0 && e.selected !== n.selected ? { selected: e.selected } : null;
47
47
  }
48
48
  /**
49
49
  * @hidden
@@ -51,7 +51,7 @@ const ee = class extends n.Component {
51
51
  render() {
52
52
  const {
53
53
  children: e,
54
- togglable: o,
54
+ togglable: n,
55
55
  icon: t,
56
56
  iconClass: i,
57
57
  svgIcon: a,
@@ -71,11 +71,11 @@ const ee = class extends n.Component {
71
71
  imageUrl: l,
72
72
  imageAlt: u
73
73
  });
74
- return /* @__PURE__ */ n.createElement(
74
+ return /* @__PURE__ */ o.createElement(
75
75
  "button",
76
76
  {
77
77
  ref: (E) => this._element = E,
78
- "aria-pressed": o ? this.state.selected : void 0,
78
+ "aria-pressed": n ? this.state.selected : void 0,
79
79
  ...w,
80
80
  onClick: this.handleClick,
81
81
  className: f(
@@ -94,7 +94,7 @@ const ee = class extends n.Component {
94
94
  )
95
95
  },
96
96
  x,
97
- e && /* @__PURE__ */ n.createElement("span", { className: "k-button-text" }, e)
97
+ e && /* @__PURE__ */ o.createElement("span", { className: "k-button-text" }, e)
98
98
  );
99
99
  }
100
100
  toggleIfApplicable() {
@@ -151,15 +151,15 @@ const pt = {
151
151
  ], ft = {
152
152
  styles: pt
153
153
  }, ue = ft.styles;
154
- class bt extends n.Component {
155
- constructor(o) {
156
- super(o), this._element = null, R(O);
154
+ class bt extends o.Component {
155
+ constructor(n) {
156
+ super(n), this._element = null, R(O);
157
157
  }
158
158
  /**
159
159
  * @hidden
160
160
  */
161
161
  render() {
162
- const o = this.mapButtons(this.props.children), t = f(
162
+ const n = this.mapButtons(this.props.children), t = f(
163
163
  [ue["button-group"]],
164
164
  {
165
165
  ["k-disabled"]: this.props.disabled,
@@ -174,7 +174,7 @@ class bt extends n.Component {
174
174
  role: "group",
175
175
  "aria-disabled": this.props.disabled
176
176
  };
177
- return /* @__PURE__ */ n.createElement(
177
+ return /* @__PURE__ */ o.createElement(
178
178
  "div",
179
179
  {
180
180
  ref: (a) => {
@@ -183,24 +183,24 @@ class bt extends n.Component {
183
183
  ...i,
184
184
  className: t
185
185
  },
186
- o
186
+ n
187
187
  );
188
188
  }
189
- mapButtons(o) {
190
- const t = n.Children.count(o), i = this.props.dir !== void 0 ? this.props.dir === "rtl" : this._element && getComputedStyle(this._element).direction === "rtl" || !1;
191
- return n.Children.map(o, (a, l) => n.isValidElement(a) ? this.renderButton(a, l, l === t - 1, i) : a);
189
+ mapButtons(n) {
190
+ const t = o.Children.count(n), i = this.props.dir !== void 0 ? this.props.dir === "rtl" : this._element && getComputedStyle(this._element).direction === "rtl" || !1;
191
+ return o.Children.map(n, (a, l) => o.isValidElement(a) ? this.renderButton(a, l, l === t - 1, i) : a);
192
192
  }
193
- renderButton(o, t, i, a) {
194
- const l = f(o.props.className, {
193
+ renderButton(n, t, i, a) {
194
+ const l = f(n.props.className, {
195
195
  [ue["group-start"]]: a ? i : t === 0,
196
196
  [ue["group-end"]]: a ? t === 0 : i
197
- }), u = { ...this.props.width ? { width: this.props.width } : {}, ...o.props.style || {} }, c = this.props.disabled || o.props.disabled, g = {
198
- ...o.props,
197
+ }), u = { ...this.props.width ? { width: this.props.width } : {}, ...n.props.style || {} }, c = this.props.disabled || n.props.disabled, g = {
198
+ ...n.props,
199
199
  ...l ? { className: l } : {},
200
200
  ...Object.keys(u).length ? { style: u } : {},
201
201
  ...c !== void 0 ? { disabled: c } : {}
202
202
  };
203
- return n.Children.count(o.props.children) > 0 ? n.cloneElement(o, g, o.props.children) : n.cloneElement(o, g);
203
+ return o.Children.count(n.props.children) > 0 ? o.cloneElement(n, g, n.props.children) : o.cloneElement(n, g);
204
204
  }
205
205
  }
206
206
  bt.propTypes = {
@@ -211,12 +211,12 @@ bt.propTypes = {
211
211
  dir: s.string
212
212
  };
213
213
  const we = (e) => {
214
- const o = n.useCallback(
214
+ const n = o.useCallback(
215
215
  (l) => {
216
216
  e.onClick(l, e.index);
217
217
  },
218
218
  [e]
219
- ), t = e.dataItem.render || e.item || (e.item === void 0 ? e.render : null), i = e.dataItem.text !== void 0 ? e.dataItem.text : e.textField ? e.dataItem[e.textField] : e.dataItem, a = /* @__PURE__ */ n.createElement(
219
+ ), t = e.dataItem.render || e.item || (e.item === void 0 ? e.render : null), i = e.dataItem.text !== void 0 ? e.dataItem.text : e.textField ? e.dataItem[e.textField] : e.dataItem, a = /* @__PURE__ */ o.createElement(
220
220
  "li",
221
221
  {
222
222
  id: e.id,
@@ -226,13 +226,13 @@ const we = (e) => {
226
226
  { "k-focus": e.focused }
227
227
  ),
228
228
  tabIndex: -1,
229
- onClick: o,
229
+ onClick: n,
230
230
  onMouseDown: e.onDown,
231
231
  onPointerDown: e.onDown,
232
232
  role: "menuitem",
233
233
  "aria-disabled": e.dataItem.disabled || void 0
234
234
  },
235
- /* @__PURE__ */ n.createElement(
235
+ /* @__PURE__ */ o.createElement(
236
236
  "span",
237
237
  {
238
238
  tabIndex: -1,
@@ -245,7 +245,7 @@ const we = (e) => {
245
245
  ),
246
246
  key: "icon"
247
247
  },
248
- t ? /* @__PURE__ */ n.createElement(t, { item: e.dataItem, itemIndex: e.index }) : /* @__PURE__ */ n.createElement(n.Fragment, null, (e.dataItem.icon || e.dataItem.iconClass || e.dataItem.svgIcon) && /* @__PURE__ */ n.createElement(A, { className: e.dataItem.iconClass, name: e.dataItem.icon, icon: e.dataItem.svgIcon }), e.dataItem.imageUrl && /* @__PURE__ */ n.createElement(
248
+ t ? /* @__PURE__ */ o.createElement(t, { item: e.dataItem, itemIndex: e.index }) : /* @__PURE__ */ o.createElement(o.Fragment, null, (e.dataItem.icon || e.dataItem.iconClass || e.dataItem.svgIcon) && /* @__PURE__ */ o.createElement($, { className: e.dataItem.iconClass, name: e.dataItem.icon, icon: e.dataItem.svgIcon }), e.dataItem.imageUrl && /* @__PURE__ */ o.createElement(
249
249
  "img",
250
250
  {
251
251
  role: "presentation",
@@ -253,14 +253,14 @@ const we = (e) => {
253
253
  src: e.dataItem.imageUrl,
254
254
  className: "k-icon"
255
255
  }
256
- ), i && /* @__PURE__ */ n.createElement("span", { className: "k-menu-link-text" }, i))
256
+ ), i && /* @__PURE__ */ o.createElement("span", { className: "k-menu-link-text" }, i))
257
257
  )
258
258
  );
259
259
  return e.item !== void 0 && /* to be removed in 5.0.0 */
260
260
  e.render !== void 0 ? e.render.call(void 0, a, e) : a;
261
261
  };
262
262
  we.displayName = "KendoReactButtonItem";
263
- class Te extends n.Component {
263
+ class Te extends o.Component {
264
264
  /**
265
265
  * @hidden
266
266
  */
@@ -276,11 +276,11 @@ Te.propTypes = {
276
276
  disabled: s.bool,
277
277
  render: s.any
278
278
  };
279
- const Le = (e, o, t, i) => {
279
+ const Le = (e, n, t, i) => {
280
280
  if (t)
281
281
  return e;
282
282
  const a = Math.min(i - 1, Math.max(0, e));
283
- switch (o) {
283
+ switch (n) {
284
284
  case r.enter:
285
285
  case r.space:
286
286
  case r.esc:
@@ -300,16 +300,16 @@ const Le = (e, o, t, i) => {
300
300
  }
301
301
  };
302
302
  function _e(e) {
303
- let o = { horizontal: "left", vertical: "bottom" };
304
- return e && (o.horizontal = "right"), o;
303
+ let n = { horizontal: "left", vertical: "bottom" };
304
+ return e && (n.horizontal = "right"), n;
305
305
  }
306
306
  function He(e) {
307
- let o = { horizontal: "left", vertical: "top" };
308
- return e && (o.horizontal = "right"), o;
307
+ let n = { horizontal: "left", vertical: "top" };
308
+ return e && (n.horizontal = "right"), n;
309
309
  }
310
- let Ee = class extends n.Component {
311
- constructor(o) {
312
- super(o), this.state = {
310
+ let Ee = class extends o.Component {
311
+ constructor(n) {
312
+ super(n), this.state = {
313
313
  focused: !1,
314
314
  focusedIndex: -1,
315
315
  opened: !1
@@ -393,9 +393,9 @@ let Ee = class extends n.Component {
393
393
  * @hidden
394
394
  */
395
395
  render() {
396
- this.buttonsData = this.props.items || n.Children.toArray(this.props.children).filter((c) => c && c.type === Te).map((c) => c.props);
397
- const o = this.isRtl(), t = o ? "rtl" : void 0, { id: i, style: a, tabIndex: l, disabled: u } = this.props;
398
- return /* @__PURE__ */ n.createElement(
396
+ this.buttonsData = this.props.items || o.Children.toArray(this.props.children).filter((c) => c && c.type === Te).map((c) => c.props);
397
+ const n = this.isRtl(), t = n ? "rtl" : void 0, { id: i, style: a, tabIndex: l, disabled: u } = this.props;
398
+ return /* @__PURE__ */ o.createElement(
399
399
  "div",
400
400
  {
401
401
  id: i,
@@ -415,7 +415,7 @@ let Ee = class extends n.Component {
415
415
  dir: t,
416
416
  ref: (c) => this.wrapper = c
417
417
  },
418
- /* @__PURE__ */ n.createElement(
418
+ /* @__PURE__ */ o.createElement(
419
419
  ne,
420
420
  {
421
421
  ref: (c) => this.mainButton = c && c.element,
@@ -444,7 +444,7 @@ let Ee = class extends n.Component {
444
444
  },
445
445
  this.props.text
446
446
  ),
447
- /* @__PURE__ */ n.createElement(
447
+ /* @__PURE__ */ o.createElement(
448
448
  ne,
449
449
  {
450
450
  type: "button",
@@ -464,7 +464,7 @@ let Ee = class extends n.Component {
464
464
  "aria-label": "menu toggling button"
465
465
  }
466
466
  ),
467
- this.renderPopup(o)
467
+ this.renderPopup(n)
468
468
  );
469
469
  }
470
470
  /**
@@ -479,10 +479,10 @@ let Ee = class extends n.Component {
479
479
  get element() {
480
480
  return this.mainButton;
481
481
  }
482
- dispatchClickEvent(o, t) {
483
- this.isItemDisabled(t) || (t === -1 ? I(this.props.onButtonClick, o, this, void 0) : I(
482
+ dispatchClickEvent(n, t) {
483
+ this.isItemDisabled(t) || (t === -1 ? I(this.props.onButtonClick, n, this, void 0) : I(
484
484
  this.props.onItemClick,
485
- o,
485
+ n,
486
486
  this,
487
487
  {
488
488
  item: this.buttonsData[t],
@@ -490,21 +490,21 @@ let Ee = class extends n.Component {
490
490
  }
491
491
  ));
492
492
  }
493
- renderPopup(o) {
493
+ renderPopup(n) {
494
494
  const { popupSettings: t = {} } = this.props, { focusedIndex: i } = this.state;
495
- return /* @__PURE__ */ n.createElement(
495
+ return /* @__PURE__ */ o.createElement(
496
496
  De,
497
497
  {
498
498
  anchor: this.wrapper,
499
499
  show: this.opened,
500
500
  animate: t.animate,
501
501
  popupClass: f("k-menu-popup", t.popupClass),
502
- anchorAlign: t.anchorAlign || _e(o),
503
- popupAlign: t.popupAlign || He(o),
504
- style: o ? { direction: "rtl" } : void 0,
502
+ anchorAlign: t.anchorAlign || _e(n),
503
+ popupAlign: t.popupAlign || He(n),
504
+ style: n ? { direction: "rtl" } : void 0,
505
505
  onClose: this.onPopupClose
506
506
  },
507
- /* @__PURE__ */ n.createElement(
507
+ /* @__PURE__ */ o.createElement(
508
508
  "ul",
509
509
  {
510
510
  role: "menu",
@@ -522,8 +522,8 @@ let Ee = class extends n.Component {
522
522
  );
523
523
  }
524
524
  renderChildItems() {
525
- const { item: o, itemRender: t, textField: i } = this.props;
526
- return this.buttonsData.length > 0 ? this.buttonsData.map((a, l) => /* @__PURE__ */ n.createElement(
525
+ const { item: n, itemRender: t, textField: i } = this.props;
526
+ return this.buttonsData.length > 0 ? this.buttonsData.map((a, l) => /* @__PURE__ */ o.createElement(
527
527
  we,
528
528
  {
529
529
  className: "k-menu-item",
@@ -533,15 +533,15 @@ let Ee = class extends n.Component {
533
533
  onClick: this.onItemClick,
534
534
  onDown: this.onItemDown,
535
535
  render: t,
536
- item: o,
536
+ item: n,
537
537
  key: l,
538
538
  index: l,
539
539
  id: `${this.guid}-${l}`
540
540
  }
541
541
  )) : null;
542
542
  }
543
- isItemDisabled(o) {
544
- return this.buttonsData[o] ? this.buttonsData[o].disabled : this.props.disabled;
543
+ isItemDisabled(n) {
544
+ return this.buttonsData[n] ? this.buttonsData[n].disabled : this.props.disabled;
545
545
  }
546
546
  isRtl() {
547
547
  return this.props.dir !== void 0 ? this.props.dir === "rtl" : !!this.wrapper && getComputedStyle(this.wrapper).direction === "rtl";
@@ -579,7 +579,7 @@ Ee.defaultProps = {
579
579
  fillMode: "solid",
580
580
  themeColor: "base"
581
581
  };
582
- class Ue extends n.Component {
582
+ class Ue extends o.Component {
583
583
  /**
584
584
  * @hidden
585
585
  */
@@ -596,9 +596,9 @@ Ue.propTypes = {
596
596
  disabled: s.bool,
597
597
  render: s.any
598
598
  };
599
- let Ne = class extends n.Component {
600
- constructor(o) {
601
- super(o), this.state = {
599
+ let Ne = class extends o.Component {
600
+ constructor(n) {
601
+ super(n), this.state = {
602
602
  opened: !1,
603
603
  focused: !1,
604
604
  focusedIndex: -1
@@ -682,8 +682,8 @@ let Ne = class extends n.Component {
682
682
  * @hidden
683
683
  */
684
684
  render() {
685
- const o = this.isRtl(), t = o ? "rtl" : void 0, { id: i, style: a, tabIndex: l, disabled: u } = this.props;
686
- return this.buttonsData = this.props.items || n.Children.toArray(this.props.children).filter((c) => c && c.type === Ue).map((c) => c.props), /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement(
685
+ const n = this.isRtl(), t = n ? "rtl" : void 0, { id: i, style: a, tabIndex: l, disabled: u } = this.props;
686
+ return this.buttonsData = this.props.items || o.Children.toArray(this.props.children).filter((c) => c && c.type === Ue).map((c) => c.props), /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement(
687
687
  ne,
688
688
  {
689
689
  id: i,
@@ -724,7 +724,7 @@ let Ne = class extends n.Component {
724
724
  title: this.props.title
725
725
  },
726
726
  this.props.text
727
- ), this.renderPopup(o));
727
+ ), this.renderPopup(n));
728
728
  }
729
729
  /**
730
730
  * @hidden
@@ -738,10 +738,10 @@ let Ne = class extends n.Component {
738
738
  get element() {
739
739
  return this.mainButton;
740
740
  }
741
- dispatchClickEvent(o, t) {
741
+ dispatchClickEvent(n, t) {
742
742
  this.isItemDisabled(t) || I(
743
743
  this.props.onItemClick,
744
- o,
744
+ n,
745
745
  this,
746
746
  {
747
747
  item: this.buttonsData[t],
@@ -749,21 +749,21 @@ let Ne = class extends n.Component {
749
749
  }
750
750
  );
751
751
  }
752
- renderPopup(o) {
752
+ renderPopup(n) {
753
753
  const { popupSettings: t = {}, id: i } = this.props, { focusedIndex: a } = this.state;
754
- return /* @__PURE__ */ n.createElement(
754
+ return /* @__PURE__ */ o.createElement(
755
755
  De,
756
756
  {
757
757
  anchor: this.mainButton,
758
758
  show: this.opened,
759
759
  animate: t.animate,
760
760
  popupClass: f("k-menu-popup", t.popupClass),
761
- anchorAlign: t.anchorAlign || _e(o),
762
- popupAlign: t.popupAlign || He(o),
763
- style: o ? { direction: "rtl" } : void 0,
761
+ anchorAlign: t.anchorAlign || _e(n),
762
+ popupAlign: t.popupAlign || He(n),
763
+ style: n ? { direction: "rtl" } : void 0,
764
764
  onClose: this.onPopupClose
765
765
  },
766
- /* @__PURE__ */ n.createElement(
766
+ /* @__PURE__ */ o.createElement(
767
767
  "ul",
768
768
  {
769
769
  role: "menu",
@@ -783,8 +783,8 @@ let Ne = class extends n.Component {
783
783
  );
784
784
  }
785
785
  renderChildItems() {
786
- const { item: o, itemRender: t, textField: i } = this.props;
787
- return this.buttonsData.length > 0 ? this.buttonsData.map((a, l) => /* @__PURE__ */ n.createElement(
786
+ const { item: n, itemRender: t, textField: i } = this.props;
787
+ return this.buttonsData.length > 0 ? this.buttonsData.map((a, l) => /* @__PURE__ */ o.createElement(
788
788
  we,
789
789
  {
790
790
  className: "k-menu-item",
@@ -794,15 +794,15 @@ let Ne = class extends n.Component {
794
794
  onClick: this.onItemClick,
795
795
  onDown: this.onItemDown,
796
796
  render: t,
797
- item: o,
797
+ item: n,
798
798
  index: l,
799
799
  key: l,
800
800
  id: `${this.guid}-${l}`
801
801
  }
802
802
  )) : null;
803
803
  }
804
- isItemDisabled(o) {
805
- return this.buttonsData[o] ? this.buttonsData[o].disabled : this.props.disabled;
804
+ isItemDisabled(n) {
805
+ return this.buttonsData[n] ? this.buttonsData[n].disabled : this.props.disabled;
806
806
  }
807
807
  isRtl() {
808
808
  return this.props.dir !== void 0 ? this.props.dir === "rtl" : !!this.mainButton && getComputedStyle(this.mainButton).direction === "rtl";
@@ -838,20 +838,20 @@ Ne.defaultProps = {
838
838
  fillMode: "solid",
839
839
  themeColor: "base"
840
840
  };
841
- const Ce = class extends n.Component {
841
+ const Ce = class extends o.Component {
842
842
  constructor(e) {
843
- super(e), this._element = null, this.offsetHeight = 0, this.offsetWidth = 0, this.buttons = [], this.focusedSelector = this.selectors.map((o) => o + ":focus").join(","), this.setTabIndex = (o) => {
843
+ super(e), this._element = null, this.offsetHeight = 0, this.offsetWidth = 0, this.buttons = [], this.focusedSelector = this.selectors.map((n) => n + ":focus").join(","), this.setTabIndex = (n) => {
844
844
  const { tabIndex: t = Ce.defaultProps.tabIndex } = this.props;
845
845
  this.buttons.forEach((i, a) => {
846
- i.tabIndex = a === o ? t : -1;
846
+ i.tabIndex = a === n ? t : -1;
847
847
  });
848
- }, this.onKeyDown = (o) => {
849
- const t = o.target;
850
- if (!(o.keyCode === r.left || o.keyCode === r.right || o.keyCode === r.home || o.keyCode === r.end) || o.defaultPrevented || this.buttons.findIndex((l) => l === t) === -1)
848
+ }, this.onKeyDown = (n) => {
849
+ const t = n.target;
850
+ if (!(n.keyCode === r.left || n.keyCode === r.right || n.keyCode === r.home || n.keyCode === r.end) || n.defaultPrevented || this.buttons.findIndex((l) => l === t) === -1)
851
851
  return;
852
852
  const a = this.focusedIndex;
853
- o.keyCode === r.left ? this.focusButton(a, a === 0 ? this.buttons.length - 1 : a - 1) : this.focusButton(a, a === this.buttons.length - 1 ? 0 : a + 1), o.keyCode === r.home && this.focusButton(a, 0), o.keyCode === r.end && this.focusButton(a, this.buttons.length - 1);
854
- }, this.onWindowResize = (o) => {
853
+ n.keyCode === r.left ? this.focusButton(a, a === 0 ? this.buttons.length - 1 : a - 1) : this.focusButton(a, a === this.buttons.length - 1 ? 0 : a + 1), n.keyCode === r.home && this.focusButton(a, 0), n.keyCode === r.end && this.focusButton(a, this.buttons.length - 1);
854
+ }, this.onWindowResize = (n) => {
855
855
  const t = this.element;
856
856
  if (!t)
857
857
  return;
@@ -859,7 +859,7 @@ const Ce = class extends n.Component {
859
859
  if (this.offsetWidth !== i || this.offsetHeight !== a) {
860
860
  this.offsetWidth = i, this.offsetHeight = a;
861
861
  const l = { offsetWidth: this.offsetWidth, offsetHeight: this.offsetHeight };
862
- this.props.onResize && this.props.onResize.call(void 0, { target: this, ...l, nativeEvent: o });
862
+ this.props.onResize && this.props.onResize.call(void 0, { target: this, ...l, nativeEvent: n });
863
863
  }
864
864
  }, R(O);
865
865
  }
@@ -868,7 +868,7 @@ const Ce = class extends n.Component {
868
868
  }
869
869
  get focusedIndex() {
870
870
  const e = this.element && this.element.querySelector(this.focusedSelector);
871
- return Math.max(0, this.buttons.findIndex((o) => o === e));
871
+ return Math.max(0, this.buttons.findIndex((n) => n === e));
872
872
  }
873
873
  /**
874
874
  * Returns the HTML element of the Toolbar component.
@@ -901,7 +901,7 @@ const Ce = class extends n.Component {
901
901
  * @hidden
902
902
  */
903
903
  render() {
904
- return /* @__PURE__ */ n.createElement(
904
+ return /* @__PURE__ */ o.createElement(
905
905
  "div",
906
906
  {
907
907
  id: this.props.id,
@@ -922,8 +922,8 @@ const Ce = class extends n.Component {
922
922
  this.props.children
923
923
  );
924
924
  }
925
- focusButton(e, o) {
926
- const { tabIndex: t = Ce.defaultProps.tabIndex } = this.props, i = this.buttons[o];
925
+ focusButton(e, n) {
926
+ const { tabIndex: t = Ce.defaultProps.tabIndex } = this.props, i = this.buttons[n];
927
927
  if (i) {
928
928
  i.tabIndex = t, i.focus();
929
929
  const a = this.buttons[e];
@@ -947,7 +947,7 @@ We.defaultProps = {
947
947
  tabIndex: 0,
948
948
  size: "medium"
949
949
  };
950
- class gt extends n.PureComponent {
950
+ class gt extends o.PureComponent {
951
951
  constructor() {
952
952
  super(...arguments), this._element = null;
953
953
  }
@@ -961,13 +961,13 @@ class gt extends n.PureComponent {
961
961
  * @hidden
962
962
  */
963
963
  render() {
964
- return /* @__PURE__ */ n.createElement(
964
+ return /* @__PURE__ */ o.createElement(
965
965
  "div",
966
966
  {
967
967
  id: this.props.id,
968
968
  className: f("k-toolbar-item", this.props.className),
969
969
  style: this.props.style,
970
- ref: (o) => this._element = o
970
+ ref: (n) => this._element = n
971
971
  },
972
972
  this.props.children
973
973
  );
@@ -976,25 +976,25 @@ class gt extends n.PureComponent {
976
976
  gt.propTypes = {
977
977
  className: s.string
978
978
  };
979
- class Wt extends n.PureComponent {
979
+ class Wt extends o.PureComponent {
980
980
  /**
981
981
  * @hidden
982
982
  */
983
983
  render() {
984
- return /* @__PURE__ */ n.createElement("div", { className: f("k-separator", this.props.className) });
984
+ return /* @__PURE__ */ o.createElement("div", { className: f("k-separator", this.props.className) });
985
985
  }
986
986
  }
987
- const je = n.forwardRef((e, o) => {
988
- const t = n.useRef(null), i = n.useRef(null);
989
- n.useImperativeHandle(i, () => ({ element: t.current })), n.useImperativeHandle(o, () => ({ element: t.current }));
990
- const a = n.useMemo(
987
+ const je = o.forwardRef((e, n) => {
988
+ const t = o.useRef(null), i = o.useRef(null);
989
+ o.useImperativeHandle(i, () => ({ element: t.current })), o.useImperativeHandle(n, () => ({ element: t.current }));
990
+ const a = o.useMemo(
991
991
  () => f(
992
992
  "k-spacer",
993
993
  e.className
994
994
  ),
995
995
  [e.className]
996
996
  );
997
- return /* @__PURE__ */ n.createElement(
997
+ return /* @__PURE__ */ o.createElement(
998
998
  "span",
999
999
  {
1000
1000
  ref: t,
@@ -1006,33 +1006,33 @@ je.displayName = "KendoReactToolbarSpacer";
1006
1006
  je.propTypes = {
1007
1007
  className: s.string
1008
1008
  };
1009
- const Ve = Ie.createContext([null, (e) => {
1010
- }]), Ze = Ie.createContext([null, (e) => {
1009
+ const Ze = Ie.createContext([null, (e) => {
1011
1010
  }]), qe = Ie.createContext([null, (e) => {
1011
+ }]), Ge = Ie.createContext([null, (e) => {
1012
1012
  }]);
1013
1013
  var te = /* @__PURE__ */ ((e) => (e.next = "next", e.prev = "prev", e.current = "current", e.reset = "reset", e))(te || {});
1014
- const yt = (e, o) => {
1015
- const t = o.items.findIndex((i) => i === e);
1016
- switch (o.type) {
1014
+ const yt = (e, n) => {
1015
+ const t = n.items.findIndex((i) => i === e);
1016
+ switch (n.type) {
1017
1017
  case "next":
1018
- return t === o.items.length - 1 ? e : o.items[t + 1];
1018
+ return t === n.items.length - 1 ? e : n.items[t + 1];
1019
1019
  case "prev":
1020
- return t === 0 ? e : o.items[t - 1];
1020
+ return t === 0 ? e : n.items[t - 1];
1021
1021
  case "current":
1022
- return o.payload;
1022
+ return n.payload;
1023
1023
  case "reset":
1024
1024
  return null;
1025
1025
  default:
1026
1026
  return e;
1027
1027
  }
1028
1028
  };
1029
- var Ge = /* @__PURE__ */ ((e) => (e.remove = "remove", e.add = "add", e.reorder = "reorder", e))(Ge || {});
1030
- const kt = (e, o) => {
1031
- switch (o.type) {
1029
+ var Xe = /* @__PURE__ */ ((e) => (e.remove = "remove", e.add = "add", e.reorder = "reorder", e))(Xe || {});
1030
+ const kt = (e, n) => {
1031
+ switch (n.type) {
1032
1032
  case "add":
1033
1033
  break;
1034
1034
  case "remove":
1035
- return e.filter((t) => t[o.valueField] !== o.payload);
1035
+ return e.filter((t) => t[n.valueField] !== n.payload);
1036
1036
  case "reorder":
1037
1037
  break;
1038
1038
  default:
@@ -1040,31 +1040,31 @@ const kt = (e, o) => {
1040
1040
  }
1041
1041
  };
1042
1042
  var pe = /* @__PURE__ */ ((e) => (e.toggle = "toggle", e.remove = "remove", e))(pe || {});
1043
- const vt = (e, o) => {
1044
- switch (o.selection) {
1043
+ const vt = (e, n) => {
1044
+ switch (n.selection) {
1045
1045
  case "single":
1046
- switch (o.type) {
1046
+ switch (n.type) {
1047
1047
  case "toggle": {
1048
1048
  if (!Array.isArray(e) || e === null)
1049
- return o.payload === e ? null : o.payload;
1049
+ return n.payload === e ? null : n.payload;
1050
1050
  throw new Error("State cannot be an array in single selection");
1051
1051
  }
1052
1052
  case "remove":
1053
- return o.payload === e ? null : e;
1053
+ return n.payload === e ? null : e;
1054
1054
  default:
1055
1055
  return e;
1056
1056
  }
1057
1057
  case "multiple":
1058
- switch (o.type) {
1058
+ switch (n.type) {
1059
1059
  case "toggle": {
1060
1060
  if (Array.isArray(e))
1061
- return e.some((t) => t === o.payload) ? e.filter((t) => t !== o.payload) : [...e, o.payload];
1061
+ return e.some((t) => t === n.payload) ? e.filter((t) => t !== n.payload) : [...e, n.payload];
1062
1062
  if (e === null)
1063
- return [o.payload];
1063
+ return [n.payload];
1064
1064
  throw new Error("State cannot be non-array in multiple selection");
1065
1065
  }
1066
1066
  case "remove":
1067
- return Array.isArray(e) ? e.some((t) => t === o.payload) ? e.filter((t) => t !== o.payload) : [...e, o.payload] : e;
1067
+ return Array.isArray(e) ? e.some((t) => t === n.payload) ? e.filter((t) => t !== n.payload) : [...e, n.payload] : e;
1068
1068
  default:
1069
1069
  return e;
1070
1070
  }
@@ -1073,34 +1073,34 @@ const vt = (e, o) => {
1073
1073
  default:
1074
1074
  return e;
1075
1075
  }
1076
- }, j = n.forwardRef((e, o) => {
1076
+ }, j = o.forwardRef((e, n) => {
1077
1077
  R(O);
1078
- const t = n.useRef(null), i = n.useRef(null), a = xe(i, e.dir);
1079
- n.useImperativeHandle(t, () => ({
1078
+ const t = o.useRef(null), i = o.useRef(null), a = xe(i, e.dir);
1079
+ o.useImperativeHandle(t, () => ({
1080
1080
  element: i.current,
1081
1081
  props: e
1082
- })), n.useImperativeHandle(o, () => t.current);
1083
- const [l, u] = n.useContext(Ve), [c, g] = n.useContext(Ze), [, v] = n.useContext(qe), h = n.useMemo(
1082
+ })), o.useImperativeHandle(n, () => t.current);
1083
+ const [l, u] = o.useContext(Ze), [c, g] = o.useContext(qe), [, v] = o.useContext(Ge), h = o.useMemo(
1084
1084
  () => e.selected || (Array.isArray(l) ? l.some((p) => p === e.value) : l === e.value),
1085
1085
  [e.selected, e.value, l]
1086
- ), D = n.useMemo(
1086
+ ), D = o.useMemo(
1087
1087
  () => c === e.value,
1088
1088
  [e.value, c]
1089
1089
  );
1090
- n.useEffect(
1090
+ o.useEffect(
1091
1091
  () => {
1092
1092
  D && i.current && i.current.focus();
1093
1093
  },
1094
1094
  [D]
1095
1095
  );
1096
- const N = n.useCallback(
1096
+ const N = o.useCallback(
1097
1097
  (p) => {
1098
1098
  u({ type: pe.toggle, payload: e.value, event: p });
1099
1099
  },
1100
1100
  [u, e.value]
1101
- ), w = n.useCallback(
1101
+ ), w = o.useCallback(
1102
1102
  (p) => {
1103
- e.removable && (v({ type: Ge.remove, payload: e.value, event: p }), g({ type: te.reset, payload: e.value, event: p }), u({ type: pe.remove, payload: e.value, event: p }), e.onRemove && e.onRemove.call(
1103
+ e.removable && (v({ type: Xe.remove, payload: e.value, event: p }), g({ type: te.reset, payload: e.value, event: p }), u({ type: pe.remove, payload: e.value, event: p }), e.onRemove && e.onRemove.call(
1104
1104
  void 0,
1105
1105
  {
1106
1106
  target: t.current,
@@ -1109,7 +1109,7 @@ const vt = (e, o) => {
1109
1109
  ));
1110
1110
  },
1111
1111
  [e.onRemove, e.value, e.removable, v, g, u]
1112
- ), S = n.useCallback(
1112
+ ), S = o.useCallback(
1113
1113
  (p) => {
1114
1114
  switch (p.keyCode) {
1115
1115
  case r.left:
@@ -1134,7 +1134,7 @@ const vt = (e, o) => {
1134
1134
  );
1135
1135
  },
1136
1136
  [e.onKeyDown, e.value, g, u, w]
1137
- ), B = n.useCallback(
1137
+ ), B = o.useCallback(
1138
1138
  (p) => {
1139
1139
  g({ payload: e.value, type: te.current, event: p }), e.onFocus && e.onFocus.call(
1140
1140
  void 0,
@@ -1145,7 +1145,7 @@ const vt = (e, o) => {
1145
1145
  );
1146
1146
  },
1147
1147
  [e.onFocus, e.value, g]
1148
- ), x = n.useCallback(
1148
+ ), x = o.useCallback(
1149
1149
  (p) => {
1150
1150
  e.onBlur && e.onBlur.call(
1151
1151
  void 0,
@@ -1156,8 +1156,8 @@ const vt = (e, o) => {
1156
1156
  );
1157
1157
  },
1158
1158
  [e.onBlur]
1159
- ), E = $e(e, t, { onClick: N });
1160
- return /* @__PURE__ */ n.createElement(
1159
+ ), E = Ae(e, t, { onClick: N });
1160
+ return /* @__PURE__ */ o.createElement(
1161
1161
  "div",
1162
1162
  {
1163
1163
  ...E,
@@ -1189,8 +1189,8 @@ const vt = (e, o) => {
1189
1189
  onBlur: x,
1190
1190
  onKeyDown: S
1191
1191
  },
1192
- h && (e.selectedIcon || e.selectedSvgIcon) && /* @__PURE__ */ n.createElement(
1193
- A,
1192
+ h && (e.selectedIcon || e.selectedSvgIcon) && /* @__PURE__ */ o.createElement(
1193
+ $,
1194
1194
  {
1195
1195
  className: "k-chip-icon",
1196
1196
  name: e.selectedIcon ? ve(e.selectedIcon) : void 0,
@@ -1198,8 +1198,8 @@ const vt = (e, o) => {
1198
1198
  size: "small"
1199
1199
  }
1200
1200
  ),
1201
- (e.icon || e.svgIcon) && /* @__PURE__ */ n.createElement(
1202
- A,
1201
+ (e.icon || e.svgIcon) && /* @__PURE__ */ o.createElement(
1202
+ $,
1203
1203
  {
1204
1204
  className: "k-chip-icon",
1205
1205
  name: e.icon ? ve(e.icon) : void 0,
@@ -1207,13 +1207,13 @@ const vt = (e, o) => {
1207
1207
  size: "small"
1208
1208
  }
1209
1209
  ),
1210
- e.avatar && /* @__PURE__ */ n.createElement(
1210
+ e.avatar && /* @__PURE__ */ o.createElement(
1211
1211
  "div",
1212
1212
  {
1213
1213
  className: `k-chip-avatar k-avatar k-rounded-${e.avatar.rounded} k-avatar-md k-avatar-solid k-avatar-solid-primary`,
1214
1214
  style: e.avatar.style
1215
1215
  },
1216
- /* @__PURE__ */ n.createElement("span", { className: "k-avatar-image" }, /* @__PURE__ */ n.createElement(
1216
+ /* @__PURE__ */ o.createElement("span", { className: "k-avatar-image" }, /* @__PURE__ */ o.createElement(
1217
1217
  "img",
1218
1218
  {
1219
1219
  src: e.avatar.image,
@@ -1221,7 +1221,7 @@ const vt = (e, o) => {
1221
1221
  }
1222
1222
  ))
1223
1223
  ),
1224
- /* @__PURE__ */ n.createElement("span", { className: "k-chip-content" }, e.children !== void 0 ? e.children : e.text && /* @__PURE__ */ n.createElement(
1224
+ /* @__PURE__ */ o.createElement("span", { className: "k-chip-content" }, e.children !== void 0 ? e.children : e.text && /* @__PURE__ */ o.createElement(
1225
1225
  "span",
1226
1226
  {
1227
1227
  "aria-label": e.ariaLabel || e.text,
@@ -1229,8 +1229,8 @@ const vt = (e, o) => {
1229
1229
  },
1230
1230
  e.text
1231
1231
  )),
1232
- e.removable && /* @__PURE__ */ n.createElement("span", { className: "k-chip-actions" }, /* @__PURE__ */ n.createElement("span", { className: f("k-chip-action", "k-chip-remove-action"), onClick: w }, /* @__PURE__ */ n.createElement(
1233
- A,
1232
+ e.removable && /* @__PURE__ */ o.createElement("span", { className: "k-chip-actions" }, /* @__PURE__ */ o.createElement("span", { className: f("k-chip-action", "k-chip-remove-action"), onClick: w }, /* @__PURE__ */ o.createElement(
1233
+ $,
1234
1234
  {
1235
1235
  name: e.removeIcon ? ve(e.removeIcon) : void 0,
1236
1236
  icon: e.removeSvgIcon || ut,
@@ -1273,27 +1273,28 @@ const vt = (e, o) => {
1273
1273
  j.displayName = "KendoReactChip";
1274
1274
  j.propTypes = Ct;
1275
1275
  j.defaultProps = It;
1276
- const xt = (e, o, t) => {
1277
- const [i, a] = n.useState(e);
1276
+ const xt = (e, n, t) => {
1277
+ n.selection === "multiple" ? Array.isArray(e) || (e = e ? [e] : null) : n.selection === "single" && Array.isArray(e) && (e = e ? e.join("") : null);
1278
+ const [i, a] = o.useState(e);
1278
1279
  return [i, (u) => {
1279
- const c = vt(o.state || i, { ...u, ...o });
1280
- t && t(c, u.event), a(c);
1280
+ const c = vt(n.state || i, { ...u, ...n });
1281
+ t && t(c, u.event), n.selection !== "none" && a(c);
1281
1282
  }];
1282
1283
  }, Dt = (e) => {
1283
- const [o, t] = n.useState(null);
1284
- return [o, (a) => {
1284
+ const [n, t] = o.useState(null);
1285
+ return [n, (a) => {
1285
1286
  const l = yt(a.payload, { ...a, ...e });
1286
1287
  t(l);
1287
1288
  }];
1288
- }, wt = (e, o, t) => {
1289
- const [i, a] = n.useState(e);
1289
+ }, wt = (e, n, t) => {
1290
+ const [i, a] = o.useState(e);
1290
1291
  return [i, (u) => {
1291
- const c = kt(o.state || i, { ...u, ...o });
1292
+ const c = kt(n.state || i, { ...u, ...n });
1292
1293
  t && t(c, u.event), a(c);
1293
1294
  }];
1294
- }, Se = n.forwardRef((e, o) => {
1295
+ }, Se = o.forwardRef((e, n) => {
1295
1296
  R(O);
1296
- const t = n.useRef(null), i = n.useRef(null), a = xe(i, e.dir), {
1297
+ const t = o.useRef(null), i = o.useRef(null), a = xe(i, e.dir), {
1297
1298
  chip: l,
1298
1299
  id: u,
1299
1300
  style: c,
@@ -1311,15 +1312,15 @@ const xt = (e, o, t) => {
1311
1312
  textField: T = W.textField,
1312
1313
  onChange: K,
1313
1314
  onDataChange: z
1314
- } = e, L = n.useMemo(
1315
+ } = e, L = o.useMemo(
1315
1316
  () => l || j,
1316
1317
  [l, j]
1317
1318
  );
1318
- n.useImperativeHandle(t, () => ({
1319
+ o.useImperativeHandle(t, () => ({
1319
1320
  element: i.current,
1320
1321
  props: e
1321
- })), n.useImperativeHandle(o, () => t.current);
1322
- const $ = n.useCallback(
1322
+ })), o.useImperativeHandle(n, () => t.current);
1323
+ const A = o.useCallback(
1323
1324
  (m, y) => {
1324
1325
  K && t.current && K.call(void 0, {
1325
1326
  value: m,
@@ -1328,14 +1329,14 @@ const xt = (e, o, t) => {
1328
1329
  });
1329
1330
  },
1330
1331
  [K]
1331
- ), [V, Z] = xt(
1332
- x,
1332
+ ), [Z, q] = xt(
1333
+ x || e.defaultValue,
1333
1334
  {
1334
1335
  selection: B,
1335
1336
  state: x
1336
1337
  },
1337
- $
1338
- ), oe = n.useCallback(
1338
+ A
1339
+ ), oe = o.useCallback(
1339
1340
  (m, y) => {
1340
1341
  z && t.current && z.call(void 0, {
1341
1342
  value: m,
@@ -1344,33 +1345,33 @@ const xt = (e, o, t) => {
1344
1345
  });
1345
1346
  },
1346
1347
  [z]
1347
- ), [q, ie] = wt(
1348
+ ), [G, ie] = wt(
1348
1349
  e.data || E,
1349
1350
  {
1350
1351
  state: e.data,
1351
1352
  valueField: p
1352
1353
  },
1353
1354
  oe
1354
- ), G = n.useCallback(
1355
+ ), X = o.useCallback(
1355
1356
  (m, y) => (m.push(y[p]), m),
1356
1357
  [p]
1357
- ), _ = n.useMemo(
1358
- () => e.data || q,
1359
- [e.data, q]
1360
- ), ae = n.useMemo(
1361
- () => x || V,
1362
- [x, V]
1363
- ), le = n.useMemo(
1364
- () => _.reduce(G, []),
1365
- [_, G]
1366
- ), X = n.useCallback(
1358
+ ), _ = o.useMemo(
1359
+ () => e.data || G,
1360
+ [e.data, G]
1361
+ ), ae = o.useMemo(
1362
+ () => x || Z,
1363
+ [x, Z]
1364
+ ), le = o.useMemo(
1365
+ () => _.reduce(X, []),
1366
+ [_, X]
1367
+ ), V = o.useCallback(
1367
1368
  (m) => Me(p)(m),
1368
1369
  [p]
1369
- ), k = n.useCallback(
1370
+ ), k = o.useCallback(
1370
1371
  (m) => Me(T)(m),
1371
1372
  [T]
1372
- ), [fe, be] = Dt({ items: le }), re = $e(e, t);
1373
- return /* @__PURE__ */ n.createElement(Ve.Provider, { value: [ae, Z] }, /* @__PURE__ */ n.createElement(Ze.Provider, { value: [fe, be] }, /* @__PURE__ */ n.createElement(qe.Provider, { value: [_, ie] }, /* @__PURE__ */ n.createElement(
1373
+ ), [fe, be] = Dt({ items: le }), re = Ae(e, t);
1374
+ return /* @__PURE__ */ o.createElement(Ze.Provider, { value: [ae, q] }, /* @__PURE__ */ o.createElement(qe.Provider, { value: [fe, be] }, /* @__PURE__ */ o.createElement(Ge.Provider, { value: [_, ie] }, /* @__PURE__ */ o.createElement(
1374
1375
  "div",
1375
1376
  {
1376
1377
  ref: i,
@@ -1395,15 +1396,15 @@ const xt = (e, o, t) => {
1395
1396
  "aria-orientation": "horizontal",
1396
1397
  "aria-multiselectable": B === "multiple"
1397
1398
  },
1398
- _.map((m, y) => /* @__PURE__ */ n.createElement(
1399
+ _.map((m, y) => /* @__PURE__ */ o.createElement(
1399
1400
  L,
1400
1401
  {
1401
1402
  role: "option",
1402
1403
  dataItem: m,
1403
1404
  size: h,
1404
- key: [X(m), y].join("-"),
1405
+ key: [V(m), y].join("-"),
1405
1406
  text: k(m),
1406
- value: X(m),
1407
+ value: V(m),
1407
1408
  ariaLabel: m.ariaLabel,
1408
1409
  svgIcon: m.svgIcon || void 0
1409
1410
  }
@@ -1442,7 +1443,7 @@ const xt = (e, o, t) => {
1442
1443
  Se.displayName = "KendoReactChipList";
1443
1444
  Se.propTypes = Et;
1444
1445
  Se.defaultProps = W;
1445
- const Be = n.forwardRef((e, o) => {
1446
+ const Be = o.forwardRef((e, n) => {
1446
1447
  const {
1447
1448
  className: t,
1448
1449
  disabled: i,
@@ -1459,25 +1460,25 @@ const Be = n.forwardRef((e, o) => {
1459
1460
  onDown: S,
1460
1461
  onClick: B,
1461
1462
  ...x
1462
- } = e, E = n.useRef(null), p = n.useCallback(
1463
+ } = e, E = o.useRef(null), p = o.useCallback(
1463
1464
  () => {
1464
1465
  E.current && E.current.focus();
1465
1466
  },
1466
1467
  []
1467
- ), T = n.useCallback(
1468
+ ), T = o.useCallback(
1468
1469
  () => ({
1469
1470
  element: E.current,
1470
1471
  focus: p
1471
1472
  }),
1472
1473
  [p]
1473
1474
  );
1474
- n.useImperativeHandle(o, T);
1475
- const K = n.useCallback(
1476
- ($) => {
1477
- B && h !== void 0 && !i && B($, h);
1475
+ o.useImperativeHandle(n, T);
1476
+ const K = o.useCallback(
1477
+ (A) => {
1478
+ B && h !== void 0 && !i && B(A, h);
1478
1479
  },
1479
1480
  [B, h]
1480
- ), z = n.useMemo(
1481
+ ), z = o.useMemo(
1481
1482
  () => f(
1482
1483
  "k-fab-item",
1483
1484
  {
@@ -1488,7 +1489,7 @@ const Be = n.forwardRef((e, o) => {
1488
1489
  ),
1489
1490
  [t, i, g]
1490
1491
  ), L = N;
1491
- return /* @__PURE__ */ n.createElement(
1492
+ return /* @__PURE__ */ o.createElement(
1492
1493
  "li",
1493
1494
  {
1494
1495
  ref: E,
@@ -1504,7 +1505,7 @@ const Be = n.forwardRef((e, o) => {
1504
1505
  onPointerDown: S,
1505
1506
  ...x
1506
1507
  },
1507
- L ? /* @__PURE__ */ n.createElement(L, { itemIndex: h, item: D }) : /* @__PURE__ */ n.createElement(n.Fragment, null, a && /* @__PURE__ */ n.createElement("span", { className: "k-fab-item-text" }, a), l || w ? /* @__PURE__ */ n.createElement(A, { className: "k-fab-item-icon", name: l, icon: w }) : null)
1508
+ L ? /* @__PURE__ */ o.createElement(L, { itemIndex: h, item: D }) : /* @__PURE__ */ o.createElement(o.Fragment, null, a && /* @__PURE__ */ o.createElement("span", { className: "k-fab-item-text" }, a), l || w ? /* @__PURE__ */ o.createElement($, { className: "k-fab-item-icon", name: l, icon: w }) : null)
1508
1509
  );
1509
1510
  });
1510
1511
  Be.propTypes = {
@@ -1521,36 +1522,36 @@ Be.propTypes = {
1521
1522
  customProp: s.any
1522
1523
  };
1523
1524
  Be.displayName = "KendoFloatingActionButtonItem";
1524
- const Ke = "16px", he = (e) => typeof e == "number" ? e + "px" : e, Nt = (e, o) => {
1525
- const t = { horizontal: o ? "right" : "left", vertical: "bottom" };
1526
- return e.horizontal === "end" && (t.horizontal = o ? "left" : "right"), t;
1527
- }, St = (e, o) => {
1528
- const t = { horizontal: o ? "right" : "left", vertical: "top" };
1529
- return e.horizontal === "end" && (t.horizontal = o ? "left" : "right"), t;
1530
- }, Bt = (e, o) => {
1531
- const t = o === "end" ? "end" : "start";
1525
+ const Ke = "16px", he = (e) => typeof e == "number" ? e + "px" : e, Nt = (e, n) => {
1526
+ const t = { horizontal: n ? "right" : "left", vertical: "bottom" };
1527
+ return e.horizontal === "end" && (t.horizontal = n ? "left" : "right"), t;
1528
+ }, St = (e, n) => {
1529
+ const t = { horizontal: n ? "right" : "left", vertical: "top" };
1530
+ return e.horizontal === "end" && (t.horizontal = n ? "left" : "right"), t;
1531
+ }, Bt = (e, n) => {
1532
+ const t = n === "end" ? "end" : "start";
1532
1533
  return {
1533
1534
  rtl: { end: "k-text-left", start: "k-text-right" },
1534
1535
  ltr: { start: "k-text-left", end: "k-text-right" }
1535
1536
  }[e][t];
1536
- }, Ft = (e, o, t, i) => {
1537
- const a = o.horizontal, l = o.vertical;
1537
+ }, Ft = (e, n, t, i) => {
1538
+ const a = n.horizontal, l = n.vertical;
1538
1539
  if (e.current) {
1539
1540
  const u = t && t.x !== void 0 ? he(t.x) : Ke, c = t && t.x !== void 0 ? `calc(50% + ${he(t.x)})` : "50%", g = t && t.y !== void 0 ? he(t.y) : Ke, v = t && t.y !== void 0 ? `calc(50% + ${he(t.y)})` : "50%";
1540
- e.current.style.setProperty(zt(o, i), a === "center" ? c : u), e.current.style.setProperty(Pt(o), l === "middle" ? v : g), i && ((l === "top" || l === "bottom") && a === "start" && e.current.style.setProperty("left", "unset"), l === "middle" && a === "end" && e.current.style.setProperty("right", "unset"), l === "middle" && a === "start" && e.current.style.setProperty("left", "unset"));
1541
+ e.current.style.setProperty(zt(n, i), a === "center" ? c : u), e.current.style.setProperty(Pt(n), l === "middle" ? v : g), i && ((l === "top" || l === "bottom") && a === "start" && e.current.style.setProperty("left", "unset"), l === "middle" && a === "end" && e.current.style.setProperty("right", "unset"), l === "middle" && a === "start" && e.current.style.setProperty("left", "unset"));
1541
1542
  }
1542
- }, zt = (e, o) => {
1543
+ }, zt = (e, n) => {
1543
1544
  const { horizontal: t } = e;
1544
1545
  return {
1545
- end: o ? "left" : "right",
1546
+ end: n ? "left" : "right",
1546
1547
  center: "left",
1547
- start: o ? "right" : "left"
1548
+ start: n ? "right" : "left"
1548
1549
  }[t || "end"];
1549
1550
  }, Pt = (e) => ({
1550
1551
  top: "top",
1551
1552
  middle: "top",
1552
1553
  bottom: "bottom"
1553
- })[e.vertical || "bottom"], Mt = 2, Rt = 100, Xe = n.forwardRef((e, o) => {
1554
+ })[e.vertical || "bottom"], Mt = 2, Rt = 100, Ve = o.forwardRef((e, n) => {
1554
1555
  R(O);
1555
1556
  const {
1556
1557
  align: t = Y.align,
@@ -1574,53 +1575,53 @@ const Ke = "16px", he = (e) => typeof e == "number" ? e + "px" : e, Nt = (e, o)
1574
1575
  accessKey: K,
1575
1576
  popupSettings: z = {},
1576
1577
  modal: L,
1577
- onClick: $,
1578
- onItemClick: V,
1579
- onFocus: Z,
1578
+ onClick: A,
1579
+ onItemClick: Z,
1580
+ onFocus: q,
1580
1581
  onBlur: oe,
1581
- onKeyDown: q,
1582
+ onKeyDown: G,
1582
1583
  onOpen: ie,
1583
- onClose: G,
1584
+ onClose: X,
1584
1585
  ..._
1585
- } = e, ae = rt(), le = ae ? ae + Mt : Rt, X = n.useRef(null), k = n.useRef(null), fe = n.useRef(null), be = n.useRef(null), re = n.useCallback(
1586
+ } = e, ae = rt(), le = ae ? ae + Mt : Rt, V = o.useRef(null), k = o.useRef(null), fe = o.useRef(null), be = o.useRef(null), re = o.useCallback(
1586
1587
  () => {
1587
1588
  k.current && k.current.focus();
1588
1589
  },
1589
1590
  []
1590
- ), m = n.useCallback(
1591
+ ), m = o.useCallback(
1591
1592
  () => ({
1592
1593
  element: k.current,
1593
1594
  focus: re
1594
1595
  }),
1595
1596
  [re]
1596
1597
  );
1597
- n.useImperativeHandle(X, m), n.useImperativeHandle(o, () => X.current);
1598
- const [y, F] = n.useState(!1), [ce, H] = n.useState(!1), [J, C] = n.useState(-1), Je = Re() + "-button-id", ge = xe(k, e.dir), Q = ge === "rtl", de = Re() + "-list-id";
1599
- n.useEffect(
1598
+ o.useImperativeHandle(V, m), o.useImperativeHandle(n, () => V.current);
1599
+ const [y, F] = o.useState(!1), [ce, H] = o.useState(!1), [J, C] = o.useState(-1), Je = Re() + "-button-id", ge = xe(k, e.dir), Q = ge === "rtl", de = Re() + "-list-id";
1600
+ o.useEffect(
1600
1601
  () => {
1601
1602
  Ft(k, t, i, Q);
1602
1603
  },
1603
1604
  [k, t, i, Q]
1604
- ), n.useEffect(
1605
+ ), o.useEffect(
1605
1606
  () => {
1606
1607
  ce && k && k.current && k.current.focus();
1607
1608
  },
1608
1609
  [ce, k]
1609
1610
  );
1610
- const U = n.useCallback(
1611
+ const U = o.useCallback(
1611
1612
  (d, b) => {
1612
1613
  h && I(
1613
- b ? ie : G,
1614
+ b ? ie : X,
1614
1615
  d,
1615
1616
  m(),
1616
1617
  void 0
1617
1618
  );
1618
1619
  },
1619
- [ie, G, h]
1620
- ), Fe = n.useCallback(
1620
+ [ie, X, h]
1621
+ ), Fe = o.useCallback(
1621
1622
  (d) => {
1622
- !d.target || l || (!h && $ ? I(
1623
- $,
1623
+ !d.target || l || (!h && A ? I(
1624
+ A,
1624
1625
  d,
1625
1626
  m(),
1626
1627
  void 0
@@ -1630,23 +1631,23 @@ const Ke = "16px", he = (e) => typeof e == "number" ? e + "px" : e, Nt = (e, o)
1630
1631
  F,
1631
1632
  H,
1632
1633
  C,
1633
- $,
1634
+ A,
1634
1635
  U,
1635
1636
  y,
1636
1637
  h,
1637
1638
  l
1638
1639
  ]
1639
- ), Qe = n.useCallback(
1640
+ ), Qe = o.useCallback(
1640
1641
  (d) => {
1641
- H(!0), C(y ? 0 : -1), Z && I(
1642
- Z,
1642
+ H(!0), C(y ? 0 : -1), q && I(
1643
+ q,
1643
1644
  d,
1644
1645
  m(),
1645
1646
  void 0
1646
1647
  );
1647
1648
  },
1648
- [Z, H, C]
1649
- ), Ye = n.useCallback(
1649
+ [q, H, C]
1650
+ ), Ye = o.useCallback(
1650
1651
  (d) => {
1651
1652
  H(!1), F(!1), C(-1), I(
1652
1653
  oe,
@@ -1656,15 +1657,15 @@ const Ke = "16px", he = (e) => typeof e == "number" ? e + "px" : e, Nt = (e, o)
1656
1657
  ), y && U(d, !1);
1657
1658
  },
1658
1659
  [oe, H, F, C, U]
1659
- ), et = n.useCallback(
1660
+ ), et = o.useCallback(
1660
1661
  (d) => {
1661
1662
  d.preventDefault();
1662
1663
  },
1663
1664
  []
1664
- ), ye = n.useCallback(
1665
+ ), ye = o.useCallback(
1665
1666
  (d, b) => {
1666
1667
  h && (h[b].disabled || I(
1667
- V,
1668
+ Z,
1668
1669
  d,
1669
1670
  m(),
1670
1671
  {
@@ -1673,18 +1674,18 @@ const Ke = "16px", he = (e) => typeof e == "number" ? e + "px" : e, Nt = (e, o)
1673
1674
  }
1674
1675
  ));
1675
1676
  },
1676
- [V]
1677
- ), tt = n.useCallback(
1677
+ [Z]
1678
+ ), tt = o.useCallback(
1678
1679
  (d, b) => {
1679
1680
  !d.target || !h || (C(b), F(!1), ye(d, b), U(d, !1));
1680
1681
  },
1681
1682
  [C, F, ye, U]
1682
- ), st = n.useCallback(
1683
+ ), st = o.useCallback(
1683
1684
  (d) => {
1684
1685
  se(document) === k.current && d.preventDefault();
1685
1686
  },
1686
1687
  [k]
1687
- ), nt = n.useCallback(
1688
+ ), nt = o.useCallback(
1688
1689
  (d) => {
1689
1690
  const b = J, ke = h ? h.length : -1;
1690
1691
  if (d.altKey) {
@@ -1715,14 +1716,14 @@ const Ke = "16px", he = (e) => typeof e == "number" ? e + "px" : e, Nt = (e, o)
1715
1716
  break;
1716
1717
  }
1717
1718
  I(
1718
- q,
1719
+ G,
1719
1720
  d,
1720
1721
  m(),
1721
1722
  void 0
1722
1723
  );
1723
1724
  },
1724
- [q, J, C, Q, F]
1725
- ), ot = n.useMemo(
1725
+ [G, J, C, Q, F]
1726
+ ), ot = o.useMemo(
1726
1727
  () => f(
1727
1728
  "k-fab k-fab-solid",
1728
1729
  {
@@ -1740,7 +1741,7 @@ const Ke = "16px", he = (e) => typeof e == "number" ? e + "px" : e, Nt = (e, o)
1740
1741
  a
1741
1742
  ),
1742
1743
  [E, S, x, l, w, t, ce, a]
1743
- ), it = h && h.map((d, b) => /* @__PURE__ */ n.createElement(
1744
+ ), it = h && h.map((d, b) => /* @__PURE__ */ o.createElement(
1744
1745
  Be,
1745
1746
  {
1746
1747
  ...d,
@@ -1759,7 +1760,7 @@ const Ke = "16px", he = (e) => typeof e == "number" ? e + "px" : e, Nt = (e, o)
1759
1760
  onDown: st
1760
1761
  }
1761
1762
  )), ze = !!((u || c) && !N), at = k.current ? k.current.offsetWidth : 0, lt = 32, Pe = at / 2 - lt / 2;
1762
- return /* @__PURE__ */ n.createElement(ct.Provider, { value: le }, /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement(
1763
+ return /* @__PURE__ */ o.createElement(ct.Provider, { value: le }, /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement(
1763
1764
  "button",
1764
1765
  {
1765
1766
  ref: k,
@@ -1785,9 +1786,9 @@ const Ke = "16px", he = (e) => typeof e == "number" ? e + "px" : e, Nt = (e, o)
1785
1786
  onKeyDown: nt,
1786
1787
  ..._
1787
1788
  },
1788
- u || c ? /* @__PURE__ */ n.createElement(A, { className: "k-fab-icon", name: u, icon: c }) : g ? /* @__PURE__ */ n.createElement("span", { role: "presentation", className: g }) : null,
1789
- N && /* @__PURE__ */ n.createElement("span", { className: "k-fab-text" }, N)
1790
- ), L && y && /* @__PURE__ */ n.createElement(
1789
+ u || c ? /* @__PURE__ */ o.createElement($, { className: "k-fab-icon", name: u, icon: c }) : g ? /* @__PURE__ */ o.createElement("span", { role: "presentation", className: g }) : null,
1790
+ N && /* @__PURE__ */ o.createElement("span", { className: "k-fab-text" }, N)
1791
+ ), L && y && /* @__PURE__ */ o.createElement(
1791
1792
  "div",
1792
1793
  {
1793
1794
  className: "k-overlay",
@@ -1796,7 +1797,7 @@ const Ke = "16px", he = (e) => typeof e == "number" ? e + "px" : e, Nt = (e, o)
1796
1797
  ...p
1797
1798
  }
1798
1799
  }
1799
- ), /* @__PURE__ */ n.createElement(
1800
+ ), /* @__PURE__ */ o.createElement(
1800
1801
  De,
1801
1802
  {
1802
1803
  ref: be,
@@ -1808,7 +1809,7 @@ const Ke = "16px", he = (e) => typeof e == "number" ? e + "px" : e, Nt = (e, o)
1808
1809
  popupAlign: z.popupAlign || St(t, Q),
1809
1810
  style: { boxShadow: "none" }
1810
1811
  },
1811
- /* @__PURE__ */ n.createElement(
1812
+ /* @__PURE__ */ o.createElement(
1812
1813
  "ul",
1813
1814
  {
1814
1815
  ref: fe,
@@ -1828,7 +1829,7 @@ const Ke = "16px", he = (e) => typeof e == "number" ? e + "px" : e, Nt = (e, o)
1828
1829
  )
1829
1830
  )));
1830
1831
  });
1831
- Xe.propTypes = {
1832
+ Ve.propTypes = {
1832
1833
  className: s.string,
1833
1834
  style: s.object,
1834
1835
  id: s.string,
@@ -1874,10 +1875,10 @@ const Y = {
1874
1875
  themeColor: "primary",
1875
1876
  positionMode: "fixed"
1876
1877
  };
1877
- Xe.displayName = "KendoFloatingActionButton";
1878
- const Ot = Ae(Ne);
1878
+ Ve.displayName = "KendoFloatingActionButton";
1879
+ const Ot = $e(Ne);
1879
1880
  Ot.displayName = "KendoReactDropDownButton";
1880
- const Kt = Ae(Ee);
1881
+ const Kt = $e(Ee);
1881
1882
  Kt.displayName = "KendoReactSplitButton";
1882
1883
  export {
1883
1884
  ne as Button,
@@ -1887,7 +1888,7 @@ export {
1887
1888
  Ot as DropDownButton,
1888
1889
  Ne as DropDownButtonClassComponent,
1889
1890
  Ue as DropDownButtonItem,
1890
- Xe as FloatingActionButton,
1891
+ Ve as FloatingActionButton,
1891
1892
  Be as FloatingActionButtonItem,
1892
1893
  Kt as SplitButton,
1893
1894
  Ee as SplitButtonClassComponent,