@progress/kendo-react-layout 13.3.0 → 13.4.0-develop.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/actionsheet/ActionSheet.d.ts +242 -0
- package/actionsheet/ActionSheetContent.d.ts +17 -0
- package/actionsheet/ActionSheetFooter.d.ts +42 -0
- package/actionsheet/ActionSheetHeader.d.ts +17 -0
- package/actionsheet/ActionSheetItem.d.ts +13 -0
- package/actionsheet/ActionSheetView.d.ts +16 -0
- package/actionsheet/interfaces/ActionSheetChildrenProps.d.ts +20 -0
- package/actionsheet/interfaces/ActionSheetItemProps.d.ts +76 -0
- package/appbar/AppBar.d.ts +56 -0
- package/appbar/AppBar.js +1 -1
- package/appbar/AppBar.mjs +10 -10
- package/appbar/AppBarSection.d.ts +55 -0
- package/appbar/AppBarSpacer.d.ts +56 -0
- package/appbar/interfaces/AppBarProps.d.ts +143 -0
- package/appbar/interfaces/AppBarSectionProps.d.ts +25 -0
- package/appbar/interfaces/AppBarSpacerProps.d.ts +26 -0
- package/bottomnavigation/BottomNavigation.d.ts +44 -0
- package/bottomnavigation/BottomNavigation.js +1 -1
- package/bottomnavigation/BottomNavigation.mjs +13 -13
- package/bottomnavigation/BottomNavigationItem.d.ts +19 -0
- package/bottomnavigation/BottomNavigationItem.mjs +3 -3
- package/bottomnavigation/BottomNavigationItemProps.d.ts +120 -0
- package/bottomnavigation/BottomNavigationProps.d.ts +238 -0
- package/bottomnavigation/models/events.d.ts +27 -0
- package/bottomnavigation/models/utils.d.ts +43 -0
- package/breadcrumb/Breadcrumb.d.ts +276 -0
- package/breadcrumb/Breadcrumb.js +1 -1
- package/breadcrumb/Breadcrumb.mjs +0 -1
- package/breadcrumb/BreadcrumbDelimiter.d.ts +50 -0
- package/breadcrumb/BreadcrumbLink.d.ts +136 -0
- package/breadcrumb/BreadcrumbLink.mjs +3 -3
- package/breadcrumb/BreadcrumbListItem.d.ts +58 -0
- package/breadcrumb/BreadcrumbOrderedList.d.ts +62 -0
- package/breadcrumb/BreadcrumbOrderedList.mjs +5 -5
- package/card/Avatar.d.ts +10 -0
- package/card/Avatar.js +1 -1
- package/card/Avatar.mjs +20 -22
- package/card/Card.d.ts +11 -0
- package/card/CardActions.d.ts +10 -0
- package/card/CardActions.mjs +1 -1
- package/card/CardBody.d.ts +10 -0
- package/card/CardFooter.d.ts +10 -0
- package/card/CardHeader.d.ts +10 -0
- package/card/CardImage.d.ts +10 -0
- package/card/CardSubtitle.d.ts +10 -0
- package/card/CardTitle.d.ts +10 -0
- package/card/interfaces/AvatarProps.d.ts +141 -0
- package/card/interfaces/CardActionsProps.d.ts +76 -0
- package/card/interfaces/CardBodyProps.d.ts +36 -0
- package/card/interfaces/CardFooterProps.d.ts +36 -0
- package/card/interfaces/CardHandle.d.ts +21 -0
- package/card/interfaces/CardHeaderProps.d.ts +36 -0
- package/card/interfaces/CardImageProps.d.ts +45 -0
- package/card/interfaces/CardProps.d.ts +91 -0
- package/card/interfaces/CardSubtitleProps.d.ts +36 -0
- package/card/interfaces/CardTitleProps.d.ts +21 -0
- package/card/interfaces/Enums.d.ts +30 -0
- package/contextmenu/ContextMenu.d.ts +50 -0
- package/dist/cdn/js/kendo-react-layout.js +1 -1
- package/drawer/Drawer.d.ts +52 -0
- package/drawer/DrawerContent.d.ts +48 -0
- package/drawer/DrawerItem.d.ts +37 -0
- package/drawer/DrawerNavigation.d.ts +49 -0
- package/drawer/DrawerNavigation.js +1 -1
- package/drawer/DrawerNavigation.mjs +27 -27
- package/drawer/context/DrawerContext.d.ts +27 -0
- package/drawer/interfaces/DrawerAnimation.d.ts +21 -0
- package/drawer/interfaces/DrawerContentProps.d.ts +24 -0
- package/drawer/interfaces/DrawerItemHandle.d.ts +24 -0
- package/drawer/interfaces/DrawerItemProps.d.ts +129 -0
- package/drawer/interfaces/DrawerNavigationProps.d.ts +24 -0
- package/drawer/interfaces/DrawerProps.d.ts +171 -0
- package/drawer/interfaces/DrawerSelectEvent.d.ts +22 -0
- package/expansionpanel/ExpansionPanel.d.ts +13 -0
- package/expansionpanel/ExpansionPanel.mjs +1 -1
- package/expansionpanel/ExpansionPanelContent.d.ts +12 -0
- package/expansionpanel/index.d.ts +10 -0
- package/expansionpanel/interfaces.d.ts +99 -0
- package/gridlayout/GridLayout.d.ts +45 -0
- package/gridlayout/GridLayoutItem.d.ts +44 -0
- package/gridlayout/interfaces/GridLayoutColumnProps.d.ts +21 -0
- package/gridlayout/interfaces/GridLayoutItemProps.d.ts +87 -0
- package/gridlayout/interfaces/GridLayoutProps.d.ts +144 -0
- package/gridlayout/interfaces/GridLayoutRowProps.d.ts +21 -0
- package/index.d.mts +101 -6278
- package/index.d.ts +101 -6278
- package/menu/BaseMenuItemInternalProps.d.ts +29 -0
- package/menu/MenuProps.d.ts +189 -0
- package/menu/components/Menu.d.ts +132 -0
- package/menu/components/Menu.mjs +1 -1
- package/menu/components/MenuItem.d.ts +43 -0
- package/menu/components/MenuItemArrow.d.ts +53 -0
- package/menu/components/MenuItemInternal.d.ts +70 -0
- package/menu/components/MenuItemLink.d.ts +37 -0
- package/menu/consts.d.ts +65 -0
- package/menu/events.d.ts +45 -0
- package/menu/models/BaseMenuItem.d.ts +65 -0
- package/menu/models/MenuItemModel.d.ts +30 -0
- package/menu/utils/DirectionHolder.d.ts +18 -0
- package/menu/utils/MouseOverHandler.d.ts +24 -0
- package/menu/utils/getNewItemIdUponKeyboardNavigation.d.ts +14 -0
- package/menu/utils/hoverDelay.d.ts +16 -0
- package/menu/utils/itemsIdsUtils.d.ts +71 -0
- package/menu/utils/itemsIdsUtils.mjs +49 -49
- package/menu/utils/misc.d.ts +23 -0
- package/menu/utils/prepareInputItemsForInternalWork.d.ts +13 -0
- package/package-metadata.d.ts +12 -0
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +10 -16
- package/package.json +8 -8
- package/panelbar/PanelBar.d.ts +89 -0
- package/panelbar/PanelBarItem.d.ts +61 -0
- package/panelbar/interfaces/NavigationAction.d.ts +19 -0
- package/panelbar/interfaces/PanelBarItemClickEventArguments.d.ts +15 -0
- package/panelbar/interfaces/PanelBarItemProps.d.ts +116 -0
- package/panelbar/interfaces/PanelBarProps.d.ts +140 -0
- package/panelbar/interfaces/PanelBarSelectEventArguments.d.ts +21 -0
- package/panelbar/interfaces/RenderPanelBarItem.d.ts +22 -0
- package/panelbar/util.d.ts +63 -0
- package/splitter/Splitter.d.ts +150 -0
- package/splitter/SplitterBar.d.ts +51 -0
- package/splitter/SplitterPane.d.ts +76 -0
- package/splitter/messages/index.d.ts +17 -0
- package/stacklayout/StackLayout.d.ts +43 -0
- package/stacklayout/StackLayoutProps.d.ts +97 -0
- package/stepper/Step.d.ts +29 -0
- package/stepper/Stepper.d.ts +29 -0
- package/stepper/contants.d.ts +15 -0
- package/stepper/context/StepperContext.d.ts +30 -0
- package/stepper/interfaces/StepChangeEvent.d.ts +18 -0
- package/stepper/interfaces/StepFocusEvent.d.ts +14 -0
- package/stepper/interfaces/StepHandle.d.ts +20 -0
- package/stepper/interfaces/StepProps.d.ts +95 -0
- package/stepper/interfaces/StepperChangeEvent.d.ts +18 -0
- package/stepper/interfaces/StepperFocusEvent.d.ts +14 -0
- package/stepper/interfaces/StepperHandle.d.ts +20 -0
- package/stepper/interfaces/StepperOnNavigateEvent.d.ts +38 -0
- package/stepper/interfaces/StepperProps.d.ts +216 -0
- package/stepper/messages/index.d.ts +22 -0
- package/tabstrip/TabStrip.d.ts +297 -0
- package/tabstrip/TabStrip.js +1 -1
- package/tabstrip/TabStrip.mjs +1 -1
- package/tabstrip/TabStripContent.d.ts +70 -0
- package/tabstrip/TabStripNavigation.d.ts +144 -0
- package/tabstrip/TabStripNavigation.mjs +6 -6
- package/tabstrip/TabStripNavigationItem.d.ts +82 -0
- package/tabstrip/TabStripTab.d.ts +50 -0
- package/tabstrip/messages/index.d.ts +22 -0
- package/tilelayout/InternalTile.d.ts +112 -0
- package/tilelayout/ResizeHandlers.d.ts +27 -0
- package/tilelayout/TileLayout.d.ts +228 -0
- package/tilelayout/interfaces/index.d.ts +159 -0
- package/timeline/Timeline.d.ts +205 -0
- package/timeline/TimelineCard.d.ts +44 -0
- package/timeline/TimelineHorizontal.d.ts +10 -0
- package/timeline/TimelineHorizontal.js +1 -1
- package/timeline/TimelineHorizontal.mjs +0 -2
- package/timeline/TimelineVertical.d.ts +19 -0
- package/timeline/utils.d.ts +22 -0
|
@@ -0,0 +1,143 @@
|
|
|
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 React from 'react';
|
|
9
|
+
/**
|
|
10
|
+
* Represents the props of the [KendoReact AppBar component](https://www.telerik.com/kendo-react-ui/components/layout/appbar).
|
|
11
|
+
* Used to display information, actions, branding titles and additional navigation on the current screen.
|
|
12
|
+
*/
|
|
13
|
+
export interface AppBarProps {
|
|
14
|
+
/**
|
|
15
|
+
* Represents the child elements that are passed to the AppBar.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```jsx
|
|
19
|
+
* <AppBar>
|
|
20
|
+
* <div>Custom Content</div>
|
|
21
|
+
* </AppBar>
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
children?: any;
|
|
25
|
+
/**
|
|
26
|
+
* Sets additional CSS classes to the AppBar.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```jsx
|
|
30
|
+
* <AppBar className="custom-class" />
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
className?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Sets additional CSS styles to the AppBar.
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```jsx
|
|
39
|
+
* <AppBar style={{ backgroundColor: 'blue' }} />
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
style?: React.CSSProperties;
|
|
43
|
+
/**
|
|
44
|
+
* Sets the `id` property of the root AppBar element.
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* ```jsx
|
|
48
|
+
* <AppBar id="appbar1" />
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
id?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Specifies the AppBar position ([see example](https://www.telerik.com/kendo-react-ui/components/layout/appbar/positioning#toc-position)).
|
|
54
|
+
*
|
|
55
|
+
* * The possible values are:
|
|
56
|
+
* * 'top' (Default)
|
|
57
|
+
* * 'bottom'
|
|
58
|
+
*
|
|
59
|
+
* @default top
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* ```jsx
|
|
63
|
+
* <AppBar position="bottom" />
|
|
64
|
+
* ```
|
|
65
|
+
*/
|
|
66
|
+
position?: AppBarPosition;
|
|
67
|
+
/**
|
|
68
|
+
* Specifies the AppBar position mode ([see example](https://www.telerik.com/kendo-react-ui/components/layout/appbar/positioning#toc-position-mode)).
|
|
69
|
+
*
|
|
70
|
+
* * The possible values are:
|
|
71
|
+
* * 'static' (Default)
|
|
72
|
+
* * 'sticky'
|
|
73
|
+
* * 'fixed'
|
|
74
|
+
*
|
|
75
|
+
* @default static
|
|
76
|
+
*
|
|
77
|
+
* @example
|
|
78
|
+
* ```jsx
|
|
79
|
+
* <AppBar positionMode="sticky" />
|
|
80
|
+
* ```
|
|
81
|
+
*/
|
|
82
|
+
positionMode?: AppBarPositionMode;
|
|
83
|
+
/**
|
|
84
|
+
* Specifies the AppBar theme color ([see example](https://www.telerik.com/kendo-react-ui/components/layout/appbar/appearance)).
|
|
85
|
+
*
|
|
86
|
+
* * The possible values are:
|
|
87
|
+
* * 'light'
|
|
88
|
+
* * 'primary'
|
|
89
|
+
* * 'secondary'
|
|
90
|
+
* * 'tertiary'
|
|
91
|
+
* * 'info'
|
|
92
|
+
* * 'success'
|
|
93
|
+
* * 'warning'
|
|
94
|
+
* * 'error'
|
|
95
|
+
* * 'dark'
|
|
96
|
+
* * 'inherit'
|
|
97
|
+
* * 'inverse'
|
|
98
|
+
*
|
|
99
|
+
* @default undefined (theme-controlled)
|
|
100
|
+
*
|
|
101
|
+
* @example
|
|
102
|
+
* ```jsx
|
|
103
|
+
* <AppBar themeColor="primary" />
|
|
104
|
+
* ```
|
|
105
|
+
*/
|
|
106
|
+
themeColor?: AppBarThemeColor;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Specifies the AppBar position ([see example](https://www.telerik.com/kendo-react-ui/components/layout/appbar/positioning#toc-position)).
|
|
110
|
+
*
|
|
111
|
+
* * The possible values are:
|
|
112
|
+
* * 'top' (Default)
|
|
113
|
+
* * 'bottom'
|
|
114
|
+
*
|
|
115
|
+
*/
|
|
116
|
+
export type AppBarPosition = 'top' | 'bottom';
|
|
117
|
+
/**
|
|
118
|
+
* Specifies the AppBar position mode ([see example](https://www.telerik.com/kendo-react-ui/components/layout/appbar/positioning#toc-position-mode)).
|
|
119
|
+
*
|
|
120
|
+
* * The possible values are:
|
|
121
|
+
* * 'static' (Default)
|
|
122
|
+
* * 'sticky'
|
|
123
|
+
* * 'fixed'
|
|
124
|
+
*/
|
|
125
|
+
export type AppBarPositionMode = 'static' | 'sticky' | 'fixed';
|
|
126
|
+
/**
|
|
127
|
+
* Specifies the AppBar theme color ([see example](https://www.telerik.com/kendo-react-ui/components/layout/appbar/appearance)).
|
|
128
|
+
*
|
|
129
|
+
* * The possible values are:
|
|
130
|
+
* * `light` (Default)
|
|
131
|
+
* * 'primary'
|
|
132
|
+
* * 'secondary'
|
|
133
|
+
* * 'tertiary'
|
|
134
|
+
* * 'info'
|
|
135
|
+
* * 'success'
|
|
136
|
+
* * 'warning'
|
|
137
|
+
* * 'error'
|
|
138
|
+
* * 'dark'
|
|
139
|
+
* * 'inherit'
|
|
140
|
+
* * 'inverse'
|
|
141
|
+
*
|
|
142
|
+
*/
|
|
143
|
+
export type AppBarThemeColor = 'base' | 'primary' | 'secondary' | 'tertiary' | 'info' | 'success' | 'warning' | 'error' | 'dark' | 'light' | 'inherit' | 'inverse';
|
|
@@ -0,0 +1,25 @@
|
|
|
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 React from 'react';
|
|
9
|
+
/**
|
|
10
|
+
* Represents the props of the [KendoReact AppBarSection component](https://www.telerik.com/kendo-react-ui/components/layout/appbar/content-arrangement#toc-sections).
|
|
11
|
+
*/
|
|
12
|
+
export interface AppBarSectionProps {
|
|
13
|
+
/**
|
|
14
|
+
* Represents the child elements that are passed to the AppBarSection.
|
|
15
|
+
*/
|
|
16
|
+
children?: any;
|
|
17
|
+
/**
|
|
18
|
+
* Sets additional CSS classes to the AppBarSection.
|
|
19
|
+
*/
|
|
20
|
+
className?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Sets additional CSS styles to the AppBarSection.
|
|
23
|
+
*/
|
|
24
|
+
style?: React.CSSProperties;
|
|
25
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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 React from 'react';
|
|
9
|
+
/**
|
|
10
|
+
* Represents the props of the [KendoReact AppBarSpacer component](https://www.telerik.com/kendo-react-ui/components/layout/appbar/content-arrangement#toc-spacings).
|
|
11
|
+
* Used to give additional white space between the AppBar sections and provides a way for customizing its width.
|
|
12
|
+
*/
|
|
13
|
+
export interface AppBarSpacerProps {
|
|
14
|
+
/**
|
|
15
|
+
* Sets additional CSS classes to the AppBarSpacer.
|
|
16
|
+
*/
|
|
17
|
+
className?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Sets additional CSS styles to the AppBarSpacer.
|
|
20
|
+
*/
|
|
21
|
+
style?: React.CSSProperties;
|
|
22
|
+
/**
|
|
23
|
+
* Determines the child nodes.
|
|
24
|
+
*/
|
|
25
|
+
children?: React.ReactNode;
|
|
26
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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 { BottomNavigationProps } from './BottomNavigationProps.js';
|
|
9
|
+
import * as React from 'react';
|
|
10
|
+
/**
|
|
11
|
+
* Represents the Object which is passed to the [`ref`](https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom)
|
|
12
|
+
* callback of the BottomNavigation component.
|
|
13
|
+
*/
|
|
14
|
+
export interface BottomNavigationHandle {
|
|
15
|
+
/**
|
|
16
|
+
* The current element or `null` if there is no one.
|
|
17
|
+
*/
|
|
18
|
+
element: HTMLElement | null;
|
|
19
|
+
/**
|
|
20
|
+
* Focus the BottomNavigation first item.
|
|
21
|
+
*/
|
|
22
|
+
focus: () => void;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Represents the [KendoReact BottomNavigation component](https://www.telerik.com/kendo-react-ui/components/layout/bottomnavigation).
|
|
26
|
+
* Used to switch between primary destinations in an application.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```jsx
|
|
30
|
+
* const items = [
|
|
31
|
+
* { text: 'Photos', icon: 'photo', selected: true },
|
|
32
|
+
* { text: 'Albums', icon: 'folder' },
|
|
33
|
+
* { text: 'Search', icon: 'search' },
|
|
34
|
+
* { text: 'More', icon: 'more-horizontal' },
|
|
35
|
+
* ];
|
|
36
|
+
*
|
|
37
|
+
* const App = () => {
|
|
38
|
+
* return (
|
|
39
|
+
* <BottomNavigation items={items} />
|
|
40
|
+
* );
|
|
41
|
+
* };
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
export declare const BottomNavigation: React.ForwardRefExoticComponent<BottomNavigationProps & React.RefAttributes<BottomNavigationHandle | null>>;
|
|
@@ -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"),
|
|
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)},[]),f=o.useCallback(()=>({element:a.current,focus:c}),[c]);o.useImperativeHandle(s,f);const{positionMode:C=u.positionMode,itemFlow:M=u.itemFlow,border:k=u.border,className:S,items:i,item:w,itemRender:I,disabled:b,style:E,id:h,onSelect:v,onKeyDown:p}=e,O=l.useId(),D=l.useDir(a,e.dir),d=o.useMemo(()=>e.fillMode===null?null:e.fillMode||u.fillMode,[e.fillMode]),y=o.useMemo(()=>e.themeColor||u.themeColor,[e.themeColor]),R=o.useMemo(()=>l.classNames("k-bottom-nav",N.POSITION_MODE_CLASSES[C],N.ITEM_FLOW_CLASSES[M],{[`k-bottom-nav-${d}`]:d,[`k-bottom-nav-${d}-${y}`]:!!(d&&y),"k-bottom-nav-border":k,"k-disabled":b},S),[C,y,d,M,k,b,S]),m=o.useCallback((t,n)=>{i&&!i[n].disabled&&v&&l.dispatchEvent(v,t,f(),{itemTarget:i[n],itemIndex:n})},[i,v]),F=o.useCallback((t,n)=>{m(t,n)},[m]),T=o.useCallback((t,n)=>{switch(t.keyCode){case l.Keys.enter:case l.Keys.space:m(t,n),t.preventDefault();break}l.dispatchEvent(p,t,f(),void 0)},[m,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:b||t.disabled,selected:t.selected,dataItem:t,item:w,render:I,onSelect:F,onKeyDown:T})))}),u={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;
|
|
@@ -24,16 +24,16 @@ const w = o.forwardRef((r, I) => {
|
|
|
24
24
|
const {
|
|
25
25
|
positionMode: v = n.positionMode,
|
|
26
26
|
itemFlow: C = n.itemFlow,
|
|
27
|
-
border:
|
|
28
|
-
className:
|
|
27
|
+
border: M = n.border,
|
|
28
|
+
className: h,
|
|
29
29
|
items: a,
|
|
30
30
|
item: E,
|
|
31
31
|
itemRender: N,
|
|
32
32
|
disabled: m,
|
|
33
33
|
style: F,
|
|
34
|
-
id:
|
|
34
|
+
id: k,
|
|
35
35
|
onSelect: f,
|
|
36
|
-
onKeyDown:
|
|
36
|
+
onKeyDown: y
|
|
37
37
|
} = r, p = $(), O = B(s, r.dir), i = o.useMemo(() => r.fillMode === null ? null : r.fillMode || n.fillMode, [r.fillMode]), u = o.useMemo(() => r.themeColor || n.themeColor, [r.themeColor]), D = o.useMemo(
|
|
38
38
|
() => _(
|
|
39
39
|
"k-bottom-nav",
|
|
@@ -42,12 +42,12 @@ const w = o.forwardRef((r, I) => {
|
|
|
42
42
|
{
|
|
43
43
|
[`k-bottom-nav-${i}`]: i,
|
|
44
44
|
[`k-bottom-nav-${i}-${u}`]: !!(i && u),
|
|
45
|
-
"k-bottom-nav-border":
|
|
45
|
+
"k-bottom-nav-border": M,
|
|
46
46
|
"k-disabled": m
|
|
47
47
|
},
|
|
48
|
-
|
|
48
|
+
h
|
|
49
49
|
),
|
|
50
|
-
[v, u, i, C,
|
|
50
|
+
[v, u, i, C, M, m, h]
|
|
51
51
|
), d = o.useCallback(
|
|
52
52
|
(e, t) => {
|
|
53
53
|
a && !a[t].disabled && f && S(f, e, c(), {
|
|
@@ -70,21 +70,21 @@ const w = o.forwardRef((r, I) => {
|
|
|
70
70
|
break;
|
|
71
71
|
}
|
|
72
72
|
S(
|
|
73
|
-
|
|
73
|
+
y,
|
|
74
74
|
e,
|
|
75
75
|
c(),
|
|
76
76
|
void 0
|
|
77
77
|
);
|
|
78
78
|
},
|
|
79
|
-
[d,
|
|
79
|
+
[d, y]
|
|
80
80
|
);
|
|
81
|
-
return /* @__PURE__ */ o.createElement("nav", { ref: s, className: D, style: F, id:
|
|
81
|
+
return /* @__PURE__ */ o.createElement("nav", { ref: s, className: D, style: F, id: k || p, dir: O }, a && a.map((e, t) => /* @__PURE__ */ o.createElement(
|
|
82
82
|
A,
|
|
83
83
|
{
|
|
84
84
|
...e,
|
|
85
85
|
key: t,
|
|
86
86
|
index: t,
|
|
87
|
-
id: `${
|
|
87
|
+
id: `${k || p}-${t}`,
|
|
88
88
|
disabled: m || e.disabled,
|
|
89
89
|
selected: e.selected,
|
|
90
90
|
dataItem: e,
|
|
@@ -95,8 +95,8 @@ const w = o.forwardRef((r, I) => {
|
|
|
95
95
|
}
|
|
96
96
|
)));
|
|
97
97
|
}), n = {
|
|
98
|
-
themeColor:
|
|
99
|
-
fillMode:
|
|
98
|
+
themeColor: void 0,
|
|
99
|
+
fillMode: void 0,
|
|
100
100
|
itemFlow: "vertical",
|
|
101
101
|
positionMode: "fixed",
|
|
102
102
|
border: !0
|
|
@@ -0,0 +1,19 @@
|
|
|
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 { BottomNavigationItemProps } from '../index.js';
|
|
9
|
+
import * as React from 'react';
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
export interface BottomNavigationItemHandle {
|
|
14
|
+
element: HTMLElement | null;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Represents the [KendoReact BottomNavigationItem component](https://www.telerik.com/kendo-react-ui/components/layout/bottomnavigation).
|
|
18
|
+
*/
|
|
19
|
+
export declare const BottomNavigationItem: React.ForwardRefExoticComponent<Omit<BottomNavigationItemProps, "ref"> & React.RefAttributes<BottomNavigationItemHandle | null>>;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import * as e from "react";
|
|
9
9
|
import t from "prop-types";
|
|
10
|
-
import { classNames as D,
|
|
10
|
+
import { classNames as D, IconWrap as P, svgIconPropType as T } from "@progress/kendo-react-common";
|
|
11
11
|
const f = e.forwardRef(
|
|
12
12
|
(m, g) => {
|
|
13
13
|
const i = e.useRef(null);
|
|
@@ -67,7 +67,7 @@ const f = e.forwardRef(
|
|
|
67
67
|
"aria-current": a,
|
|
68
68
|
"aria-disabled": n
|
|
69
69
|
},
|
|
70
|
-
v ? /* @__PURE__ */ e.createElement(v, { itemIndex: o, item: N }) : /* @__PURE__ */ e.createElement(e.Fragment, null, (d || b) && /* @__PURE__ */ e.createElement(
|
|
70
|
+
v ? /* @__PURE__ */ e.createElement(v, { itemIndex: o, item: N }) : /* @__PURE__ */ e.createElement(e.Fragment, null, (d || b) && /* @__PURE__ */ e.createElement(P, { className: "k-bottom-nav-item-icon", name: d, icon: b, size: "xlarge" }), p && /* @__PURE__ */ e.createElement("span", { className: "k-bottom-nav-item-text", style: { userSelect: "none" } }, p))
|
|
71
71
|
);
|
|
72
72
|
return I !== void 0 ? I.call(void 0, u, m) : u;
|
|
73
73
|
}
|
|
@@ -81,7 +81,7 @@ f.propTypes = {
|
|
|
81
81
|
disabled: t.bool,
|
|
82
82
|
selected: t.bool,
|
|
83
83
|
icon: t.string,
|
|
84
|
-
svgIcon:
|
|
84
|
+
svgIcon: T,
|
|
85
85
|
text: t.string,
|
|
86
86
|
tabIndex: t.number
|
|
87
87
|
};
|
|
@@ -0,0 +1,120 @@
|
|
|
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 { SVGIcon } from '@progress/kendo-react-common';
|
|
9
|
+
/**
|
|
10
|
+
* The interface for describing items that can be passed to the `items` prop of the BottomNavigation component.
|
|
11
|
+
*/
|
|
12
|
+
export interface BottomNavigationItemProps {
|
|
13
|
+
/**
|
|
14
|
+
* Sets additional CSS classes to the BottomNavigation item.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```jsx
|
|
18
|
+
* <BottomNavigationItem className="custom-class" />
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
className?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Sets additional CSS styles to the BottomNavigation item.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```jsx
|
|
27
|
+
* <BottomNavigationItem style={{ color: 'red' }} />
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
style?: React.CSSProperties;
|
|
31
|
+
/**
|
|
32
|
+
* Disables the BottomNavigationItem.
|
|
33
|
+
*
|
|
34
|
+
* @default false
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```jsx
|
|
38
|
+
* <BottomNavigationItem disabled={true} />
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
disabled?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Specifies if the BottomNavigationItem is selected.
|
|
44
|
+
*
|
|
45
|
+
* @default false
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* ```jsx
|
|
49
|
+
* <BottomNavigationItem selected={true} />
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
selected?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Defines the name for an existing icon in a KendoReact theme.
|
|
55
|
+
* The icon is rendered inside the BottomNavigationItem by a `span.k-icon` element.
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* ```jsx
|
|
59
|
+
* <BottomNavigationItem icon="home" />
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
62
|
+
icon?: string;
|
|
63
|
+
/**
|
|
64
|
+
* Defines an SVG icon.
|
|
65
|
+
* The icon is rendered inside the BottomNavigationItem.
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* ```jsx
|
|
69
|
+
* import { gearIcon } from '@progress/kendo-svg-icons';
|
|
70
|
+
*
|
|
71
|
+
* <BottomNavigationItem svgIcon={gearIcon} />
|
|
72
|
+
* ```
|
|
73
|
+
*/
|
|
74
|
+
svgIcon?: SVGIcon;
|
|
75
|
+
/**
|
|
76
|
+
* Specifies the text content of the BottomNavigationItem.
|
|
77
|
+
*
|
|
78
|
+
* @example
|
|
79
|
+
* ```jsx
|
|
80
|
+
* <BottomNavigationItem text="Home" />
|
|
81
|
+
* ```
|
|
82
|
+
*/
|
|
83
|
+
text?: React.ReactNode;
|
|
84
|
+
/**
|
|
85
|
+
* Sets the `tabIndex` prop of the BottomNavigationItem.
|
|
86
|
+
*
|
|
87
|
+
* @default 0
|
|
88
|
+
*
|
|
89
|
+
* @example
|
|
90
|
+
* ```jsx
|
|
91
|
+
* <BottomNavigationItem tabIndex={-1} />
|
|
92
|
+
* ```
|
|
93
|
+
*/
|
|
94
|
+
tabIndex?: number;
|
|
95
|
+
/**
|
|
96
|
+
* Sets a custom prop. Contained in the BottomNavItem props that are returned from the `onSelect` BottomNavigation event.
|
|
97
|
+
*
|
|
98
|
+
* @example
|
|
99
|
+
* ```jsx
|
|
100
|
+
* <BottomNavigationItem customProp="customValue" />
|
|
101
|
+
* ```
|
|
102
|
+
*/
|
|
103
|
+
[customProp: string]: any;
|
|
104
|
+
/**
|
|
105
|
+
* @hidden
|
|
106
|
+
*/
|
|
107
|
+
index?: number;
|
|
108
|
+
/**
|
|
109
|
+
* @hidden
|
|
110
|
+
*/
|
|
111
|
+
item?: any;
|
|
112
|
+
/**
|
|
113
|
+
* @hidden
|
|
114
|
+
*/
|
|
115
|
+
dataItem?: any;
|
|
116
|
+
/**
|
|
117
|
+
* @hidden
|
|
118
|
+
*/
|
|
119
|
+
id?: string;
|
|
120
|
+
}
|