@progress/kendo-react-layout 6.1.1 → 7.0.0-develop.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +1 -1
- package/{dist/npm/actionsheet → actionsheet}/ActionSheet.d.ts +5 -1
- package/actionsheet/ActionSheetContent.d.ts +14 -0
- package/actionsheet/ActionSheetFooter.d.ts +14 -0
- package/actionsheet/ActionSheetHeader.d.ts +14 -0
- package/actionsheet/ActionSheetItem.d.ts +10 -0
- package/actionsheet/interfaces/ActionSheetChildrenProps.d.ts +17 -0
- package/{dist/npm/actionsheet → actionsheet}/interfaces/ActionSheetItemProps.d.ts +4 -1
- package/{dist/npm/appbar → appbar}/AppBar.d.ts +4 -0
- package/{dist/npm/appbar → appbar}/AppBarSection.d.ts +4 -0
- package/{dist/npm/appbar → appbar}/AppBarSpacer.d.ts +4 -0
- package/{dist/es/appbar → appbar}/interfaces/AppBarProps.d.ts +7 -3
- package/{dist/npm/appbar → appbar}/interfaces/AppBarSectionProps.d.ts +4 -0
- package/{dist/npm/appbar → appbar}/interfaces/AppBarSpacerProps.d.ts +4 -0
- package/{dist/es/bottomnavigation → bottomnavigation}/BottomNavigation.d.ts +4 -0
- package/{dist/npm/bottomnavigation → bottomnavigation}/BottomNavigationItem.d.ts +5 -1
- package/{dist/npm/bottomnavigation → bottomnavigation}/BottomNavigationItemProps.d.ts +4 -1
- package/{dist/es/bottomnavigation → bottomnavigation}/BottomNavigationProps.d.ts +8 -6
- package/{dist/npm/bottomnavigation → bottomnavigation}/models/events.d.ts +4 -0
- package/{dist/npm/bottomnavigation → bottomnavigation}/models/utils.d.ts +4 -0
- package/{dist/npm/breadcrumb → breadcrumb}/Breadcrumb.d.ts +4 -0
- package/{dist/npm/breadcrumb → breadcrumb}/BreadcrumbDelimiter.d.ts +4 -0
- package/{dist/npm/breadcrumb → breadcrumb}/BreadcrumbLink.d.ts +4 -0
- package/{dist/es/breadcrumb → breadcrumb}/BreadcrumbListItem.d.ts +4 -0
- package/{dist/npm/breadcrumb → breadcrumb}/BreadcrumbOrderedList.d.ts +4 -0
- package/card/Avatar.d.ts +7 -0
- package/card/Card.d.ts +8 -0
- package/card/CardActions.d.ts +7 -0
- package/card/CardBody.d.ts +7 -0
- package/card/CardFooter.d.ts +7 -0
- package/card/CardHeader.d.ts +7 -0
- package/card/CardImage.d.ts +7 -0
- package/card/CardSubtitle.d.ts +7 -0
- package/card/CardTitle.d.ts +7 -0
- package/{dist/npm/card → card}/interfaces/AvatarProps.d.ts +4 -1
- package/{dist/es/card → card}/interfaces/CardActionsProps.d.ts +4 -1
- package/card/interfaces/CardBodyProps.d.ts +18 -0
- package/card/interfaces/CardFooterProps.d.ts +18 -0
- package/card/interfaces/CardHandle.d.ts +18 -0
- package/card/interfaces/CardHeaderProps.d.ts +18 -0
- package/{dist/es/card → card}/interfaces/CardImageProps.d.ts +4 -1
- package/{dist/es/card → card}/interfaces/CardProps.d.ts +4 -1
- package/card/interfaces/CardSubtitleProps.d.ts +18 -0
- package/card/interfaces/CardTitleProps.d.ts +18 -0
- package/{dist/npm/card → card}/interfaces/Enums.d.ts +4 -0
- package/{dist/npm/contextmenu → contextmenu}/ContextMenu.d.ts +5 -1
- package/dist/cdn/js/kendo-react-layout.js +5 -1
- package/{dist/es/drawer → drawer}/Drawer.d.ts +4 -0
- package/{dist/es/drawer → drawer}/DrawerContent.d.ts +4 -0
- package/{dist/npm/drawer → drawer}/DrawerItem.d.ts +4 -0
- package/{dist/npm/drawer → drawer}/DrawerNavigation.d.ts +4 -0
- package/{dist/npm/drawer → drawer}/context/DrawerContext.d.ts +5 -1
- package/drawer/interfaces/DrawerAnimation.d.ts +18 -0
- package/{dist/es/drawer → drawer}/interfaces/DrawerContentProps.d.ts +4 -1
- package/drawer/interfaces/DrawerItemHandle.d.ts +21 -0
- package/{dist/es/drawer → drawer}/interfaces/DrawerItemProps.d.ts +4 -1
- package/{dist/npm/drawer → drawer}/interfaces/DrawerNavigationProps.d.ts +4 -1
- package/{dist/npm/drawer → drawer}/interfaces/DrawerProps.d.ts +4 -0
- package/{dist/es/drawer → drawer}/interfaces/DrawerSelectEvent.d.ts +4 -0
- package/expansionpanel/ExpansionPanel.d.ts +10 -0
- package/expansionpanel/ExpansionPanelContent.d.ts +9 -0
- package/expansionpanel/index.d.ts +7 -0
- package/{dist/es/expansionpanel → expansionpanel}/interfaces.d.ts +4 -1
- package/{dist/es/gridlayout → gridlayout}/GridLayout.d.ts +4 -0
- package/{dist/es/gridlayout → gridlayout}/GridLayoutItem.d.ts +4 -0
- package/gridlayout/interfaces/GridLayoutColumnProps.d.ts +13 -0
- package/{dist/npm/gridlayout → gridlayout}/interfaces/GridLayoutItemProps.d.ts +4 -0
- package/{dist/npm/gridlayout → gridlayout}/interfaces/GridLayoutProps.d.ts +4 -0
- package/gridlayout/interfaces/GridLayoutRowProps.d.ts +13 -0
- package/{dist/npm/main.d.ts → index.d.ts} +6 -2
- package/index.js +5 -0
- package/index.mjs +5012 -0
- package/{dist/es/menu → menu}/BaseMenuItemInternalProps.d.ts +4 -0
- package/{dist/es/menu → menu}/MenuProps.d.ts +4 -1
- package/{dist/es/menu → menu}/components/Menu.d.ts +5 -1
- package/{dist/es/menu → menu}/components/MenuItem.d.ts +4 -0
- package/{dist/es/menu → menu}/components/MenuItemArrow.d.ts +5 -1
- package/{dist/es/menu → menu}/components/MenuItemInternal.d.ts +24 -1
- package/{dist/es/menu → menu}/components/MenuItemLink.d.ts +5 -1
- package/{dist/npm/menu → menu}/consts.d.ts +4 -0
- package/{dist/es/menu → menu}/events.d.ts +4 -0
- package/{dist/es/menu → menu}/models/BaseMenuItem.d.ts +4 -1
- package/{dist/es/menu → menu}/models/MenuItemModel.d.ts +4 -0
- package/menu/utils/DirectionHolder.d.ts +15 -0
- package/{dist/npm/menu → menu}/utils/MouseOverHandler.d.ts +4 -0
- package/{dist/es/menu → menu}/utils/getNewItemIdUponKeyboardNavigation.d.ts +4 -0
- package/menu/utils/hoverDelay.d.ts +13 -0
- package/{dist/es/menu → menu}/utils/itemsIdsUtils.d.ts +4 -0
- package/{dist/npm/menu → menu}/utils/misc.d.ts +4 -0
- package/menu/utils/prepareInputItemsForInternalWork.d.ts +10 -0
- package/package-metadata.d.ts +9 -0
- package/package.json +31 -48
- package/{dist/es/panelbar → panelbar}/PanelBar.d.ts +6 -2
- package/{dist/npm/panelbar → panelbar}/PanelBarItem.d.ts +6 -2
- package/panelbar/interfaces/NavigationAction.d.ts +12 -0
- package/panelbar/interfaces/PanelBarItemClickEventArguments.d.ts +12 -0
- package/{dist/es/panelbar → panelbar}/interfaces/PanelBarItemProps.d.ts +4 -1
- package/{dist/es/panelbar → panelbar}/interfaces/PanelBarProps.d.ts +6 -3
- package/{dist/es/panelbar → panelbar}/interfaces/PanelBarSelectEventArguments.d.ts +4 -1
- package/panelbar/interfaces/RenderPanelBarItem.d.ts +19 -0
- package/{dist/es/panelbar → panelbar}/util.d.ts +5 -1
- package/{dist/es/splitter → splitter}/Splitter.d.ts +5 -1
- package/{dist/npm/splitter → splitter}/SplitterBar.d.ts +5 -1
- package/{dist/npm/splitter → splitter}/SplitterPane.d.ts +5 -1
- package/splitter/messages/index.d.ts +14 -0
- package/{dist/npm/stacklayout → stacklayout}/StackLayout.d.ts +4 -0
- package/{dist/es/stacklayout → stacklayout}/StackLayoutProps.d.ts +5 -1
- package/{dist/es/stepper → stepper}/Step.d.ts +4 -0
- package/{dist/es/stepper → stepper}/Stepper.d.ts +4 -0
- package/stepper/contants.d.ts +12 -0
- package/{dist/es/stepper → stepper}/context/StepperContext.d.ts +5 -1
- package/stepper/interfaces/StepChangeEvent.d.ts +15 -0
- package/stepper/interfaces/StepFocusEvent.d.ts +11 -0
- package/stepper/interfaces/StepHandle.d.ts +17 -0
- package/{dist/es/stepper → stepper}/interfaces/StepProps.d.ts +4 -0
- package/stepper/interfaces/StepperChangeEvent.d.ts +15 -0
- package/stepper/interfaces/StepperFocusEvent.d.ts +11 -0
- package/stepper/interfaces/StepperHandle.d.ts +17 -0
- package/{dist/npm/stepper → stepper}/interfaces/StepperProps.d.ts +4 -0
- package/stepper/messages/index.d.ts +19 -0
- package/{dist/es/tabstrip → tabstrip}/TabStrip.d.ts +5 -1
- package/{dist/npm/tabstrip → tabstrip}/TabStripContent.d.ts +5 -1
- package/{dist/es/tabstrip → tabstrip}/TabStripNavigation.d.ts +5 -1
- package/{dist/npm/tabstrip → tabstrip}/TabStripNavigationItem.d.ts +5 -1
- package/{dist/es/tabstrip → tabstrip}/TabStripTab.d.ts +4 -0
- package/{dist/es/tilelayout → tilelayout}/InternalTile.d.ts +6 -2
- package/{dist/es/tilelayout → tilelayout}/ResizeHandlers.d.ts +5 -1
- package/{dist/npm/tilelayout → tilelayout}/TileLayout.d.ts +6 -2
- package/{dist/es/tilelayout/interfaces/main.d.ts → tilelayout/interfaces/index.d.ts} +6 -3
- package/{dist/npm/timeline → timeline}/Timeline.d.ts +4 -0
- package/{dist/npm/timeline → timeline}/TimelineCard.d.ts +4 -0
- package/timeline/TimelineHorizontal.d.ts +7 -0
- package/{dist/es/timeline → timeline}/TimelineVertical.d.ts +4 -0
- package/{dist/npm/timeline → timeline}/utils.d.ts +4 -0
- package/about.md +0 -3
- package/dist/es/actionsheet/ActionSheet.d.ts +0 -134
- package/dist/es/actionsheet/ActionSheet.js +0 -267
- package/dist/es/actionsheet/ActionSheetContent.d.ts +0 -10
- package/dist/es/actionsheet/ActionSheetContent.js +0 -26
- package/dist/es/actionsheet/ActionSheetFooter.d.ts +0 -10
- package/dist/es/actionsheet/ActionSheetFooter.js +0 -26
- package/dist/es/actionsheet/ActionSheetHeader.d.ts +0 -10
- package/dist/es/actionsheet/ActionSheetHeader.js +0 -26
- package/dist/es/actionsheet/ActionSheetItem.d.ts +0 -6
- package/dist/es/actionsheet/ActionSheetItem.js +0 -38
- package/dist/es/actionsheet/interfaces/ActionSheetChildrenProps.d.ts +0 -13
- package/dist/es/actionsheet/interfaces/ActionSheetChildrenProps.js +0 -5
- package/dist/es/actionsheet/interfaces/ActionSheetItemProps.d.ts +0 -67
- package/dist/es/actionsheet/interfaces/ActionSheetItemProps.js +0 -1
- package/dist/es/appbar/AppBar.d.ts +0 -50
- package/dist/es/appbar/AppBar.js +0 -84
- package/dist/es/appbar/AppBarSection.d.ts +0 -49
- package/dist/es/appbar/AppBarSection.js +0 -58
- package/dist/es/appbar/AppBarSpacer.d.ts +0 -50
- package/dist/es/appbar/AppBarSpacer.js +0 -66
- package/dist/es/appbar/interfaces/AppBarProps.js +0 -1
- package/dist/es/appbar/interfaces/AppBarSectionProps.d.ts +0 -18
- package/dist/es/appbar/interfaces/AppBarSectionProps.js +0 -1
- package/dist/es/appbar/interfaces/AppBarSpacerProps.d.ts +0 -19
- package/dist/es/appbar/interfaces/AppBarSpacerProps.js +0 -1
- package/dist/es/bottomnavigation/BottomNavigation.js +0 -133
- package/dist/es/bottomnavigation/BottomNavigationItem.d.ts +0 -12
- package/dist/es/bottomnavigation/BottomNavigationItem.js +0 -53
- package/dist/es/bottomnavigation/BottomNavigationItemProps.d.ts +0 -61
- package/dist/es/bottomnavigation/BottomNavigationItemProps.js +0 -1
- package/dist/es/bottomnavigation/BottomNavigationProps.js +0 -1
- package/dist/es/bottomnavigation/models/events.d.ts +0 -20
- package/dist/es/bottomnavigation/models/events.js +0 -1
- package/dist/es/bottomnavigation/models/utils.d.ts +0 -36
- package/dist/es/bottomnavigation/models/utils.js +0 -36
- package/dist/es/breadcrumb/Breadcrumb.d.ts +0 -159
- package/dist/es/breadcrumb/Breadcrumb.js +0 -118
- package/dist/es/breadcrumb/BreadcrumbDelimiter.d.ts +0 -43
- package/dist/es/breadcrumb/BreadcrumbDelimiter.js +0 -32
- package/dist/es/breadcrumb/BreadcrumbLink.d.ts +0 -131
- package/dist/es/breadcrumb/BreadcrumbLink.js +0 -110
- package/dist/es/breadcrumb/BreadcrumbListItem.js +0 -36
- package/dist/es/breadcrumb/BreadcrumbOrderedList.d.ts +0 -55
- package/dist/es/breadcrumb/BreadcrumbOrderedList.js +0 -36
- package/dist/es/card/Avatar.d.ts +0 -3
- package/dist/es/card/Avatar.js +0 -39
- package/dist/es/card/Card.d.ts +0 -4
- package/dist/es/card/Card.js +0 -55
- package/dist/es/card/CardActions.d.ts +0 -3
- package/dist/es/card/CardActions.js +0 -23
- package/dist/es/card/CardBody.d.ts +0 -3
- package/dist/es/card/CardBody.js +0 -9
- package/dist/es/card/CardFooter.d.ts +0 -3
- package/dist/es/card/CardFooter.js +0 -9
- package/dist/es/card/CardHeader.d.ts +0 -3
- package/dist/es/card/CardHeader.js +0 -9
- package/dist/es/card/CardImage.d.ts +0 -3
- package/dist/es/card/CardImage.js +0 -22
- package/dist/es/card/CardSubtitle.d.ts +0 -3
- package/dist/es/card/CardSubtitle.js +0 -9
- package/dist/es/card/CardTitle.d.ts +0 -3
- package/dist/es/card/CardTitle.js +0 -9
- package/dist/es/card/interfaces/AvatarProps.d.ts +0 -85
- package/dist/es/card/interfaces/AvatarProps.js +0 -1
- package/dist/es/card/interfaces/CardActionsProps.js +0 -1
- package/dist/es/card/interfaces/CardBodyProps.d.ts +0 -15
- package/dist/es/card/interfaces/CardBodyProps.js +0 -1
- package/dist/es/card/interfaces/CardFooterProps.d.ts +0 -15
- package/dist/es/card/interfaces/CardFooterProps.js +0 -1
- package/dist/es/card/interfaces/CardHandle.d.ts +0 -14
- package/dist/es/card/interfaces/CardHandle.js +0 -1
- package/dist/es/card/interfaces/CardHeaderProps.d.ts +0 -15
- package/dist/es/card/interfaces/CardHeaderProps.js +0 -1
- package/dist/es/card/interfaces/CardImageProps.js +0 -1
- package/dist/es/card/interfaces/CardProps.js +0 -1
- package/dist/es/card/interfaces/CardSubtitleProps.d.ts +0 -15
- package/dist/es/card/interfaces/CardSubtitleProps.js +0 -1
- package/dist/es/card/interfaces/CardTitleProps.d.ts +0 -15
- package/dist/es/card/interfaces/CardTitleProps.js +0 -1
- package/dist/es/card/interfaces/Enums.d.ts +0 -23
- package/dist/es/card/interfaces/Enums.js +0 -27
- package/dist/es/contextmenu/ContextMenu.d.ts +0 -27
- package/dist/es/contextmenu/ContextMenu.js +0 -36
- package/dist/es/drawer/Drawer.js +0 -118
- package/dist/es/drawer/DrawerContent.js +0 -50
- package/dist/es/drawer/DrawerItem.d.ts +0 -32
- package/dist/es/drawer/DrawerItem.js +0 -101
- package/dist/es/drawer/DrawerNavigation.d.ts +0 -43
- package/dist/es/drawer/DrawerNavigation.js +0 -153
- package/dist/es/drawer/context/DrawerContext.d.ts +0 -20
- package/dist/es/drawer/context/DrawerContext.js +0 -16
- package/dist/es/drawer/interfaces/DrawerAnimation.d.ts +0 -14
- package/dist/es/drawer/interfaces/DrawerAnimation.js +0 -1
- package/dist/es/drawer/interfaces/DrawerContentProps.js +0 -1
- package/dist/es/drawer/interfaces/DrawerItemHandle.d.ts +0 -17
- package/dist/es/drawer/interfaces/DrawerItemHandle.js +0 -1
- package/dist/es/drawer/interfaces/DrawerItemProps.js +0 -1
- package/dist/es/drawer/interfaces/DrawerNavigationProps.d.ts +0 -18
- package/dist/es/drawer/interfaces/DrawerNavigationProps.js +0 -1
- package/dist/es/drawer/interfaces/DrawerProps.d.ts +0 -82
- package/dist/es/drawer/interfaces/DrawerProps.js +0 -1
- package/dist/es/drawer/interfaces/DrawerSelectEvent.js +0 -1
- package/dist/es/expansionpanel/ExpansionPanel.d.ts +0 -6
- package/dist/es/expansionpanel/ExpansionPanel.js +0 -76
- package/dist/es/expansionpanel/ExpansionPanelContent.d.ts +0 -5
- package/dist/es/expansionpanel/ExpansionPanelContent.js +0 -21
- package/dist/es/expansionpanel/index.d.ts +0 -3
- package/dist/es/expansionpanel/index.js +0 -3
- package/dist/es/expansionpanel/interfaces.js +0 -1
- package/dist/es/gridlayout/GridLayout.js +0 -92
- package/dist/es/gridlayout/GridLayoutItem.js +0 -60
- package/dist/es/gridlayout/interfaces/GridLayoutColumnProps.d.ts +0 -9
- package/dist/es/gridlayout/interfaces/GridLayoutColumnProps.js +0 -1
- package/dist/es/gridlayout/interfaces/GridLayoutItemProps.d.ts +0 -40
- package/dist/es/gridlayout/interfaces/GridLayoutItemProps.js +0 -1
- package/dist/es/gridlayout/interfaces/GridLayoutProps.d.ts +0 -95
- package/dist/es/gridlayout/interfaces/GridLayoutProps.js +0 -1
- package/dist/es/gridlayout/interfaces/GridLayoutRowProps.d.ts +0 -9
- package/dist/es/gridlayout/interfaces/GridLayoutRowProps.js +0 -1
- package/dist/es/main.d.ts +0 -94
- package/dist/es/main.js +0 -94
- package/dist/es/menu/BaseMenuItemInternalProps.js +0 -1
- package/dist/es/menu/MenuProps.js +0 -2
- package/dist/es/menu/components/Menu.js +0 -277
- package/dist/es/menu/components/MenuItem.js +0 -46
- package/dist/es/menu/components/MenuItemArrow.js +0 -78
- package/dist/es/menu/components/MenuItemInternal.js +0 -165
- package/dist/es/menu/components/MenuItemInternalsList.d.ts +0 -22
- package/dist/es/menu/components/MenuItemInternalsList.js +0 -48
- package/dist/es/menu/components/MenuItemLink.js +0 -49
- package/dist/es/menu/consts.d.ts +0 -54
- package/dist/es/menu/consts.js +0 -70
- package/dist/es/menu/events.js +0 -2
- package/dist/es/menu/models/BaseMenuItem.js +0 -3
- package/dist/es/menu/models/MenuItemModel.js +0 -1
- package/dist/es/menu/utils/DirectionHolder.d.ts +0 -11
- package/dist/es/menu/utils/DirectionHolder.js +0 -24
- package/dist/es/menu/utils/MouseOverHandler.d.ts +0 -17
- package/dist/es/menu/utils/MouseOverHandler.js +0 -65
- package/dist/es/menu/utils/getNewItemIdUponKeyboardNavigation.js +0 -202
- package/dist/es/menu/utils/hoverDelay.d.ts +0 -9
- package/dist/es/menu/utils/hoverDelay.js +0 -17
- package/dist/es/menu/utils/itemsIdsUtils.js +0 -119
- package/dist/es/menu/utils/misc.d.ts +0 -16
- package/dist/es/menu/utils/misc.js +0 -42
- package/dist/es/menu/utils/prepareInputItemsForInternalWork.d.ts +0 -6
- package/dist/es/menu/utils/prepareInputItemsForInternalWork.js +0 -105
- package/dist/es/package-metadata.d.ts +0 -5
- package/dist/es/package-metadata.js +0 -11
- package/dist/es/panelbar/PanelBar.js +0 -291
- package/dist/es/panelbar/PanelBarItem.d.ts +0 -48
- package/dist/es/panelbar/PanelBarItem.js +0 -153
- package/dist/es/panelbar/interfaces/NavigationAction.d.ts +0 -8
- package/dist/es/panelbar/interfaces/NavigationAction.js +0 -9
- package/dist/es/panelbar/interfaces/PanelBarItemClickEventArguments.d.ts +0 -8
- package/dist/es/panelbar/interfaces/PanelBarItemClickEventArguments.js +0 -1
- package/dist/es/panelbar/interfaces/PanelBarItemProps.js +0 -2
- package/dist/es/panelbar/interfaces/PanelBarProps.js +0 -1
- package/dist/es/panelbar/interfaces/PanelBarSelectEventArguments.js +0 -1
- package/dist/es/panelbar/interfaces/RenderPanelBarItem.d.ts +0 -16
- package/dist/es/panelbar/interfaces/RenderPanelBarItem.js +0 -1
- package/dist/es/panelbar/util.js +0 -197
- package/dist/es/splitter/Splitter.js +0 -383
- package/dist/es/splitter/SplitterBar.d.ts +0 -40
- package/dist/es/splitter/SplitterBar.js +0 -183
- package/dist/es/splitter/SplitterPane.d.ts +0 -53
- package/dist/es/splitter/SplitterPane.js +0 -46
- package/dist/es/splitter/messages/index.d.ts +0 -10
- package/dist/es/splitter/messages/index.js +0 -11
- package/dist/es/stacklayout/StackLayout.d.ts +0 -37
- package/dist/es/stacklayout/StackLayout.js +0 -87
- package/dist/es/stacklayout/StackLayoutProps.js +0 -1
- package/dist/es/stepper/Step.js +0 -141
- package/dist/es/stepper/Stepper.js +0 -224
- package/dist/es/stepper/contants.d.ts +0 -8
- package/dist/es/stepper/contants.js +0 -8
- package/dist/es/stepper/context/StepperContext.js +0 -11
- package/dist/es/stepper/interfaces/StepChangeEvent.d.ts +0 -11
- package/dist/es/stepper/interfaces/StepChangeEvent.js +0 -1
- package/dist/es/stepper/interfaces/StepFocusEvent.d.ts +0 -7
- package/dist/es/stepper/interfaces/StepFocusEvent.js +0 -1
- package/dist/es/stepper/interfaces/StepHandle.d.ts +0 -13
- package/dist/es/stepper/interfaces/StepHandle.js +0 -4
- package/dist/es/stepper/interfaces/StepProps.js +0 -1
- package/dist/es/stepper/interfaces/StepperChangeEvent.d.ts +0 -11
- package/dist/es/stepper/interfaces/StepperChangeEvent.js +0 -1
- package/dist/es/stepper/interfaces/StepperFocusEvent.d.ts +0 -7
- package/dist/es/stepper/interfaces/StepperFocusEvent.js +0 -1
- package/dist/es/stepper/interfaces/StepperHandle.d.ts +0 -13
- package/dist/es/stepper/interfaces/StepperHandle.js +0 -4
- package/dist/es/stepper/interfaces/StepperOnNavigateEvent.d.ts +0 -26
- package/dist/es/stepper/interfaces/StepperOnNavigateEvent.js +0 -16
- package/dist/es/stepper/interfaces/StepperProps.d.ts +0 -94
- package/dist/es/stepper/interfaces/StepperProps.js +0 -1
- package/dist/es/stepper/messages/index.d.ts +0 -15
- package/dist/es/stepper/messages/index.js +0 -16
- package/dist/es/tabstrip/TabStrip.js +0 -218
- package/dist/es/tabstrip/TabStripContent.d.ts +0 -50
- package/dist/es/tabstrip/TabStripContent.js +0 -95
- package/dist/es/tabstrip/TabStripNavigation.js +0 -257
- package/dist/es/tabstrip/TabStripNavigationItem.d.ts +0 -67
- package/dist/es/tabstrip/TabStripNavigationItem.js +0 -106
- package/dist/es/tabstrip/TabStripTab.js +0 -47
- package/dist/es/tilelayout/InternalTile.js +0 -331
- package/dist/es/tilelayout/ResizeHandlers.js +0 -59
- package/dist/es/tilelayout/TileLayout.d.ts +0 -149
- package/dist/es/tilelayout/TileLayout.js +0 -178
- package/dist/es/tilelayout/interfaces/main.js +0 -1
- package/dist/es/timeline/Timeline.d.ts +0 -98
- package/dist/es/timeline/Timeline.js +0 -37
- package/dist/es/timeline/TimelineCard.d.ts +0 -34
- package/dist/es/timeline/TimelineCard.js +0 -62
- package/dist/es/timeline/TimelineHorizontal.d.ts +0 -3
- package/dist/es/timeline/TimelineHorizontal.js +0 -291
- package/dist/es/timeline/TimelineVertical.js +0 -72
- package/dist/es/timeline/utils.d.ts +0 -15
- package/dist/es/timeline/utils.js +0 -26
- package/dist/npm/actionsheet/ActionSheet.js +0 -270
- package/dist/npm/actionsheet/ActionSheetContent.d.ts +0 -10
- package/dist/npm/actionsheet/ActionSheetContent.js +0 -30
- package/dist/npm/actionsheet/ActionSheetFooter.d.ts +0 -10
- package/dist/npm/actionsheet/ActionSheetFooter.js +0 -30
- package/dist/npm/actionsheet/ActionSheetHeader.d.ts +0 -10
- package/dist/npm/actionsheet/ActionSheetHeader.js +0 -30
- package/dist/npm/actionsheet/ActionSheetItem.d.ts +0 -6
- package/dist/npm/actionsheet/ActionSheetItem.js +0 -42
- package/dist/npm/actionsheet/interfaces/ActionSheetChildrenProps.d.ts +0 -13
- package/dist/npm/actionsheet/interfaces/ActionSheetChildrenProps.js +0 -6
- package/dist/npm/actionsheet/interfaces/ActionSheetItemProps.js +0 -2
- package/dist/npm/appbar/AppBar.js +0 -87
- package/dist/npm/appbar/AppBarSection.js +0 -61
- package/dist/npm/appbar/AppBarSpacer.js +0 -69
- package/dist/npm/appbar/interfaces/AppBarProps.d.ts +0 -79
- package/dist/npm/appbar/interfaces/AppBarProps.js +0 -2
- package/dist/npm/appbar/interfaces/AppBarSectionProps.js +0 -2
- package/dist/npm/appbar/interfaces/AppBarSpacerProps.js +0 -2
- package/dist/npm/bottomnavigation/BottomNavigation.d.ts +0 -38
- package/dist/npm/bottomnavigation/BottomNavigation.js +0 -136
- package/dist/npm/bottomnavigation/BottomNavigationItem.js +0 -56
- package/dist/npm/bottomnavigation/BottomNavigationItemProps.js +0 -2
- package/dist/npm/bottomnavigation/BottomNavigationProps.d.ts +0 -155
- package/dist/npm/bottomnavigation/BottomNavigationProps.js +0 -2
- package/dist/npm/bottomnavigation/models/events.js +0 -2
- package/dist/npm/bottomnavigation/models/utils.js +0 -39
- package/dist/npm/breadcrumb/Breadcrumb.js +0 -121
- package/dist/npm/breadcrumb/BreadcrumbDelimiter.js +0 -35
- package/dist/npm/breadcrumb/BreadcrumbLink.js +0 -113
- package/dist/npm/breadcrumb/BreadcrumbListItem.d.ts +0 -51
- package/dist/npm/breadcrumb/BreadcrumbListItem.js +0 -39
- package/dist/npm/breadcrumb/BreadcrumbOrderedList.js +0 -39
- package/dist/npm/card/Avatar.d.ts +0 -3
- package/dist/npm/card/Avatar.js +0 -43
- package/dist/npm/card/Card.d.ts +0 -4
- package/dist/npm/card/Card.js +0 -58
- package/dist/npm/card/CardActions.d.ts +0 -3
- package/dist/npm/card/CardActions.js +0 -27
- package/dist/npm/card/CardBody.d.ts +0 -3
- package/dist/npm/card/CardBody.js +0 -13
- package/dist/npm/card/CardFooter.d.ts +0 -3
- package/dist/npm/card/CardFooter.js +0 -13
- package/dist/npm/card/CardHeader.d.ts +0 -3
- package/dist/npm/card/CardHeader.js +0 -13
- package/dist/npm/card/CardImage.d.ts +0 -3
- package/dist/npm/card/CardImage.js +0 -26
- package/dist/npm/card/CardSubtitle.d.ts +0 -3
- package/dist/npm/card/CardSubtitle.js +0 -13
- package/dist/npm/card/CardTitle.d.ts +0 -3
- package/dist/npm/card/CardTitle.js +0 -13
- package/dist/npm/card/interfaces/AvatarProps.js +0 -2
- package/dist/npm/card/interfaces/CardActionsProps.d.ts +0 -35
- package/dist/npm/card/interfaces/CardActionsProps.js +0 -2
- package/dist/npm/card/interfaces/CardBodyProps.d.ts +0 -15
- package/dist/npm/card/interfaces/CardBodyProps.js +0 -2
- package/dist/npm/card/interfaces/CardFooterProps.d.ts +0 -15
- package/dist/npm/card/interfaces/CardFooterProps.js +0 -2
- package/dist/npm/card/interfaces/CardHandle.d.ts +0 -14
- package/dist/npm/card/interfaces/CardHandle.js +0 -2
- package/dist/npm/card/interfaces/CardHeaderProps.d.ts +0 -15
- package/dist/npm/card/interfaces/CardHeaderProps.js +0 -2
- package/dist/npm/card/interfaces/CardImageProps.d.ts +0 -19
- package/dist/npm/card/interfaces/CardImageProps.js +0 -2
- package/dist/npm/card/interfaces/CardProps.d.ts +0 -45
- package/dist/npm/card/interfaces/CardProps.js +0 -2
- package/dist/npm/card/interfaces/CardSubtitleProps.d.ts +0 -15
- package/dist/npm/card/interfaces/CardSubtitleProps.js +0 -2
- package/dist/npm/card/interfaces/CardTitleProps.d.ts +0 -15
- package/dist/npm/card/interfaces/CardTitleProps.js +0 -2
- package/dist/npm/card/interfaces/Enums.js +0 -30
- package/dist/npm/contextmenu/ContextMenu.js +0 -40
- package/dist/npm/drawer/Drawer.d.ts +0 -40
- package/dist/npm/drawer/Drawer.js +0 -121
- package/dist/npm/drawer/DrawerContent.d.ts +0 -39
- package/dist/npm/drawer/DrawerContent.js +0 -53
- package/dist/npm/drawer/DrawerItem.js +0 -104
- package/dist/npm/drawer/DrawerNavigation.js +0 -156
- package/dist/npm/drawer/context/DrawerContext.js +0 -19
- package/dist/npm/drawer/interfaces/DrawerAnimation.d.ts +0 -14
- package/dist/npm/drawer/interfaces/DrawerAnimation.js +0 -2
- package/dist/npm/drawer/interfaces/DrawerContentProps.d.ts +0 -18
- package/dist/npm/drawer/interfaces/DrawerContentProps.js +0 -2
- package/dist/npm/drawer/interfaces/DrawerItemHandle.d.ts +0 -17
- package/dist/npm/drawer/interfaces/DrawerItemHandle.js +0 -2
- package/dist/npm/drawer/interfaces/DrawerItemProps.d.ts +0 -61
- package/dist/npm/drawer/interfaces/DrawerItemProps.js +0 -2
- package/dist/npm/drawer/interfaces/DrawerNavigationProps.js +0 -2
- package/dist/npm/drawer/interfaces/DrawerProps.js +0 -2
- package/dist/npm/drawer/interfaces/DrawerSelectEvent.d.ts +0 -15
- package/dist/npm/drawer/interfaces/DrawerSelectEvent.js +0 -2
- package/dist/npm/expansionpanel/ExpansionPanel.d.ts +0 -6
- package/dist/npm/expansionpanel/ExpansionPanel.js +0 -79
- package/dist/npm/expansionpanel/ExpansionPanelContent.d.ts +0 -5
- package/dist/npm/expansionpanel/ExpansionPanelContent.js +0 -24
- package/dist/npm/expansionpanel/index.d.ts +0 -3
- package/dist/npm/expansionpanel/index.js +0 -19
- package/dist/npm/expansionpanel/interfaces.d.ts +0 -89
- package/dist/npm/expansionpanel/interfaces.js +0 -2
- package/dist/npm/gridlayout/GridLayout.d.ts +0 -39
- package/dist/npm/gridlayout/GridLayout.js +0 -95
- package/dist/npm/gridlayout/GridLayoutItem.d.ts +0 -38
- package/dist/npm/gridlayout/GridLayoutItem.js +0 -63
- package/dist/npm/gridlayout/interfaces/GridLayoutColumnProps.d.ts +0 -9
- package/dist/npm/gridlayout/interfaces/GridLayoutColumnProps.js +0 -2
- package/dist/npm/gridlayout/interfaces/GridLayoutItemProps.js +0 -2
- package/dist/npm/gridlayout/interfaces/GridLayoutProps.js +0 -2
- package/dist/npm/gridlayout/interfaces/GridLayoutRowProps.d.ts +0 -9
- package/dist/npm/gridlayout/interfaces/GridLayoutRowProps.js +0 -2
- package/dist/npm/main.js +0 -115
- package/dist/npm/menu/BaseMenuItemInternalProps.d.ts +0 -20
- package/dist/npm/menu/BaseMenuItemInternalProps.js +0 -2
- package/dist/npm/menu/MenuProps.d.ts +0 -68
- package/dist/npm/menu/MenuProps.js +0 -3
- package/dist/npm/menu/components/Menu.d.ts +0 -109
- package/dist/npm/menu/components/Menu.js +0 -280
- package/dist/npm/menu/components/MenuItem.d.ts +0 -29
- package/dist/npm/menu/components/MenuItem.js +0 -49
- package/dist/npm/menu/components/MenuItemArrow.d.ts +0 -46
- package/dist/npm/menu/components/MenuItemArrow.js +0 -81
- package/dist/npm/menu/components/MenuItemInternal.d.ts +0 -40
- package/dist/npm/menu/components/MenuItemInternal.js +0 -168
- package/dist/npm/menu/components/MenuItemInternalsList.d.ts +0 -22
- package/dist/npm/menu/components/MenuItemInternalsList.js +0 -51
- package/dist/npm/menu/components/MenuItemLink.d.ts +0 -30
- package/dist/npm/menu/components/MenuItemLink.js +0 -52
- package/dist/npm/menu/consts.js +0 -73
- package/dist/npm/menu/events.d.ts +0 -16
- package/dist/npm/menu/events.js +0 -3
- package/dist/npm/menu/models/BaseMenuItem.d.ts +0 -55
- package/dist/npm/menu/models/BaseMenuItem.js +0 -4
- package/dist/npm/menu/models/MenuItemModel.d.ts +0 -19
- package/dist/npm/menu/models/MenuItemModel.js +0 -2
- package/dist/npm/menu/utils/DirectionHolder.d.ts +0 -11
- package/dist/npm/menu/utils/DirectionHolder.js +0 -27
- package/dist/npm/menu/utils/MouseOverHandler.js +0 -68
- package/dist/npm/menu/utils/getNewItemIdUponKeyboardNavigation.d.ts +0 -7
- package/dist/npm/menu/utils/getNewItemIdUponKeyboardNavigation.js +0 -206
- package/dist/npm/menu/utils/hoverDelay.d.ts +0 -9
- package/dist/npm/menu/utils/hoverDelay.js +0 -22
- package/dist/npm/menu/utils/itemsIdsUtils.d.ts +0 -64
- package/dist/npm/menu/utils/itemsIdsUtils.js +0 -135
- package/dist/npm/menu/utils/misc.js +0 -49
- package/dist/npm/menu/utils/prepareInputItemsForInternalWork.d.ts +0 -6
- package/dist/npm/menu/utils/prepareInputItemsForInternalWork.js +0 -109
- package/dist/npm/package-metadata.d.ts +0 -5
- package/dist/npm/package-metadata.js +0 -14
- package/dist/npm/panelbar/PanelBar.d.ts +0 -77
- package/dist/npm/panelbar/PanelBar.js +0 -294
- package/dist/npm/panelbar/PanelBarItem.js +0 -156
- package/dist/npm/panelbar/interfaces/NavigationAction.d.ts +0 -8
- package/dist/npm/panelbar/interfaces/NavigationAction.js +0 -12
- package/dist/npm/panelbar/interfaces/PanelBarItemClickEventArguments.d.ts +0 -8
- package/dist/npm/panelbar/interfaces/PanelBarItemClickEventArguments.js +0 -2
- package/dist/npm/panelbar/interfaces/PanelBarItemProps.d.ts +0 -95
- package/dist/npm/panelbar/interfaces/PanelBarItemProps.js +0 -3
- package/dist/npm/panelbar/interfaces/PanelBarProps.d.ts +0 -63
- package/dist/npm/panelbar/interfaces/PanelBarProps.js +0 -2
- package/dist/npm/panelbar/interfaces/PanelBarSelectEventArguments.d.ts +0 -15
- package/dist/npm/panelbar/interfaces/PanelBarSelectEventArguments.js +0 -2
- package/dist/npm/panelbar/interfaces/RenderPanelBarItem.d.ts +0 -16
- package/dist/npm/panelbar/interfaces/RenderPanelBarItem.js +0 -2
- package/dist/npm/panelbar/util.d.ts +0 -52
- package/dist/npm/panelbar/util.js +0 -208
- package/dist/npm/splitter/Splitter.d.ts +0 -132
- package/dist/npm/splitter/Splitter.js +0 -386
- package/dist/npm/splitter/SplitterBar.js +0 -186
- package/dist/npm/splitter/SplitterPane.js +0 -49
- package/dist/npm/splitter/messages/index.d.ts +0 -10
- package/dist/npm/splitter/messages/index.js +0 -14
- package/dist/npm/stacklayout/StackLayout.js +0 -90
- package/dist/npm/stacklayout/StackLayoutProps.d.ts +0 -88
- package/dist/npm/stacklayout/StackLayoutProps.js +0 -2
- package/dist/npm/stepper/Step.d.ts +0 -23
- package/dist/npm/stepper/Step.js +0 -144
- package/dist/npm/stepper/Stepper.d.ts +0 -23
- package/dist/npm/stepper/Stepper.js +0 -227
- package/dist/npm/stepper/contants.d.ts +0 -8
- package/dist/npm/stepper/contants.js +0 -11
- package/dist/npm/stepper/context/StepperContext.d.ts +0 -23
- package/dist/npm/stepper/context/StepperContext.js +0 -14
- package/dist/npm/stepper/interfaces/StepChangeEvent.d.ts +0 -11
- package/dist/npm/stepper/interfaces/StepChangeEvent.js +0 -2
- package/dist/npm/stepper/interfaces/StepFocusEvent.d.ts +0 -7
- package/dist/npm/stepper/interfaces/StepFocusEvent.js +0 -2
- package/dist/npm/stepper/interfaces/StepHandle.d.ts +0 -13
- package/dist/npm/stepper/interfaces/StepHandle.js +0 -5
- package/dist/npm/stepper/interfaces/StepProps.d.ts +0 -79
- package/dist/npm/stepper/interfaces/StepProps.js +0 -2
- package/dist/npm/stepper/interfaces/StepperChangeEvent.d.ts +0 -11
- package/dist/npm/stepper/interfaces/StepperChangeEvent.js +0 -2
- package/dist/npm/stepper/interfaces/StepperFocusEvent.d.ts +0 -7
- package/dist/npm/stepper/interfaces/StepperFocusEvent.js +0 -2
- package/dist/npm/stepper/interfaces/StepperHandle.d.ts +0 -13
- package/dist/npm/stepper/interfaces/StepperHandle.js +0 -5
- package/dist/npm/stepper/interfaces/StepperOnNavigateEvent.d.ts +0 -26
- package/dist/npm/stepper/interfaces/StepperOnNavigateEvent.js +0 -19
- package/dist/npm/stepper/interfaces/StepperProps.js +0 -2
- package/dist/npm/stepper/messages/index.d.ts +0 -15
- package/dist/npm/stepper/messages/index.js +0 -19
- package/dist/npm/tabstrip/TabStrip.d.ts +0 -147
- package/dist/npm/tabstrip/TabStrip.js +0 -221
- package/dist/npm/tabstrip/TabStripContent.js +0 -98
- package/dist/npm/tabstrip/TabStripNavigation.d.ts +0 -98
- package/dist/npm/tabstrip/TabStripNavigation.js +0 -260
- package/dist/npm/tabstrip/TabStripNavigationItem.js +0 -109
- package/dist/npm/tabstrip/TabStripTab.d.ts +0 -38
- package/dist/npm/tabstrip/TabStripTab.js +0 -50
- package/dist/npm/tilelayout/InternalTile.d.ts +0 -90
- package/dist/npm/tilelayout/InternalTile.js +0 -334
- package/dist/npm/tilelayout/ResizeHandlers.d.ts +0 -20
- package/dist/npm/tilelayout/ResizeHandlers.js +0 -62
- package/dist/npm/tilelayout/TileLayout.js +0 -181
- package/dist/npm/tilelayout/interfaces/main.d.ts +0 -142
- package/dist/npm/tilelayout/interfaces/main.js +0 -2
- package/dist/npm/timeline/Timeline.js +0 -41
- package/dist/npm/timeline/TimelineCard.js +0 -66
- package/dist/npm/timeline/TimelineHorizontal.d.ts +0 -3
- package/dist/npm/timeline/TimelineHorizontal.js +0 -295
- package/dist/npm/timeline/TimelineVertical.d.ts +0 -12
- package/dist/npm/timeline/TimelineVertical.js +0 -76
- package/dist/npm/timeline/utils.js +0 -31
- package/dist/systemjs/kendo-react-layout.js +0 -1
- package/e2e-next/actionsheet.basic.tests.ts +0 -25
- package/e2e-next/appbar.basic.tests.ts +0 -24
- package/e2e-next/avatar.basic.tests.ts +0 -24
- package/e2e-next/bottomnav.basic.tests.ts +0 -24
- package/e2e-next/breadcrumb.basic.tests.ts +0 -24
- package/e2e-next/card.basic.tests.ts +0 -24
- package/e2e-next/contextmenu.basic.tests.ts +0 -25
- package/e2e-next/drawer.basic.tests.ts +0 -24
- package/e2e-next/expansionpanel.basic.tests.ts +0 -23
- package/e2e-next/gridlayout.basic.tests.ts +0 -24
- package/e2e-next/menu.basic.tests.ts +0 -24
- package/e2e-next/panelbar.basic.tests.ts +0 -24
- package/e2e-next/splitter.basic.tests.ts +0 -24
- package/e2e-next/stacklayout.basic.tests.ts +0 -24
- package/e2e-next/tabstrip.basic.tests.ts +0 -24
- package/e2e-next/tilelayout.basic.tests.ts +0 -24
- package/e2e-next/timeline.basic.tests.ts +0 -24
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { BaseEvent } from '@progress/kendo-react-common';
|
|
3
|
-
import { BreadcrumbListItemProps } from './BreadcrumbListItem';
|
|
4
|
-
import { BreadcrumbDelimiterProps } from './BreadcrumbDelimiter';
|
|
5
|
-
import { BreadcrumbLinkHandle, BreadcrumbLinkProps } from './BreadcrumbLink';
|
|
6
|
-
import { BreadcrumbOrderedListProps } from './BreadcrumbOrderedList';
|
|
7
|
-
/**
|
|
8
|
-
* Represents the properties of [Breadcrumb](% slug api_layout_breadcrumb %) component.
|
|
9
|
-
*/
|
|
10
|
-
export interface BreadcrumbProps {
|
|
11
|
-
/**
|
|
12
|
-
* Sets the `id` property of the top `div` element of the Breadcrumb.
|
|
13
|
-
*/
|
|
14
|
-
id?: string;
|
|
15
|
-
/**
|
|
16
|
-
* Sets additional CSS styles to the Breadcrumb.
|
|
17
|
-
*/
|
|
18
|
-
style?: React.CSSProperties;
|
|
19
|
-
/**
|
|
20
|
-
* Sets additional classes to the Breadcrumb.
|
|
21
|
-
*/
|
|
22
|
-
className?: string;
|
|
23
|
-
/**
|
|
24
|
-
* Represents the Breadcrumb ordered list component.
|
|
25
|
-
*/
|
|
26
|
-
breadcrumbOrderedList?: React.ComponentType<BreadcrumbOrderedListProps>;
|
|
27
|
-
/**
|
|
28
|
-
* Represents the Breadcrumb list item component.
|
|
29
|
-
*/
|
|
30
|
-
breadcrumbListItem?: React.ComponentType<BreadcrumbListItemProps>;
|
|
31
|
-
/**
|
|
32
|
-
* Represents the Breadcrumb delimiter component.
|
|
33
|
-
*/
|
|
34
|
-
breadcrumbDelimiter?: React.ComponentType<BreadcrumbDelimiterProps>;
|
|
35
|
-
/**
|
|
36
|
-
* Represents the Breadcrumb link component.
|
|
37
|
-
*/
|
|
38
|
-
breadcrumbLink?: React.ComponentType<BreadcrumbLinkProps>;
|
|
39
|
-
/**
|
|
40
|
-
* Represents the data of the Breadcrumb from type DataModel.
|
|
41
|
-
*/
|
|
42
|
-
data: DataModel[];
|
|
43
|
-
/**
|
|
44
|
-
* Specifies the padding of all Breadcrumb elements.
|
|
45
|
-
*
|
|
46
|
-
* The possible values are:
|
|
47
|
-
* * `small`
|
|
48
|
-
* * `medium`
|
|
49
|
-
* * `large`
|
|
50
|
-
*
|
|
51
|
-
* @default `medium`
|
|
52
|
-
*/
|
|
53
|
-
size?: 'small' | 'medium' | 'large';
|
|
54
|
-
/**
|
|
55
|
-
* The Breadcrumb direction `ltr` or `rtl`.
|
|
56
|
-
*/
|
|
57
|
-
dir?: 'ltr' | 'rtl';
|
|
58
|
-
/**
|
|
59
|
-
* Sets the `tabIndex` attribute to the Breadcrumb.
|
|
60
|
-
*/
|
|
61
|
-
tabIndex?: number;
|
|
62
|
-
/**
|
|
63
|
-
* Determines the `disabled` mode of the Breadcrumb. If `true`, the component is disabled.
|
|
64
|
-
*/
|
|
65
|
-
disabled?: boolean;
|
|
66
|
-
/**
|
|
67
|
-
* Represents the `value` field. Used for setting the key of the BreadcrumbListItem component and the `id` of the BreadcrumbLink component.
|
|
68
|
-
*/
|
|
69
|
-
valueField?: string;
|
|
70
|
-
/**
|
|
71
|
-
* Represents the `text` field. Used for setting the `text` inside the BreadcrumbLink component.
|
|
72
|
-
*/
|
|
73
|
-
textField?: string;
|
|
74
|
-
/**
|
|
75
|
-
* Represents the `icon` field. Used for setting the `icon` inside the BreadcrumbLink component.
|
|
76
|
-
*/
|
|
77
|
-
iconField?: string;
|
|
78
|
-
/**
|
|
79
|
-
* Represents the `iconClass` field. Used for setting the `iconClass` inside the BreadcrumbLink component.
|
|
80
|
-
*/
|
|
81
|
-
iconClassField?: string;
|
|
82
|
-
/**
|
|
83
|
-
* Represents the `onItemSelect` event. Triggered after click on the Breadcrumb.
|
|
84
|
-
*/
|
|
85
|
-
onItemSelect?: (event: BreadcrumbLinkMouseEvent) => void;
|
|
86
|
-
/**
|
|
87
|
-
* Represents the `onKeyDown` event. Triggered after keyboard click on the Breadcrumb.
|
|
88
|
-
*/
|
|
89
|
-
onKeyDown?: (event: BreadcrumbLinkKeyDownEvent) => void;
|
|
90
|
-
/**
|
|
91
|
-
* Represents the label of the Breadcrumb component.
|
|
92
|
-
*/
|
|
93
|
-
ariaLabel?: string;
|
|
94
|
-
}
|
|
95
|
-
/**
|
|
96
|
-
* Represents the DataModel object type.
|
|
97
|
-
*/
|
|
98
|
-
export interface DataModel {
|
|
99
|
-
/**
|
|
100
|
-
* Represents the `id` of the data object.
|
|
101
|
-
* Used for setting the `key` of the BreadcrumbListItem component and the `id` of the BreadcrumbLink component.
|
|
102
|
-
*/
|
|
103
|
-
id?: string;
|
|
104
|
-
/**
|
|
105
|
-
* Represents the `text` used inside the BreadcrumbLink component.
|
|
106
|
-
*/
|
|
107
|
-
text?: string;
|
|
108
|
-
/**
|
|
109
|
-
* Represents the `icon` used inside the BreadcrumbLink component.
|
|
110
|
-
*/
|
|
111
|
-
icon?: React.ReactNode;
|
|
112
|
-
/**
|
|
113
|
-
* Represents the `iconClass` used inside the BreadcrumbLink component.
|
|
114
|
-
*/
|
|
115
|
-
iconClass?: string;
|
|
116
|
-
/**
|
|
117
|
-
* @hidden
|
|
118
|
-
*/
|
|
119
|
-
disabled?: boolean;
|
|
120
|
-
}
|
|
121
|
-
/**
|
|
122
|
-
* Represents the target (element, props, and focus()) of the `BreadcrumbClickEvent`.
|
|
123
|
-
*/
|
|
124
|
-
export interface BreadcrumbHandle {
|
|
125
|
-
/**
|
|
126
|
-
* The current element or `null` if there is none.
|
|
127
|
-
*/
|
|
128
|
-
element: HTMLDivElement | null;
|
|
129
|
-
/**
|
|
130
|
-
* The props values of the Breadcrumb.
|
|
131
|
-
*/
|
|
132
|
-
props: BreadcrumbProps;
|
|
133
|
-
/**
|
|
134
|
-
* The `focus` method of the Breadcrumb component.
|
|
135
|
-
*/
|
|
136
|
-
focus: () => void;
|
|
137
|
-
}
|
|
138
|
-
/**
|
|
139
|
-
* Represents the `BreadcrumbLinkMouseEvent`.
|
|
140
|
-
*/
|
|
141
|
-
export interface BreadcrumbLinkMouseEvent extends BaseEvent<BreadcrumbLinkHandle> {
|
|
142
|
-
/**
|
|
143
|
-
* Represents the `id` of the `BreadcrumbLinkMouseEvent`.
|
|
144
|
-
*/
|
|
145
|
-
id?: string;
|
|
146
|
-
}
|
|
147
|
-
/**
|
|
148
|
-
* Represents the `BreadcrumbLinkKeyDownEvent`.
|
|
149
|
-
*/
|
|
150
|
-
export interface BreadcrumbLinkKeyDownEvent extends BaseEvent<BreadcrumbLinkHandle> {
|
|
151
|
-
/**
|
|
152
|
-
* Represents the `id` of the `BreadcrumbLinkKeyDownEvent`.
|
|
153
|
-
*/
|
|
154
|
-
id?: string;
|
|
155
|
-
}
|
|
156
|
-
/**
|
|
157
|
-
* Represents the Breadcrumb component.
|
|
158
|
-
*/
|
|
159
|
-
export declare const Breadcrumb: React.ForwardRefExoticComponent<BreadcrumbProps & React.RefAttributes<BreadcrumbHandle | null>>;
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
import * as React from 'react';
|
|
13
|
-
import * as PropTypes from 'prop-types';
|
|
14
|
-
import { validatePackage } from '@progress/kendo-licensing';
|
|
15
|
-
import { packageMetadata } from '../package-metadata';
|
|
16
|
-
import { classNames, useDir, dispatchEvent, kendoThemeMaps } from '@progress/kendo-react-common';
|
|
17
|
-
import { BreadcrumbListItem } from './BreadcrumbListItem';
|
|
18
|
-
import { BreadcrumbDelimiter } from './BreadcrumbDelimiter';
|
|
19
|
-
import { BreadcrumbLink } from './BreadcrumbLink';
|
|
20
|
-
import { BreadcrumbOrderedList } from './BreadcrumbOrderedList';
|
|
21
|
-
/**
|
|
22
|
-
* Represents the Breadcrumb component.
|
|
23
|
-
*/
|
|
24
|
-
export var Breadcrumb = React.forwardRef(function (props, ref) {
|
|
25
|
-
var _a;
|
|
26
|
-
validatePackage(packageMetadata);
|
|
27
|
-
var target = React.useRef(null);
|
|
28
|
-
var breadcrumbRef = React.useRef(null);
|
|
29
|
-
var OrderedListComponent = React.useMemo(function () { return props.breadcrumbOrderedList || BreadcrumbOrderedList; }, [props.breadcrumbOrderedList]);
|
|
30
|
-
var ListItemComponent = React.useMemo(function () { return props.breadcrumbListItem || BreadcrumbListItem; }, [props.breadcrumbListItem]);
|
|
31
|
-
var DelimiterComponent = React.useMemo(function () { return props.breadcrumbDelimiter || BreadcrumbDelimiter; }, [props.breadcrumbDelimiter]);
|
|
32
|
-
var LinkComponent = React.useMemo(function () { return props.breadcrumbLink || BreadcrumbLink; }, [props.breadcrumbLink]);
|
|
33
|
-
var focus = React.useCallback(function () {
|
|
34
|
-
if (breadcrumbRef.current) {
|
|
35
|
-
breadcrumbRef.current.focus();
|
|
36
|
-
}
|
|
37
|
-
}, [breadcrumbRef]);
|
|
38
|
-
var disabled = React.useMemo(function () { return props.disabled || false; }, [props.disabled]);
|
|
39
|
-
React.useImperativeHandle(target, function () { return ({
|
|
40
|
-
element: breadcrumbRef.current,
|
|
41
|
-
focus: focus,
|
|
42
|
-
props: props
|
|
43
|
-
}); });
|
|
44
|
-
React.useImperativeHandle(ref, function () { return target.current; });
|
|
45
|
-
var dir = useDir(breadcrumbRef, props.dir);
|
|
46
|
-
var handleItemSelect = function (event) {
|
|
47
|
-
if (target.current) {
|
|
48
|
-
dispatchEvent(props.onItemSelect, event, event.target, { id: event.target.id });
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
var handleKeyDown = function (event) {
|
|
52
|
-
if (target.current) {
|
|
53
|
-
dispatchEvent(props.onKeyDown, event, event.target, { id: event.target.id });
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
var valueField = (props.valueField || defaultProps.valueField);
|
|
57
|
-
var iconField = (props.iconField || defaultProps.iconField);
|
|
58
|
-
var iconClassField = (props.iconClassField || defaultProps.iconClassField);
|
|
59
|
-
var textField = (props.textField || defaultProps.textField);
|
|
60
|
-
var size = props.size || 'medium';
|
|
61
|
-
return (React.createElement("nav", { "aria-label": props.ariaLabel, id: props.id, style: props.style, ref: breadcrumbRef, dir: dir, className: classNames('k-breadcrumb k-breadcrumb-wrap', (_a = {
|
|
62
|
-
'k-rtl': dir === 'rtl',
|
|
63
|
-
'k-disabled': disabled,
|
|
64
|
-
'k-breadcrumb-md': !props.size
|
|
65
|
-
},
|
|
66
|
-
_a["k-breadcrumb-".concat(kendoThemeMaps.sizeMap[size] || size)] = size,
|
|
67
|
-
_a), props.className) },
|
|
68
|
-
React.createElement(OrderedListComponent, { rootItem: true },
|
|
69
|
-
React.createElement(React.Fragment, null, props.data.map(function (item, index, data) {
|
|
70
|
-
var key = item[valueField];
|
|
71
|
-
if (index === 0) {
|
|
72
|
-
return (React.createElement(ListItemComponent, { key: key, isFirstItem: true, isLastItem: data.length - 1 === index },
|
|
73
|
-
React.createElement(LinkComponent, __assign({ isLast: data.length - 1 === index, isFirst: true, id: String(key), icon: item[iconField] || undefined, iconClass: item[iconClassField] ? String(item[iconClassField]) : undefined, text: item[textField] ? String(item[textField]) : undefined, disabled: item.disabled || false, onItemSelect: handleItemSelect, onKeyDown: handleKeyDown }, props))));
|
|
74
|
-
}
|
|
75
|
-
}))),
|
|
76
|
-
React.createElement(OrderedListComponent, { rootItem: false },
|
|
77
|
-
React.createElement(React.Fragment, null, props.data.map(function (item, index, data) {
|
|
78
|
-
var key = item[valueField];
|
|
79
|
-
if (index !== 0) {
|
|
80
|
-
return (React.createElement(ListItemComponent, { key: key, isFirstItem: false, isLastItem: data.length - 1 === index },
|
|
81
|
-
React.createElement(DelimiterComponent, { dir: dir }),
|
|
82
|
-
React.createElement(LinkComponent, __assign({ isLast: data.length - 1 === index, isFirst: false, id: String(key), icon: item[iconField] || undefined, iconClass: item[iconClassField] ? String(item[iconClassField]) : undefined, text: item[textField] ? String(item[textField]) : undefined, disabled: item.disabled || false, onItemSelect: handleItemSelect, onKeyDown: handleKeyDown }, props))));
|
|
83
|
-
}
|
|
84
|
-
})))));
|
|
85
|
-
});
|
|
86
|
-
var propTypes = {
|
|
87
|
-
id: PropTypes.string,
|
|
88
|
-
style: PropTypes.object,
|
|
89
|
-
className: PropTypes.string,
|
|
90
|
-
breadcrumbOrderedList: PropTypes.elementType,
|
|
91
|
-
breadcrumbListItem: PropTypes.elementType,
|
|
92
|
-
breadcrumbDelimiter: PropTypes.elementType,
|
|
93
|
-
breadcrumbLink: PropTypes.elementType,
|
|
94
|
-
data: PropTypes.arrayOf(PropTypes.shape({
|
|
95
|
-
id: PropTypes.string,
|
|
96
|
-
text: PropTypes.string,
|
|
97
|
-
icon: PropTypes.any,
|
|
98
|
-
iconClass: PropTypes.string
|
|
99
|
-
})),
|
|
100
|
-
dir: PropTypes.oneOf(['ltr', 'rtl']),
|
|
101
|
-
disabled: PropTypes.bool,
|
|
102
|
-
valueField: PropTypes.string,
|
|
103
|
-
textField: PropTypes.string,
|
|
104
|
-
iconField: PropTypes.string,
|
|
105
|
-
iconClassField: PropTypes.string,
|
|
106
|
-
onItemSelect: PropTypes.func,
|
|
107
|
-
ariaLabel: PropTypes.string
|
|
108
|
-
};
|
|
109
|
-
var defaultProps = {
|
|
110
|
-
valueField: 'id',
|
|
111
|
-
textField: 'text',
|
|
112
|
-
iconField: 'icon',
|
|
113
|
-
iconClassField: 'iconClass'
|
|
114
|
-
};
|
|
115
|
-
Breadcrumb.displayName = 'KendoReactBreadcrumb';
|
|
116
|
-
// TODO: delete casting when @types/react is updated!
|
|
117
|
-
Breadcrumb.propTypes = propTypes;
|
|
118
|
-
Breadcrumb.defaultProps = defaultProps;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* Represents the properties of [BreadcrumbDelimiter](% slug api_layout_breadcrumbdelimiter %) component.
|
|
4
|
-
*/
|
|
5
|
-
export interface BreadcrumbDelimiterProps {
|
|
6
|
-
/**
|
|
7
|
-
* Sets the `id` property of the BreadcrumbDelimiter component.
|
|
8
|
-
*/
|
|
9
|
-
id?: string;
|
|
10
|
-
/**
|
|
11
|
-
* Sets additional classes to the BreadcrumbDelimiter component.
|
|
12
|
-
*/
|
|
13
|
-
className?: string;
|
|
14
|
-
/**
|
|
15
|
-
* Sets additional CSS styles to the BreadcrumbDelimiter component.
|
|
16
|
-
*/
|
|
17
|
-
style?: React.CSSProperties;
|
|
18
|
-
/**
|
|
19
|
-
* Sets the `tabIndex` attribute to the BreadcrumbDelimiter.
|
|
20
|
-
*/
|
|
21
|
-
tabIndex?: number;
|
|
22
|
-
/**
|
|
23
|
-
* @hidden
|
|
24
|
-
*/
|
|
25
|
-
dir?: string;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Represents the target (element, props, and focus()) of the BreadcrumbDelimiter.
|
|
29
|
-
*/
|
|
30
|
-
export interface BreadcrumbDelimiterHandle {
|
|
31
|
-
/**
|
|
32
|
-
* The current element or `null` if there is none.
|
|
33
|
-
*/
|
|
34
|
-
element: HTMLSpanElement | null;
|
|
35
|
-
/**
|
|
36
|
-
* The props values of the BreadcrumbDelimiter.
|
|
37
|
-
*/
|
|
38
|
-
props: BreadcrumbDelimiterProps;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Represents the BreadcrumbDelimiter component.
|
|
42
|
-
*/
|
|
43
|
-
export declare const BreadcrumbDelimiter: React.ForwardRefExoticComponent<BreadcrumbDelimiterProps & React.RefAttributes<BreadcrumbDelimiterHandle | null>>;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import * as PropTypes from 'prop-types';
|
|
3
|
-
import { validatePackage } from '@progress/kendo-licensing';
|
|
4
|
-
import { IconWrap } from '@progress/kendo-react-common';
|
|
5
|
-
import { chevronLeftIcon, chevronRightIcon } from '@progress/kendo-svg-icons';
|
|
6
|
-
import { packageMetadata } from '../package-metadata';
|
|
7
|
-
/**
|
|
8
|
-
* Represents the BreadcrumbDelimiter component.
|
|
9
|
-
*/
|
|
10
|
-
export var BreadcrumbDelimiter = React.forwardRef(function (props, ref) {
|
|
11
|
-
validatePackage(packageMetadata);
|
|
12
|
-
var target = React.useRef(null);
|
|
13
|
-
var breadcrumbDelimiterRef = React.useRef(null);
|
|
14
|
-
React.useImperativeHandle(target, function () {
|
|
15
|
-
var _a;
|
|
16
|
-
return ({
|
|
17
|
-
element: ((_a = breadcrumbDelimiterRef.current) === null || _a === void 0 ? void 0 : _a.element) || null,
|
|
18
|
-
props: props
|
|
19
|
-
});
|
|
20
|
-
});
|
|
21
|
-
React.useImperativeHandle(ref, function () { return target.current; });
|
|
22
|
-
return (React.createElement(IconWrap, { ref: breadcrumbDelimiterRef, id: props.id, "aria-hidden": true, tabIndex: props.tabIndex, style: props.style, name: props.dir === 'rtl' ? 'chevron-left' : 'chevron-right', icon: props.dir === 'rtl' ? chevronLeftIcon : chevronRightIcon, className: "k-breadcrumb-delimiter-icon", size: 'xsmall' }));
|
|
23
|
-
});
|
|
24
|
-
var propTypes = {
|
|
25
|
-
id: PropTypes.string,
|
|
26
|
-
className: PropTypes.string,
|
|
27
|
-
style: PropTypes.object,
|
|
28
|
-
tabIndex: PropTypes.number,
|
|
29
|
-
dir: PropTypes.string
|
|
30
|
-
};
|
|
31
|
-
BreadcrumbDelimiter.displayName = 'KendoReactBreadcrumbDelimiter';
|
|
32
|
-
BreadcrumbDelimiter.propTypes = propTypes;
|
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { BaseEvent } from '@progress/kendo-react-common';
|
|
3
|
-
/**
|
|
4
|
-
* Represents the properties of [BreadcrumbLink](% slug api_layout_breadcrumblink %) component.
|
|
5
|
-
*/
|
|
6
|
-
export interface BreadcrumbLinkProps {
|
|
7
|
-
/**
|
|
8
|
-
* Sets the `id` property of the top `div` element of the BreadcrumbLink.
|
|
9
|
-
*/
|
|
10
|
-
id?: string;
|
|
11
|
-
/**
|
|
12
|
-
* Sets additional classes to the BreadcrumbLink.
|
|
13
|
-
*/
|
|
14
|
-
style?: React.CSSProperties;
|
|
15
|
-
/**
|
|
16
|
-
* Sets additional classes to the BreadcrumbLink.
|
|
17
|
-
*/
|
|
18
|
-
className?: string;
|
|
19
|
-
/**
|
|
20
|
-
* Sets the `tabIndex` attribute to the BreadcrumbLink.
|
|
21
|
-
*/
|
|
22
|
-
tabIndex?: number;
|
|
23
|
-
/**
|
|
24
|
-
* The Breadcrumb direction `ltr` or `rtl`.
|
|
25
|
-
*/
|
|
26
|
-
dir?: string;
|
|
27
|
-
/**
|
|
28
|
-
* Determines the `disabled` mode of the BreadcrumbLink. If `true`, the component is disabled.
|
|
29
|
-
*/
|
|
30
|
-
disabled?: boolean;
|
|
31
|
-
/**
|
|
32
|
-
* Represents the `text` of the BreadcrumbLink component.
|
|
33
|
-
*/
|
|
34
|
-
text?: string;
|
|
35
|
-
/**
|
|
36
|
-
* Represents the `icon` of the BreadcrumbLink component.
|
|
37
|
-
*/
|
|
38
|
-
icon?: React.ReactNode;
|
|
39
|
-
/**
|
|
40
|
-
* Represents the `iconClass` of the BreadcrumbLink component.
|
|
41
|
-
*/
|
|
42
|
-
iconClass?: string;
|
|
43
|
-
/**
|
|
44
|
-
* Represents the `onItemSelect` event. Triggered after click on the BreadcrumbLink item.
|
|
45
|
-
*/
|
|
46
|
-
onItemSelect?: (event: BaseEvent<BreadcrumbLinkHandle>) => void;
|
|
47
|
-
/**
|
|
48
|
-
* Represents the `onKeyDown` event. Triggered after key down on the BreadcrumbLink item.
|
|
49
|
-
*/
|
|
50
|
-
onKeyDown?: (event: BaseEvent<BreadcrumbLinkHandle>) => void;
|
|
51
|
-
/**
|
|
52
|
-
* Sets the `aria-current` value.
|
|
53
|
-
*/
|
|
54
|
-
ariaCurrent?: boolean;
|
|
55
|
-
/**
|
|
56
|
-
* @hidden
|
|
57
|
-
*/
|
|
58
|
-
isLast?: boolean;
|
|
59
|
-
/**
|
|
60
|
-
* @hidden
|
|
61
|
-
*/
|
|
62
|
-
isFirst?: boolean;
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* Represents the target (element, props, and focus()) of the `BreadcrumbClickEvent`.
|
|
66
|
-
*/
|
|
67
|
-
export interface BreadcrumbLinkHandle {
|
|
68
|
-
/**
|
|
69
|
-
* The current element or `null` if there is none.
|
|
70
|
-
*/
|
|
71
|
-
element: HTMLLIElement | null;
|
|
72
|
-
/**
|
|
73
|
-
* The props values of the BreadcrumbLink.
|
|
74
|
-
*/
|
|
75
|
-
props: BreadcrumbLinkProps;
|
|
76
|
-
/**
|
|
77
|
-
* The `focus` method of the BreadcrumbLink component.
|
|
78
|
-
*/
|
|
79
|
-
focus: () => void;
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* Represents the [BreadcrumbLink](% slug api_layout_breadcrumblink %) component.
|
|
83
|
-
*
|
|
84
|
-
* @example
|
|
85
|
-
* ```jsx
|
|
86
|
-
* import { Breadcrumb, BreadcrumbLink } from '@progress/kendo-react-layout';
|
|
87
|
-
* const items = [
|
|
88
|
-
* {
|
|
89
|
-
* id: 'home',
|
|
90
|
-
* text: 'Home',
|
|
91
|
-
* iconClass: 'k-i-home',
|
|
92
|
-
* },
|
|
93
|
-
* {
|
|
94
|
-
* id: 'products',
|
|
95
|
-
* text: 'Products',
|
|
96
|
-
* },
|
|
97
|
-
* {
|
|
98
|
-
* id: 'computer',
|
|
99
|
-
* text: 'Computer',
|
|
100
|
-
* }
|
|
101
|
-
* ];
|
|
102
|
-
*
|
|
103
|
-
* const App = () => {
|
|
104
|
-
* const [data,setData] = React.useState(items);
|
|
105
|
-
* const handleItemSelect = (event, id) => {
|
|
106
|
-
* const itemIndex = data.findIndex((curValue) => curValue.id === id);
|
|
107
|
-
* const newData = data.slice(0, itemIndex + 1);
|
|
108
|
-
* setData(newData);
|
|
109
|
-
* };
|
|
110
|
-
*
|
|
111
|
-
* const CustomLink = (data) => {
|
|
112
|
-
* return (
|
|
113
|
-
* <BreadcrumbLink
|
|
114
|
-
* id={data.id}
|
|
115
|
-
* text={data.text}
|
|
116
|
-
* onItemSelect={(event) => handleItemSelect(event, data.id)}
|
|
117
|
-
* />
|
|
118
|
-
* );
|
|
119
|
-
* };
|
|
120
|
-
*
|
|
121
|
-
* return (
|
|
122
|
-
* <Breadcrumb
|
|
123
|
-
* data={data}
|
|
124
|
-
* breadcrumbLink={(items) => CustomLink(items)}
|
|
125
|
-
* />
|
|
126
|
-
* )}
|
|
127
|
-
*
|
|
128
|
-
* ReactDOM.render(<App />, document.querySelector('my-app'));
|
|
129
|
-
* ```
|
|
130
|
-
*/
|
|
131
|
-
export declare const BreadcrumbLink: React.ForwardRefExoticComponent<BreadcrumbLinkProps & React.RefAttributes<BreadcrumbLinkHandle | null>>;
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import * as PropTypes from 'prop-types';
|
|
3
|
-
import { validatePackage } from '@progress/kendo-licensing';
|
|
4
|
-
import { classNames, getTabIndex, useDir, dispatchEvent } from '@progress/kendo-react-common';
|
|
5
|
-
import { packageMetadata } from '../package-metadata';
|
|
6
|
-
/**
|
|
7
|
-
* Represents the [BreadcrumbLink](% slug api_layout_breadcrumblink %) component.
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
* ```jsx
|
|
11
|
-
* import { Breadcrumb, BreadcrumbLink } from '@progress/kendo-react-layout';
|
|
12
|
-
* const items = [
|
|
13
|
-
* {
|
|
14
|
-
* id: 'home',
|
|
15
|
-
* text: 'Home',
|
|
16
|
-
* iconClass: 'k-i-home',
|
|
17
|
-
* },
|
|
18
|
-
* {
|
|
19
|
-
* id: 'products',
|
|
20
|
-
* text: 'Products',
|
|
21
|
-
* },
|
|
22
|
-
* {
|
|
23
|
-
* id: 'computer',
|
|
24
|
-
* text: 'Computer',
|
|
25
|
-
* }
|
|
26
|
-
* ];
|
|
27
|
-
*
|
|
28
|
-
* const App = () => {
|
|
29
|
-
* const [data,setData] = React.useState(items);
|
|
30
|
-
* const handleItemSelect = (event, id) => {
|
|
31
|
-
* const itemIndex = data.findIndex((curValue) => curValue.id === id);
|
|
32
|
-
* const newData = data.slice(0, itemIndex + 1);
|
|
33
|
-
* setData(newData);
|
|
34
|
-
* };
|
|
35
|
-
*
|
|
36
|
-
* const CustomLink = (data) => {
|
|
37
|
-
* return (
|
|
38
|
-
* <BreadcrumbLink
|
|
39
|
-
* id={data.id}
|
|
40
|
-
* text={data.text}
|
|
41
|
-
* onItemSelect={(event) => handleItemSelect(event, data.id)}
|
|
42
|
-
* />
|
|
43
|
-
* );
|
|
44
|
-
* };
|
|
45
|
-
*
|
|
46
|
-
* return (
|
|
47
|
-
* <Breadcrumb
|
|
48
|
-
* data={data}
|
|
49
|
-
* breadcrumbLink={(items) => CustomLink(items)}
|
|
50
|
-
* />
|
|
51
|
-
* )}
|
|
52
|
-
*
|
|
53
|
-
* ReactDOM.render(<App />, document.querySelector('my-app'));
|
|
54
|
-
* ```
|
|
55
|
-
*/
|
|
56
|
-
export var BreadcrumbLink = React.forwardRef(function (props, ref) {
|
|
57
|
-
validatePackage(packageMetadata);
|
|
58
|
-
var target = React.useRef(null);
|
|
59
|
-
var linkRef = React.useRef(null);
|
|
60
|
-
var focus = React.useCallback(function () {
|
|
61
|
-
if (linkRef.current) {
|
|
62
|
-
linkRef.current.focus();
|
|
63
|
-
}
|
|
64
|
-
}, [linkRef]);
|
|
65
|
-
React.useImperativeHandle(target, function () { return ({
|
|
66
|
-
element: linkRef.current,
|
|
67
|
-
focus: focus,
|
|
68
|
-
props: props
|
|
69
|
-
}); });
|
|
70
|
-
React.useImperativeHandle(ref, function () { return target.current; });
|
|
71
|
-
var handleItemSelect = React.useCallback(function (event) {
|
|
72
|
-
if (props.id) {
|
|
73
|
-
dispatchEvent(props.onItemSelect, event, event.target, { id: props.id });
|
|
74
|
-
}
|
|
75
|
-
}, [props.onItemSelect]);
|
|
76
|
-
var handleKeyDown = React.useCallback(function (event) {
|
|
77
|
-
if (props.id) {
|
|
78
|
-
dispatchEvent(props.onKeyDown, event, event.target, { id: props.id });
|
|
79
|
-
}
|
|
80
|
-
}, [props.onKeyDown]);
|
|
81
|
-
return (React.createElement("span", { "aria-current": props.ariaCurrent ? props.ariaCurrent : props.isLast, role: 'link', id: props.id, ref: linkRef, style: props.style, dir: useDir(linkRef, props.dir), tabIndex: getTabIndex(props.tabIndex, props.disabled), className: classNames({
|
|
82
|
-
'k-breadcrumb-root-link': props.isFirst,
|
|
83
|
-
'k-breadcrumb-link': !props.isFirst,
|
|
84
|
-
'k-breadcrumb-icontext-link': props.iconClass !== undefined && props.text,
|
|
85
|
-
'k-breadcrumb-icon-link': props.iconClass !== undefined && !props.text,
|
|
86
|
-
'k-disabled': props.disabled
|
|
87
|
-
}), onClick: handleItemSelect, onKeyDown: handleKeyDown },
|
|
88
|
-
props.iconClass
|
|
89
|
-
?
|
|
90
|
-
React.createElement("span", { className: classNames('k-icon', props.iconClass) })
|
|
91
|
-
: props.icon ? props.icon : '',
|
|
92
|
-
props.text &&
|
|
93
|
-
React.createElement("span", { className: "k-breadcrumb-item-text" }, props.text)));
|
|
94
|
-
});
|
|
95
|
-
var propTypes = {
|
|
96
|
-
id: PropTypes.string,
|
|
97
|
-
className: PropTypes.string,
|
|
98
|
-
tabIndex: PropTypes.number,
|
|
99
|
-
style: PropTypes.object,
|
|
100
|
-
dir: PropTypes.string,
|
|
101
|
-
disabled: PropTypes.bool,
|
|
102
|
-
text: PropTypes.string,
|
|
103
|
-
icon: PropTypes.node,
|
|
104
|
-
iconClass: PropTypes.string,
|
|
105
|
-
onClick: PropTypes.func,
|
|
106
|
-
ariaCurrent: PropTypes.bool
|
|
107
|
-
};
|
|
108
|
-
BreadcrumbLink.displayName = 'KendoReactBreadcrumbLink';
|
|
109
|
-
// TODO: delete casting when @types/react is updated!
|
|
110
|
-
BreadcrumbLink.propTypes = propTypes;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import * as PropTypes from 'prop-types';
|
|
3
|
-
import { validatePackage } from '@progress/kendo-licensing';
|
|
4
|
-
import { classNames } from '@progress/kendo-react-common';
|
|
5
|
-
import { packageMetadata } from '../package-metadata';
|
|
6
|
-
/**
|
|
7
|
-
* Represents the BreadcrumbListItem component.
|
|
8
|
-
*/
|
|
9
|
-
export var BreadcrumbListItem = React.forwardRef(function (props, ref) {
|
|
10
|
-
validatePackage(packageMetadata);
|
|
11
|
-
var target = React.useRef(null);
|
|
12
|
-
var breadcrumbLIRef = React.useRef(null);
|
|
13
|
-
var focus = React.useCallback(function () {
|
|
14
|
-
if (breadcrumbLIRef.current) {
|
|
15
|
-
breadcrumbLIRef.current.focus();
|
|
16
|
-
}
|
|
17
|
-
}, [breadcrumbLIRef]);
|
|
18
|
-
React.useImperativeHandle(target, function () { return ({
|
|
19
|
-
element: breadcrumbLIRef.current,
|
|
20
|
-
focus: focus,
|
|
21
|
-
props: props
|
|
22
|
-
}); });
|
|
23
|
-
React.useImperativeHandle(ref, function () { return target.current; });
|
|
24
|
-
return (React.createElement("li", { ref: breadcrumbLIRef, id: props.id, style: props.style, className: classNames('k-breadcrumb-item', {
|
|
25
|
-
'k-breadcrumb-root-item': props.isFirstItem,
|
|
26
|
-
'k-breadcrumb-last-item': props.isLastItem
|
|
27
|
-
}, props.className) }, props.children));
|
|
28
|
-
});
|
|
29
|
-
var propTypes = {
|
|
30
|
-
id: PropTypes.string,
|
|
31
|
-
className: PropTypes.string,
|
|
32
|
-
children: PropTypes.any,
|
|
33
|
-
style: PropTypes.object
|
|
34
|
-
};
|
|
35
|
-
BreadcrumbListItem.displayName = 'KendoReactBreadcrumbListItem';
|
|
36
|
-
BreadcrumbListItem.propTypes = propTypes;
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* Represents the properties of [BreadcrumbOrderedList](% slug api_layout_breadcrumborderedlist %) component.
|
|
4
|
-
*/
|
|
5
|
-
export interface BreadcrumbOrderedListProps {
|
|
6
|
-
/**
|
|
7
|
-
* Sets the `id` property of the top `div` element of the BreadcrumbOrderedList.
|
|
8
|
-
*/
|
|
9
|
-
id?: string;
|
|
10
|
-
/**
|
|
11
|
-
* Sets additional CSS styles to the BreadcrumbOrderedList.
|
|
12
|
-
*/
|
|
13
|
-
style?: React.CSSProperties;
|
|
14
|
-
/**
|
|
15
|
-
* Sets additional classes to the BreadcrumbOrderedList.
|
|
16
|
-
*/
|
|
17
|
-
className?: string;
|
|
18
|
-
/**
|
|
19
|
-
* Determines the children nodes.
|
|
20
|
-
*/
|
|
21
|
-
children?: React.ReactNode;
|
|
22
|
-
/**
|
|
23
|
-
* Sets the `tabIndex` attribute to the BreadcrumbOrderedList.
|
|
24
|
-
*/
|
|
25
|
-
tabIndex?: number;
|
|
26
|
-
/**
|
|
27
|
-
* The BreadcrumbOrderedList direction `ltr` or `rtl`.
|
|
28
|
-
*/
|
|
29
|
-
dir?: string;
|
|
30
|
-
/**
|
|
31
|
-
* Determines the `disabled` mode of the BreadcrumbOrderedList. If `true`, the component is disabled.
|
|
32
|
-
*/
|
|
33
|
-
disabled?: boolean;
|
|
34
|
-
/**
|
|
35
|
-
* @hidden
|
|
36
|
-
*/
|
|
37
|
-
rootItem?: boolean;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Represents the target (element, props, and focus()) of the BreadcrumbOrderedList.
|
|
41
|
-
*/
|
|
42
|
-
export interface BreadcrumbOrderedListHandle {
|
|
43
|
-
/**
|
|
44
|
-
* The current element or `null` if there is none.
|
|
45
|
-
*/
|
|
46
|
-
element: HTMLOListElement | null;
|
|
47
|
-
/**
|
|
48
|
-
* The props values of the BreadcrumbOrderedList.
|
|
49
|
-
*/
|
|
50
|
-
props: BreadcrumbOrderedListProps;
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Represents the BreadcrumbOrderedList component.
|
|
54
|
-
*/
|
|
55
|
-
export declare const BreadcrumbOrderedList: React.ForwardRefExoticComponent<BreadcrumbOrderedListProps & React.RefAttributes<BreadcrumbOrderedListHandle | null>>;
|