@progress/kendo-react-layout 14.5.0-develop.8 → 15.0.0-develop.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/MenuMcpWrapper.d.ts +17 -0
  2. package/MenuMcpWrapper.js +8 -0
  3. package/MenuMcpWrapper.mjs +18 -0
  4. package/README.md +4 -4
  5. package/actionsheet/ActionSheet.d.ts +12 -0
  6. package/actionsheet/ActionSheet.js +1 -1
  7. package/actionsheet/ActionSheet.mjs +69 -68
  8. package/actionsheet/ActionSheetItem.js +1 -1
  9. package/actionsheet/ActionSheetItem.mjs +1 -3
  10. package/appbar/interfaces/AppBarProps.d.ts +2 -14
  11. package/bottomnavigation/BottomNavigation.js +1 -1
  12. package/bottomnavigation/BottomNavigation.mjs +81 -76
  13. package/bottomnavigation/BottomNavigationItem.js +1 -1
  14. package/bottomnavigation/BottomNavigationItem.mjs +34 -33
  15. package/bottomnavigation/BottomNavigationProps.d.ts +3 -13
  16. package/bottomnavigation/messages/index.d.ts +17 -0
  17. package/bottomnavigation/messages/index.js +8 -0
  18. package/bottomnavigation/messages/index.mjs +14 -0
  19. package/breadcrumb/Breadcrumb.js +1 -1
  20. package/breadcrumb/Breadcrumb.mjs +30 -28
  21. package/breadcrumb/BreadcrumbLink.js +1 -1
  22. package/breadcrumb/BreadcrumbLink.mjs +26 -26
  23. package/breadcrumb/messages/index.d.ts +17 -0
  24. package/breadcrumb/messages/index.js +8 -0
  25. package/breadcrumb/messages/index.mjs +14 -0
  26. package/card/Avatar.js +1 -1
  27. package/card/Avatar.mjs +14 -26
  28. package/card/interfaces/AvatarProps.d.ts +1 -8
  29. package/dist/cdn/js/kendo-react-layout.js +1 -1
  30. package/drawer/Drawer.d.ts +1 -1
  31. package/drawer/Drawer.js +1 -1
  32. package/drawer/Drawer.mjs +63 -63
  33. package/drawer/DrawerContent.d.ts +1 -1
  34. package/drawer/DrawerItem.d.ts +1 -1
  35. package/drawer/DrawerItem.js +1 -1
  36. package/drawer/DrawerItem.mjs +22 -23
  37. package/drawer/interfaces/DrawerProps.d.ts +8 -0
  38. package/expansionpanel/ExpansionPanel.js +1 -1
  39. package/expansionpanel/ExpansionPanel.mjs +50 -50
  40. package/expansionpanel/ExpansionPanelContent.js +1 -1
  41. package/expansionpanel/ExpansionPanelContent.mjs +7 -4
  42. package/index.d.mts +1 -2
  43. package/index.d.ts +1 -2
  44. package/index.js +1 -1
  45. package/index.mjs +128 -130
  46. package/menu/MenuProps.d.ts +6 -0
  47. package/menu/components/MenuItemArrow.d.ts +3 -3
  48. package/menu/components/MenuItemArrow.js +1 -1
  49. package/menu/components/MenuItemArrow.mjs +13 -23
  50. package/package-metadata.js +1 -1
  51. package/package-metadata.mjs +2 -2
  52. package/package.json +14 -9
  53. package/panelbar/PanelBar.js +1 -1
  54. package/panelbar/PanelBar.mjs +94 -91
  55. package/panelbar/PanelBarItem.js +1 -1
  56. package/panelbar/PanelBarItem.mjs +13 -15
  57. package/panelbar/interfaces/PanelBarProps.d.ts +8 -0
  58. package/panelbar/interfaces/RenderPanelBarItem.d.ts +1 -0
  59. package/panelbar/util.d.ts +1 -1
  60. package/panelbar/util.js +1 -1
  61. package/panelbar/util.mjs +62 -59
  62. package/splitter/SplitterBar.d.ts +1 -0
  63. package/splitter/SplitterBar.js +1 -1
  64. package/splitter/SplitterBar.mjs +81 -72
  65. package/stepper/Step.js +1 -1
  66. package/stepper/Step.mjs +79 -85
  67. package/stepper/Stepper.js +1 -1
  68. package/stepper/Stepper.mjs +134 -133
  69. package/stepper/interfaces/StepperProps.d.ts +8 -1
  70. package/stepper/messages/index.d.ts +12 -2
  71. package/stepper/messages/index.js +1 -1
  72. package/stepper/messages/index.mjs +8 -4
  73. package/tabstrip/TabStrip.d.ts +8 -1
  74. package/tabstrip/TabStrip.js +1 -1
  75. package/tabstrip/TabStrip.mjs +126 -125
  76. package/tabstrip/TabStripNavigation.js +1 -1
  77. package/tabstrip/TabStripNavigation.mjs +31 -31
  78. package/tilelayout/InternalTile.js +1 -1
  79. package/tilelayout/InternalTile.mjs +119 -115
  80. package/tilelayout/TileLayout.js +1 -1
  81. package/tilelayout/TileLayout.mjs +58 -58
  82. package/timeline/TimelineCard.d.ts +2 -0
  83. package/timeline/TimelineCard.js +1 -1
  84. package/timeline/TimelineCard.mjs +27 -18
  85. package/timeline/TimelineHorizontal.js +1 -1
  86. package/timeline/TimelineHorizontal.mjs +113 -109
