@progress/kendo-react-layout 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.
Files changed (67) hide show
  1. package/README.md +82 -82
  2. package/actionsheet/ActionSheet.js +1 -1
  3. package/actionsheet/ActionSheet.mjs +151 -162
  4. package/actionsheet/ActionSheetFooter.mjs +1 -10
  5. package/actionsheet/ActionSheetHeader.mjs +1 -10
  6. package/actionsheet/ActionSheetItem.mjs +10 -7
  7. package/appbar/AppBar.mjs +5 -30
  8. package/appbar/AppBarSection.mjs +4 -17
  9. package/appbar/AppBarSpacer.mjs +6 -16
  10. package/bottomnavigation/BottomNavigation.mjs +30 -54
  11. package/bottomnavigation/BottomNavigationItem.mjs +63 -61
  12. package/breadcrumb/Breadcrumb.mjs +39 -63
  13. package/breadcrumb/BreadcrumbDelimiter.mjs +29 -24
  14. package/breadcrumb/BreadcrumbLink.mjs +16 -18
  15. package/breadcrumb/BreadcrumbListItem.mjs +31 -29
  16. package/breadcrumb/BreadcrumbOrderedList.mjs +47 -42
  17. package/card/Avatar.mjs +15 -1
  18. package/card/CardBody.mjs +1 -11
  19. package/card/CardFooter.mjs +1 -11
  20. package/card/CardHeader.mjs +1 -11
  21. package/card/CardImage.mjs +1 -4
  22. package/card/CardSubtitle.mjs +1 -11
  23. package/card/CardTitle.mjs +1 -11
  24. package/dist/cdn/js/kendo-react-layout.js +1 -1
  25. package/drawer/Drawer.mjs +10 -21
  26. package/drawer/DrawerContent.mjs +6 -3
  27. package/drawer/DrawerItem.mjs +10 -10
  28. package/drawer/DrawerNavigation.mjs +109 -130
  29. package/expansionpanel/ExpansionPanel.mjs +12 -15
  30. package/expansionpanel/ExpansionPanelContent.mjs +3 -9
  31. package/gridlayout/GridLayout.mjs +1 -10
  32. package/gridlayout/GridLayoutItem.mjs +1 -10
  33. package/index.d.mts +43 -41
  34. package/index.d.ts +43 -41
  35. package/index.js +1 -1
  36. package/index.mjs +39 -38
  37. package/menu/components/MenuItemLink.mjs +4 -17
  38. package/menu/utils/getNewItemIdUponKeyboardNavigation.js +1 -1
  39. package/menu/utils/getNewItemIdUponKeyboardNavigation.mjs +55 -57
  40. package/menu/utils/hoverDelay.js +1 -1
  41. package/menu/utils/hoverDelay.mjs +2 -2
  42. package/menu/utils/itemsIdsUtils.js +1 -1
  43. package/menu/utils/itemsIdsUtils.mjs +14 -18
  44. package/menu/utils/misc.js +1 -1
  45. package/menu/utils/misc.mjs +2 -2
  46. package/menu/utils/prepareInputItemsForInternalWork.js +1 -1
  47. package/menu/utils/prepareInputItemsForInternalWork.mjs +30 -31
  48. package/package-metadata.mjs +1 -1
  49. package/package.json +6 -6
  50. package/panelbar/PanelBar.mjs +2 -7
  51. package/panelbar/util.js +1 -1
  52. package/panelbar/util.mjs +27 -40
  53. package/splitter/SplitterBar.mjs +23 -40
  54. package/splitter/SplitterPane.mjs +1 -11
  55. package/stacklayout/StackLayout.mjs +2 -14
  56. package/stepper/Step.mjs +25 -46
  57. package/stepper/Stepper.js +1 -1
  58. package/stepper/Stepper.mjs +147 -186
  59. package/tabstrip/TabStripContent.mjs +2 -14
  60. package/tabstrip/TabStripTab.mjs +2 -9
  61. package/tilelayout/InternalTile.mjs +31 -19
  62. package/tilelayout/ResizeHandlers.mjs +7 -1
  63. package/tilelayout/TileLayout.mjs +24 -20
  64. package/timeline/TimelineCard.mjs +1 -4
  65. package/timeline/TimelineHorizontal.mjs +52 -63
  66. package/timeline/TimelineVertical.mjs +7 -5
  67. package/timeline/utils.mjs +4 -1
