@progress/kendo-react-layout 7.2.4-develop.2 → 7.2.4-develop.4

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 (288) hide show
  1. package/actionsheet/ActionSheet.js +8 -0
  2. package/actionsheet/ActionSheet.mjs +184 -0
  3. package/actionsheet/ActionSheetContent.js +8 -0
  4. package/actionsheet/ActionSheetContent.mjs +32 -0
  5. package/actionsheet/ActionSheetFooter.js +8 -0
  6. package/actionsheet/ActionSheetFooter.mjs +32 -0
  7. package/actionsheet/ActionSheetHeader.js +8 -0
  8. package/actionsheet/ActionSheetHeader.mjs +32 -0
  9. package/actionsheet/ActionSheetItem.js +8 -0
  10. package/actionsheet/ActionSheetItem.mjs +52 -0
  11. package/appbar/AppBar.js +8 -0
  12. package/appbar/AppBar.mjs +86 -0
  13. package/appbar/AppBarSection.js +8 -0
  14. package/appbar/AppBarSection.mjs +47 -0
  15. package/appbar/AppBarSpacer.js +8 -0
  16. package/appbar/AppBarSpacer.mjs +55 -0
  17. package/bottomnavigation/BottomNavigation.js +8 -0
  18. package/bottomnavigation/BottomNavigation.mjs +160 -0
  19. package/bottomnavigation/BottomNavigationItem.js +8 -0
  20. package/bottomnavigation/BottomNavigationItem.mjs +93 -0
  21. package/bottomnavigation/models/utils.js +8 -0
  22. package/bottomnavigation/models/utils.mjs +19 -0
  23. package/breadcrumb/Breadcrumb.js +8 -0
  24. package/breadcrumb/Breadcrumb.mjs +158 -0
  25. package/breadcrumb/BreadcrumbDelimiter.js +8 -0
  26. package/breadcrumb/BreadcrumbDelimiter.mjs +48 -0
  27. package/breadcrumb/BreadcrumbLink.js +8 -0
  28. package/breadcrumb/BreadcrumbLink.mjs +82 -0
  29. package/breadcrumb/BreadcrumbListItem.js +8 -0
  30. package/breadcrumb/BreadcrumbListItem.mjs +52 -0
  31. package/breadcrumb/BreadcrumbOrderedList.js +8 -0
  32. package/breadcrumb/BreadcrumbOrderedList.mjs +67 -0
  33. package/card/Avatar.js +8 -0
  34. package/card/Avatar.mjs +53 -0
  35. package/card/Card.js +8 -0
  36. package/card/Card.mjs +52 -0
  37. package/card/CardActions.js +8 -0
  38. package/card/CardActions.mjs +40 -0
  39. package/card/CardBody.js +8 -0
  40. package/card/CardBody.mjs +28 -0
  41. package/card/CardFooter.js +8 -0
  42. package/card/CardFooter.mjs +28 -0
  43. package/card/CardHeader.js +8 -0
  44. package/card/CardHeader.mjs +28 -0
  45. package/card/CardImage.js +8 -0
  46. package/card/CardImage.mjs +36 -0
  47. package/card/CardSubtitle.js +8 -0
  48. package/card/CardSubtitle.mjs +28 -0
  49. package/card/CardTitle.js +8 -0
  50. package/card/CardTitle.mjs +28 -0
  51. package/card/interfaces/Enums.js +8 -0
  52. package/card/interfaces/Enums.mjs +15 -0
  53. package/contextmenu/ContextMenu.js +8 -0
  54. package/contextmenu/ContextMenu.mjs +48 -0
  55. package/dist/cdn/js/kendo-react-layout.js +8 -5
  56. package/drawer/Drawer.js +8 -0
  57. package/drawer/Drawer.mjs +130 -0
  58. package/drawer/DrawerContent.js +8 -0
  59. package/drawer/DrawerContent.mjs +33 -0
  60. package/drawer/DrawerItem.js +8 -0
  61. package/drawer/DrawerItem.mjs +89 -0
  62. package/drawer/DrawerNavigation.js +8 -0
  63. package/drawer/DrawerNavigation.mjs +132 -0
  64. package/drawer/context/DrawerContext.js +8 -0
  65. package/drawer/context/DrawerContext.mjs +22 -0
  66. package/expansionpanel/ExpansionPanel.js +8 -0
  67. package/expansionpanel/ExpansionPanel.mjs +116 -0
  68. package/expansionpanel/ExpansionPanelContent.js +8 -0
  69. package/expansionpanel/ExpansionPanelContent.mjs +23 -0
  70. package/gridlayout/GridLayout.js +8 -0
  71. package/gridlayout/GridLayout.mjs +83 -0
  72. package/gridlayout/GridLayoutItem.js +8 -0
  73. package/gridlayout/GridLayoutItem.mjs +46 -0
  74. package/index.d.mts +4593 -5
  75. package/index.d.ts +4593 -103
  76. package/index.js +8 -5
  77. package/index.mjs +139 -5037
  78. package/menu/components/Menu.js +8 -0
  79. package/menu/components/Menu.mjs +193 -0
  80. package/menu/components/MenuItem.js +8 -0
  81. package/menu/components/MenuItem.mjs +34 -0
  82. package/menu/components/MenuItemArrow.js +8 -0
  83. package/menu/components/MenuItemArrow.mjs +49 -0
  84. package/menu/components/MenuItemInternal.js +8 -0
  85. package/menu/components/MenuItemInternal.mjs +222 -0
  86. package/menu/components/MenuItemLink.js +8 -0
  87. package/menu/components/MenuItemLink.mjs +54 -0
  88. package/menu/consts.js +8 -0
  89. package/menu/consts.mjs +59 -0
  90. package/menu/utils/DirectionHolder.js +8 -0
  91. package/menu/utils/DirectionHolder.mjs +25 -0
  92. package/menu/utils/MouseOverHandler.js +8 -0
  93. package/menu/utils/MouseOverHandler.mjs +34 -0
  94. package/menu/utils/getNewItemIdUponKeyboardNavigation.js +8 -0
  95. package/menu/utils/getNewItemIdUponKeyboardNavigation.mjs +124 -0
  96. package/menu/utils/hoverDelay.js +8 -0
  97. package/menu/utils/hoverDelay.mjs +18 -0
  98. package/menu/utils/itemsIdsUtils.js +8 -0
  99. package/menu/utils/itemsIdsUtils.mjs +81 -0
  100. package/menu/utils/misc.js +8 -0
  101. package/menu/utils/misc.mjs +29 -0
  102. package/menu/utils/prepareInputItemsForInternalWork.js +8 -0
  103. package/menu/utils/prepareInputItemsForInternalWork.mjs +59 -0
  104. package/package-metadata.js +8 -0
  105. package/package-metadata.mjs +19 -0
  106. package/package.json +6 -6
  107. package/panelbar/PanelBar.js +8 -0
  108. package/panelbar/PanelBar.mjs +195 -0
  109. package/panelbar/PanelBarItem.js +8 -0
  110. package/panelbar/PanelBarItem.mjs +148 -0
  111. package/panelbar/interfaces/NavigationAction.js +8 -0
  112. package/panelbar/interfaces/NavigationAction.mjs +12 -0
  113. package/panelbar/util.js +8 -0
  114. package/panelbar/util.mjs +122 -0
  115. package/splitter/Splitter.js +8 -0
  116. package/splitter/Splitter.mjs +238 -0
  117. package/splitter/SplitterBar.js +8 -0
  118. package/splitter/SplitterBar.mjs +129 -0
  119. package/splitter/SplitterPane.js +8 -0
  120. package/splitter/SplitterPane.mjs +50 -0
  121. package/splitter/messages/index.js +8 -0
  122. package/splitter/messages/index.mjs +15 -0
  123. package/stacklayout/StackLayout.js +8 -0
  124. package/stacklayout/StackLayout.mjs +84 -0
  125. package/stepper/Step.js +8 -0
  126. package/stepper/Step.mjs +177 -0
  127. package/stepper/Stepper.js +8 -0
  128. package/stepper/Stepper.mjs +252 -0
  129. package/stepper/contants.js +8 -0
  130. package/stepper/contants.mjs +13 -0
  131. package/stepper/context/StepperContext.js +8 -0
  132. package/stepper/context/StepperContext.mjs +17 -0
  133. package/stepper/messages/index.js +8 -0
  134. package/stepper/messages/index.mjs +17 -0
  135. package/tabstrip/TabStrip.js +8 -0
  136. package/tabstrip/TabStrip.mjs +163 -0
  137. package/tabstrip/TabStripContent.js +8 -0
  138. package/tabstrip/TabStripContent.mjs +81 -0
  139. package/tabstrip/TabStripNavigation.js +8 -0
  140. package/tabstrip/TabStripNavigation.mjs +171 -0
  141. package/tabstrip/TabStripNavigationItem.js +8 -0
  142. package/tabstrip/TabStripNavigationItem.mjs +55 -0
  143. package/tabstrip/TabStripTab.js +8 -0
  144. package/tabstrip/TabStripTab.mjs +35 -0
  145. package/tilelayout/InternalTile.js +8 -0
  146. package/tilelayout/InternalTile.mjs +203 -0
  147. package/tilelayout/ResizeHandlers.js +8 -0
  148. package/tilelayout/ResizeHandlers.mjs +53 -0
  149. package/tilelayout/TileLayout.js +8 -0
  150. package/tilelayout/TileLayout.mjs +122 -0
  151. package/timeline/Timeline.js +8 -0
  152. package/timeline/Timeline.mjs +79 -0
  153. package/timeline/TimelineCard.js +8 -0
  154. package/timeline/TimelineCard.mjs +109 -0
  155. package/timeline/TimelineHorizontal.js +8 -0
  156. package/timeline/TimelineHorizontal.mjs +239 -0
  157. package/timeline/TimelineVertical.js +8 -0
  158. package/timeline/TimelineVertical.mjs +78 -0
  159. package/timeline/utils.js +8 -0
  160. package/timeline/utils.mjs +16 -0
  161. package/actionsheet/ActionSheet.d.ts +0 -138
  162. package/actionsheet/ActionSheetContent.d.ts +0 -14
  163. package/actionsheet/ActionSheetFooter.d.ts +0 -14
  164. package/actionsheet/ActionSheetHeader.d.ts +0 -14
  165. package/actionsheet/ActionSheetItem.d.ts +0 -10
  166. package/actionsheet/interfaces/ActionSheetChildrenProps.d.ts +0 -17
  167. package/actionsheet/interfaces/ActionSheetItemProps.d.ts +0 -70
  168. package/appbar/AppBar.d.ts +0 -54
  169. package/appbar/AppBarSection.d.ts +0 -53
  170. package/appbar/AppBarSpacer.d.ts +0 -54
  171. package/appbar/interfaces/AppBarProps.d.ts +0 -83
  172. package/appbar/interfaces/AppBarSectionProps.d.ts +0 -22
  173. package/appbar/interfaces/AppBarSpacerProps.d.ts +0 -23
  174. package/bottomnavigation/BottomNavigation.d.ts +0 -42
  175. package/bottomnavigation/BottomNavigationItem.d.ts +0 -16
  176. package/bottomnavigation/BottomNavigationItemProps.d.ts +0 -64
  177. package/bottomnavigation/BottomNavigationProps.d.ts +0 -157
  178. package/bottomnavigation/models/events.d.ts +0 -24
  179. package/bottomnavigation/models/utils.d.ts +0 -40
  180. package/breadcrumb/Breadcrumb.d.ts +0 -163
  181. package/breadcrumb/BreadcrumbDelimiter.d.ts +0 -47
  182. package/breadcrumb/BreadcrumbLink.d.ts +0 -135
  183. package/breadcrumb/BreadcrumbListItem.d.ts +0 -55
  184. package/breadcrumb/BreadcrumbOrderedList.d.ts +0 -59
  185. package/card/Avatar.d.ts +0 -7
  186. package/card/Card.d.ts +0 -8
  187. package/card/CardActions.d.ts +0 -7
  188. package/card/CardBody.d.ts +0 -7
  189. package/card/CardFooter.d.ts +0 -7
  190. package/card/CardHeader.d.ts +0 -7
  191. package/card/CardImage.d.ts +0 -7
  192. package/card/CardSubtitle.d.ts +0 -7
  193. package/card/CardTitle.d.ts +0 -7
  194. package/card/interfaces/AvatarProps.d.ts +0 -88
  195. package/card/interfaces/CardActionsProps.d.ts +0 -38
  196. package/card/interfaces/CardBodyProps.d.ts +0 -18
  197. package/card/interfaces/CardFooterProps.d.ts +0 -18
  198. package/card/interfaces/CardHandle.d.ts +0 -18
  199. package/card/interfaces/CardHeaderProps.d.ts +0 -18
  200. package/card/interfaces/CardImageProps.d.ts +0 -22
  201. package/card/interfaces/CardProps.d.ts +0 -48
  202. package/card/interfaces/CardSubtitleProps.d.ts +0 -18
  203. package/card/interfaces/CardTitleProps.d.ts +0 -18
  204. package/card/interfaces/Enums.d.ts +0 -27
  205. package/contextmenu/ContextMenu.d.ts +0 -31
  206. package/drawer/Drawer.d.ts +0 -44
  207. package/drawer/DrawerContent.d.ts +0 -43
  208. package/drawer/DrawerItem.d.ts +0 -36
  209. package/drawer/DrawerNavigation.d.ts +0 -47
  210. package/drawer/context/DrawerContext.d.ts +0 -24
  211. package/drawer/interfaces/DrawerAnimation.d.ts +0 -18
  212. package/drawer/interfaces/DrawerContentProps.d.ts +0 -21
  213. package/drawer/interfaces/DrawerItemHandle.d.ts +0 -21
  214. package/drawer/interfaces/DrawerItemProps.d.ts +0 -64
  215. package/drawer/interfaces/DrawerNavigationProps.d.ts +0 -21
  216. package/drawer/interfaces/DrawerProps.d.ts +0 -86
  217. package/drawer/interfaces/DrawerSelectEvent.d.ts +0 -19
  218. package/expansionpanel/ExpansionPanel.d.ts +0 -10
  219. package/expansionpanel/ExpansionPanelContent.d.ts +0 -9
  220. package/expansionpanel/index.d.ts +0 -7
  221. package/expansionpanel/interfaces.d.ts +0 -92
  222. package/gridlayout/GridLayout.d.ts +0 -43
  223. package/gridlayout/GridLayoutItem.d.ts +0 -42
  224. package/gridlayout/interfaces/GridLayoutColumnProps.d.ts +0 -13
  225. package/gridlayout/interfaces/GridLayoutItemProps.d.ts +0 -44
  226. package/gridlayout/interfaces/GridLayoutProps.d.ts +0 -99
  227. package/gridlayout/interfaces/GridLayoutRowProps.d.ts +0 -13
  228. package/menu/BaseMenuItemInternalProps.d.ts +0 -24
  229. package/menu/MenuProps.d.ts +0 -75
  230. package/menu/components/Menu.d.ts +0 -118
  231. package/menu/components/MenuItem.d.ts +0 -33
  232. package/menu/components/MenuItemArrow.d.ts +0 -50
  233. package/menu/components/MenuItemInternal.d.ts +0 -63
  234. package/menu/components/MenuItemLink.d.ts +0 -34
  235. package/menu/consts.d.ts +0 -58
  236. package/menu/events.d.ts +0 -20
  237. package/menu/models/BaseMenuItem.d.ts +0 -58
  238. package/menu/models/MenuItemModel.d.ts +0 -23
  239. package/menu/utils/DirectionHolder.d.ts +0 -15
  240. package/menu/utils/MouseOverHandler.d.ts +0 -21
  241. package/menu/utils/getNewItemIdUponKeyboardNavigation.d.ts +0 -11
  242. package/menu/utils/hoverDelay.d.ts +0 -13
  243. package/menu/utils/itemsIdsUtils.d.ts +0 -68
  244. package/menu/utils/misc.d.ts +0 -20
  245. package/menu/utils/prepareInputItemsForInternalWork.d.ts +0 -10
  246. package/package-metadata.d.ts +0 -9
  247. package/panelbar/PanelBar.d.ts +0 -81
  248. package/panelbar/PanelBarItem.d.ts +0 -52
  249. package/panelbar/interfaces/NavigationAction.d.ts +0 -12
  250. package/panelbar/interfaces/PanelBarItemClickEventArguments.d.ts +0 -12
  251. package/panelbar/interfaces/PanelBarItemProps.d.ts +0 -98
  252. package/panelbar/interfaces/PanelBarProps.d.ts +0 -66
  253. package/panelbar/interfaces/PanelBarSelectEventArguments.d.ts +0 -18
  254. package/panelbar/interfaces/RenderPanelBarItem.d.ts +0 -19
  255. package/panelbar/util.d.ts +0 -56
  256. package/splitter/Splitter.d.ts +0 -136
  257. package/splitter/SplitterBar.d.ts +0 -44
  258. package/splitter/SplitterPane.d.ts +0 -57
  259. package/splitter/messages/index.d.ts +0 -14
  260. package/stacklayout/StackLayout.d.ts +0 -41
  261. package/stacklayout/StackLayoutProps.d.ts +0 -92
  262. package/stepper/Step.d.ts +0 -27
  263. package/stepper/Stepper.d.ts +0 -27
  264. package/stepper/contants.d.ts +0 -12
  265. package/stepper/context/StepperContext.d.ts +0 -27
  266. package/stepper/interfaces/StepChangeEvent.d.ts +0 -15
  267. package/stepper/interfaces/StepFocusEvent.d.ts +0 -11
  268. package/stepper/interfaces/StepHandle.d.ts +0 -17
  269. package/stepper/interfaces/StepProps.d.ts +0 -83
  270. package/stepper/interfaces/StepperChangeEvent.d.ts +0 -15
  271. package/stepper/interfaces/StepperFocusEvent.d.ts +0 -11
  272. package/stepper/interfaces/StepperHandle.d.ts +0 -17
  273. package/stepper/interfaces/StepperProps.d.ts +0 -98
  274. package/stepper/messages/index.d.ts +0 -19
  275. package/tabstrip/TabStrip.d.ts +0 -158
  276. package/tabstrip/TabStripContent.d.ts +0 -62
  277. package/tabstrip/TabStripNavigation.d.ts +0 -110
  278. package/tabstrip/TabStripNavigationItem.d.ts +0 -75
  279. package/tabstrip/TabStripTab.d.ts +0 -42
  280. package/tilelayout/InternalTile.d.ts +0 -94
  281. package/tilelayout/ResizeHandlers.d.ts +0 -24
  282. package/tilelayout/TileLayout.d.ts +0 -153
  283. package/tilelayout/interfaces/index.d.ts +0 -145
  284. package/timeline/Timeline.d.ts +0 -102
  285. package/timeline/TimelineCard.d.ts +0 -38
  286. package/timeline/TimelineHorizontal.d.ts +0 -7
  287. package/timeline/TimelineVertical.d.ts +0 -16
  288. package/timeline/utils.d.ts +0 -19
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 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 client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const N=require("react"),m=require("prop-types"),C=require("@progress/kendo-react-animation"),b=require("@progress/kendo-react-common"),x=require("../package-metadata.js"),E=require("./ActionSheetItem.js"),g=require("./ActionSheetHeader.js"),D=require("./ActionSheetFooter.js"),I=require("./ActionSheetContent.js");function O(h){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(h){for(const t in h)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(h,t);Object.defineProperty(n,t,i.get?i:{enumerable:!0,get:()=>h[t]})}}return n.default=h,Object.freeze(n)}const e=O(N),d=class d extends e.Component{constructor(n){super(n),this.actionSheetRef=e.createRef(),this.actionSheetTitleClass="k-actionsheet-title",this.ariaLabeledBy=this.actionSheetTitleClass+1,this.animationDuration=300,this.bottomPosition={bottom:"0",width:"100%"},this.handleKeyDown=t=>{this.props.navigatable&&this.navigation.triggerKeyboardEvent(t)},this.onTab=(t,i,s)=>{s.preventDefault(),s.shiftKey?i.focusPrevious(t):i.focusNext(t)},this.handleOverlayClick=t=>{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()},this.handleItemClick=t=>{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()},this.onEnter=(t,i,s)=>{if(t.ariaDisabled)return;const c=t.className&&t.className.indexOf?t.className.indexOf("k-actionsheet-item")!==-1:!1,l=i.elements.filter(a=>a.className.indexOf("k-actionsheet-item")!==-1);if(c&&this.props.onItemClick){s.preventDefault();const a=this.props.items[l.indexOf(t)];this.props.onItemClick.call(void 0,{syntheticEvent:s,item:a,title:a&&a.title})}if(c&&this.props.onItemSelect){s.preventDefault();const a=this.props.items[l.indexOf(t)];this.props.onItemSelect.call(void 0,{syntheticEvent:s,item:a,title:a&&a.title})}this.props.animation||this.hideActionSheet()},this.onEscape=(t,i,s)=>{this.props.onOverlayClick&&(s.preventDefault(),this.props.onOverlayClick.call(void 0,s)),this.props.onClose&&(s.preventDefault(),this.props.onClose.call(void 0,s)),this.props.animation||this.hideActionSheet()},this.hideActionSheet=()=>{this.setState({show:!1})},this.children=t=>{const i={};return e.Children.forEach(t,s=>{s&&(i[s.type.displayName]=s)}),i},this.state={show:!1,slide:!1},b.validatePackage(x.packageMetadata)}componentDidMount(){this.props.expand&&!this.state.show&&this.setState({show:!0})}componentDidUpdate(n,t){const i=this.actionSheetRef.current;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&&i&&!this.props.className&&(i.style.setProperty("--kendo-actionsheet-height","auto"),i.style.setProperty("--kendo-actionsheet-max-height","none")),i&&this.props.navigatable){const c=[".k-actionsheet-item",...[".k-actionsheet-footer",".k-actionsheet-content",".k-actionsheet-titlebar"].map(l=>b.FOCUSABLE_ELEMENTS.concat(this.props.navigatableElements).map(a=>`${l} ${a}`)).flat()];this.navigation=new b.Navigation({tabIndex:this.props.tabIndex||0,root:this.actionSheetRef,rovingTabIndex:!1,selectors:c,keyboardEvents:{keydown:{Tab:this.onTab,Enter:this.onEnter,Escape:this.onEscape}}}),this.navigation.focusElement(this.navigation.first,null)}}render(){const{title:n,subTitle:t,animationStyles:i,animation:s,expand:c,tabIndex:l,items:a}=this.props,r=a==null?void 0:a.filter(o=>!o.group||o.group==="top"),u=a==null?void 0:a.filter(o=>o.group==="bottom"),S=r&&r.length>0&&u&&u.length>0,f=this.children(this.props.children),y=this.props.animationDuration||this.animationDuration,v=this.state.slide&&e.createElement("div",{className:b.classNames("k-actionsheet",this.props.className,{"k-actionsheet-bottom":!this.props.className}),role:"dialog","aria-modal":"true","aria-hidden":!1,"aria-labelledby":this.ariaLabeledBy,ref:this.actionSheetRef,onKeyDown:this.handleKeyDown},f[g.headerDisplayName]&&!n&&!t&&f[g.headerDisplayName],(n||t)&&e.createElement("div",{className:"k-actionsheet-titlebar k-text-center"},e.createElement("div",{className:"k-actionsheet-titlebar-group k-hbox"},e.createElement("div",{className:this.actionSheetTitleClass,id:this.ariaLabeledBy},n&&e.createElement("div",null,n),t&&e.createElement("div",{className:"k-actionsheet-subtitle"},t)))),f[I.contentDisplayName]||e.createElement("div",{className:"k-actionsheet-content"},e.createElement("div",{className:"k-list-ul",role:"group"},r&&r.map((o,p)=>e.createElement(E.ActionSheetItem,{...o,id:p,key:p,item:o,tabIndex:l||0,onClick:this.handleItemClick}))),S&&e.createElement("hr",{className:"k-hr"}),e.createElement("div",{className:"k-list-ul",role:"group"},u&&u.map((o,p)=>e.createElement(E.ActionSheetItem,{...o,id:p+((r==null?void 0:r.length)||0),key:p,item:o,tabIndex:l||0,onClick:this.handleItemClick})))),f[D.footerDisplayName]);return e.createElement(e.Fragment,null,c||this.state.show?e.createElement(e.Fragment,null,e.createElement("div",{className:"k-actionsheet-container"},e.createElement("div",{className:"k-overlay",onClick:this.handleOverlayClick}),s?e.createElement(C.Animation,{transitionName:this.state.slide?"slide-up":"slide-down",onExited:this.hideActionSheet,transitionEnterDuration:y,transitionExitDuration:y,animationEnteringStyle:i||this.bottomPosition,animationEnteredStyle:i||this.bottomPosition,animationExitingStyle:i||this.bottomPosition,exit:!0,enter:!0,appear:!1},v):v)):null)}};d.displayName="KendoReactActionSheet",d.propTypes={items:m.array,subTitle:m.string,title:m.string,navigatable:m.bool,navigatableElements:m.array},d.defaultProps={navigatable:!0,navigatableElements:[]};let k=d;exports.ActionSheet=k;
@@ -0,0 +1,184 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 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 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 + 1, 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,
87
+ rovingTabIndex: !1,
88
+ selectors: h,
89
+ keyboardEvents: {
90
+ keydown: {
91
+ Tab: this.onTab,
92
+ Enter: this.onEnter,
93
+ Escape: this.onEscape
94
+ }
95
+ }
96
+ }), this.navigation.focusElement(this.navigation.first, null);
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",
149
+ {
150
+ className: "k-overlay",
151
+ onClick: this.handleOverlayClick
152
+ }
153
+ ), i ? /* @__PURE__ */ e.createElement(
154
+ g,
155
+ {
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 = {
178
+ navigatable: !0,
179
+ navigatableElements: []
180
+ };
181
+ let b = m;
182
+ export {
183
+ b as ActionSheet
184
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 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 client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react"),a=require("prop-types"),i=require("@progress/kendo-react-common");function l(e){const c=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(c,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return c.default=e,Object.freeze(c)}const u=l(s),r="ActionSheetContent",n=e=>u.createElement("div",{className:i.classNames("k-actionsheet-content",e.className)},e.children);n.propTypes={className:a.string};n.displayName=r;n.propTypes={children:a.any};exports.ActionSheetContent=n;exports.contentDisplayName=r;
@@ -0,0 +1,32 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 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 client";
9
+ import * as s from "react";
10
+ import n from "prop-types";
11
+ import { classNames as o } from "@progress/kendo-react-common";
12
+ const a = "ActionSheetContent", e = (t) => /* @__PURE__ */ s.createElement(
13
+ "div",
14
+ {
15
+ className: o(
16
+ "k-actionsheet-content",
17
+ t.className
18
+ )
19
+ },
20
+ t.children
21
+ );
22
+ e.propTypes = {
23
+ className: n.string
24
+ };
25
+ e.displayName = a;
26
+ e.propTypes = {
27
+ children: n.any
28
+ };
29
+ export {
30
+ e as ActionSheetContent,
31
+ a as contentDisplayName
32
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 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 client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react"),c=require("prop-types"),i=require("@progress/kendo-react-common");function l(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const u=l(s),a="ActionSheetFooter",o=e=>u.createElement("div",{className:i.classNames("k-actionsheet-footer",e.className)},e.children);o.propTypes={className:c.string};o.displayName=a;o.propTypes={children:c.any};exports.ActionSheetFooter=o;exports.footerDisplayName=a;
@@ -0,0 +1,32 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 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 client";
9
+ import * as r from "react";
10
+ import t from "prop-types";
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
+ );
22
+ e.propTypes = {
23
+ className: t.string
24
+ };
25
+ e.displayName = a;
26
+ e.propTypes = {
27
+ children: t.any
28
+ };
29
+ export {
30
+ e as ActionSheetFooter,
31
+ a as footerDisplayName
32
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 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 client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react"),c=require("prop-types"),i=require("@progress/kendo-react-common");function l(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const u=l(s),o="ActionSheetHeader",a=e=>u.createElement("div",{className:i.classNames("k-actionsheet-titlebar",e.className)},e.children);a.propTypes={className:c.string};a.displayName=o;a.propTypes={children:c.any};exports.ActionSheetHeader=a;exports.headerDisplayName=o;
@@ -0,0 +1,32 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 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 client";
9
+ import * as r from "react";
10
+ import t from "prop-types";
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
+ );
22
+ e.propTypes = {
23
+ className: t.string
24
+ };
25
+ e.displayName = c;
26
+ e.propTypes = {
27
+ children: t.any
28
+ };
29
+ export {
30
+ e as ActionSheetHeader,
31
+ c as headerDisplayName
32
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 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 client";"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;
@@ -0,0 +1,52 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 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 client";
9
+ import * as t from "react";
10
+ import i from "prop-types";
11
+ import { classNames as l } from "@progress/kendo-react-common";
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]);
20
+ return t.useEffect(() => {
21
+ a.current && e.focused && a.current.focus();
22
+ }, [e.focused]), /* @__PURE__ */ t.createElement(
23
+ "span",
24
+ {
25
+ style: e.style,
26
+ tabIndex: e.tabIndex,
27
+ className: l(
28
+ "k-actionsheet-item",
29
+ "k-cursor-pointer",
30
+ e.disabled && "k-disabled",
31
+ e.className
32
+ ),
33
+ ref: a,
34
+ role: "button",
35
+ "aria-disabled": e.disabled,
36
+ onClick: c
37
+ },
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)))
39
+ );
40
+ };
41
+ s.propTypes = {
42
+ className: i.string,
43
+ style: i.object,
44
+ description: i.string,
45
+ disabled: i.bool,
46
+ group: i.oneOf(["top", "bottom"]),
47
+ icon: i.element,
48
+ title: i.string
49
+ };
50
+ export {
51
+ s as ActionSheetItem
52
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 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 client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react"),o=require("prop-types"),c=require("@progress/kendo-react-common"),M=require("../package-metadata.js");function C(e){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const s=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(i,a,s.get?s:{enumerable:!0,get:()=>e[a]})}}return i.default=e,Object.freeze(i)}const t=C(y),u=t.forwardRef((e,i)=>{c.validatePackage(M.packageMetadata);const{children:a,className:s,style:b,id:f}=e,l=t.useRef(null),m=t.useCallback(()=>{l.current&&c.focusFirstFocusableChild(l.current)},[]),k=t.useCallback(()=>({element:l.current,focus:m}),[m]);t.useImperativeHandle(i,k);const g=c.useId(),n=t.useMemo(()=>e.themeColor||d.themeColor,[e.themeColor]),p=t.useMemo(()=>e.position||d.position,[e.position]),r=t.useMemo(()=>e.positionMode||d.positionMode,[e.positionMode]),h=t.useMemo(()=>c.classNames("k-appbar",{"k-appbar-top":p==="top","k-appbar-bottom":p==="bottom","k-appbar-static":r==="static","k-appbar-sticky":r==="sticky","k-appbar-fixed":r==="fixed","k-appbar-light":n==="light","k-appbar-dark":n==="dark","k-appbar-inherit":n==="inherit"},s),[p,r,n,s]);return t.createElement("div",{className:h,style:b,id:f||g},a)});u.propTypes={children:o.any,className:o.string,style:o.object,id:o.string,themeColor:o.string,position:o.oneOf(["top","bottom"]),positionMode:o.oneOf(["static","sticky","fixed"])};const d={themeColor:"light",position:"top",positionMode:"static"};u.displayName="KendoAppBar";exports.AppBar=u;
@@ -0,0 +1,86 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 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 client";
9
+ import * as e from "react";
10
+ import o from "prop-types";
11
+ import { validatePackage as M, focusFirstFocusableChild as C, useId as g, classNames as y } from "@progress/kendo-react-common";
12
+ import { packageMetadata as N } from "../package-metadata.mjs";
13
+ const l = e.forwardRef((t, m) => {
14
+ M(N);
15
+ const {
16
+ children: d,
17
+ className: p,
18
+ style: u,
19
+ id: f
20
+ } = t, s = e.useRef(null), c = e.useCallback(
21
+ () => {
22
+ s.current && C(s.current);
23
+ },
24
+ []
25
+ ), k = e.useCallback(
26
+ () => ({
27
+ element: s.current,
28
+ focus: c
29
+ }),
30
+ [c]
31
+ );
32
+ e.useImperativeHandle(m, k);
33
+ const b = g(), a = e.useMemo(
34
+ () => t.themeColor || n.themeColor,
35
+ [t.themeColor]
36
+ ), r = e.useMemo(
37
+ () => t.position || n.position,
38
+ [t.position]
39
+ ), i = e.useMemo(
40
+ () => t.positionMode || n.positionMode,
41
+ [t.positionMode]
42
+ ), h = e.useMemo(
43
+ () => y(
44
+ "k-appbar",
45
+ {
46
+ "k-appbar-top": r === "top",
47
+ "k-appbar-bottom": r === "bottom",
48
+ "k-appbar-static": i === "static",
49
+ "k-appbar-sticky": i === "sticky",
50
+ "k-appbar-fixed": i === "fixed",
51
+ "k-appbar-light": a === "light",
52
+ "k-appbar-dark": a === "dark",
53
+ "k-appbar-inherit": a === "inherit"
54
+ },
55
+ p
56
+ ),
57
+ [r, i, a, p]
58
+ );
59
+ return /* @__PURE__ */ e.createElement(
60
+ "div",
61
+ {
62
+ className: h,
63
+ style: u,
64
+ id: f || b
65
+ },
66
+ d
67
+ );
68
+ });
69
+ l.propTypes = {
70
+ children: o.any,
71
+ className: o.string,
72
+ style: o.object,
73
+ id: o.string,
74
+ themeColor: o.string,
75
+ position: o.oneOf(["top", "bottom"]),
76
+ positionMode: o.oneOf(["static", "sticky", "fixed"])
77
+ };
78
+ const n = {
79
+ themeColor: "light",
80
+ position: "top",
81
+ positionMode: "static"
82
+ };
83
+ l.displayName = "KendoAppBar";
84
+ export {
85
+ l as AppBar
86
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 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 client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("react"),a=require("prop-types"),u=require("@progress/kendo-react-common");function d(e){const c=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(c,n,s.get?s:{enumerable:!0,get:()=>e[n]})}}return c.default=e,Object.freeze(c)}const t=d(f),o=t.forwardRef((e,c)=>{const{children:n,className:s,style:i}=e,r=t.useRef(null),l=t.useCallback(()=>{r.current&&u.focusFirstFocusableChild(r.current)},[]),p=t.useCallback(()=>({element:r.current,focus:l}),[l]);t.useImperativeHandle(c,p);const m=t.useMemo(()=>u.classNames("k-appbar-section",s),[s]);return t.createElement("div",{className:m,style:i},n)});o.propTypes={children:a.any,className:a.string,style:a.object};o.displayName="KendoAppBarSection";exports.AppBarSection=o;
@@ -0,0 +1,47 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 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 client";
9
+ import * as e from "react";
10
+ import t from "prop-types";
11
+ import { focusFirstFocusableChild as u, classNames as f } from "@progress/kendo-react-common";
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(
23
+ () => ({
24
+ element: s.current,
25
+ focus: c
26
+ }),
27
+ [c]
28
+ );
29
+ e.useImperativeHandle(o, m);
30
+ const p = e.useMemo(
31
+ () => f(
32
+ "k-appbar-section",
33
+ a
34
+ ),
35
+ [a]
36
+ );
37
+ return /* @__PURE__ */ e.createElement("div", { className: p, style: i }, l);
38
+ });
39
+ r.propTypes = {
40
+ children: t.any,
41
+ className: t.string,
42
+ style: t.object
43
+ };
44
+ r.displayName = "KendoAppBarSection";
45
+ export {
46
+ r as AppBarSection
47
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 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 client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("react"),l=require("prop-types"),p=require("@progress/kendo-react-common");function b(s){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const r in s)if(r!=="default"){const c=Object.getOwnPropertyDescriptor(s,r);Object.defineProperty(a,r,c.get?c:{enumerable:!0,get:()=>s[r]})}}return a.default=s,Object.freeze(a)}const t=b(f),o=t.forwardRef((s,a)=>{const{children:r,className:c,style:e}=s,n=t.useRef(null),u=t.useCallback(()=>{n.current&&p.focusFirstFocusableChild(n.current)},[]),i=t.useCallback(()=>({element:n.current,focus:u}),[u]);t.useImperativeHandle(a,i);const d=t.useMemo(()=>p.classNames("k-appbar-spacer",{"k-appbar-spacer-sized":e&&e.width&&e.width!==null},c),[c,e]),m=t.useMemo(()=>({flexBasis:e&&e.width?e.width:void 0}),[e]);return t.createElement("span",{className:d,style:m},r)});o.propTypes={children:l.any,className:l.string,style:l.object};o.displayName="KendoAppBarSpacer";exports.AppBarSpacer=o;
@@ -0,0 +1,55 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 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 client";
9
+ import * as s from "react";
10
+ import r from "prop-types";
11
+ import { focusFirstFocusableChild as d, classNames as f } from "@progress/kendo-react-common";
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(
23
+ () => ({
24
+ element: a.current,
25
+ focus: c
26
+ }),
27
+ [c]
28
+ );
29
+ s.useImperativeHandle(p, i);
30
+ const m = s.useMemo(
31
+ () => f(
32
+ "k-appbar-spacer",
33
+ {
34
+ "k-appbar-spacer-sized": e && e.width && e.width !== null
35
+ },
36
+ t
37
+ ),
38
+ [t, e]
39
+ ), u = s.useMemo(
40
+ () => ({
41
+ flexBasis: e && e.width ? e.width : void 0
42
+ }),
43
+ [e]
44
+ );
45
+ return /* @__PURE__ */ s.createElement("span", { className: m, style: u }, o);
46
+ });
47
+ l.propTypes = {
48
+ children: r.any,
49
+ className: r.string,
50
+ style: r.object
51
+ };
52
+ l.displayName = "KendoAppBarSpacer";
53
+ export {
54
+ l as AppBarSpacer
55
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 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 client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("react"),l=require("prop-types"),r=require("@progress/kendo-react-common"),_=require("../package-metadata.js"),N=require("./models/utils.js"),j=require("./BottomNavigationItem.js");function q(e){const c=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const d=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(c,n,d.get?d:{enumerable:!0,get:()=>e[n]})}}return c.default=e,Object.freeze(c)}const o=q(T),f=o.forwardRef((e,c)=>{r.validatePackage(_.packageMetadata);const n=o.useRef(null),d=o.useCallback(()=>{n.current&&r.focusFirstFocusableChild(n.current)},[]),b=o.useCallback(()=>({element:n.current,focus:d}),[d]);o.useImperativeHandle(c,b);const{positionMode:k=s.positionMode,itemFlow:M=s.itemFlow,border:C=s.border,className:S,items:i,item:w,itemRender:I,disabled:g,style:E,id:h,onSelect:v,onKeyDown:O}=e,p=r.useId(),D=r.useDir(n,e.dir),u=o.useMemo(()=>e.fillMode===null||e.fill===null?null:e.fill||e.fillMode||s.fillMode,[e.fillMode,e.fill]),y=o.useMemo(()=>e.themeColor||s.themeColor,[e.themeColor]),P=o.useMemo(()=>r.classNames("k-bottom-nav",N.POSITION_MODE_CLASSES[k],N.ITEM_FLOW_CLASSES[M],{[`k-bottom-nav-${u}`]:u,[`k-bottom-nav-${u}-${y}`]:!!(u&&y),"k-bottom-nav-border":C,"k-disabled":g},S),[k,y,u,M,C,g,S]),m=o.useCallback((t,a)=>{i&&!i[a].disabled&&v&&r.dispatchEvent(v,t,b(),{itemTarget:i[a],itemIndex:a})},[i,v]),R=o.useCallback((t,a)=>{m(t,a)},[m]),F=o.useCallback((t,a)=>{switch(t.keyCode){case r.Keys.enter:case r.Keys.space:m(t,a),t.preventDefault();break}r.dispatchEvent(O,t,b(),void 0)},[m,O]);return o.createElement("nav",{ref:n,className:P,style:E,id:h||p,dir:D},i&&i.map((t,a)=>o.createElement(j.BottomNavigationItem,{...t,key:a,index:a,id:`${h||p}-${a}`,disabled:g||t.disabled,selected:t.selected,dataItem:t,item:w,render:I,onSelect:R,onKeyDown:F})))}),s={themeColor:"primary",fillMode:"flat",itemFlow:"vertical",positionMode:"fixed",border:!0};f.propTypes={className:l.string,style:l.object,id:l.string,dir:l.string,themeColor:l.oneOf(["primary","secondary","tertiary","info","success","warning","error","dark","light","inverse"]),fill:l.oneOf(["solid","flat"]),fillMode:l.oneOf(["solid","flat"]),itemFlow:l.oneOf(["vertical","horizontal"]),border:l.bool,disabled:l.bool,selected:l.number,onSelect:l.func};f.defaultProps=s;f.displayName="KendoReactBottomNavigation";exports.BottomNavigation=f;