@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,171 @@
|
|
|
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 { DrawerSelectEvent } from './DrawerSelectEvent.js';
|
|
9
|
+
import { DrawerAnimation } from '../interfaces/DrawerAnimation.js';
|
|
10
|
+
import { DrawerItemProps } from './DrawerItemProps.js';
|
|
11
|
+
import * as React from 'react';
|
|
12
|
+
/**
|
|
13
|
+
* The properties of the [KendoReact Drawer component](https://www.telerik.com/kendo-react-ui/components/layout/drawer).
|
|
14
|
+
*/
|
|
15
|
+
export interface DrawerProps {
|
|
16
|
+
/**
|
|
17
|
+
* Specifies the animation settings of the Drawer.
|
|
18
|
+
*
|
|
19
|
+
* Example:
|
|
20
|
+
* ```jsx
|
|
21
|
+
* <Drawer animation={{ duration: 300 }} />
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* @default true
|
|
25
|
+
*/
|
|
26
|
+
animation?: boolean | DrawerAnimation;
|
|
27
|
+
/**
|
|
28
|
+
* Specifies the state of the Drawer
|
|
29
|
+
* ([see example](https://www.telerik.com/kendo-react-ui/components/layout/drawer/expanded_state)).
|
|
30
|
+
*
|
|
31
|
+
* Example:
|
|
32
|
+
* ```jsx
|
|
33
|
+
* <Drawer expanded={true} />
|
|
34
|
+
* ```
|
|
35
|
+
*
|
|
36
|
+
* @default false
|
|
37
|
+
*/
|
|
38
|
+
expanded?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Sets the Drawer items declaratively.
|
|
41
|
+
*
|
|
42
|
+
* Example:
|
|
43
|
+
* ```jsx
|
|
44
|
+
* <Drawer>
|
|
45
|
+
* <DrawerItem text="Home" />
|
|
46
|
+
* </Drawer>
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
49
|
+
children?: any;
|
|
50
|
+
/**
|
|
51
|
+
* Specifies a list of CSS classes that will be added to the `k-drawer-container` element.
|
|
52
|
+
*/
|
|
53
|
+
className?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Specifies a list of CSS classes that will be added to the `k-drawer` element.
|
|
56
|
+
*/
|
|
57
|
+
drawerClassName?: string;
|
|
58
|
+
/**
|
|
59
|
+
* Represents the `dir` HTML attribute. This is used to switch from LTR to RTL.
|
|
60
|
+
*/
|
|
61
|
+
dir?: string;
|
|
62
|
+
/**
|
|
63
|
+
* Specifies the mode in which the Drawer will be displayed
|
|
64
|
+
* ([see example](https://www.telerik.com/kendo-react-ui/components/layout/drawer/display_modes#toc-expand-modes)).
|
|
65
|
+
*
|
|
66
|
+
* Example:
|
|
67
|
+
* ```jsx
|
|
68
|
+
* <Drawer mode="push" />
|
|
69
|
+
* ```
|
|
70
|
+
*
|
|
71
|
+
* @default 'overlay'
|
|
72
|
+
*/
|
|
73
|
+
mode?: 'overlay' | 'push';
|
|
74
|
+
/**
|
|
75
|
+
* Specifies the position of the Drawer
|
|
76
|
+
* ([see example](https://www.telerik.com/kendo-react-ui/components/layout/drawer/positioning)).
|
|
77
|
+
*
|
|
78
|
+
* Example:
|
|
79
|
+
* ```jsx
|
|
80
|
+
* <Drawer position="end" />
|
|
81
|
+
* ```
|
|
82
|
+
*
|
|
83
|
+
* @default 'start'
|
|
84
|
+
*/
|
|
85
|
+
position?: 'start' | 'end';
|
|
86
|
+
/**
|
|
87
|
+
* Sets additional CSS styles to the Drawer.
|
|
88
|
+
*/
|
|
89
|
+
style?: React.CSSProperties;
|
|
90
|
+
/**
|
|
91
|
+
* Sets the `tabIndex` property of the Drawer.
|
|
92
|
+
*
|
|
93
|
+
* Example:
|
|
94
|
+
* ```jsx
|
|
95
|
+
* <Drawer tabIndex={0} />
|
|
96
|
+
* ```
|
|
97
|
+
*/
|
|
98
|
+
tabIndex?: number;
|
|
99
|
+
/**
|
|
100
|
+
* Enables the mini (compact) view of the Drawer which is displayed when the component is collapsed
|
|
101
|
+
* ([see example](https://www.telerik.com/kendo-react-ui/components/layout/drawer/display_modes#toc-mini-view)).
|
|
102
|
+
*
|
|
103
|
+
* Example:
|
|
104
|
+
* ```jsx
|
|
105
|
+
* <Drawer mini={true} />
|
|
106
|
+
* ```
|
|
107
|
+
*
|
|
108
|
+
* @default false
|
|
109
|
+
*/
|
|
110
|
+
mini?: boolean;
|
|
111
|
+
/**
|
|
112
|
+
* Defines the width of the Drawer when the mini view is enabled and the component is collapsed.
|
|
113
|
+
*
|
|
114
|
+
* Example:
|
|
115
|
+
* ```jsx
|
|
116
|
+
* <Drawer miniWidth={60} />
|
|
117
|
+
* ```
|
|
118
|
+
*
|
|
119
|
+
*/
|
|
120
|
+
miniWidth?: number;
|
|
121
|
+
/**
|
|
122
|
+
* Defines the width of the Drawer when it is expanded.
|
|
123
|
+
*
|
|
124
|
+
* Example:
|
|
125
|
+
* ```jsx
|
|
126
|
+
* <Drawer width={300} />
|
|
127
|
+
* ```
|
|
128
|
+
*
|
|
129
|
+
* @default 240
|
|
130
|
+
*/
|
|
131
|
+
width?: number;
|
|
132
|
+
/**
|
|
133
|
+
* The collection of items that will be rendered in the Drawer
|
|
134
|
+
* ([see example](https://www.telerik.com/kendo-react-ui/components/layout/drawer)).
|
|
135
|
+
*
|
|
136
|
+
* Example:
|
|
137
|
+
* ```jsx
|
|
138
|
+
* <Drawer items={[{ text: 'Home' }, { text: 'Settings' }]} />
|
|
139
|
+
* ```
|
|
140
|
+
*/
|
|
141
|
+
items?: Array<DrawerItemProps>;
|
|
142
|
+
/**
|
|
143
|
+
* Overrides the default component responsible for visualizing a single item
|
|
144
|
+
* ([see example](https://www.telerik.com/kendo-react-ui/components/layout/drawer/custom_rendering)).
|
|
145
|
+
*
|
|
146
|
+
* Example:
|
|
147
|
+
* ```jsx
|
|
148
|
+
* <Drawer item={CustomDrawerItem} />
|
|
149
|
+
* ```
|
|
150
|
+
*/
|
|
151
|
+
item?: React.ComponentType<DrawerItemProps>;
|
|
152
|
+
/**
|
|
153
|
+
* The event handler that will be fired when the overlay is clicked.
|
|
154
|
+
* Used in overlay mode only.
|
|
155
|
+
*
|
|
156
|
+
* Example:
|
|
157
|
+
* ```jsx
|
|
158
|
+
* <Drawer onOverlayClick={(e) => console.log('Overlay clicked')} />
|
|
159
|
+
* ```
|
|
160
|
+
*/
|
|
161
|
+
onOverlayClick?: (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
162
|
+
/**
|
|
163
|
+
* Fires when a Drawer item is selected.
|
|
164
|
+
*
|
|
165
|
+
* Example:
|
|
166
|
+
* ```jsx
|
|
167
|
+
* <Drawer onSelect={(e) => console.log('Item selected', e)} />
|
|
168
|
+
* ```
|
|
169
|
+
*/
|
|
170
|
+
onSelect?: (event: DrawerSelectEvent) => void;
|
|
171
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
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 { DrawerHandle } from '../Drawer.js';
|
|
9
|
+
import { BaseEvent } from '@progress/kendo-react-common';
|
|
10
|
+
/**
|
|
11
|
+
* The arguments for the `onSelect` Drawer event.
|
|
12
|
+
*/
|
|
13
|
+
export interface DrawerSelectEvent extends BaseEvent<DrawerHandle> {
|
|
14
|
+
/**
|
|
15
|
+
* A Drawer item event target.
|
|
16
|
+
*/
|
|
17
|
+
itemTarget: any;
|
|
18
|
+
/**
|
|
19
|
+
* The index of the selected Drawer item.
|
|
20
|
+
*/
|
|
21
|
+
itemIndex: number;
|
|
22
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
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 { ExpansionPanelHandle, ExpansionPanelProps } from './interfaces.js';
|
|
9
|
+
import * as React from 'react';
|
|
10
|
+
/**
|
|
11
|
+
* Represents the [KendoReact ExpansionPanel component](https://www.telerik.com/kendo-react-ui/components/layout/expansionpanel).
|
|
12
|
+
*/
|
|
13
|
+
export declare const ExpansionPanel: React.ForwardRefExoticComponent<ExpansionPanelProps & React.RefAttributes<ExpansionPanelHandle | null>>;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import * as e from "react";
|
|
9
9
|
import n from "prop-types";
|
|
10
|
-
import { dispatchEvent as k, Keys as p, useAsyncFocusBlur as w,
|
|
10
|
+
import { dispatchEvent as k, Keys as p, useAsyncFocusBlur as w, useRtl as F, classNames as v, getTabIndex as S, IconWrap as D } from "@progress/kendo-react-common";
|
|
11
11
|
import { chevronDownIcon as K, chevronUpIcon as A } from "@progress/kendo-svg-icons";
|
|
12
12
|
const I = e.forwardRef((a, y) => {
|
|
13
13
|
const i = e.useRef(null), [N, u] = e.useState(!1), r = e.useCallback(() => ({ element: i.current }), []);
|
|
@@ -0,0 +1,12 @@
|
|
|
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 KendoReact ExpansionPanelContent component.
|
|
11
|
+
*/
|
|
12
|
+
export declare const ExpansionPanelContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
export * from './ExpansionPanel.js';
|
|
9
|
+
export * from './ExpansionPanelContent.js';
|
|
10
|
+
export * from './interfaces.js';
|
|
@@ -0,0 +1,99 @@
|
|
|
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 { BaseEvent, SVGIcon } from '@progress/kendo-react-common';
|
|
9
|
+
/**
|
|
10
|
+
* The ExpansionPanel ref.
|
|
11
|
+
*/
|
|
12
|
+
export interface ExpansionPanelHandle {
|
|
13
|
+
/**
|
|
14
|
+
* The ExpansionPanel element.
|
|
15
|
+
*/
|
|
16
|
+
element: HTMLDivElement | null;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* The arguments for the `onAction` ExpansionPanel event.
|
|
20
|
+
*/
|
|
21
|
+
export interface ExpansionPanelActionEvent extends BaseEvent<ExpansionPanelHandle> {
|
|
22
|
+
/**
|
|
23
|
+
* Represents the `expanded` state of the ExpansionPanel.
|
|
24
|
+
*/
|
|
25
|
+
expanded: boolean;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* The props of the ExpansionPanel component.
|
|
29
|
+
*/
|
|
30
|
+
export interface ExpansionPanelProps {
|
|
31
|
+
/**
|
|
32
|
+
* The React elements that will be rendered inside the ExpansionPanel.
|
|
33
|
+
*/
|
|
34
|
+
children?: React.ReactNode;
|
|
35
|
+
/**
|
|
36
|
+
* Sets additional CSS classes to the ExpansionPanel.
|
|
37
|
+
*/
|
|
38
|
+
className?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Sets additional CSS styles to the ExpansionPanel.
|
|
41
|
+
*/
|
|
42
|
+
style?: React.CSSProperties;
|
|
43
|
+
/**
|
|
44
|
+
* Sets the `id` property of the root ExpansionPanel element.
|
|
45
|
+
*/
|
|
46
|
+
id?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Specifies the primary text in the header of the ExpansionPanel.
|
|
49
|
+
*/
|
|
50
|
+
title?: React.ReactNode;
|
|
51
|
+
/**
|
|
52
|
+
* Specifies the secondary text in the header of the ExpansionPanel, which is rendered next to the collapse/expand icon.
|
|
53
|
+
*/
|
|
54
|
+
subtitle?: React.ReactNode;
|
|
55
|
+
/**
|
|
56
|
+
* Sets a custom icon via css class(es), for the expanded state of the ExpansionPanel.
|
|
57
|
+
*/
|
|
58
|
+
expandIcon?: string;
|
|
59
|
+
/**
|
|
60
|
+
* Sets a custom icon via css class(es), for the collapsed state of the ExpansionPanel.
|
|
61
|
+
*/
|
|
62
|
+
collapseIcon?: string;
|
|
63
|
+
/**
|
|
64
|
+
* Sets a custom SVG icon for the expanded state of the ExpansionPanel.
|
|
65
|
+
*/
|
|
66
|
+
expandSVGIcon?: SVGIcon;
|
|
67
|
+
/**
|
|
68
|
+
* Sets a custom SVG icon for the collapsed state of the ExpansionPanel.
|
|
69
|
+
*/
|
|
70
|
+
collapseSVGIcon?: SVGIcon;
|
|
71
|
+
/**
|
|
72
|
+
* Sets the `dir` property of the ExpansionPanel.
|
|
73
|
+
*/
|
|
74
|
+
dir?: string;
|
|
75
|
+
/**
|
|
76
|
+
* Sets the `tabIndex` property of the ExpansionPanel.
|
|
77
|
+
*/
|
|
78
|
+
tabIndex?: number;
|
|
79
|
+
/**
|
|
80
|
+
* Sets the `expanded` state of the ExpansionPanel.
|
|
81
|
+
*
|
|
82
|
+
* @default false
|
|
83
|
+
*/
|
|
84
|
+
expanded?: boolean;
|
|
85
|
+
/**
|
|
86
|
+
* Sets the `disabled` state of the ExpansionPanel.
|
|
87
|
+
*
|
|
88
|
+
* @default false
|
|
89
|
+
*/
|
|
90
|
+
disabled?: boolean;
|
|
91
|
+
/**
|
|
92
|
+
* Sets `aria-controls`. The value should represent the `id` of the controlled content element.
|
|
93
|
+
*/
|
|
94
|
+
ariaControls?: string;
|
|
95
|
+
/**
|
|
96
|
+
* The event handler that will be fired when the expanded state of the ExpansionPanel is about to change.
|
|
97
|
+
*/
|
|
98
|
+
onAction?: (event: ExpansionPanelActionEvent) => void;
|
|
99
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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 { GridLayoutProps } from './interfaces/GridLayoutProps.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 GridLayout component.
|
|
13
|
+
*/
|
|
14
|
+
export interface GridLayoutHandle {
|
|
15
|
+
/**
|
|
16
|
+
* Represents the current element. If no current element is present, `element` is `null`.
|
|
17
|
+
*/
|
|
18
|
+
element: HTMLDivElement | null;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Represents the [KendoReact GridLayout component](https://www.telerik.com/kendo-react-ui/components/layout/gridlayout).
|
|
22
|
+
* Arranges the contents of the component in rows and columns in a grid structure.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```jsx
|
|
26
|
+
*
|
|
27
|
+
* const App = () => {
|
|
28
|
+
* return (
|
|
29
|
+
* <GridLayout
|
|
30
|
+
* rows={[{height: 50}, {height: 50}, {height: 50}]}
|
|
31
|
+
* cols={[{width: 50}, {width: 50}, {width: 50}]}
|
|
32
|
+
* gap={{rows: 5, cols: 5}}
|
|
33
|
+
* align={{horizontal: 'stretch', vertical: 'stretch'}}
|
|
34
|
+
* >
|
|
35
|
+
* <GridLayoutItem row={1} col={1}>Box</GridLayoutItem>
|
|
36
|
+
* <GridLayoutItem row={1} col={2} colSpan={2}>Box</GridLayoutItem>
|
|
37
|
+
* <GridLayoutItem row={2} col={1} colSpan={2} rowSpan={2}>Box</GridLayoutItem>
|
|
38
|
+
* <GridLayoutItem row={2} col={3}>Box</GridLayoutItem>
|
|
39
|
+
* <GridLayoutItem row={3} col={3}>Box</GridLayoutItem>
|
|
40
|
+
* </GridLayout>
|
|
41
|
+
* );
|
|
42
|
+
* };
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
export declare const GridLayout: React.ForwardRefExoticComponent<GridLayoutProps & React.RefAttributes<GridLayoutHandle | null>>;
|
|
@@ -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 { GridLayoutItemProps } from './interfaces/GridLayoutItemProps.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 GridLayoutItem component.
|
|
13
|
+
*/
|
|
14
|
+
export interface GridLayoutItemHandle {
|
|
15
|
+
/**
|
|
16
|
+
* Represents the current element. If no current element is present, `element` is `null`.
|
|
17
|
+
*/
|
|
18
|
+
element: HTMLDivElement | null;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Represents the [KendoReact GridLayoutItem component](https://www.telerik.com/kendo-react-ui/components/layout/gridlayout).
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```jsx
|
|
25
|
+
*
|
|
26
|
+
* const App = () => {
|
|
27
|
+
* return (
|
|
28
|
+
* <GridLayout
|
|
29
|
+
* rows={[{height: 50}, {height: 50}, {height: 50}]}
|
|
30
|
+
* cols={[{width: 50}, {width: 50}, {width: 50}]}
|
|
31
|
+
* gap={{rows: 5, cols: 5}}
|
|
32
|
+
* align={{horizontal: 'stretch', vertical: 'stretch'}}
|
|
33
|
+
* >
|
|
34
|
+
* <GridLayoutItem row={1} col={1}>Box</GridLayoutItem>
|
|
35
|
+
* <GridLayoutItem row={1} col={2} colSpan={2}>Box</GridLayoutItem>
|
|
36
|
+
* <GridLayoutItem row={2} col={1} colSpan={2} rowSpan={2}>Box</GridLayoutItem>
|
|
37
|
+
* <GridLayoutItem row={2} col={3}>Box</GridLayoutItem>
|
|
38
|
+
* <GridLayoutItem row={3} col={3}>Box</GridLayoutItem>
|
|
39
|
+
* </GridLayout>
|
|
40
|
+
* );
|
|
41
|
+
* };
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
export declare const GridLayoutItem: React.ForwardRefExoticComponent<GridLayoutItemProps & React.RefAttributes<GridLayoutItemHandle | null>>;
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
/**
|
|
9
|
+
* Represents the props of the [KendoReact GridLayout column](https://www.telerik.com/kendo-react-ui/components/layout/gridlayout).
|
|
10
|
+
*/
|
|
11
|
+
export interface GridLayoutColumnProps {
|
|
12
|
+
/**
|
|
13
|
+
* Specifies the width of the GridLayout column ([see example](https://www.telerik.com/kendo-react-ui/components/layout/gridlayout#kendoreact-gridlayout-overview)).
|
|
14
|
+
*
|
|
15
|
+
* Example:
|
|
16
|
+
* ```jsx
|
|
17
|
+
* <GridLayout cols={[{ width: '200px' }]} />
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
width?: number | string;
|
|
21
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
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 GridLayoutItem component](https://www.telerik.com/kendo-react-ui/components/layout/gridlayout).
|
|
11
|
+
*/
|
|
12
|
+
export interface GridLayoutItemProps {
|
|
13
|
+
/**
|
|
14
|
+
* The React elements that will be rendered inside the GridLayoutItem ([see example](https://www.telerik.com/kendo-react-ui/components/layout/gridlayout/items#toc-items)).
|
|
15
|
+
*
|
|
16
|
+
* Example:
|
|
17
|
+
* ```jsx
|
|
18
|
+
* <GridLayoutItem>Content</GridLayoutItem>
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
children?: React.ReactNode;
|
|
22
|
+
/**
|
|
23
|
+
* Sets additional CSS classes to the GridLayoutItem ([see example](https://www.telerik.com/kendo-react-ui/components/layout/gridlayout/items#toc-items)).
|
|
24
|
+
*
|
|
25
|
+
* Example:
|
|
26
|
+
* ```jsx
|
|
27
|
+
* <GridLayoutItem className="custom-class" />
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
className?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Sets additional CSS styles to the GridLayoutItem ([see example](https://www.telerik.com/kendo-react-ui/components/layout/gridlayout/items#toc-items)).
|
|
33
|
+
*
|
|
34
|
+
* Example:
|
|
35
|
+
* ```jsx
|
|
36
|
+
* <GridLayoutItem style={{ backgroundColor: 'red' }} />
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
style?: React.CSSProperties;
|
|
40
|
+
/**
|
|
41
|
+
* Sets the `id` property of the root GridLayoutItem element ([see example](https://www.telerik.com/kendo-react-ui/components/layout/gridlayout/items#toc-items)).
|
|
42
|
+
*
|
|
43
|
+
* Example:
|
|
44
|
+
* ```jsx
|
|
45
|
+
* <GridLayoutItem id="item-1" />
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
48
|
+
id?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Defines the column line from which the element will start ([see example](https://www.telerik.com/kendo-react-ui/components/layout/gridlayout/items#toc-items)).
|
|
51
|
+
*
|
|
52
|
+
* Example:
|
|
53
|
+
* ```jsx
|
|
54
|
+
* <GridLayoutItem col={1} />
|
|
55
|
+
* ```
|
|
56
|
+
*/
|
|
57
|
+
col?: number;
|
|
58
|
+
/**
|
|
59
|
+
* Specifies the number of columns over which the element will span ([see example](https://www.telerik.com/kendo-react-ui/components/layout/gridlayout/items#toc-items)).
|
|
60
|
+
* Defaults to `1`.
|
|
61
|
+
*
|
|
62
|
+
* Example:
|
|
63
|
+
* ```jsx
|
|
64
|
+
* <GridLayoutItem colSpan={2} />
|
|
65
|
+
* ```
|
|
66
|
+
*/
|
|
67
|
+
colSpan?: number;
|
|
68
|
+
/**
|
|
69
|
+
* Defines the row line from which the element will start ([see example](https://www.telerik.com/kendo-react-ui/components/layout/gridlayout/items#toc-items)).
|
|
70
|
+
*
|
|
71
|
+
* Example:
|
|
72
|
+
* ```jsx
|
|
73
|
+
* <GridLayoutItem row={1} />
|
|
74
|
+
* ```
|
|
75
|
+
*/
|
|
76
|
+
row?: number;
|
|
77
|
+
/**
|
|
78
|
+
* Specifies the number of rows over which the element will span ([see example](https://www.telerik.com/kendo-react-ui/components/layout/gridlayout/items#toc-items)).
|
|
79
|
+
* Defaults to `1`.
|
|
80
|
+
*
|
|
81
|
+
* Example:
|
|
82
|
+
* ```jsx
|
|
83
|
+
* <GridLayoutItem rowSpan={2} />
|
|
84
|
+
* ```
|
|
85
|
+
*/
|
|
86
|
+
rowSpan?: number;
|
|
87
|
+
}
|
|
@@ -0,0 +1,144 @@
|
|
|
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 { GridLayoutColumnProps } from './GridLayoutColumnProps.js';
|
|
9
|
+
import { GridLayoutRowProps } from './GridLayoutRowProps.js';
|
|
10
|
+
import * as React from 'react';
|
|
11
|
+
/**
|
|
12
|
+
* Represents the props of the [KendoReact GridLayout component](https://www.telerik.com/kendo-react-ui/components/layout/gridlayout).
|
|
13
|
+
*/
|
|
14
|
+
export interface GridLayoutProps {
|
|
15
|
+
/**
|
|
16
|
+
* The React elements that will be rendered inside the GridLayout ([see example](https://www.telerik.com/kendo-react-ui/components/layout/gridlayout#toc-children)).
|
|
17
|
+
*
|
|
18
|
+
* Example:
|
|
19
|
+
* ```jsx
|
|
20
|
+
* <GridLayout>
|
|
21
|
+
* <div>Item 1</div>
|
|
22
|
+
* <div>Item 2</div>
|
|
23
|
+
* </GridLayout>
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
children?: React.ReactNode;
|
|
27
|
+
/**
|
|
28
|
+
* Sets additional CSS classes to the GridLayout ([see example](https://www.telerik.com/kendo-react-ui/components/layout/gridlayout#toc-classname)).
|
|
29
|
+
*
|
|
30
|
+
* Example:
|
|
31
|
+
* ```jsx
|
|
32
|
+
* <GridLayout className="custom-class" />
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
className?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Sets additional CSS styles to the GridLayout ([see example](https://www.telerik.com/kendo-react-ui/components/layout/gridlayout#toc-style)).
|
|
38
|
+
*
|
|
39
|
+
* Example:
|
|
40
|
+
* ```jsx
|
|
41
|
+
* <GridLayout style={{ gap: '10px' }} />
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
style?: React.CSSProperties;
|
|
45
|
+
/**
|
|
46
|
+
* Sets the `id` property of the root GridLayout element ([see example](https://www.telerik.com/kendo-react-ui/components/layout/gridlayout#toc-id)).
|
|
47
|
+
*
|
|
48
|
+
* Example:
|
|
49
|
+
* ```jsx
|
|
50
|
+
* <GridLayout id="grid-layout" />
|
|
51
|
+
* ```
|
|
52
|
+
*/
|
|
53
|
+
id?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Specifies the gaps between the elements ([see example](https://www.telerik.com/kendo-react-ui/components/layout/gridlayout/layout#toc-gaps)).
|
|
56
|
+
*
|
|
57
|
+
* * The possible keys are:
|
|
58
|
+
* * `rows`
|
|
59
|
+
* * `columns`
|
|
60
|
+
*
|
|
61
|
+
* Example:
|
|
62
|
+
* ```jsx
|
|
63
|
+
* <GridLayout gap={{ rows: '10px', columns: '20px' }} />
|
|
64
|
+
* ```
|
|
65
|
+
*/
|
|
66
|
+
gap?: GridLayoutGap;
|
|
67
|
+
/**
|
|
68
|
+
* Specifies the horizontal and vertical alignment of the inner GridLayout elements ([see example](https://www.telerik.com/kendo-react-ui/components/layout/gridlayout/layout#horizontal-alignment)).
|
|
69
|
+
*
|
|
70
|
+
* The possible keys are:
|
|
71
|
+
* * `horizontal`—Defines the possible horizontal alignment of the inner GridLayout elements.
|
|
72
|
+
* * `start`—Uses the start point of the container.
|
|
73
|
+
* * `center`—Uses the central point of the container.
|
|
74
|
+
* * `end`—Uses the end point of the container.
|
|
75
|
+
* * (Default)`stretch`—Stretches the items to fill the width of the container.
|
|
76
|
+
* * `vertical`— Defines the possible vertical alignment of the inner GridLayout elements.
|
|
77
|
+
* * `top`—Uses the top point of the container.
|
|
78
|
+
* * `middle`—Uses the middle point of the container.
|
|
79
|
+
* * `bottom`—Uses the bottom point of the container.
|
|
80
|
+
* * (Default)`stretch`—Stretches the items to fill the height of the container.
|
|
81
|
+
*
|
|
82
|
+
* Example:
|
|
83
|
+
* ```jsx
|
|
84
|
+
* <GridLayout align={{ horizontal: 'center', vertical: 'middle' }} />
|
|
85
|
+
* ```
|
|
86
|
+
*/
|
|
87
|
+
align?: GridLayoutAlign;
|
|
88
|
+
/**
|
|
89
|
+
* Specifies the default number of columns and their widths ([see example](https://www.telerik.com/kendo-react-ui/components/layout/gridlayout/layout#toc-rows-and-columns)).
|
|
90
|
+
*
|
|
91
|
+
* Example:
|
|
92
|
+
* ```jsx
|
|
93
|
+
* <GridLayout cols={[{ width: '100px' }, { width: '200px' }]} />
|
|
94
|
+
* ```
|
|
95
|
+
*/
|
|
96
|
+
cols?: GridLayoutColumnProps[];
|
|
97
|
+
/**
|
|
98
|
+
* Specifies the default number of rows and their height ([see example](https://www.telerik.com/kendo-react-ui/components/layout/gridlayout/layout#toc-rows-and-columns)).
|
|
99
|
+
*
|
|
100
|
+
* Example:
|
|
101
|
+
* ```jsx
|
|
102
|
+
* <GridLayout rows={[{ height: '50px' }, { height: '100px' }]} />
|
|
103
|
+
* ```
|
|
104
|
+
*/
|
|
105
|
+
rows?: GridLayoutRowProps[];
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Specifies the gaps between the elements.
|
|
109
|
+
*/
|
|
110
|
+
export interface GridLayoutGap {
|
|
111
|
+
/**
|
|
112
|
+
* Represents the row gap between the elements
|
|
113
|
+
*/
|
|
114
|
+
rows?: number | string;
|
|
115
|
+
/**
|
|
116
|
+
* Represents the column gap between the elements
|
|
117
|
+
*/
|
|
118
|
+
cols?: number | string;
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Specifies the horizontal and vertical alignment of the inner GridLayout elements.
|
|
122
|
+
*/
|
|
123
|
+
export interface GridLayoutAlign {
|
|
124
|
+
/**
|
|
125
|
+
* Defines the possible horizontal alignment of the inner GridLayout elements.
|
|
126
|
+
*
|
|
127
|
+
* The available values are:
|
|
128
|
+
* - `start`—Uses the start point of the container.
|
|
129
|
+
* - `center`—Uses the center point of the container.
|
|
130
|
+
* - `end`—Uses the end point of the container.
|
|
131
|
+
* - (Default)`stretch`—Stretches the items to fill the width of the container.
|
|
132
|
+
*/
|
|
133
|
+
horizontal?: 'start' | 'center' | 'end' | 'stretch';
|
|
134
|
+
/**
|
|
135
|
+
* Defines the possible vertical alignment of the inner GridLayout elements.
|
|
136
|
+
*
|
|
137
|
+
* The available values are:
|
|
138
|
+
* - `top`—Uses the top point of the container.
|
|
139
|
+
* - `middle`—Uses the middle point of the container.
|
|
140
|
+
* - `bottom`—Uses the bottom point of the container.
|
|
141
|
+
* - (Default)`stretch`—Stretches the items to fill the height of the container.
|
|
142
|
+
*/
|
|
143
|
+
vertical?: 'top' | 'middle' | 'bottom' | 'stretch';
|
|
144
|
+
}
|