@@ -6,179 +6,168 @@
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
8
  "use client";
9
- import * as e from "react";
10
- import p from "prop-types";
11
- import { Animation as g } from "@progress/kendo-react-animation";
12
- import { validatePackage as N, FOCUSABLE_ELEMENTS as S, Navigation as C, classNames as x } from "@progress/kendo-react-common";
13
- import { packageMetadata as D } from "../package-metadata.mjs";
14
- import { ActionSheetItem as E } from "./ActionSheetItem.mjs";
15
- import { headerDisplayName as v } from "./ActionSheetHeader.mjs";
16
- import { footerDisplayName as I } from "./ActionSheetFooter.mjs";
17
- import { contentDisplayName as w } from "./ActionSheetContent.mjs";
18
- const m = class m extends e.Component {
19
- /** @hidden */
20
- constructor(o) {
21
- super(o), this.actionSheetRef = e.createRef(), this.actionSheetTitleClass = "k-actionsheet-title", this.ariaLabeledBy = this.actionSheetTitleClass, this.animationDuration = 300, this.bottomPosition = { bottom: "0", width: "100%" }, this.handleKeyDown = (t) => {
22
- this.props.navigatable && this.navigation.triggerKeyboardEvent(t);
23
- }, this.onTab = (t, a, i) => {
24
- i.preventDefault(), i.shiftKey ? a.focusPrevious(t) : a.focusNext(t);
25
- }, this.handleOverlayClick = (t) => {
26
- this.props.onOverlayClick && this.props.onOverlayClick.call(void 0, t), this.props.onClose && this.props.onClose.call(void 0, t), this.props.animation || this.hideActionSheet();
27
- }, this.handleItemClick = (t) => {
28
- this.props.onItemClick && this.props.onItemClick.call(void 0, t), this.props.onItemSelect && this.props.onItemSelect.call(void 0, t), this.props.animation || this.hideActionSheet();
29
- }, this.onEnter = (t, a, i) => {
30
- if (t.ariaDisabled)
31
- return;
32
- const h = t.className && t.className.indexOf ? t.className.indexOf("k-actionsheet-item") !== -1 : !1, l = a.elements.filter((s) => s.className.indexOf("k-actionsheet-item") !== -1);
33
- if (h && this.props.onItemClick) {
34
- i.preventDefault();
35
- const s = this.props.items[l.indexOf(t)];
36
- this.props.onItemClick.call(void 0, {
37
- syntheticEvent: i,
38
- item: s,
39
- title: s && s.title
40
- });
41
- }
42
- if (h && this.props.onItemSelect) {
43
- i.preventDefault();
44
- const s = this.props.items[l.indexOf(t)];
45
- this.props.onItemSelect.call(void 0, {
46
- syntheticEvent: i,
47
- item: s,
48
- title: s && s.title
49
- });
50
- }
51
- this.props.animation || this.hideActionSheet();
52
- }, this.onEscape = (t, a, i) => {
53
- this.props.onOverlayClick && (i.preventDefault(), this.props.onOverlayClick.call(void 0, i)), this.props.onClose && (i.preventDefault(), this.props.onClose.call(void 0, i)), this.props.animation || this.hideActionSheet();
54
- }, this.hideActionSheet = () => {
55
- this.setState({ show: !1 });
56
- }, this.children = (t) => {
57
- const a = {};
58
- return e.Children.forEach(t, (i) => {
59
- i && (a[i.type.displayName] = i);
60
- }), a;
61
- }, this.state = {
62
- show: !1,
63
- slide: !1
64
- }, N(D);
65
- }
66
- /** @hidden */
67
- componentDidMount() {
68
- this.props.expand && !this.state.show && this.setState({ show: !0 });
69
- }
70
- /** @hidden */
71
- componentDidUpdate(o, t) {
72
- const a = this.actionSheetRef.current;
73
- if (this.props.expand && !this.state.show && this.setState({ show: !0 }), this.props.expand && this.state.show && !this.state.slide && this.setState({ slide: !0 }), !this.props.expand && this.state.show && this.state.slide && this.setState({ slide: !1 }), t !== this.state && this.state.slide && a && !this.props.className && (a.style.setProperty("--kendo-actionsheet-height", "auto"), a.style.setProperty("--kendo-actionsheet-max-height", "none")), a && this.props.navigatable) {
74
- const h = [
75
- ".k-actionsheet-item",
76
- ...[
77
- ".k-actionsheet-footer",
78
- ".k-actionsheet-content",
79
- ".k-actionsheet-titlebar"
80
- ].map((l) => S.concat(this.props.navigatableElements).map(
81
- (s) => `${l} ${s}`
82
- )).flat()
83
- ];
84
- this.navigation = new C({
85
- tabIndex: this.props.tabIndex || 0,
86
- root: this.actionSheetRef,
9
+ import * as n from "react";
10
+ import r from "prop-types";
11
+ import { Animation as q } from "@progress/kendo-react-animation";
12
+ import { validatePackage as z, FOCUSABLE_ELEMENTS as G, Navigation as J, classNames as Q } from "@progress/kendo-react-common";
13
+ import { packageMetadata as V } from "../package-metadata.mjs";
14
+ import { ActionSheetItem as w } from "./ActionSheetItem.mjs";
15
+ import { headerDisplayName as T } from "./ActionSheetHeader.mjs";
16
+ import { footerDisplayName as W } from "./ActionSheetFooter.mjs";
17
+ import { contentDisplayName as X } from "./ActionSheetContent.mjs";
18
+ const P = n.forwardRef((e, A) => {
19
+ var D, R;
20
+ z(V);
21
+ const {
22
+ navigatableElements: K = O.navigatableElements,
23
+ navigatable: b = O.navigatable
24
+ } = e, _ = (t, i, a) => {
25
+ a.preventDefault(), a.shiftKey ? i.focusPrevious(t) : i.focusNext(t);
26
+ }, H = (t, i, a) => {
27
+ if (t.ariaDisabled)
28
+ return;
29
+ const h = t.className && t.className.indexOf ? t.className.indexOf("k-actionsheet-item") !== -1 : !1, E = i.elements.filter((o) => o.className.indexOf("k-actionsheet-item") !== -1);
30
+ if (h && e.onItemClick) {
31
+ a.preventDefault();
32
+ const o = e.items[E.indexOf(t)];
33
+ e.onItemClick.call(void 0, {
34
+ syntheticEvent: a,
35
+ item: o,
36
+ title: o && o.title
37
+ });
38
+ }
39
+ if (h && e.onItemSelect) {
40
+ a.preventDefault();
41
+ const o = e.items[E.indexOf(t)];
42
+ e.onItemSelect.call(void 0, {
43
+ syntheticEvent: a,
44
+ item: o,
45
+ title: o && o.title
46
+ });
47
+ }
48
+ e.animation || s();
49
+ }, L = (t, i, a) => {
50
+ e.onOverlayClick && (a.preventDefault(), e.onOverlayClick.call(void 0, a)), e.onClose && (a.preventDefault(), e.onClose.call(void 0, a)), e.animation || s();
51
+ }, s = () => {
52
+ m({ show: !1 });
53
+ }, B = (t) => {
54
+ b && d.current.triggerKeyboardEvent(t);
55
+ }, F = (t) => {
56
+ e.onOverlayClick && e.onOverlayClick.call(void 0, t), e.onClose && e.onClose.call(void 0, t), e.animation || s();
57
+ }, y = (t) => {
58
+ e.onItemClick && e.onItemClick.call(void 0, t), e.onItemSelect && e.onItemSelect.call(void 0, t), e.animation || s();
59
+ }, M = (t) => {
60
+ const i = {};
61
+ return n.Children.forEach(t, (a) => {
62
+ a && (i[a.type.displayName] = a);
63
+ }), i;
64
+ }, N = n.useRef(null), k = n.useRef(null);
65
+ n.useImperativeHandle(N, () => ({ props: e })), n.useImperativeHandle(
66
+ A,
67
+ () => N.current
68
+ );
69
+ const d = n.useRef(), $ = n.useRef(e.animationDuration || 300), v = n.useRef({ bottom: "0", width: "100%" }), g = n.useRef(), [l, U] = n.useState({ show: !1, slide: !1 }), m = (t) => {
70
+ U((i) => ({ ...i, ...t }));
71
+ };
72
+ n.useEffect(() => {
73
+ e.expand && !l.show && m({ show: !0 });
74
+ }, []), n.useEffect(() => {
75
+ const t = k.current;
76
+ if (e.expand && !l.show && m({ show: !0 }), e.expand && l.show && !l.slide && m({ slide: !0 }), !e.expand && l.show && l.slide && m({ slide: !1 }), g !== l && l.slide && t && !e.className && (t.style.setProperty("--kendo-actionsheet-height", "auto"), t.style.setProperty("--kendo-actionsheet-max-height", "none")), t && b) {
77
+ const a = [".k-actionsheet-item", ...[
78
+ ".k-actionsheet-footer",
79
+ ".k-actionsheet-content",
80
+ ".k-actionsheet-titlebar"
81
+ ].map((h) => G.concat(K).map(
82
+ (E) => `${h} ${E}`
83
+ )).flat()];
84
+ d.current = new J({
85
+ tabIndex: e.tabIndex || 0,
86
+ root: k,
87
87
  rovingTabIndex: !1,
88
- selectors: h,
88
+ selectors: a,
89
89
  keyboardEvents: {
90
90
  keydown: {
91
- Tab: this.onTab,
92
- Enter: this.onEnter,
93
- Escape: this.onEscape
91
+ Tab: _,
92
+ Enter: H,
93
+ Escape: L
94
94
  }
95
95
  }
96
- }), this.navigation.focusElement(this.navigation.first, null);
96
+ }), d.current.focusElement(d.current.first, null);
97
97
  }
98
- }
99
- /** @hidden */
100
- render() {
101
- const {
102
- title: o,
103
- subTitle: t,
104
- animationStyles: a,
105
- animation: i,
106
- expand: h,
107
- tabIndex: l,
108
- items: s
109
- } = this.props, r = s == null ? void 0 : s.filter((n) => !n.group || n.group === "top"), d = s == null ? void 0 : s.filter((n) => n.group === "bottom"), y = r && r.length > 0 && d && d.length > 0, f = this.children(this.props.children), u = this.props.animationDuration || this.animationDuration, k = this.state.slide && /* @__PURE__ */ e.createElement(
110
- "div",
111
- {
112
- className: x("k-actionsheet", this.props.className, {
113
- "k-actionsheet-bottom": !this.props.className
114
- }),
115
- role: "dialog",
116
- "aria-modal": "true",
117
- "aria-hidden": !1,
118
- "aria-labelledby": this.ariaLabeledBy,
119
- ref: this.actionSheetRef,
120
- onKeyDown: this.handleKeyDown
121
- },
122
- f[v] && !o && !t && f[v],
123
- (o || t) && /* @__PURE__ */ e.createElement("div", { className: "k-actionsheet-titlebar k-text-center" }, /* @__PURE__ */ e.createElement("div", { className: "k-actionsheet-titlebar-group k-hbox" }, /* @__PURE__ */ e.createElement("div", { className: this.actionSheetTitleClass, id: this.ariaLabeledBy }, o && /* @__PURE__ */ e.createElement("div", null, o), t && /* @__PURE__ */ e.createElement("div", { className: "k-actionsheet-subtitle" }, t)))),
124
- f[w] || /* @__PURE__ */ e.createElement("div", { className: "k-actionsheet-content" }, /* @__PURE__ */ e.createElement("div", { className: "k-list-ul", role: "group" }, r && r.map((n, c) => /* @__PURE__ */ e.createElement(
125
- E,
126
- {
127
- ...n,
128
- id: c,
129
- key: c,
130
- item: n,
131
- tabIndex: l || 0,
132
- onClick: this.handleItemClick
133
- }
134
- ))), y && /* @__PURE__ */ e.createElement("hr", { className: "k-hr" }), /* @__PURE__ */ e.createElement("div", { className: "k-list-ul", role: "group" }, d && d.map((n, c) => /* @__PURE__ */ e.createElement(
135
- E,
136
- {
137
- ...n,
138
- id: c + ((r == null ? void 0 : r.length) || 0),
139
- key: c,
140
- item: n,
141
- tabIndex: l || 0,
142
- onClick: this.handleItemClick
143
- }
144
- )))),
145
- f[I]
146
- );
147
- return /* @__PURE__ */ e.createElement(e.Fragment, null, h || this.state.show ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: "k-actionsheet-container" }, /* @__PURE__ */ e.createElement(
148
- "div",
98
+ g.current = { ...l };
99
+ });
100
+ const S = "k-actionsheet-title", x = S, c = (D = e.items) == null ? void 0 : D.filter(
101
+ (t) => !t.group || t.group === "top"
102
+ ), f = (R = e.items) == null ? void 0 : R.filter(
103
+ (t) => t.group === "bottom"
104
+ ), j = c && c.length > 0 && f && f.length > 0, u = M(e.children), C = e.animationDuration || $.current, I = l.slide && /* @__PURE__ */ n.createElement(
105
+ "div",
106
+ {
107
+ className: Q("k-actionsheet", e.className, {
108
+ "k-actionsheet-bottom": !e.className
109
+ }),
110
+ role: "dialog",
111
+ "aria-modal": "true",
112
+ "aria-hidden": !1,
113
+ "aria-labelledby": x,
114
+ ref: k,
115
+ onKeyDown: B
116
+ },
117
+ u[T] && !e.title && !e.subTitle && u[T],
118
+ (e.title || e.subTitle) && /* @__PURE__ */ n.createElement("div", { className: "k-actionsheet-titlebar k-text-center" }, /* @__PURE__ */ n.createElement("div", { className: "k-actionsheet-titlebar-group k-hbox" }, /* @__PURE__ */ n.createElement("div", { className: S, id: x }, e.title && /* @__PURE__ */ n.createElement("div", null, e.title), e.subTitle && /* @__PURE__ */ n.createElement("div", { className: "k-actionsheet-subtitle" }, e.subTitle)))),
119
+ u[X] || /* @__PURE__ */ n.createElement("div", { className: "k-actionsheet-content" }, /* @__PURE__ */ n.createElement("div", { className: "k-list-ul", role: "group" }, c && c.map((t, i) => /* @__PURE__ */ n.createElement(
120
+ w,
149
121
  {
150
- className: "k-overlay",
151
- onClick: this.handleOverlayClick
122
+ ...t,
123
+ id: i,
124
+ key: i,
125
+ item: t,
126
+ tabIndex: e.tabIndex || 0,
127
+ onClick: y
152
128
  }
153
- ), i ? /* @__PURE__ */ e.createElement(
154
- g,
129
+ ))), j && /* @__PURE__ */ n.createElement("hr", { className: "k-hr" }), /* @__PURE__ */ n.createElement("div", { className: "k-list-ul", role: "group" }, f && f.map((t, i) => /* @__PURE__ */ n.createElement(
130
+ w,
155
131
  {
156
- transitionName: this.state.slide ? "slide-up" : "slide-down",
157
- onExited: this.hideActionSheet,
158
- transitionEnterDuration: u,
159
- transitionExitDuration: u,
160
- animationEnteringStyle: a || this.bottomPosition,
161
- animationEnteredStyle: a || this.bottomPosition,
162
- animationExitingStyle: a || this.bottomPosition,
163
- exit: !0,
164
- enter: !0,
165
- appear: !1
166
- },
167
- k
168
- ) : k)) : null);
169
- }
170
- };
171
- m.displayName = "KendoReactActionSheet", m.propTypes = {
172
- items: p.array,
173
- subTitle: p.string,
174
- title: p.string,
175
- navigatable: p.bool,
176
- navigatableElements: p.array
177
- }, m.defaultProps = {
132
+ ...t,
133
+ id: i + ((c == null ? void 0 : c.length) || 0),
134
+ key: i,
135
+ item: t,
136
+ tabIndex: e.tabIndex || 0,
137
+ onClick: y
138
+ }
139
+ )))),
140
+ u[W]
141
+ );
142
+ return /* @__PURE__ */ n.createElement(n.Fragment, null, e.expand || l.show ? /* @__PURE__ */ n.createElement("div", { className: "k-actionsheet-container" }, /* @__PURE__ */ n.createElement("div", { className: "k-overlay", onClick: F }), e.animation ? /* @__PURE__ */ n.createElement(
143
+ q,
144
+ {
145
+ transitionName: l.slide ? "slide-up" : "slide-down",
146
+ onExited: s,
147
+ transitionEnterDuration: C,
148
+ transitionExitDuration: C,
149
+ animationEnteringStyle: e.animationStyles || v.current,
150
+ animationEnteredStyle: e.animationStyles || v.current,
151
+ animationExitingStyle: e.animationStyles || v.current,
152
+ exit: !0,
153
+ enter: !0,
154
+ appear: !1
155
+ },
156
+ I
157
+ ) : I) : null);
158
+ }), O = {
178
159
  navigatable: !0,
179
160
  navigatableElements: []
180
161
  };