@@ -0,0 +1,17 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ import { MenuHandle } from './menu/components/Menu.js';
9
+ import { MenuProps } from './menu/MenuProps';
10
+ /**
11
+ * Menu wrapper that integrates the Web MCP hook.
12
+ *
13
+ * @hidden
14
+ */
15
+ import * as React from 'react';
16
+ /** @hidden */
17
+ export declare const MenuWrapper: React.ForwardRefExoticComponent<MenuProps & React.RefAttributes<MenuHandle>>;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),i=require("./menu/components/Menu.js"),c=require("@progress/kendo-react-common");function s(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const o=s(a),f=c.withIdHOC(i.Menu),u=o.forwardRef((e,n)=>{const[t,r]=c.useMergedRef(n);return c.useWebMcpRegister("menu",t,e,e.webMcp),o.createElement(f,{...e,ref:r})});u.displayName="KendoReactMenu";exports.MenuWrapper=u;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ import * as r from "react";
9
+ import { Menu as o } from "./menu/components/Menu.mjs";
10
+ import { useMergedRef as f, useWebMcpRegister as a, withIdHOC as c } from "@progress/kendo-react-common";
11
+ const i = c(o), u = r.forwardRef((e, t) => {
12
+ const [n, m] = f(t);
13
+ return a("menu", n, e, e.webMcp), /* @__PURE__ */ r.createElement(i, { ...e, ref: m });
14
+ });
15
+ u.displayName = "KendoReactMenu";
16
+ export {
17
+ u as MenuWrapper
18
+ };
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- [![KendoReact NPM Banner](https://raw.githubusercontent.com/telerik/kendo-react/master/images/kendoreact-github-banner.png)](https://www.telerik.com/kendo-react-ui/components/free?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-layout&utm_content=banner)
1
+ [![KendoReact NPM Banner](https://raw.githubusercontent.com/telerik/kendo-react/master/images/kendoreact-github-banner.png)](https://www.telerik.com/kendo-react-ui/components/getting-started/free-vs-premium?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-layout&utm_content=banner)
2
2
 
3
3
  # KendoReact Layout Library for React
4
4
 
@@ -6,7 +6,7 @@
6
6
  >
7
7
  > - This package is а part of [KendoReact](https://www.telerik.com/kendo-react-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-layout)&mdash;an enterprise-grade UI library with 120+ free and premium components.
8
8
  > - It contains both free and premium KendoReact components and tools. To use the premium components, you must install a license key file, whether you are on a paid license or a 30-day free trial. To receive a license key, either [purchase a license](https://www.telerik.com/kendo-react-ui/pricing) or start a [free trial](https://www.telerik.com/download-login-v2-kendo-react-ui). You can use the free components without having to sign up or get a license key.
9
- > - If you're looking for free React components, check out [Get Started with KendoReact Free](https://www.telerik.com/kendo-react-ui/components/free).
9
+ > - If you're looking for free React components, check out [Get Started with KendoReact Free](https://www.telerik.com/kendo-react-ui/components/getting-started).
10
10
  > - If you have an active license, visit the [KendoReact My License page](https://www.telerik.com/kendo-react-ui/components/my-license/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-layout) to learn how to configure your KendoReact licensing.
11
11
  > - Installing and working with this package indicates that you [accept the KendoReact License Agreement](https://www.telerik.com/purchase/license-agreement/progress-kendoreact?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-layout).
12
12
  > - The 30-day free trial gives you access to all KendoReact components and their full functionality. Additionally, for the period of your trial, you can use our legendary technical support provided directly by the KendoReact dev team!
@@ -558,7 +558,7 @@ import { Timeline } from '@progress/kendo-react-layout';
558
558
 
559
559
  The following table outlines the key resources available with KendoReact and KendoReact Free.
560
560
 
561
- | | [KendoReact Free](https://www.telerik.com/kendo-react-ui/components/free) | [KendoReact](https://www.telerik.com/kendo-react-ui) |
561
+ | | [KendoReact Free](https://www.telerik.com/kendo-react-ui/components/getting-started/free-vs-premium) | [KendoReact](https://www.telerik.com/kendo-react-ui) |
562
562
  | -------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
563
563
  | React components | 50+ | 120+ |
564
564
  | Four professional themes | <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M20.285 2l-11.285 11.567-5.286-5.011-3.714 3.716 9 8.728 15-15.285z" stroke="white" stroke-width="2"/></svg> | <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M20.285 2l-11.285 11.567-5.286-5.011-3.714 3.716 9 8.728 15-15.285z" stroke="white" stroke-width="2"/></svg> |
@@ -581,7 +581,7 @@ For any issues you might encounter while working with the KendoReact Layout, use
581
581
  ## Resources
582
582
 
583
583
  - [Getting Started with KendoReact](https://www.telerik.com/kendo-react-ui/components/getting-started/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-layout)
584
- - [Get Started with KendoReact Free](https://www.telerik.com/kendo-react-ui/components/free)
584
+ - [Get Started with KendoReact Free](https://www.telerik.com/kendo-react-ui/components/getting-started)
585
585
  - [Getting Started with the KendoReact Layout](https://www.telerik.com/kendo-react-ui/components/layout/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-layout)
586
586
  - [API Reference of the KendoReact Layout](https://www.telerik.com/kendo-react-ui/components/layout/api/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-layout)
587
587
  - [KendoReact Roadmap](https://www.telerik.com/support/whats-new/kendo-react-ui/roadmap?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-layout)
@@ -187,6 +187,18 @@ export interface ActionSheetProps {
187
187
  * Specifies the styles of the ActionSheet component.
188
188
  */
189
189
  style?: React.CSSProperties;
190
+ /**
191
+ * Specifies the container element where the ActionSheet will be appended.
192
+ * Defaults to `null` (renders in place). Set to a DOM element (e.g. `document.body`)
193
+ * to escape CSS containing blocks created by `transform`, `backdrop-filter`, etc.
194
+ *
195
+ * @default null
196
+ * @example
197
+ * ```jsx
198
+ * <ActionSheet appendTo={document.body} />
199
+ * ```
200
+ */
201
+ appendTo?: HTMLElement | null;
190
202
  }
191
203
  /**
192
204
  * @hidden
@@ -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 strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Q=require("react"),u=require("prop-types"),W=require("@progress/kendo-react-animation"),A=require("@progress/kendo-react-common"),K=require("./ActionSheetItem.js"),F=require("./ActionSheetHeader.js"),X=require("./ActionSheetFooter.js"),Y=require("./ActionSheetContent.js"),H=require("./ActionSheetView.js");function Z(e){const d=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const f=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(d,r,f.get?f:{enumerable:!0,get:()=>e[r]})}}return d.default=e,Object.freeze(d)}const n=Z(Q),R=n.forwardRef((e,d)=>{var q,_;const{navigatableElements:r=k.navigatableElements,navigatable:f=k.navigatable,position:V=k.position,animationDuration:l=300,prefixActions:N,suffixActions:g,filter:w}=e,L=(t,a,i)=>{i.preventDefault(),i.shiftKey?a.focusPrevious(t):a.focusNext(t)},M=(t,a,i)=>{if(t.ariaDisabled)return;const s=t.className&&t.className.indexOf?t.className.indexOf("k-actionsheet-item")!==-1:!1,x=a.elements.filter(y=>y.className.indexOf("k-actionsheet-item")!==-1);if(s&&e.onItemSelect){i.preventDefault();const y=e.items[x.indexOf(t)];e.onItemSelect.call(void 0,{syntheticEvent:i,item:y,title:y&&y.title})}e.animation||h()},$=(t,a,i)=>{e.onClose&&(i.preventDefault(),e.onClose.call(void 0,i)),e.animation||h()},h=()=>{b({show:!1})},B=t=>{f&&v.current.triggerKeyboardEvent(t)},z=t=>{e.onClose&&e.onClose.call(void 0,t),e.animation||h()},C=t=>{e.onItemSelect&&e.onItemSelect.call(void 0,t),e.animation||h()},U=t=>{const a={},i=[];return n.Children.forEach(t,s=>{s&&(s.type.displayName===H.ActionSheetViewDisplayName?i.push(s):a[s.type.displayName]=s)}),i.length>0?i:a},I=n.useRef(null),E=n.useRef(null);n.useImperativeHandle(I,()=>({props:e,element:E.current})),n.useImperativeHandle(d,()=>I.current);const v=n.useRef(void 0),D=n.useRef({bottom:"0",width:"100%"}),O=n.useRef(void 0),[o,G]=n.useState({show:!1,slide:!1}),b=t=>{G(a=>({...a,...t}))};n.useEffect(()=>{e.expand&&!o.show&&b({show:!0})},[]),n.useEffect(()=>{const t=E.current;if(e.expand&&!o.show&&b({show:!0}),e.expand&&o.show&&!o.slide&&b({slide:!0}),!e.expand&&o.show&&o.slide&&b({slide:!1}),O!==o&&o.slide&&t&&!e.className&&(t.style.setProperty("--kendo-actionsheet-height","auto"),t.style.setProperty("--kendo-actionsheet-max-height","none")),t&&f){const i=[".k-actionsheet-item",...[".k-actionsheet-footer",".k-actionsheet-content",".k-actionsheet-view",".k-actionsheet-titlebar"].map(s=>A.FOCUSABLE_ELEMENTS.concat(r).map(x=>`${s} ${x}`)).flat()];v.current=new A.Navigation({tabIndex:e.tabIndex||0,root:E,rovingTabIndex:!1,selectors:i,keyboardEvents:{keydown:{Tab:L,Enter:M,Escape:$}}}),v.current.focusElement(v.current.first,null)}O.current={...o}});const T="k-actionsheet-title",P=T,c=(q=e.items)==null?void 0:q.filter(t=>!t.group||t.group==="top"),S=(_=e.items)==null?void 0:_.filter(t=>t.group==="bottom"),J=c&&c.length>0&&S&&S.length>0,m=U(e.children),j=o.slide&&n.createElement("div",{className:A.classNames(`k-actionsheet k-actionsheet-${V}`,e.className),role:"dialog","aria-modal":"true",style:e.style,"aria-hidden":!1,"aria-labelledby":P,ref:E,onKeyDown:B},Array.isArray(m)?n.createElement(n.Fragment,null,m.map(t=>t)):n.createElement(H.ActionSheetView,null,m[F.headerDisplayName]&&!e.title&&!e.subTitle&&m[F.headerDisplayName],(e.title||e.subTitle||N||g||w)&&n.createElement("div",{className:"k-actionsheet-titlebar"},n.createElement("div",{className:"k-actionsheet-titlebar-group"},N&&n.createElement("div",{className:"k-actionsheet-actions"},N),n.createElement("div",{className:T,id:P},n.createElement("div",{className:"k-text-center"},e.title),e.subTitle&&n.createElement("div",{className:"k-actionsheet-subtitle k-text-center"},e.subTitle)),g&&n.createElement("div",{className:"k-actionsheet-actions"},g)),w&&n.createElement("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter"},w)),m[Y.contentDisplayName]||n.createElement("div",{className:"k-actionsheet-content"},n.createElement("div",{className:"k-list-ul",role:"group"},c&&c.map((t,a)=>n.createElement(K.ActionSheetItem,{...t,id:a,key:a,item:t,onClick:C})),J&&n.createElement("hr",{className:"k-hr"}),S&&S.map((t,a)=>n.createElement(K.ActionSheetItem,{...t,id:a+((c==null?void 0:c.length)||0),key:a,item:t,onClick:C})))),m[X.footerDisplayName]));return n.createElement(n.Fragment,null,e.expand||o.show?n.createElement("div",{className:"k-actionsheet-container"},n.createElement("div",{className:"k-overlay",onClick:z}),e.animation?n.createElement(W.Animation,{transitionName:o.slide?"slide-up":"slide-down",onExited:h,transitionEnterDuration:typeof l=="object"&&Object.keys(l).length>0&&l.openDuration?Number(l.openDuration):Number(l),transitionExitDuration:typeof l=="object"&&Object.keys(l).length>0&&l.closeDuration?Number(l.closeDuration):Number(l),animationEnteringStyle:e.animationStyles||D.current,animationEnteredStyle:e.animationStyles||D.current,animationExitingStyle:e.animationStyles||D.current,exit:!0,enter:!0,appear:!1},j):j):null)}),k={navigatable:!0,navigatableElements:[],position:"bottom"};R.propTypes={items:u.array,subTitle:u.node,title:u.node,navigatable:u.bool,navigatableElements:u.array,position:u.oneOf(["top","bottom","left","right","fullscreen"])};R.displayName="KendoReactActionSheet";exports.ActionSheet=R;exports.actionSheetDefaultProps=k;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const X=require("react"),Y=require("react-dom"),r=require("prop-types"),Z=require("@progress/kendo-react-animation"),N=require("@progress/kendo-react-common"),K=require("./ActionSheetItem.js"),F=require("./ActionSheetHeader.js"),p=require("./ActionSheetFooter.js"),ee=require("./ActionSheetContent.js"),H=require("./ActionSheetView.js");function V(e){const d=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const m in e)if(m!=="default"){const f=Object.getOwnPropertyDescriptor(e,m);Object.defineProperty(d,m,f.get?f:{enumerable:!0,get:()=>e[m]})}}return d.default=e,Object.freeze(d)}const n=V(X),te=V(Y),R=n.forwardRef((e,d)=>{var _,M;const{navigatableElements:m=g.navigatableElements,navigatable:f=g.navigatable,position:L=g.position,animationDuration:l=300,prefixActions:D,suffixActions:w,filter:x}=e,$=(t,a,i)=>{i.preventDefault(),i.shiftKey?a.focusPrevious(t):a.focusNext(t)},B=(t,a,i)=>{if(t.ariaDisabled)return;const c=t.className&&t.className.indexOf?t.className.indexOf("k-actionsheet-item")!==-1:!1,A=a.elements.filter(b=>b.className.indexOf("k-actionsheet-item")!==-1);if(c&&e.onItemSelect){i.preventDefault();const b=e.items[A.indexOf(t)];e.onItemSelect.call(void 0,{syntheticEvent:i,item:b,title:b&&b.title})}e.animation||h()},U=(t,a,i)=>{e.onClose&&(i.preventDefault(),e.onClose.call(void 0,i)),e.animation||h()},h=()=>{y({show:!1})},z=t=>{f&&v.current.triggerKeyboardEvent(t)},G=t=>{e.onClose&&e.onClose.call(void 0,t),e.animation||h()},O=t=>{e.onItemSelect&&e.onItemSelect.call(void 0,t),e.animation||h()},J=t=>{const a={},i=[];return n.Children.forEach(t,c=>{c&&(c.type.displayName===H.ActionSheetViewDisplayName?i.push(c):a[c.type.displayName]=c)}),i.length>0?i:a},T=n.useRef(null),E=n.useRef(null);n.useImperativeHandle(T,()=>({props:e,element:E.current})),n.useImperativeHandle(d,()=>T.current);const v=n.useRef(void 0),k=n.useRef({bottom:"0",width:"100%"}),C=n.useRef(void 0),[o,Q]=n.useState({show:!1,slide:!1}),y=t=>{Q(a=>({...a,...t}))};n.useEffect(()=>{e.expand&&!o.show&&y({show:!0})},[]),n.useEffect(()=>{const t=E.current;if(e.expand&&!o.show&&y({show:!0}),e.expand&&o.show&&!o.slide&&y({slide:!0}),!e.expand&&o.show&&o.slide&&y({slide:!1}),C!==o&&o.slide&&t&&!e.className&&(t.style.setProperty("--kendo-actionsheet-height","auto"),t.style.setProperty("--kendo-actionsheet-max-height","none")),t&&f){const i=[".k-actionsheet-item",...[".k-actionsheet-footer",".k-actionsheet-content",".k-actionsheet-view",".k-actionsheet-titlebar"].map(c=>N.FOCUSABLE_ELEMENTS.concat(m).map(A=>`${c} ${A}`)).flat()];v.current=new N.Navigation({tabIndex:e.tabIndex||0,root:E,rovingTabIndex:!1,selectors:i,keyboardEvents:{keydown:{Tab:$,Enter:B,Escape:U}}}),v.current.focusElement(v.current.first,null)}C.current={...o}});const I="k-actionsheet-title",P=I,s=(_=e.items)==null?void 0:_.filter(t=>!t.group||t.group==="top"),S=(M=e.items)==null?void 0:M.filter(t=>t.group==="bottom"),W=s&&s.length>0&&S&&S.length>0,u=J(e.children),q=o.slide&&n.createElement("div",{className:N.classNames(`k-actionsheet k-actionsheet-${L}`,e.className),role:"dialog","aria-modal":"true",style:e.style,"aria-labelledby":P,ref:E,onKeyDown:z},Array.isArray(u)?n.createElement(n.Fragment,null,u.map(t=>t)):n.createElement(H.ActionSheetView,null,u[F.headerDisplayName]&&!e.title&&!e.subTitle&&u[F.headerDisplayName],(e.title||e.subTitle||D||w||x)&&n.createElement("div",{className:"k-actionsheet-titlebar"},n.createElement("div",{className:"k-actionsheet-titlebar-group"},D&&n.createElement("div",{className:"k-actionsheet-actions"},D),n.createElement("div",{className:I,id:P},n.createElement("div",{className:"k-text-center"},e.title),e.subTitle&&n.createElement("div",{className:"k-actionsheet-subtitle k-text-center"},e.subTitle)),w&&n.createElement("div",{className:"k-actionsheet-actions"},w)),x&&n.createElement("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter"},x)),u[ee.contentDisplayName]||n.createElement("div",{className:"k-actionsheet-content"},n.createElement("div",{className:"k-list-ul"},s&&s.map((t,a)=>n.createElement(K.ActionSheetItem,{...t,id:a,key:a,item:t,onClick:O})),W&&n.createElement("hr",{className:"k-hr"}),S&&S.map((t,a)=>n.createElement(K.ActionSheetItem,{...t,id:a+((s==null?void 0:s.length)||0),key:a,item:t,onClick:O})))),u[p.footerDisplayName])),j=n.createElement(n.Fragment,null,e.expand||o.show?n.createElement("div",{className:"k-actionsheet-container"},n.createElement("div",{className:"k-overlay",onClick:G}),e.animation?n.createElement(Z.Animation,{transitionName:o.slide?"slide-up":"slide-down",onExited:h,transitionEnterDuration:typeof l=="object"&&Object.keys(l).length>0&&l.openDuration?Number(l.openDuration):Number(l),transitionExitDuration:typeof l=="object"&&Object.keys(l).length>0&&l.closeDuration?Number(l.closeDuration):Number(l),animationEnteringStyle:e.animationStyles||k.current,animationEnteredStyle:e.animationStyles||k.current,animationExitingStyle:e.animationStyles||k.current,exit:!0,enter:!0,appear:!1},q):n.createElement("div",{className:"k-animation-container k-animation-container-shown"},n.createElement("div",{className:"k-child-animation-container",style:e.animationStyles||k.current},q))):null);return e.appendTo&&N.canUseDOM?te.createPortal(j,e.appendTo):j}),g={navigatable:!0,navigatableElements:[],position:"bottom"};R.propTypes={items:r.array,subTitle:r.node,title:r.node,navigatable:r.bool,navigatableElements:r.array,position:r.oneOf(["top","bottom","left","right","fullscreen"]),appendTo:r.any};R.displayName="KendoReactActionSheet";exports.ActionSheet=R;exports.actionSheetDefaultProps=g;
@@ -6,87 +6,88 @@
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
8
  import * as n from "react";
9
- import m from "prop-types";
10
- import { Animation as G } from "@progress/kendo-react-animation";
11
- import { FOCUSABLE_ELEMENTS as J, Navigation as Q, classNames as W } from "@progress/kendo-react-common";
12
- import { ActionSheetItem as P } from "./ActionSheetItem.mjs";
13
- import { headerDisplayName as K } from "./ActionSheetHeader.mjs";
14
- import { footerDisplayName as X } from "./ActionSheetFooter.mjs";
15
- import { contentDisplayName as Y } from "./ActionSheetContent.mjs";
16
- import { ActionSheetView as Z, ActionSheetViewDisplayName as p } from "./ActionSheetView.mjs";
17
- const j = n.forwardRef((e, _) => {
18
- var T, O;
9
+ import * as J from "react-dom";
10
+ import r from "prop-types";
11
+ import { Animation as Q } from "@progress/kendo-react-animation";
12
+ import { FOCUSABLE_ELEMENTS as W, Navigation as X, classNames as Y, canUseDOM as Z } from "@progress/kendo-react-common";
13
+ import { ActionSheetItem as K } from "./ActionSheetItem.mjs";
14
+ import { headerDisplayName as j } from "./ActionSheetHeader.mjs";
15
+ import { footerDisplayName as p } from "./ActionSheetFooter.mjs";
16
+ import { contentDisplayName as ee } from "./ActionSheetContent.mjs";
17
+ import { ActionSheetView as te, ActionSheetViewDisplayName as ne } from "./ActionSheetView.mjs";
18
+ const _ = n.forwardRef((e, F) => {
19
+ var O, P;
19
20
  const {
20
- navigatableElements: F = S.navigatableElements,
21
- navigatable: x = S.navigatable,
22
- position: H = S.position,
21
+ navigatableElements: H = g.navigatableElements,
22
+ navigatable: w = g.navigatable,
23
+ position: L = g.position,
23
24
  animationDuration: l = 300,
24
- prefixActions: y,
25
- suffixActions: v,
26
- filter: k
27
- } = e, L = (t, a, i) => {
25
+ prefixActions: v,
26
+ suffixActions: k,
27
+ filter: N
28
+ } = e, M = (t, a, i) => {
28
29
  i.preventDefault(), i.shiftKey ? a.focusPrevious(t) : a.focusNext(t);
29
30
  }, V = (t, a, i) => {
30
31
  if (t.ariaDisabled)
31
32
  return;
32
- const s = t.className && t.className.indexOf ? t.className.indexOf("k-actionsheet-item") !== -1 : !1, g = a.elements.filter((d) => d.className.indexOf("k-actionsheet-item") !== -1);
33
+ const s = t.className && t.className.indexOf ? t.className.indexOf("k-actionsheet-item") !== -1 : !1, S = a.elements.filter((u) => u.className.indexOf("k-actionsheet-item") !== -1);
33
34
  if (s && e.onItemSelect) {
34
35
  i.preventDefault();
35
- const d = e.items[g.indexOf(t)];
36
+ const u = e.items[S.indexOf(t)];
36
37
  e.onItemSelect.call(void 0, {
37
38
  syntheticEvent: i,
38
- item: d,
39
- title: d && d.title
39
+ item: u,
40
+ title: u && u.title
40
41
  });
41
42
  }
42
43
  e.animation || f();
43
44
  }, $ = (t, a, i) => {
44
45
  e.onClose && (i.preventDefault(), e.onClose.call(void 0, i)), e.animation || f();
45
46
  }, f = () => {
46
- u({ show: !1 });
47
+ d({ show: !1 });
47
48
  }, B = (t) => {
48
- x && E.current.triggerKeyboardEvent(t);
49
- }, M = (t) => {
49
+ w && E.current.triggerKeyboardEvent(t);
50
+ }, U = (t) => {
50
51
  e.onClose && e.onClose.call(void 0, t), e.animation || f();
51
- }, w = (t) => {
52
+ }, x = (t) => {
52
53
  e.onItemSelect && e.onItemSelect.call(void 0, t), e.animation || f();
53
- }, U = (t) => {
54
+ }, q = (t) => {
54
55
  const a = {}, i = [];
55
56
  return n.Children.forEach(t, (s) => {
56
- s && (s.type.displayName === p ? i.push(s) : a[s.type.displayName] = s);
57
+ s && (s.type.displayName === ne ? i.push(s) : a[s.type.displayName] = s);
57
58
  }), i.length > 0 ? i : a;
58
59
  }, D = n.useRef(null), h = n.useRef(null);
59
60
  n.useImperativeHandle(
60
61
  D,
61
62
  () => ({ props: e, element: h.current })
62
63
  ), n.useImperativeHandle(
63
- _,
64
+ F,
64
65
  () => D.current
65
66
  );
66
- const E = n.useRef(void 0), N = n.useRef({ bottom: "0", width: "100%" }), R = n.useRef(void 0), [o, q] = n.useState({ show: !1, slide: !1 }), u = (t) => {
67
- q((a) => ({ ...a, ...t }));
67
+ const E = n.useRef(void 0), y = n.useRef({ bottom: "0", width: "100%" }), R = n.useRef(void 0), [o, z] = n.useState({ show: !1, slide: !1 }), d = (t) => {
68
+ z((a) => ({ ...a, ...t }));
68
69
  };
69
70
  n.useEffect(() => {
70
- e.expand && !o.show && u({ show: !0 });
71
+ e.expand && !o.show && d({ show: !0 });
71
72
  }, []), n.useEffect(() => {
72
73
  const t = h.current;
73
- if (e.expand && !o.show && u({ show: !0 }), e.expand && o.show && !o.slide && u({ slide: !0 }), !e.expand && o.show && o.slide && u({ slide: !1 }), R !== o && o.slide && t && !e.className && (t.style.setProperty("--kendo-actionsheet-height", "auto"), t.style.setProperty("--kendo-actionsheet-max-height", "none")), t && x) {
74
+ if (e.expand && !o.show && d({ show: !0 }), e.expand && o.show && !o.slide && d({ slide: !0 }), !e.expand && o.show && o.slide && d({ slide: !1 }), R !== o && o.slide && t && !e.className && (t.style.setProperty("--kendo-actionsheet-height", "auto"), t.style.setProperty("--kendo-actionsheet-max-height", "none")), t && w) {
74
75
  const i = [".k-actionsheet-item", ...[
75
76
  ".k-actionsheet-footer",
76
77
  ".k-actionsheet-content",
77
78
  ".k-actionsheet-view",
78
79
  ".k-actionsheet-titlebar"
79
- ].map((s) => J.concat(F).map(
80
- (g) => `${s} ${g}`
80
+ ].map((s) => W.concat(H).map(
81
+ (S) => `${s} ${S}`
81
82
  )).flat()];
82
- E.current = new Q({
83
+ E.current = new X({
83
84
  tabIndex: e.tabIndex || 0,
84
85
  root: h,
85
86
  rovingTabIndex: !1,
86
87
  selectors: i,
87
88
  keyboardEvents: {
88
89
  keydown: {
89
- Tab: L,
90
+ Tab: M,
90
91
  Enter: V,
91
92
  Escape: $
92
93
  }
@@ -95,73 +96,73 @@ const j = n.forwardRef((e, _) => {
95
96
  }
96
97
  R.current = { ...o };
97
98
  });
98
- const C = "k-actionsheet-title", I = C, c = (T = e.items) == null ? void 0 : T.filter(
99
+ const T = "k-actionsheet-title", C = T, c = (O = e.items) == null ? void 0 : O.filter(
99
100
  (t) => !t.group || t.group === "top"
100
- ), b = (O = e.items) == null ? void 0 : O.filter(
101
+ ), b = (P = e.items) == null ? void 0 : P.filter(
101
102
  (t) => t.group === "bottom"
102
- ), z = c && c.length > 0 && b && b.length > 0, r = U(e.children), A = o.slide && /* @__PURE__ */ n.createElement(
103
+ ), G = c && c.length > 0 && b && b.length > 0, m = q(e.children), I = o.slide && /* @__PURE__ */ n.createElement(
103
104
  "div",
104
105
  {
105
- className: W(`k-actionsheet k-actionsheet-${H}`, e.className),
106
+ className: Y(`k-actionsheet k-actionsheet-${L}`, e.className),
106
107
  role: "dialog",
107
108
  "aria-modal": "true",
108
109
  style: e.style,
109
- "aria-hidden": !1,
110
- "aria-labelledby": I,
110
+ "aria-labelledby": C,
111
111
  ref: h,
112
112
  onKeyDown: B
113
113
  },
114
- Array.isArray(r) ? /* @__PURE__ */ n.createElement(n.Fragment, null, r.map((t) => t)) : /* @__PURE__ */ n.createElement(Z, null, r[K] && !e.title && !e.subTitle && r[K], (e.title || e.subTitle || y || v || k) && /* @__PURE__ */ n.createElement("div", { className: "k-actionsheet-titlebar" }, /* @__PURE__ */ n.createElement("div", { className: "k-actionsheet-titlebar-group" }, y && /* @__PURE__ */ n.createElement("div", { className: "k-actionsheet-actions" }, y), /* @__PURE__ */ n.createElement("div", { className: C, id: I }, /* @__PURE__ */ n.createElement("div", { className: "k-text-center" }, e.title), e.subTitle && /* @__PURE__ */ n.createElement("div", { className: "k-actionsheet-subtitle k-text-center" }, e.subTitle)), v && /* @__PURE__ */ n.createElement("div", { className: "k-actionsheet-actions" }, v)), k && /* @__PURE__ */ n.createElement("div", { className: "k-actionsheet-titlebar-group k-actionsheet-filter" }, k)), r[Y] || /* @__PURE__ */ n.createElement("div", { className: "k-actionsheet-content" }, /* @__PURE__ */ n.createElement("div", { className: "k-list-ul", role: "group" }, c && c.map((t, a) => /* @__PURE__ */ n.createElement(
115
- P,
114
+ Array.isArray(m) ? /* @__PURE__ */ n.createElement(n.Fragment, null, m.map((t) => t)) : /* @__PURE__ */ n.createElement(te, null, m[j] && !e.title && !e.subTitle && m[j], (e.title || e.subTitle || v || k || N) && /* @__PURE__ */ n.createElement("div", { className: "k-actionsheet-titlebar" }, /* @__PURE__ */ n.createElement("div", { className: "k-actionsheet-titlebar-group" }, v && /* @__PURE__ */ n.createElement("div", { className: "k-actionsheet-actions" }, v), /* @__PURE__ */ n.createElement("div", { className: T, id: C }, /* @__PURE__ */ n.createElement("div", { className: "k-text-center" }, e.title), e.subTitle && /* @__PURE__ */ n.createElement("div", { className: "k-actionsheet-subtitle k-text-center" }, e.subTitle)), k && /* @__PURE__ */ n.createElement("div", { className: "k-actionsheet-actions" }, k)), N && /* @__PURE__ */ n.createElement("div", { className: "k-actionsheet-titlebar-group k-actionsheet-filter" }, N)), m[ee] || /* @__PURE__ */ n.createElement("div", { className: "k-actionsheet-content" }, /* @__PURE__ */ n.createElement("div", { className: "k-list-ul" }, c && c.map((t, a) => /* @__PURE__ */ n.createElement(
115
+ K,
116
116
  {
117
117
  ...t,
118
118
  id: a,
119
119
  key: a,
120
120
  item: t,
121
- onClick: w
121
+ onClick: x
122
122
  }
123
- )), z && /* @__PURE__ */ n.createElement("hr", { className: "k-hr" }), b && b.map((t, a) => /* @__PURE__ */ n.createElement(
124
- P,
123
+ )), G && /* @__PURE__ */ n.createElement("hr", { className: "k-hr" }), b && b.map((t, a) => /* @__PURE__ */ n.createElement(
124
+ K,
125
125
  {
126
126
  ...t,
127
127
  id: a + ((c == null ? void 0 : c.length) || 0),
128
128
  key: a,
129
129
  item: t,
130
- onClick: w
130
+ onClick: x
131
131
  }
132
- )))), r[X])
133
- );
134
- return /* @__PURE__ */ n.createElement(n.Fragment, null, e.expand || o.show ? /* @__PURE__ */ n.createElement("div", { className: "k-actionsheet-container" }, /* @__PURE__ */ n.createElement("div", { className: "k-overlay", onClick: M }), e.animation ? /* @__PURE__ */ n.createElement(
135
- G,
132
+ )))), m[p])
133
+ ), A = /* @__PURE__ */ n.createElement(n.Fragment, null, e.expand || o.show ? /* @__PURE__ */ n.createElement("div", { className: "k-actionsheet-container" }, /* @__PURE__ */ n.createElement("div", { className: "k-overlay", onClick: U }), e.animation ? /* @__PURE__ */ n.createElement(
134
+ Q,
136
135
  {
137
136
  transitionName: o.slide ? "slide-up" : "slide-down",
138
137
  onExited: f,
139
138
  transitionEnterDuration: typeof l == "object" && Object.keys(l).length > 0 && l.openDuration ? Number(l.openDuration) : Number(l),
140
139
  transitionExitDuration: typeof l == "object" && Object.keys(l).length > 0 && l.closeDuration ? Number(l.closeDuration) : Number(l),
141
- animationEnteringStyle: e.animationStyles || N.current,
142
- animationEnteredStyle: e.animationStyles || N.current,
143
- animationExitingStyle: e.animationStyles || N.current,
140
+ animationEnteringStyle: e.animationStyles || y.current,
141
+ animationEnteredStyle: e.animationStyles || y.current,
142
+ animationExitingStyle: e.animationStyles || y.current,
144
143
  exit: !0,
145
144
  enter: !0,
146
145
  appear: !1
147
146
  },
148
- A
149
- ) : A) : null);
150
- }), S = {
147
+ I
148
+ ) : /* @__PURE__ */ n.createElement("div", { className: "k-animation-container k-animation-container-shown" }, /* @__PURE__ */ n.createElement("div", { className: "k-child-animation-container", style: e.animationStyles || y.current }, I))) : null);
149
+ return e.appendTo && Z ? J.createPortal(A, e.appendTo) : A;
150
+ }), g = {
151
151
  navigatable: !0,
152
152
  navigatableElements: [],
153
153
  position: "bottom"
154
154
  };
155
- j.propTypes = {
156
- items: m.array,
157
- subTitle: m.node,
158
- title: m.node,
159
- navigatable: m.bool,
160
- navigatableElements: m.array,
161
- position: m.oneOf(["top", "bottom", "left", "right", "fullscreen"])
155
+ _.propTypes = {
156
+ items: r.array,
157
+ subTitle: r.node,
158
+ title: r.node,
159
+ navigatable: r.bool,
160
+ navigatableElements: r.array,
161
+ position: r.oneOf(["top", "bottom", "left", "right", "fullscreen"]),
162
+ appendTo: r.any
162
163
  };
163
- j.displayName = "KendoReactActionSheet";
164
+ _.displayName = "KendoReactActionSheet";
164
165
  export {
165
- j as ActionSheet,
166
- S as actionSheetDefaultProps
166
+ _ as ActionSheet,
167
+ g as actionSheetDefaultProps
167
168
  };
@@ -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 strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react"),c=require("prop-types"),o=require("@progress/kendo-react-common");function m(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const a=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(n,i,a.get?a:{enumerable:!0,get:()=>e[i]})}}return n.default=e,Object.freeze(n)}const t=m(s),l=e=>{const n=t.useRef(null),i=t.useCallback(a=>{e.onClick&&e.onClick.call(void 0,{syntheticEvent:a,item:e.item,title:e.title})},[e.item,e.title,e.onClick]);return t.useEffect(()=>{n.current&&e.focused&&n.current.focus()},[e.focused]),t.createElement("span",{style:e.style,tabIndex:e.tabIndex,className:o.classNames("k-actionsheet-item","k-cursor-pointer",e.disabled&&"k-disabled",e.className),ref:n,role:"button","aria-disabled":e.disabled,onClick:i},t.createElement("span",{className:"k-actionsheet-action"},e.icon&&t.createElement("span",{className:"k-icon-wrap"},e.icon),(e.title||e.description)&&t.createElement("span",{className:"k-actionsheet-item-text"},e.title&&t.createElement("span",{className:"k-actionsheet-item-title"},e.title),e.description&&t.createElement("span",{className:"k-actionsheet-item-description"},e.description))))};l.propTypes={className:c.string,style:c.object,description:c.string,disabled:c.bool,group:c.oneOf(["top","bottom"]),icon:c.element,title:c.string};exports.ActionSheetItem=l;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react"),c=require("prop-types"),o=require("@progress/kendo-react-common");function m(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const a=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(n,i,a.get?a:{enumerable:!0,get:()=>e[i]})}}return n.default=e,Object.freeze(n)}const t=m(s),l=e=>{const n=t.useRef(null),i=t.useCallback(a=>{e.onClick&&e.onClick.call(void 0,{syntheticEvent:a,item:e.item,title:e.title})},[e.item,e.title,e.onClick]);return t.useEffect(()=>{n.current&&e.focused&&n.current.focus()},[e.focused]),t.createElement("span",{style:e.style,tabIndex:e.tabIndex,className:o.classNames("k-actionsheet-item",e.disabled&&"k-disabled",e.className),ref:n,"aria-disabled":e.disabled||void 0,onClick:i},t.createElement("span",{className:"k-actionsheet-action"},e.icon&&t.createElement("span",{className:"k-icon-wrap"},e.icon),(e.title||e.description)&&t.createElement("span",{className:"k-actionsheet-item-text"},e.title&&t.createElement("span",{className:"k-actionsheet-item-title"},e.title),e.description&&t.createElement("span",{className:"k-actionsheet-item-description"},e.description))))};l.propTypes={className:c.string,style:c.object,description:c.string,disabled:c.bool,group:c.oneOf(["top","bottom"]),icon:c.element,title:c.string};exports.ActionSheetItem=l;
@@ -28,13 +28,11 @@ const s = (e) => {
28
28
  tabIndex: e.tabIndex,
29
29
  className: l(
30
30
  "k-actionsheet-item",
31
- "k-cursor-pointer",
32
31
  e.disabled && "k-disabled",
33
32
  e.className
34
33
  ),
35
34
  ref: a,
36
- role: "button",
37
- "aria-disabled": e.disabled,
35
+ "aria-disabled": e.disabled || void 0,
38
36
  onClick: c
39
37
  },
40
38
  /* @__PURE__ */ t.createElement("span", { className: "k-actionsheet-action" }, e.icon && /* @__PURE__ */ t.createElement("span", { className: "k-icon-wrap" }, e.icon), (e.title || e.description) && /* @__PURE__ */ t.createElement("span", { className: "k-actionsheet-item-text" }, e.title && /* @__PURE__ */ t.createElement("span", { className: "k-actionsheet-item-title" }, e.title), e.description && /* @__PURE__ */ t.createElement("span", { className: "k-actionsheet-item-description" }, e.description)))
@@ -84,16 +84,10 @@ export interface AppBarProps {
84
84
  * Specifies the AppBar theme color ([see example](https://www.telerik.com/kendo-react-ui/components/layout/appbar/appearance)).
85
85
  *
86
86
  * * The possible values are:
87
- * * 'light'
87
+ * * 'base'
88
88
  * * 'primary'
89
89
  * * 'secondary'
90
90
  * * 'tertiary'
91
- * * 'info'
92
- * * 'success'
93
- * * 'warning'
94
- * * 'error'
95
- * * 'dark'
96
- * * 'inherit'
97
91
  * * 'inverse'
98
92
  *
99
93
  * @default undefined (theme-controlled)
@@ -131,13 +125,7 @@ export type AppBarPositionMode = 'static' | 'sticky' | 'fixed';
131
125
  * * 'primary'
132
126
  * * 'secondary'
133
127
  * * 'tertiary'
134
- * * 'info'
135
- * * 'success'
136
- * * 'warning'
137
- * * 'error'
138
- * * 'dark'
139
- * * 'inherit'
140
128
  * * 'inverse'
141
129
  *
142
130
  */
143
- export type AppBarThemeColor = 'base' | 'primary' | 'secondary' | 'tertiary' | 'info' | 'success' | 'warning' | 'error' | 'dark' | 'light' | 'inherit' | 'inverse';
131
+ export type AppBarThemeColor = 'base' | 'primary' | 'secondary' | 'tertiary' | 'inverse';
@@ -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 strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("react"),r=require("prop-types"),l=require("@progress/kendo-react-common"),N=require("./models/utils.js"),j=require("./BottomNavigationItem.js");function B(e){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const c=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(s,a,c.get?c:{enumerable:!0,get:()=>e[a]})}}return s.default=e,Object.freeze(s)}const o=B(_),g=o.forwardRef((e,s)=>{const a=o.useRef(null),c=o.useCallback(()=>{a.current&&l.focusFirstFocusableChild(a.current)},[]),m=o.useCallback(()=>({element:a.current,focus:c}),[c]);o.useImperativeHandle(s,m);const{positionMode:C=d.positionMode,itemFlow:M=d.itemFlow,border:k=d.border,className:S,items:i,item:w,itemRender:I,disabled:f,style:E,id:h,onSelect:b,onKeyDown:p}=e,O=l.useId(),D=l.useDir(a,e.dir),v=o.useMemo(()=>e.fillMode===null?null:e.fillMode||d.fillMode,[e.fillMode]),y=o.useMemo(()=>e.themeColor||d.themeColor,[e.themeColor]),R=o.useMemo(()=>l.classNames("k-bottom-nav",N.POSITION_MODE_CLASSES[C],N.ITEM_FLOW_CLASSES[M],{[`k-bottom-nav-${v}`]:v,[`k-bottom-nav-${y}`]:!!y,"k-bottom-nav-border":k,"k-disabled":f},S),[C,y,v,M,k,f,S]),u=o.useCallback((t,n)=>{i&&!i[n].disabled&&b&&l.dispatchEvent(b,t,m(),{itemTarget:i[n],itemIndex:n})},[i,b]),F=o.useCallback((t,n)=>{u(t,n)},[u]),T=o.useCallback((t,n)=>{switch(t.keyCode){case l.Keys.enter:case l.Keys.space:u(t,n),t.preventDefault();break}l.dispatchEvent(p,t,m(),void 0)},[u,p]);return o.createElement("nav",{ref:a,className:R,style:E,id:h||O,dir:D},i&&i.map((t,n)=>o.createElement(j.BottomNavigationItem,{...t,key:n,index:n,id:`${h||O}-${n}`,disabled:f||t.disabled,selected:t.selected,dataItem:t,item:w,render:I,onSelect:F,onKeyDown:T})))}),d={themeColor:void 0,fillMode:void 0,itemFlow:"vertical",positionMode:"fixed",border:!0};g.propTypes={className:r.string,style:r.object,id:r.string,dir:r.string,themeColor:r.oneOf(["primary","secondary","tertiary","info","success","warning","error","dark","light","inverse"]),fillMode:r.oneOf(["solid","flat"]),itemFlow:r.oneOf(["vertical","horizontal"]),border:r.bool,disabled:r.bool,selected:r.number,onSelect:r.func};g.displayName="KendoReactBottomNavigation";exports.BottomNavigation=g;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const j=require("react"),n=require("prop-types"),l=require("@progress/kendo-react-common"),I=require("./models/utils.js"),B=require("./BottomNavigationItem.js"),K=require("@progress/kendo-react-intl"),y=require("./messages/index.js");function P(e){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const c=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(s,i,c.get?c:{enumerable:!0,get:()=>e[i]})}}return s.default=e,Object.freeze(s)}const o=P(j),C=o.forwardRef((e,s)=>{const i=o.useRef(null),c=o.useCallback(()=>{i.current&&l.focusFirstFocusableChild(i.current)},[]),m=o.useCallback(()=>({element:i.current,focus:c}),[c]);o.useImperativeHandle(s,m);const{positionMode:M=d.positionMode,itemFlow:S=d.itemFlow,border:k=d.border,className:h,items:r,item:w,itemRender:E,disabled:b,style:R,id:p,onSelect:f,onKeyDown:N}=e,D=K.useLocalization(),O=l.useId(),L=l.useDir(i,e.dir),v=o.useMemo(()=>e.fillMode===null?null:e.fillMode||d.fillMode,[e.fillMode]),g=o.useMemo(()=>e.themeColor||d.themeColor,[e.themeColor]),q=o.useMemo(()=>l.classNames("k-bottom-nav",I.POSITION_MODE_CLASSES[M],I.ITEM_FLOW_CLASSES[S],{[`k-bottom-nav-${v}`]:v,[`k-bottom-nav-${g}`]:!!g,"k-bottom-nav-border":k,"k-disabled":b},h),[M,g,v,S,k,b,h]),u=o.useCallback((t,a)=>{r&&!r[a].disabled&&f&&l.dispatchEvent(f,t,m(),{itemTarget:r[a],itemIndex:a})},[r,f]),F=o.useCallback((t,a)=>{u(t,a)},[u]),T=o.useCallback((t,a)=>{switch(t.keyCode){case l.Keys.enter:case l.Keys.space:u(t,a),t.preventDefault();break}l.dispatchEvent(N,t,m(),void 0)},[u,N]),_=D.toLanguageString(y.bottomNavigationAriaLabel,y.messages[y.bottomNavigationAriaLabel]);return o.createElement("nav",{ref:i,className:q,style:R,id:p||O,dir:L,"aria-label":_},r&&r.map((t,a)=>o.createElement(B.BottomNavigationItem,{...t,key:a,index:a,id:`${p||O}-${a}`,disabled:b||t.disabled,selected:t.selected,dataItem:t,item:w,render:E,onSelect:F,onKeyDown:T})))}),d={themeColor:void 0,fillMode:void 0,itemFlow:"vertical",positionMode:"fixed",border:!0};C.propTypes={className:n.string,style:n.object,id:n.string,dir:n.string,themeColor:n.oneOf(["base","primary","secondary","tertiary","inverse"]),fillMode:n.oneOf(["solid","flat"]),itemFlow:n.oneOf(["vertical","horizontal"]),border:n.bool,disabled:n.bool,selected:n.number,onSelect:n.func};C.displayName="KendoReactBottomNavigation";exports.BottomNavigation=C;