@progress/kendo-react-layout 7.2.4-develop.3 → 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.
- package/actionsheet/ActionSheet.js +8 -0
- package/actionsheet/ActionSheet.mjs +184 -0
- package/actionsheet/ActionSheetContent.js +8 -0
- package/actionsheet/ActionSheetContent.mjs +32 -0
- package/actionsheet/ActionSheetFooter.js +8 -0
- package/actionsheet/ActionSheetFooter.mjs +32 -0
- package/actionsheet/ActionSheetHeader.js +8 -0
- package/actionsheet/ActionSheetHeader.mjs +32 -0
- package/actionsheet/ActionSheetItem.js +8 -0
- package/actionsheet/ActionSheetItem.mjs +52 -0
- package/appbar/AppBar.js +8 -0
- package/appbar/AppBar.mjs +86 -0
- package/appbar/AppBarSection.js +8 -0
- package/appbar/AppBarSection.mjs +47 -0
- package/appbar/AppBarSpacer.js +8 -0
- package/appbar/AppBarSpacer.mjs +55 -0
- package/bottomnavigation/BottomNavigation.js +8 -0
- package/bottomnavigation/BottomNavigation.mjs +160 -0
- package/bottomnavigation/BottomNavigationItem.js +8 -0
- package/bottomnavigation/BottomNavigationItem.mjs +93 -0
- package/bottomnavigation/models/utils.js +8 -0
- package/bottomnavigation/models/utils.mjs +19 -0
- package/breadcrumb/Breadcrumb.js +8 -0
- package/breadcrumb/Breadcrumb.mjs +158 -0
- package/breadcrumb/BreadcrumbDelimiter.js +8 -0
- package/breadcrumb/BreadcrumbDelimiter.mjs +48 -0
- package/breadcrumb/BreadcrumbLink.js +8 -0
- package/breadcrumb/BreadcrumbLink.mjs +82 -0
- package/breadcrumb/BreadcrumbListItem.js +8 -0
- package/breadcrumb/BreadcrumbListItem.mjs +52 -0
- package/breadcrumb/BreadcrumbOrderedList.js +8 -0
- package/breadcrumb/BreadcrumbOrderedList.mjs +67 -0
- package/card/Avatar.js +8 -0
- package/card/Avatar.mjs +53 -0
- package/card/Card.js +8 -0
- package/card/Card.mjs +52 -0
- package/card/CardActions.js +8 -0
- package/card/CardActions.mjs +40 -0
- package/card/CardBody.js +8 -0
- package/card/CardBody.mjs +28 -0
- package/card/CardFooter.js +8 -0
- package/card/CardFooter.mjs +28 -0
- package/card/CardHeader.js +8 -0
- package/card/CardHeader.mjs +28 -0
- package/card/CardImage.js +8 -0
- package/card/CardImage.mjs +36 -0
- package/card/CardSubtitle.js +8 -0
- package/card/CardSubtitle.mjs +28 -0
- package/card/CardTitle.js +8 -0
- package/card/CardTitle.mjs +28 -0
- package/card/interfaces/Enums.js +8 -0
- package/card/interfaces/Enums.mjs +15 -0
- package/contextmenu/ContextMenu.js +8 -0
- package/contextmenu/ContextMenu.mjs +48 -0
- package/dist/cdn/js/kendo-react-layout.js +8 -5
- package/drawer/Drawer.js +8 -0
- package/drawer/Drawer.mjs +130 -0
- package/drawer/DrawerContent.js +8 -0
- package/drawer/DrawerContent.mjs +33 -0
- package/drawer/DrawerItem.js +8 -0
- package/drawer/DrawerItem.mjs +89 -0
- package/drawer/DrawerNavigation.js +8 -0
- package/drawer/DrawerNavigation.mjs +132 -0
- package/drawer/context/DrawerContext.js +8 -0
- package/drawer/context/DrawerContext.mjs +22 -0
- package/expansionpanel/ExpansionPanel.js +8 -0
- package/expansionpanel/ExpansionPanel.mjs +116 -0
- package/expansionpanel/ExpansionPanelContent.js +8 -0
- package/expansionpanel/ExpansionPanelContent.mjs +23 -0
- package/gridlayout/GridLayout.js +8 -0
- package/gridlayout/GridLayout.mjs +83 -0
- package/gridlayout/GridLayoutItem.js +8 -0
- package/gridlayout/GridLayoutItem.mjs +46 -0
- package/index.d.mts +4593 -5
- package/index.d.ts +4593 -103
- package/index.js +8 -5
- package/index.mjs +139 -5037
- package/menu/components/Menu.js +8 -0
- package/menu/components/Menu.mjs +193 -0
- package/menu/components/MenuItem.js +8 -0
- package/menu/components/MenuItem.mjs +34 -0
- package/menu/components/MenuItemArrow.js +8 -0
- package/menu/components/MenuItemArrow.mjs +49 -0
- package/menu/components/MenuItemInternal.js +8 -0
- package/menu/components/MenuItemInternal.mjs +222 -0
- package/menu/components/MenuItemLink.js +8 -0
- package/menu/components/MenuItemLink.mjs +54 -0
- package/menu/consts.js +8 -0
- package/menu/consts.mjs +59 -0
- package/menu/utils/DirectionHolder.js +8 -0
- package/menu/utils/DirectionHolder.mjs +25 -0
- package/menu/utils/MouseOverHandler.js +8 -0
- package/menu/utils/MouseOverHandler.mjs +34 -0
- package/menu/utils/getNewItemIdUponKeyboardNavigation.js +8 -0
- package/menu/utils/getNewItemIdUponKeyboardNavigation.mjs +124 -0
- package/menu/utils/hoverDelay.js +8 -0
- package/menu/utils/hoverDelay.mjs +18 -0
- package/menu/utils/itemsIdsUtils.js +8 -0
- package/menu/utils/itemsIdsUtils.mjs +81 -0
- package/menu/utils/misc.js +8 -0
- package/menu/utils/misc.mjs +29 -0
- package/menu/utils/prepareInputItemsForInternalWork.js +8 -0
- package/menu/utils/prepareInputItemsForInternalWork.mjs +59 -0
- package/package-metadata.js +8 -0
- package/package-metadata.mjs +19 -0
- package/package.json +6 -6
- package/panelbar/PanelBar.js +8 -0
- package/panelbar/PanelBar.mjs +195 -0
- package/panelbar/PanelBarItem.js +8 -0
- package/panelbar/PanelBarItem.mjs +148 -0
- package/panelbar/interfaces/NavigationAction.js +8 -0
- package/panelbar/interfaces/NavigationAction.mjs +12 -0
- package/panelbar/util.js +8 -0
- package/panelbar/util.mjs +122 -0
- package/splitter/Splitter.js +8 -0
- package/splitter/Splitter.mjs +238 -0
- package/splitter/SplitterBar.js +8 -0
- package/splitter/SplitterBar.mjs +129 -0
- package/splitter/SplitterPane.js +8 -0
- package/splitter/SplitterPane.mjs +50 -0
- package/splitter/messages/index.js +8 -0
- package/splitter/messages/index.mjs +15 -0
- package/stacklayout/StackLayout.js +8 -0
- package/stacklayout/StackLayout.mjs +84 -0
- package/stepper/Step.js +8 -0
- package/stepper/Step.mjs +177 -0
- package/stepper/Stepper.js +8 -0
- package/stepper/Stepper.mjs +252 -0
- package/stepper/contants.js +8 -0
- package/stepper/contants.mjs +13 -0
- package/stepper/context/StepperContext.js +8 -0
- package/stepper/context/StepperContext.mjs +17 -0
- package/stepper/messages/index.js +8 -0
- package/stepper/messages/index.mjs +17 -0
- package/tabstrip/TabStrip.js +8 -0
- package/tabstrip/TabStrip.mjs +163 -0
- package/tabstrip/TabStripContent.js +8 -0
- package/tabstrip/TabStripContent.mjs +81 -0
- package/tabstrip/TabStripNavigation.js +8 -0
- package/tabstrip/TabStripNavigation.mjs +171 -0
- package/tabstrip/TabStripNavigationItem.js +8 -0
- package/tabstrip/TabStripNavigationItem.mjs +55 -0
- package/tabstrip/TabStripTab.js +8 -0
- package/tabstrip/TabStripTab.mjs +35 -0
- package/tilelayout/InternalTile.js +8 -0
- package/tilelayout/InternalTile.mjs +203 -0
- package/tilelayout/ResizeHandlers.js +8 -0
- package/tilelayout/ResizeHandlers.mjs +53 -0
- package/tilelayout/TileLayout.js +8 -0
- package/tilelayout/TileLayout.mjs +122 -0
- package/timeline/Timeline.js +8 -0
- package/timeline/Timeline.mjs +79 -0
- package/timeline/TimelineCard.js +8 -0
- package/timeline/TimelineCard.mjs +109 -0
- package/timeline/TimelineHorizontal.js +8 -0
- package/timeline/TimelineHorizontal.mjs +239 -0
- package/timeline/TimelineVertical.js +8 -0
- package/timeline/TimelineVertical.mjs +78 -0
- package/timeline/utils.js +8 -0
- package/timeline/utils.mjs +16 -0
- package/actionsheet/ActionSheet.d.ts +0 -138
- package/actionsheet/ActionSheetContent.d.ts +0 -14
- package/actionsheet/ActionSheetFooter.d.ts +0 -14
- package/actionsheet/ActionSheetHeader.d.ts +0 -14
- package/actionsheet/ActionSheetItem.d.ts +0 -10
- package/actionsheet/interfaces/ActionSheetChildrenProps.d.ts +0 -17
- package/actionsheet/interfaces/ActionSheetItemProps.d.ts +0 -70
- package/appbar/AppBar.d.ts +0 -54
- package/appbar/AppBarSection.d.ts +0 -53
- package/appbar/AppBarSpacer.d.ts +0 -54
- package/appbar/interfaces/AppBarProps.d.ts +0 -83
- package/appbar/interfaces/AppBarSectionProps.d.ts +0 -22
- package/appbar/interfaces/AppBarSpacerProps.d.ts +0 -23
- package/bottomnavigation/BottomNavigation.d.ts +0 -42
- package/bottomnavigation/BottomNavigationItem.d.ts +0 -16
- package/bottomnavigation/BottomNavigationItemProps.d.ts +0 -64
- package/bottomnavigation/BottomNavigationProps.d.ts +0 -157
- package/bottomnavigation/models/events.d.ts +0 -24
- package/bottomnavigation/models/utils.d.ts +0 -40
- package/breadcrumb/Breadcrumb.d.ts +0 -163
- package/breadcrumb/BreadcrumbDelimiter.d.ts +0 -47
- package/breadcrumb/BreadcrumbLink.d.ts +0 -135
- package/breadcrumb/BreadcrumbListItem.d.ts +0 -55
- package/breadcrumb/BreadcrumbOrderedList.d.ts +0 -59
- package/card/Avatar.d.ts +0 -7
- package/card/Card.d.ts +0 -8
- package/card/CardActions.d.ts +0 -7
- package/card/CardBody.d.ts +0 -7
- package/card/CardFooter.d.ts +0 -7
- package/card/CardHeader.d.ts +0 -7
- package/card/CardImage.d.ts +0 -7
- package/card/CardSubtitle.d.ts +0 -7
- package/card/CardTitle.d.ts +0 -7
- package/card/interfaces/AvatarProps.d.ts +0 -88
- package/card/interfaces/CardActionsProps.d.ts +0 -38
- package/card/interfaces/CardBodyProps.d.ts +0 -18
- package/card/interfaces/CardFooterProps.d.ts +0 -18
- package/card/interfaces/CardHandle.d.ts +0 -18
- package/card/interfaces/CardHeaderProps.d.ts +0 -18
- package/card/interfaces/CardImageProps.d.ts +0 -22
- package/card/interfaces/CardProps.d.ts +0 -48
- package/card/interfaces/CardSubtitleProps.d.ts +0 -18
- package/card/interfaces/CardTitleProps.d.ts +0 -18
- package/card/interfaces/Enums.d.ts +0 -27
- package/contextmenu/ContextMenu.d.ts +0 -31
- package/drawer/Drawer.d.ts +0 -44
- package/drawer/DrawerContent.d.ts +0 -43
- package/drawer/DrawerItem.d.ts +0 -36
- package/drawer/DrawerNavigation.d.ts +0 -47
- package/drawer/context/DrawerContext.d.ts +0 -24
- package/drawer/interfaces/DrawerAnimation.d.ts +0 -18
- package/drawer/interfaces/DrawerContentProps.d.ts +0 -21
- package/drawer/interfaces/DrawerItemHandle.d.ts +0 -21
- package/drawer/interfaces/DrawerItemProps.d.ts +0 -64
- package/drawer/interfaces/DrawerNavigationProps.d.ts +0 -21
- package/drawer/interfaces/DrawerProps.d.ts +0 -86
- package/drawer/interfaces/DrawerSelectEvent.d.ts +0 -19
- package/expansionpanel/ExpansionPanel.d.ts +0 -10
- package/expansionpanel/ExpansionPanelContent.d.ts +0 -9
- package/expansionpanel/index.d.ts +0 -7
- package/expansionpanel/interfaces.d.ts +0 -92
- package/gridlayout/GridLayout.d.ts +0 -43
- package/gridlayout/GridLayoutItem.d.ts +0 -42
- package/gridlayout/interfaces/GridLayoutColumnProps.d.ts +0 -13
- package/gridlayout/interfaces/GridLayoutItemProps.d.ts +0 -44
- package/gridlayout/interfaces/GridLayoutProps.d.ts +0 -99
- package/gridlayout/interfaces/GridLayoutRowProps.d.ts +0 -13
- package/menu/BaseMenuItemInternalProps.d.ts +0 -24
- package/menu/MenuProps.d.ts +0 -75
- package/menu/components/Menu.d.ts +0 -118
- package/menu/components/MenuItem.d.ts +0 -33
- package/menu/components/MenuItemArrow.d.ts +0 -50
- package/menu/components/MenuItemInternal.d.ts +0 -63
- package/menu/components/MenuItemLink.d.ts +0 -34
- package/menu/consts.d.ts +0 -58
- package/menu/events.d.ts +0 -20
- package/menu/models/BaseMenuItem.d.ts +0 -58
- package/menu/models/MenuItemModel.d.ts +0 -23
- package/menu/utils/DirectionHolder.d.ts +0 -15
- package/menu/utils/MouseOverHandler.d.ts +0 -21
- package/menu/utils/getNewItemIdUponKeyboardNavigation.d.ts +0 -11
- package/menu/utils/hoverDelay.d.ts +0 -13
- package/menu/utils/itemsIdsUtils.d.ts +0 -68
- package/menu/utils/misc.d.ts +0 -20
- package/menu/utils/prepareInputItemsForInternalWork.d.ts +0 -10
- package/package-metadata.d.ts +0 -9
- package/panelbar/PanelBar.d.ts +0 -81
- package/panelbar/PanelBarItem.d.ts +0 -52
- package/panelbar/interfaces/NavigationAction.d.ts +0 -12
- package/panelbar/interfaces/PanelBarItemClickEventArguments.d.ts +0 -12
- package/panelbar/interfaces/PanelBarItemProps.d.ts +0 -98
- package/panelbar/interfaces/PanelBarProps.d.ts +0 -66
- package/panelbar/interfaces/PanelBarSelectEventArguments.d.ts +0 -18
- package/panelbar/interfaces/RenderPanelBarItem.d.ts +0 -19
- package/panelbar/util.d.ts +0 -56
- package/splitter/Splitter.d.ts +0 -136
- package/splitter/SplitterBar.d.ts +0 -44
- package/splitter/SplitterPane.d.ts +0 -57
- package/splitter/messages/index.d.ts +0 -14
- package/stacklayout/StackLayout.d.ts +0 -41
- package/stacklayout/StackLayoutProps.d.ts +0 -92
- package/stepper/Step.d.ts +0 -27
- package/stepper/Stepper.d.ts +0 -27
- package/stepper/contants.d.ts +0 -12
- package/stepper/context/StepperContext.d.ts +0 -27
- package/stepper/interfaces/StepChangeEvent.d.ts +0 -15
- package/stepper/interfaces/StepFocusEvent.d.ts +0 -11
- package/stepper/interfaces/StepHandle.d.ts +0 -17
- package/stepper/interfaces/StepProps.d.ts +0 -83
- package/stepper/interfaces/StepperChangeEvent.d.ts +0 -15
- package/stepper/interfaces/StepperFocusEvent.d.ts +0 -11
- package/stepper/interfaces/StepperHandle.d.ts +0 -17
- package/stepper/interfaces/StepperProps.d.ts +0 -98
- package/stepper/messages/index.d.ts +0 -19
- package/tabstrip/TabStrip.d.ts +0 -158
- package/tabstrip/TabStripContent.d.ts +0 -62
- package/tabstrip/TabStripNavigation.d.ts +0 -110
- package/tabstrip/TabStripNavigationItem.d.ts +0 -75
- package/tabstrip/TabStripTab.d.ts +0 -42
- package/tilelayout/InternalTile.d.ts +0 -94
- package/tilelayout/ResizeHandlers.d.ts +0 -24
- package/tilelayout/TileLayout.d.ts +0 -153
- package/tilelayout/interfaces/index.d.ts +0 -145
- package/timeline/Timeline.d.ts +0 -102
- package/timeline/TimelineCard.d.ts +0 -38
- package/timeline/TimelineHorizontal.d.ts +0 -7
- package/timeline/TimelineVertical.d.ts +0 -16
- package/timeline/utils.d.ts +0 -19
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
import { StackLayoutProps } from './StackLayoutProps';
|
|
7
|
-
/**
|
|
8
|
-
* Represents the Object which is passed to the [`ref`](https://reactjs.org/docs/refs-and-the-dom.html)
|
|
9
|
-
* callback of the StackLayout component.
|
|
10
|
-
*/
|
|
11
|
-
export interface StackLayoutHandle {
|
|
12
|
-
/**
|
|
13
|
-
* Represents the current element. If no current element is present, `element` is `null`.
|
|
14
|
-
*/
|
|
15
|
-
element: HTMLDivElement | null;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Represents the [KendoReact StackLayout component]({% slug overview_stacklayout %}).
|
|
19
|
-
* Arranges its inner elements horizontally, or vertically in a stack. Nesting stack layouts is supported to build more complex layouts.
|
|
20
|
-
*
|
|
21
|
-
* @example
|
|
22
|
-
* ```jsx
|
|
23
|
-
*
|
|
24
|
-
* const App = () => {
|
|
25
|
-
* return (
|
|
26
|
-
* <StackLayout
|
|
27
|
-
* orientation="vertical"
|
|
28
|
-
* align={{horizontal: 'stretch', vertical: 'stretch'}}
|
|
29
|
-
* gap={10}
|
|
30
|
-
* >
|
|
31
|
-
* <div>Box</div>
|
|
32
|
-
* <div>Box</div>
|
|
33
|
-
* <div>Box</div>
|
|
34
|
-
* <div>Box</div>
|
|
35
|
-
* </StackLayout>
|
|
36
|
-
* );
|
|
37
|
-
* };
|
|
38
|
-
* ReactDOM.render(<App />, document.querySelector('my-app'));
|
|
39
|
-
* ```
|
|
40
|
-
*/
|
|
41
|
-
export declare const StackLayout: React.ForwardRefExoticComponent<StackLayoutProps & React.RefAttributes<StackLayoutHandle | null>>;
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
/**
|
|
7
|
-
* Represents the props of the [KendoReact StackLayout component]({% slug overview_stacklayout %}).
|
|
8
|
-
*/
|
|
9
|
-
export interface StackLayoutProps {
|
|
10
|
-
/**
|
|
11
|
-
* The React elements that will be rendered inside the StackLayout.
|
|
12
|
-
*/
|
|
13
|
-
children?: React.ReactNode;
|
|
14
|
-
/**
|
|
15
|
-
* Sets additional CSS classes to the StackLayout.
|
|
16
|
-
*/
|
|
17
|
-
className?: string;
|
|
18
|
-
/**
|
|
19
|
-
* Sets additional CSS styles to the StackLayout.
|
|
20
|
-
*/
|
|
21
|
-
style?: React.CSSProperties;
|
|
22
|
-
/**
|
|
23
|
-
* Sets the `id` property of the root StackLayout element.
|
|
24
|
-
*/
|
|
25
|
-
id?: string;
|
|
26
|
-
/**
|
|
27
|
-
* Specifies the gap between the inner elements ([see example]({% slug layout_stacklayout %}#toc-gaps)).
|
|
28
|
-
*/
|
|
29
|
-
gap?: number | string;
|
|
30
|
-
/**
|
|
31
|
-
* Specifies the orientation of the StackLayout.
|
|
32
|
-
* ([see example]({% slug layout_stacklayout %}#toc-orientation)).
|
|
33
|
-
*
|
|
34
|
-
* The possible values are:
|
|
35
|
-
* * (Default)`horizontal`
|
|
36
|
-
* * `vertical`
|
|
37
|
-
*/
|
|
38
|
-
orientation?: StackLayoutOrientation;
|
|
39
|
-
/**
|
|
40
|
-
* Specifies the horizontal and vertical alignment of the inner StackLayout elements.
|
|
41
|
-
* Demo ([here]({% slug layout_stacklayout %}#toc-horizontal-align)) and ([here]({% slug layout_stacklayout %}#toc-vertical-align)).
|
|
42
|
-
*
|
|
43
|
-
* The possible keys are:
|
|
44
|
-
* * `horizontal`—Defines the possible horizontal alignment of the inner StackLayout elements.
|
|
45
|
-
* * `start`—Uses the start point of the container.
|
|
46
|
-
* * `center`—Uses the central point of the container.
|
|
47
|
-
* * `end`—Uses the end point of the container.
|
|
48
|
-
* * (Default)`stretch`—Stretches the items to fill the width of the container.
|
|
49
|
-
* * `vertical`—Defines the possible vertical alignment of the inner StackLayout elements.
|
|
50
|
-
* * `top`—Uses the top point of the container.
|
|
51
|
-
* * `middle`—Uses the middle point of the container.
|
|
52
|
-
* * `bottom`—Uses the bottom point of the container.
|
|
53
|
-
* * (Default)`stretch`—Stretches the items to fill the height of the container.
|
|
54
|
-
*/
|
|
55
|
-
align?: StackLayoutAlign;
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* Specifies the orientation of the StackLayout ([see example]({% slug layout_stacklayout %}#toc-orientation)).
|
|
59
|
-
*
|
|
60
|
-
* The possible values are:
|
|
61
|
-
* * (Default)`horizontal`
|
|
62
|
-
* * `vertical`
|
|
63
|
-
*
|
|
64
|
-
*/
|
|
65
|
-
export type StackLayoutOrientation = 'horizontal' | 'vertical';
|
|
66
|
-
/**
|
|
67
|
-
* Specifies the horizontal and vertical alignment of the inner StackLayout elements.
|
|
68
|
-
*/
|
|
69
|
-
export interface StackLayoutAlign {
|
|
70
|
-
/**
|
|
71
|
-
* Defines the possible horizontal alignment of the inner StackLayout elements
|
|
72
|
-
* ([see example]({% slug layout_stacklayout %}#toc-horizontal-align)).
|
|
73
|
-
*
|
|
74
|
-
* The available values are:
|
|
75
|
-
* - `start`—Uses the start point of the container.
|
|
76
|
-
* - `center`—Uses the center point of the container.
|
|
77
|
-
* - `end`—Uses the end point of the container.
|
|
78
|
-
* - (Default)`stretch`—Stretches the items to fill the width of the container.
|
|
79
|
-
*/
|
|
80
|
-
horizontal?: 'start' | 'center' | 'end' | 'stretch';
|
|
81
|
-
/**
|
|
82
|
-
* Defines the possible vertical alignment of the inner StackLayout elements
|
|
83
|
-
* ([see example]({% slug layout_stacklayout %}#toc-vertical-align)).
|
|
84
|
-
*
|
|
85
|
-
* The available values are:
|
|
86
|
-
* - `top`—Uses the top point of the container.
|
|
87
|
-
* - `middle`—Uses the middle point of the container.
|
|
88
|
-
* - `bottom`—Uses the bottom point of the container.
|
|
89
|
-
* - (Default)`stretch`—Stretches the items to fill the height of the container.
|
|
90
|
-
*/
|
|
91
|
-
vertical?: 'top' | 'middle' | 'bottom' | 'stretch';
|
|
92
|
-
}
|
package/stepper/Step.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
import { StepHandle } from './interfaces/StepHandle';
|
|
7
|
-
import { StepProps } from './interfaces/StepProps';
|
|
8
|
-
/**
|
|
9
|
-
* Represents the [KendoReact Step component]({% slug overview_stepper %}).
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* ```jsx
|
|
13
|
-
* const steps = [
|
|
14
|
-
* { label: 'Step 1' },
|
|
15
|
-
* { label: 'Step 2' },
|
|
16
|
-
* { label: 'Step 3', optional: true }
|
|
17
|
-
* ];
|
|
18
|
-
*
|
|
19
|
-
* const App = () => {
|
|
20
|
-
* return (
|
|
21
|
-
* <Stepper items={steps} value={1}/>
|
|
22
|
-
* );
|
|
23
|
-
* };
|
|
24
|
-
* ReactDOM.render(<App />, document.querySelector('my-app'));
|
|
25
|
-
* ```
|
|
26
|
-
*/
|
|
27
|
-
export declare const Step: React.ForwardRefExoticComponent<Omit<StepProps, "ref"> & React.RefAttributes<StepHandle | null>>;
|
package/stepper/Stepper.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
import { StepperProps } from './interfaces/StepperProps';
|
|
7
|
-
import { StepperHandle } from './interfaces/StepperHandle';
|
|
8
|
-
/**
|
|
9
|
-
* Represents the [KendoReact Stepper component]({% slug overview_stepper %}).
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* ```jsx
|
|
13
|
-
* const steps = [
|
|
14
|
-
* { label: 'Step 1' },
|
|
15
|
-
* { label: 'Step 2' },
|
|
16
|
-
* { label: 'Step 3', optional: true }
|
|
17
|
-
* ];
|
|
18
|
-
*
|
|
19
|
-
* const App = () => {
|
|
20
|
-
* return (
|
|
21
|
-
* <Stepper items={steps} value={1} />
|
|
22
|
-
* );
|
|
23
|
-
* };
|
|
24
|
-
* ReactDOM.render(<App />, document.querySelector('my-app'));
|
|
25
|
-
* ```
|
|
26
|
-
*/
|
|
27
|
-
export declare const Stepper: React.ForwardRefExoticComponent<StepperProps & React.RefAttributes<StepperHandle | null>>;
|
package/stepper/contants.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
/**
|
|
6
|
-
* @hidden
|
|
7
|
-
*/
|
|
8
|
-
export declare const DEFAULT_ANIMATION_DURATION = 400;
|
|
9
|
-
/**
|
|
10
|
-
* @hidden
|
|
11
|
-
*/
|
|
12
|
-
export declare const NO_ANIMATION = 0;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
import { StepProps } from '../interfaces/StepProps';
|
|
7
|
-
import { StepChangeEvent } from '../interfaces/StepChangeEvent';
|
|
8
|
-
import { StepFocusEvent } from '../interfaces/StepFocusEvent';
|
|
9
|
-
import { SVGIcon } from '@progress/kendo-react-common';
|
|
10
|
-
/** @hidden */
|
|
11
|
-
export type StepperContextType = {
|
|
12
|
-
animationDuration?: number | boolean;
|
|
13
|
-
isVertical?: boolean;
|
|
14
|
-
item?: React.ComponentType<StepProps>;
|
|
15
|
-
linear?: boolean;
|
|
16
|
-
mode?: 'steps' | 'labels';
|
|
17
|
-
numOfSteps?: number;
|
|
18
|
-
value: number;
|
|
19
|
-
successIcon?: string;
|
|
20
|
-
errorIcon?: string;
|
|
21
|
-
successSVGIcon?: SVGIcon;
|
|
22
|
-
errorSVGIcon?: SVGIcon;
|
|
23
|
-
onChange?: (event: StepChangeEvent) => void;
|
|
24
|
-
onFocus?: (event: StepFocusEvent) => void;
|
|
25
|
-
};
|
|
26
|
-
/** @hidden */
|
|
27
|
-
export declare const StepperContext: React.Context<StepperContextType>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { StepHandle } from './StepHandle';
|
|
6
|
-
import { BaseEvent } from '@progress/kendo-react-common';
|
|
7
|
-
/**
|
|
8
|
-
* The arguments for the `onChange` Step event.
|
|
9
|
-
*/
|
|
10
|
-
export interface StepChangeEvent extends BaseEvent<StepHandle> {
|
|
11
|
-
/**
|
|
12
|
-
* The index of the selected Step.
|
|
13
|
-
*/
|
|
14
|
-
value: number;
|
|
15
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { StepHandle } from './StepHandle';
|
|
6
|
-
import { BaseEvent } from '@progress/kendo-react-common';
|
|
7
|
-
/**
|
|
8
|
-
* The arguments for the `onFocus` Step event.
|
|
9
|
-
*/
|
|
10
|
-
export interface StepFocusEvent extends BaseEvent<StepHandle> {
|
|
11
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
/**
|
|
6
|
-
* The Step ref.
|
|
7
|
-
*/
|
|
8
|
-
export interface StepHandle {
|
|
9
|
-
/**
|
|
10
|
-
* The Step element.
|
|
11
|
-
*/
|
|
12
|
-
element: HTMLLIElement | null;
|
|
13
|
-
/**
|
|
14
|
-
* Focus the Step.
|
|
15
|
-
*/
|
|
16
|
-
focus: () => void;
|
|
17
|
-
}
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { SVGIcon } from '@progress/kendo-react-common';
|
|
6
|
-
import * as React from 'react';
|
|
7
|
-
/**
|
|
8
|
-
* Represents the props of the [KendoReact Step component]({% slug overview_stepper %}).
|
|
9
|
-
*/
|
|
10
|
-
export interface StepProps {
|
|
11
|
-
/**
|
|
12
|
-
* Represents the children that are passed to the Step.
|
|
13
|
-
*/
|
|
14
|
-
children?: any;
|
|
15
|
-
/**
|
|
16
|
-
* Specifies a list of CSS classes that will be added to the Step element.
|
|
17
|
-
*/
|
|
18
|
-
className?: string;
|
|
19
|
-
/**
|
|
20
|
-
* Represents the content that will be rendered inside each Step.
|
|
21
|
-
*
|
|
22
|
-
* @hidden
|
|
23
|
-
*/
|
|
24
|
-
content?: any;
|
|
25
|
-
/**
|
|
26
|
-
* Specifies the current Step.
|
|
27
|
-
*/
|
|
28
|
-
current?: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* Sets a custom property.
|
|
31
|
-
*/
|
|
32
|
-
[customProp: string]: any;
|
|
33
|
-
/**
|
|
34
|
-
* Specifies if the Step is disabled
|
|
35
|
-
* ([see example]({% slug display_modes_stepper %})).
|
|
36
|
-
*/
|
|
37
|
-
disabled?: boolean;
|
|
38
|
-
/**
|
|
39
|
-
* Defines the name for an existing icon in a KendoReact theme.
|
|
40
|
-
* The icon is rendered inside the Step indicator by a `span.k-icon` element
|
|
41
|
-
* ([see example]({% slug display_modes_stepper %})).
|
|
42
|
-
*/
|
|
43
|
-
icon?: string;
|
|
44
|
-
/**
|
|
45
|
-
* Defines the SVG icon.
|
|
46
|
-
* The icon is rendered inside the Step indicator
|
|
47
|
-
* ([see example]({% slug display_modes_stepper %})).
|
|
48
|
-
*/
|
|
49
|
-
svgIcon?: SVGIcon;
|
|
50
|
-
/**
|
|
51
|
-
* Sets the index of the Step that is used to identify it.
|
|
52
|
-
*/
|
|
53
|
-
index?: number;
|
|
54
|
-
/**
|
|
55
|
-
* Specifies the validity of the step
|
|
56
|
-
* ([see example]({% slug display_modes_stepper %})).
|
|
57
|
-
*/
|
|
58
|
-
isValid?: boolean;
|
|
59
|
-
/**
|
|
60
|
-
* Specifies the label of the Step
|
|
61
|
-
* ([see example]({% slug display_modes_stepper %})).
|
|
62
|
-
*/
|
|
63
|
-
label?: string;
|
|
64
|
-
/**
|
|
65
|
-
* Specifies if the step is optional. The validation is not applied to these steps
|
|
66
|
-
* ([see example]({% slug display_modes_stepper %})).
|
|
67
|
-
*/
|
|
68
|
-
optional?: boolean;
|
|
69
|
-
/**
|
|
70
|
-
* Sets additional CSS styles to the Step.
|
|
71
|
-
*/
|
|
72
|
-
style?: React.CSSProperties;
|
|
73
|
-
/**
|
|
74
|
-
* Sets the `tabIndex` property of the Step.
|
|
75
|
-
* Defaults to `0`.
|
|
76
|
-
*/
|
|
77
|
-
tabIndex?: number;
|
|
78
|
-
/**
|
|
79
|
-
* Specifies the text content of the Step indicator
|
|
80
|
-
* ([see example]({% slug display_modes_stepper %})).
|
|
81
|
-
*/
|
|
82
|
-
text?: string;
|
|
83
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { StepperHandle } from '../interfaces/StepperHandle';
|
|
6
|
-
import { BaseEvent } from '@progress/kendo-react-common';
|
|
7
|
-
/**
|
|
8
|
-
* The arguments for the `onChange` Stepper event.
|
|
9
|
-
*/
|
|
10
|
-
export interface StepperChangeEvent extends BaseEvent<StepperHandle> {
|
|
11
|
-
/**
|
|
12
|
-
* The index of the selected Step.
|
|
13
|
-
*/
|
|
14
|
-
value: number;
|
|
15
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { StepperHandle } from '../interfaces/StepperHandle';
|
|
6
|
-
import { BaseEvent } from '@progress/kendo-react-common';
|
|
7
|
-
/**
|
|
8
|
-
* The arguments for the `onFocus` Stepper event.
|
|
9
|
-
*/
|
|
10
|
-
export interface StepperFocusEvent extends BaseEvent<StepperHandle> {
|
|
11
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
/**
|
|
6
|
-
* The Stepper ref.
|
|
7
|
-
*/
|
|
8
|
-
export interface StepperHandle {
|
|
9
|
-
/**
|
|
10
|
-
* The Stepper element.
|
|
11
|
-
*/
|
|
12
|
-
element: HTMLMenuElement | null;
|
|
13
|
-
/**
|
|
14
|
-
* Focus the Stepper's first focusable child.
|
|
15
|
-
*/
|
|
16
|
-
focus: () => void;
|
|
17
|
-
}
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
import { StepProps } from './StepProps';
|
|
7
|
-
import { StepperChangeEvent } from './StepperChangeEvent';
|
|
8
|
-
import { StepperFocusEvent } from './StepperFocusEvent';
|
|
9
|
-
import { SVGIcon } from '@progress/kendo-react-common';
|
|
10
|
-
/**
|
|
11
|
-
* Represents the props of the [KendoReact Stepper component]({% slug overview_stepper %}).
|
|
12
|
-
*/
|
|
13
|
-
export interface StepperProps {
|
|
14
|
-
/**
|
|
15
|
-
* Sets the duration of the Stepper animation. Defaults to `400ms`.
|
|
16
|
-
*/
|
|
17
|
-
animationDuration?: boolean | number;
|
|
18
|
-
/**
|
|
19
|
-
* Represents the children that are passed to the Stepper.
|
|
20
|
-
*/
|
|
21
|
-
children?: any;
|
|
22
|
-
/**
|
|
23
|
-
* Specifies a list of CSS classes that will be added to the Stepper.
|
|
24
|
-
*/
|
|
25
|
-
className?: string;
|
|
26
|
-
/**
|
|
27
|
-
* Represents the `dir` HTML attribute. This is used to switch from LTR to RTL.
|
|
28
|
-
*/
|
|
29
|
-
dir?: string;
|
|
30
|
-
/**
|
|
31
|
-
* Disables the whole Stepper.
|
|
32
|
-
*/
|
|
33
|
-
disabled?: boolean;
|
|
34
|
-
/**
|
|
35
|
-
* Specifies a custom icon that will be rendered inside the step for invalid steps.
|
|
36
|
-
*/
|
|
37
|
-
errorIcon?: string;
|
|
38
|
-
/**
|
|
39
|
-
* Specifies a custom SVG icon that will be rendered inside the step for invalid steps.
|
|
40
|
-
*/
|
|
41
|
-
errorSVGIcon?: SVGIcon;
|
|
42
|
-
/**
|
|
43
|
-
* Overrides the default component responsible for visualizing a single item ([see example]({% slug custom_rendering_stepper %})).
|
|
44
|
-
*
|
|
45
|
-
* The default Component is: [Step]({% slug api_layout_step %}).
|
|
46
|
-
*/
|
|
47
|
-
item?: React.ComponentType<StepProps>;
|
|
48
|
-
/**
|
|
49
|
-
* The collection of steps that will be rendered in the Stepper ([see example]({% slug overview_stepper %})).
|
|
50
|
-
*/
|
|
51
|
-
items: Array<StepProps>;
|
|
52
|
-
/**
|
|
53
|
-
* Specifies the linear flow of the Stepper.
|
|
54
|
-
* ([see example]({% slug linear_mode_stepper %})).
|
|
55
|
-
*/
|
|
56
|
-
linear?: boolean;
|
|
57
|
-
/**
|
|
58
|
-
* Specifies the display mode of the Stepper
|
|
59
|
-
* ([see example]({% slug display_modes_stepper %})).
|
|
60
|
-
* * The possible values are:
|
|
61
|
-
* * (Default) `steps`. Render step indicator and optional label.
|
|
62
|
-
* * `labels`. Render labels only.
|
|
63
|
-
*/
|
|
64
|
-
mode?: 'steps' | 'labels';
|
|
65
|
-
/**
|
|
66
|
-
* Specifies the orientation of the Stepper
|
|
67
|
-
* ([see example]({% slug orientation_stepper %})).
|
|
68
|
-
*
|
|
69
|
-
* The possible values are:
|
|
70
|
-
* * (Default) `horizontal`
|
|
71
|
-
* * `vertical`
|
|
72
|
-
*/
|
|
73
|
-
orientation?: 'horizontal' | 'vertical';
|
|
74
|
-
/**
|
|
75
|
-
* Sets additional CSS styles to the Stepper.
|
|
76
|
-
*/
|
|
77
|
-
style?: React.CSSProperties;
|
|
78
|
-
/**
|
|
79
|
-
* Specifies a custom icon that will be rendered inside the step for valid steps.
|
|
80
|
-
*/
|
|
81
|
-
successIcon?: string;
|
|
82
|
-
/**
|
|
83
|
-
* Specifies a custom SVG icon that will be rendered inside the step for valid steps.
|
|
84
|
-
*/
|
|
85
|
-
successSVGIcon?: SVGIcon;
|
|
86
|
-
/**
|
|
87
|
-
* Specifies the index of the selected Step.
|
|
88
|
-
*/
|
|
89
|
-
value: number;
|
|
90
|
-
/**
|
|
91
|
-
* The event handler that will be fired when the value is changed.
|
|
92
|
-
*/
|
|
93
|
-
onChange?: (event: StepperChangeEvent) => void;
|
|
94
|
-
/**
|
|
95
|
-
* The event handler that will be fired when a Step is focused.
|
|
96
|
-
*/
|
|
97
|
-
onFocus?: (event: StepperFocusEvent) => void;
|
|
98
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
/**
|
|
6
|
-
* @hidden
|
|
7
|
-
*/
|
|
8
|
-
export declare const optionalText = "stepper.optionalText";
|
|
9
|
-
/**
|
|
10
|
-
* @hidden
|
|
11
|
-
*/
|
|
12
|
-
export declare const progBarAriaLabel = "stepper.progBarAriaLabel";
|
|
13
|
-
/**
|
|
14
|
-
* @hidden
|
|
15
|
-
*/
|
|
16
|
-
export declare const messages: {
|
|
17
|
-
"stepper.optionalText": string;
|
|
18
|
-
"stepper.progBarAriaLabel": string;
|
|
19
|
-
};
|