181
- let b = m;
162
+ P.propTypes = {
163
+ items: r.array,
164
+ subTitle: r.string,
165
+ title: r.string,
166
+ navigatable: r.bool,
167
+ navigatableElements: r.array
168
+ };
169
+ P.displayName = "KendoReactActionSheet";
182
170
  export {
183
- b as ActionSheet
171
+ P as ActionSheet,
172
+ O as actionSheetDefaultProps
184
173
  };
@@ -9,16 +9,7 @@
9
9
  import * as r from "react";
10
10
  import t from "prop-types";
11
11
  import { classNames as s } from "@progress/kendo-react-common";
12
- const a = "ActionSheetFooter", e = (o) => /* @__PURE__ */ r.createElement(
13
- "div",
14
- {
15
- className: s(
16
- "k-actionsheet-footer",
17
- o.className
18
- )
19
- },
20
- o.children
21
- );
12
+ const a = "ActionSheetFooter", e = (o) => /* @__PURE__ */ r.createElement("div", { className: s("k-actionsheet-footer", o.className) }, o.children);
22
13
  e.propTypes = {
23
14
  className: t.string
24
15
  };
@@ -9,16 +9,7 @@
9
9
  import * as r from "react";
10
10
  import t from "prop-types";
11
11
  import { classNames as s } from "@progress/kendo-react-common";
12
- const c = "ActionSheetHeader", e = (a) => /* @__PURE__ */ r.createElement(
13
- "div",
14
- {
15
- className: s(
16
- "k-actionsheet-titlebar",
17
- a.className
18
- )
19
- },
20
- a.children
21
- );
12
+ const c = "ActionSheetHeader", e = (a) => /* @__PURE__ */ r.createElement("div", { className: s("k-actionsheet-titlebar", a.className) }, a.children);
22
13
  e.propTypes = {
23
14
  className: t.string
24
15
  };
@@ -10,13 +10,16 @@ import * as t from "react";
10
10
  import i from "prop-types";
11
11
  import { classNames as l } from "@progress/kendo-react-common";
12
12
  const s = (e) => {
13
- const a = t.useRef(null), c = t.useCallback((n) => {
14
- e.onClick && e.onClick.call(void 0, {
15
- syntheticEvent: n,
16
- item: e.item,
17
- title: e.title
18
- });
19
- }, [e.item, e.title, e.onClick]);
13
+ const a = t.useRef(null), c = t.useCallback(
14
+ (n) => {
15
+ e.onClick && e.onClick.call(void 0, {
16
+ syntheticEvent: n,
17
+ item: e.item,
18
+ title: e.title
19
+ });
20
+ },
21
+ [e.item, e.title, e.onClick]
22
+ );
20
23
  return t.useEffect(() => {
21
24
  a.current && e.focused && a.current.focus();
22
25
  }, [e.focused]), /* @__PURE__ */ t.createElement(
package/appbar/AppBar.mjs CHANGED
@@ -12,17 +12,9 @@ import { validatePackage as h, focusFirstFocusableChild as C, useId as y, classN
12
12
  import { packageMetadata as N } from "../package-metadata.mjs";
13
13
  const l = e.forwardRef((o, m) => {
14
14
  h(N);
15
- const {
16
- children: d,
17
- className: r,
18
- style: u,
19
- id: f
20
- } = o, a = e.useRef(null), p = e.useCallback(
21
- () => {
22
- a.current && C(a.current);
23
- },
24
- []
25
- ), b = e.useCallback(
15
+ const { children: d, className: r, style: u, id: f } = o, a = e.useRef(null), p = e.useCallback(() => {
16
+ a.current && C(a.current);
17
+ }, []), b = e.useCallback(
26
18
  () => ({
27
19
  element: a.current,
28
20
  focus: p
@@ -30,16 +22,7 @@ const l = e.forwardRef((o, m) => {
30
22
  [p]
31
23
  );
32
24
  e.useImperativeHandle(m, b);
33
- const k = y(), i = e.useMemo(
34
- () => o.themeColor || c.themeColor,
35
- [o.themeColor]
36
- ), n = e.useMemo(
37
- () => o.position || c.position,
38
- [o.position]
39
- ), s = e.useMemo(
40
- () => o.positionMode || c.positionMode,
41
- [o.positionMode]
42
- ), M = e.useMemo(
25
+ const k = y(), i = e.useMemo(() => o.themeColor || c.themeColor, [o.themeColor]), n = e.useMemo(() => o.position || c.position, [o.position]), s = e.useMemo(() => o.positionMode || c.positionMode, [o.positionMode]), M = e.useMemo(
43
26
  () => g(
44
27
  "k-appbar",
45
28
  {
@@ -54,15 +37,7 @@ const l = e.forwardRef((o, m) => {
54
37
  ),
55
38
  [n, s, i, r]
56
39
  );
57
- return /* @__PURE__ */ e.createElement(
58
- "div",
59
- {
60
- className: M,
61
- style: u,
62
- id: f || k
63
- },
64
- d
65
- );
40
+ return /* @__PURE__ */ e.createElement("div", { className: M, style: u, id: f || k }, d);
66
41
  });
67
42
  l.propTypes = {
68
43
  children: t.any,
@@ -10,16 +10,9 @@ import * as e from "react";
10
10
  import t from "prop-types";
11
11
  import { focusFirstFocusableChild as u, classNames as f } from "@progress/kendo-react-common";
12
12
  const r = e.forwardRef((n, o) => {
13
- const {
14
- children: l,
15
- className: a,
16
- style: i
17
- } = n, s = e.useRef(null), c = e.useCallback(
18
- () => {
19
- s.current && u(s.current);
20
- },
21
- []
22
- ), m = e.useCallback(
13
+ const { children: l, className: a, style: i } = n, s = e.useRef(null), c = e.useCallback(() => {
14
+ s.current && u(s.current);
15
+ }, []), m = e.useCallback(
23
16
  () => ({
24
17
  element: s.current,
25
18
  focus: c
@@ -27,13 +20,7 @@ const r = e.forwardRef((n, o) => {
27
20
  [c]
28
21
  );
29
22
  e.useImperativeHandle(o, m);
30
- const p = e.useMemo(
31
- () => f(
32
- "k-appbar-section",
33
- a
34
- ),
35
- [a]
36
- );
23
+ const p = e.useMemo(() => f("k-appbar-section", a), [a]);
37
24
  return /* @__PURE__ */ e.createElement("div", { className: p, style: i }, l);
38
25
  });
39
26
  r.propTypes = {
@@ -10,16 +10,9 @@ import * as s from "react";
10
10
  import r from "prop-types";
11
11
  import { focusFirstFocusableChild as d, classNames as f } from "@progress/kendo-react-common";
12
12
  const l = s.forwardRef((n, p) => {
13
- const {
14
- children: o,
15
- className: t,
16
- style: e
17
- } = n, a = s.useRef(null), c = s.useCallback(
18
- () => {
19
- a.current && d(a.current);
20
- },
21
- []
22
- ), i = s.useCallback(
13
+ const { children: o, className: t, style: e } = n, a = s.useRef(null), c = s.useCallback(() => {
14
+ a.current && d(a.current);
15
+ }, []), i = s.useCallback(
23
16
  () => ({
24
17
  element: a.current,
25
18
  focus: c
@@ -36,12 +29,9 @@ const l = s.forwardRef((n, p) => {
36
29
  t
37
30
  ),
38
31
  [t, e]
39
- ), u = s.useMemo(
40
- () => ({
41
- flexBasis: e && e.width ? e.width : void 0
42
- }),
43
- [e]
44
- );
32
+ ), u = s.useMemo(() => ({
33
+ flexBasis: e && e.width ? e.width : void 0
34
+ }), [e]);
45
35
  return /* @__PURE__ */ s.createElement("span", { className: m, style: u }, o);
46
36
  });
47
37
  l.propTypes = {
@@ -14,12 +14,9 @@ import { POSITION_MODE_CLASSES as A, ITEM_FLOW_CLASSES as H } from "./models/uti
14
14
  import { BottomNavigationItem as j } from "./BottomNavigationItem.mjs";
15
15
  const I = t.forwardRef((a, p) => {
16
16
  T(L);
17
- const i = t.useRef(null), b = t.useCallback(
18
- () => {
19
- i.current && $(i.current);
20
- },
21
- []
22
- ), c = t.useCallback(
17
+ const i = t.useRef(null), b = t.useCallback(() => {
18
+ i.current && $(i.current);
19
+ }, []), c = t.useCallback(
23
20
  () => ({
24
21
  element: i.current,
25
22
  focus: b
@@ -28,9 +25,9 @@ const I = t.forwardRef((a, p) => {
28
25
  );
29
26
  t.useImperativeHandle(p, c);
30
27
  const {
31
- positionMode: v = n.positionMode,
32
- itemFlow: k = n.itemFlow,
33
- border: C = n.border,
28
+ positionMode: v = s.positionMode,
29
+ itemFlow: k = s.itemFlow,
30
+ border: C = s.border,
34
31
  className: M,
35
32
  items: r,
36
33
  item: E,
@@ -40,37 +37,26 @@ const I = t.forwardRef((a, p) => {
40
37
  id: y,
41
38
  onSelect: f,
42
39
  onKeyDown: h
43
- } = a, g = B(), F = P(i, a.dir), s = t.useMemo(
44
- () => a.fillMode === null || a.fill === null ? null : a.fill || a.fillMode || n.fillMode,
45
- [a.fillMode, a.fill]
46
- ), u = t.useMemo(
47
- () => a.themeColor || n.themeColor,
48
- [a.themeColor]
49
- ), D = t.useMemo(
40
+ } = a, g = B(), F = P(i, a.dir), n = t.useMemo(() => a.fillMode === null || a.fill === null ? null : a.fill || a.fillMode || s.fillMode, [a.fillMode, a.fill]), u = t.useMemo(() => a.themeColor || s.themeColor, [a.themeColor]), D = t.useMemo(
50
41
  () => _(
51
42
  "k-bottom-nav",
52
43
  A[v],
53
44
  H[k],
54
45
  {
55
- [`k-bottom-nav-${s}`]: s,
56
- [`k-bottom-nav-${s}-${u}`]: !!(s && u),
46
+ [`k-bottom-nav-${n}`]: n,
47
+ [`k-bottom-nav-${n}-${u}`]: !!(n && u),
57
48
  "k-bottom-nav-border": C,
58
49
  "k-disabled": m
59
50
  },
60
51
  M
61
52
  ),
62
- [v, u, s, k, C, m, M]
53
+ [v, u, n, k, C, m, M]
63
54
  ), d = t.useCallback(
64
55
  (e, l) => {
65
- r && !r[l].disabled && f && S(
66
- f,
67
- e,
68
- c(),
69
- {
70
- itemTarget: r[l],
71
- itemIndex: l
72
- }
73
- );
56
+ r && !r[l].disabled && f && S(f, e, c(), {
57
+ itemTarget: r[l],
58
+ itemIndex: l
59
+ });
74
60
  },
75
61
  [r, f]
76
62
  ), R = t.useCallback(
@@ -95,33 +81,23 @@ const I = t.forwardRef((a, p) => {
95
81
  },
96
82
  [d, h]
97
83
  );
98
- return /* @__PURE__ */ t.createElement(
99
- "nav",
84
+ return /* @__PURE__ */ t.createElement("nav", { ref: i, className: D, style: O, id: y || g, dir: F }, r && r.map((e, l) => /* @__PURE__ */ t.createElement(
85
+ j,
100
86
  {
101
- ref: i,
102
- className: D,
103
- style: O,
104
- id: y || g,
105
- dir: F
106
- },
107
- r && r.map((e, l) => /* @__PURE__ */ t.createElement(
108
- j,
109
- {
110
- ...e,
111
- key: l,
112
- index: l,
113
- id: `${y || g}-${l}`,
114
- disabled: m || e.disabled,
115
- selected: e.selected,
116
- dataItem: e,
117
- item: E,
118
- render: N,
119
- onSelect: R,
120
- onKeyDown: K
121
- }
122
- ))
123
- );
124
- }), n = {
87
+ ...e,
88
+ key: l,
89
+ index: l,
90
+ id: `${y || g}-${l}`,
91
+ disabled: m || e.disabled,
92
+ selected: e.selected,
93
+ dataItem: e,
94
+ item: E,
95
+ render: N,
96
+ onSelect: R,
97
+ onKeyDown: K
98
+ }
99
+ )));
100
+ }), s = {
125
101
  themeColor: "primary",
126
102
  fillMode: "flat",
127
103
  itemFlow: "vertical",