@elliemae/ds-left-navigation 3.0.0-next.2 → 3.0.0-next.6
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/dist/cjs/LeftNavigation.js +51 -0
- package/dist/cjs/LeftNavigation.js.map +7 -0
- package/dist/cjs/LeftNavigationContext.js +67 -0
- package/dist/cjs/LeftNavigationContext.js.map +7 -0
- package/dist/cjs/common/getItemBackgroundStyle.js +51 -0
- package/dist/cjs/common/getItemBackgroundStyle.js.map +7 -0
- package/dist/cjs/common/getLeftBorderStyle.js +54 -0
- package/dist/cjs/common/getLeftBorderStyle.js.map +7 -0
- package/dist/cjs/common/getScrollbarStyle.js +58 -0
- package/dist/cjs/common/getScrollbarStyle.js.map +7 -0
- package/dist/cjs/common/index.js +30 -0
- package/dist/cjs/common/index.js.map +7 -0
- package/dist/cjs/configs/index.js +38 -0
- package/dist/cjs/configs/index.js.map +7 -0
- package/dist/cjs/configs/useLeftNavConfig.js +106 -0
- package/dist/cjs/configs/useLeftNavConfig.js.map +7 -0
- package/dist/cjs/configs/useLeftNavItems.js +82 -0
- package/dist/cjs/configs/useLeftNavItems.js.map +7 -0
- package/dist/cjs/configs/useLeftNavSmoothExpand.js +53 -0
- package/dist/cjs/configs/useLeftNavSmoothExpand.js.map +7 -0
- package/dist/cjs/exported-related/ChevronItem/index.js +56 -0
- package/dist/cjs/exported-related/ChevronItem/index.js.map +7 -0
- package/dist/cjs/exported-related/Icon/index.js +66 -0
- package/dist/cjs/exported-related/Icon/index.js.map +7 -0
- package/dist/cjs/exported-related/ItemRenderer/index.js +133 -0
- package/dist/cjs/exported-related/ItemRenderer/index.js.map +7 -0
- package/dist/cjs/exported-related/ItemRenderer/styled.js +90 -0
- package/dist/cjs/exported-related/ItemRenderer/styled.js.map +7 -0
- package/dist/cjs/exported-related/ItemRenderer/usePropsWithDefaults.js +86 -0
- package/dist/cjs/exported-related/ItemRenderer/usePropsWithDefaults.js.map +7 -0
- package/dist/cjs/exported-related/Notifications/index.js +82 -0
- package/dist/cjs/exported-related/Notifications/index.js.map +7 -0
- package/dist/cjs/exported-related/OpenWindowItem/index.js +63 -0
- package/dist/cjs/exported-related/OpenWindowItem/index.js.map +7 -0
- package/dist/cjs/exported-related/constants.js +57 -0
- package/dist/cjs/exported-related/constants.js.map +7 -0
- package/dist/cjs/exported-related/index.js +33 -0
- package/dist/cjs/exported-related/index.js.map +7 -0
- package/dist/cjs/hooks/index.js +30 -0
- package/dist/cjs/hooks/index.js.map +7 -0
- package/dist/cjs/hooks/useExpandableOnClickHandler.js +64 -0
- package/dist/cjs/hooks/useExpandableOnClickHandler.js.map +7 -0
- package/dist/cjs/hooks/useKeyboardNavigation.js +118 -0
- package/dist/cjs/hooks/useKeyboardNavigation.js.map +7 -0
- package/dist/cjs/hooks/useOpenableOnClickHandler.js +69 -0
- package/dist/cjs/hooks/useOpenableOnClickHandler.js.map +7 -0
- package/dist/cjs/hooks/useSelectFirstBodyItem.js +52 -0
- package/dist/cjs/hooks/useSelectFirstBodyItem.js.map +7 -0
- package/dist/cjs/index.d.js +27 -0
- package/dist/cjs/index.d.js.map +7 -0
- package/dist/cjs/index.js +41 -0
- package/dist/cjs/index.js.map +7 -0
- package/dist/cjs/outOfTheBox/ItemControlledDrilldown/index.js +167 -0
- package/dist/cjs/outOfTheBox/ItemControlledDrilldown/index.js.map +7 -0
- package/dist/cjs/outOfTheBox/ItemControlledDrilldown/styled.js +49 -0
- package/dist/cjs/outOfTheBox/ItemControlledDrilldown/styled.js.map +7 -0
- package/dist/cjs/outOfTheBox/ItemHeader/index.js +163 -0
- package/dist/cjs/outOfTheBox/ItemHeader/index.js.map +7 -0
- package/dist/cjs/outOfTheBox/ItemHeader/styled.js +49 -0
- package/dist/cjs/outOfTheBox/ItemHeader/styled.js.map +7 -0
- package/dist/cjs/outOfTheBox/ItemLink/index.js +122 -0
- package/dist/cjs/outOfTheBox/ItemLink/index.js.map +7 -0
- package/dist/cjs/outOfTheBox/ItemLink/styled.js +41 -0
- package/dist/cjs/outOfTheBox/ItemLink/styled.js.map +7 -0
- package/dist/cjs/outOfTheBox/ItemSection/index.js +95 -0
- package/dist/cjs/outOfTheBox/ItemSection/index.js.map +7 -0
- package/dist/cjs/outOfTheBox/ItemSection/styled.js +53 -0
- package/dist/cjs/outOfTheBox/ItemSection/styled.js.map +7 -0
- package/dist/cjs/outOfTheBox/ItemSeparator/index.js +78 -0
- package/dist/cjs/outOfTheBox/ItemSeparator/index.js.map +7 -0
- package/dist/cjs/outOfTheBox/ItemSubmenu/index.js +164 -0
- package/dist/cjs/outOfTheBox/ItemSubmenu/index.js.map +7 -0
- package/dist/cjs/outOfTheBox/ItemSubmenu/styled.js +49 -0
- package/dist/cjs/outOfTheBox/ItemSubmenu/styled.js.map +7 -0
- package/dist/cjs/outOfTheBox/ItemTextLabel/index.js +85 -0
- package/dist/cjs/outOfTheBox/ItemTextLabel/index.js.map +7 -0
- package/dist/cjs/outOfTheBox/ItemTextLabel/styled.js +43 -0
- package/dist/cjs/outOfTheBox/ItemTextLabel/styled.js.map +7 -0
- package/dist/cjs/outOfTheBox/ItemUncontrolledDrilldown/index.js +181 -0
- package/dist/cjs/outOfTheBox/ItemUncontrolledDrilldown/index.js.map +7 -0
- package/dist/cjs/outOfTheBox/ItemUncontrolledDrilldown/styled.js +49 -0
- package/dist/cjs/outOfTheBox/ItemUncontrolledDrilldown/styled.js.map +7 -0
- package/dist/cjs/outOfTheBox/ItemWithDate/index.js +107 -0
- package/dist/cjs/outOfTheBox/ItemWithDate/index.js.map +7 -0
- package/dist/cjs/outOfTheBox/ItemWithDate/styled.js +49 -0
- package/dist/cjs/outOfTheBox/ItemWithDate/styled.js.map +7 -0
- package/dist/cjs/outOfTheBox/index.js +77 -0
- package/dist/cjs/outOfTheBox/index.js.map +7 -0
- package/dist/cjs/parts/LeftNavContent/index.js +88 -0
- package/dist/cjs/parts/LeftNavContent/index.js.map +7 -0
- package/dist/cjs/parts/LeftNavContent/styled.js +113 -0
- package/dist/cjs/parts/LeftNavContent/styled.js.map +7 -0
- package/dist/cjs/parts/LeftNavContentWithScrollbar/index.js +115 -0
- package/dist/cjs/parts/LeftNavContentWithScrollbar/index.js.map +7 -0
- package/dist/cjs/parts/LeftNavFooterItem/index.js +125 -0
- package/dist/cjs/parts/LeftNavFooterItem/index.js.map +7 -0
- package/dist/cjs/parts/LeftNavFooterItem/styled.js +94 -0
- package/dist/cjs/parts/LeftNavFooterItem/styled.js.map +7 -0
- package/dist/cjs/parts/LeftNavLoading/index.js +52 -0
- package/dist/cjs/parts/LeftNavLoading/index.js.map +7 -0
- package/dist/cjs/parts/OutOfTheBoxMapItem.js +69 -0
- package/dist/cjs/parts/OutOfTheBoxMapItem.js.map +7 -0
- package/dist/cjs/prop-types.js +66 -0
- package/dist/cjs/prop-types.js.map +7 -0
- package/dist/esm/LeftNavigation.js +22 -0
- package/dist/esm/LeftNavigation.js.map +7 -0
- package/{esm → dist/esm}/LeftNavigationContext.js +15 -11
- package/dist/esm/LeftNavigationContext.js.map +7 -0
- package/dist/esm/common/getItemBackgroundStyle.js +22 -0
- package/dist/esm/common/getItemBackgroundStyle.js.map +7 -0
- package/dist/esm/common/getLeftBorderStyle.js +25 -0
- package/dist/esm/common/getLeftBorderStyle.js.map +7 -0
- package/dist/esm/common/getScrollbarStyle.js +29 -0
- package/dist/esm/common/getScrollbarStyle.js.map +7 -0
- package/dist/esm/common/index.js +5 -0
- package/dist/esm/common/index.js.map +7 -0
- package/dist/esm/configs/index.js +9 -0
- package/dist/esm/configs/index.js.map +7 -0
- package/dist/esm/configs/useLeftNavConfig.js +77 -0
- package/dist/esm/configs/useLeftNavConfig.js.map +7 -0
- package/dist/esm/configs/useLeftNavItems.js +53 -0
- package/dist/esm/configs/useLeftNavItems.js.map +7 -0
- package/dist/esm/configs/useLeftNavSmoothExpand.js +24 -0
- package/dist/esm/configs/useLeftNavSmoothExpand.js.map +7 -0
- package/dist/esm/exported-related/ChevronItem/index.js +29 -0
- package/dist/esm/exported-related/ChevronItem/index.js.map +7 -0
- package/dist/esm/exported-related/Icon/index.js +39 -0
- package/dist/esm/exported-related/Icon/index.js.map +7 -0
- package/dist/esm/exported-related/ItemRenderer/index.js +104 -0
- package/dist/esm/exported-related/ItemRenderer/index.js.map +7 -0
- package/dist/esm/exported-related/ItemRenderer/styled.js +61 -0
- package/dist/esm/exported-related/ItemRenderer/styled.js.map +7 -0
- package/dist/esm/exported-related/ItemRenderer/usePropsWithDefaults.js +59 -0
- package/dist/esm/exported-related/ItemRenderer/usePropsWithDefaults.js.map +7 -0
- package/dist/esm/exported-related/Notifications/index.js +58 -0
- package/dist/esm/exported-related/Notifications/index.js.map +7 -0
- package/dist/esm/exported-related/OpenWindowItem/index.js +36 -0
- package/dist/esm/exported-related/OpenWindowItem/index.js.map +7 -0
- package/dist/esm/exported-related/constants.js +28 -0
- package/dist/esm/exported-related/constants.js.map +7 -0
- package/dist/esm/exported-related/index.js +8 -0
- package/dist/esm/exported-related/index.js.map +7 -0
- package/dist/esm/hooks/index.js +5 -0
- package/dist/esm/hooks/index.js.map +7 -0
- package/dist/esm/hooks/useExpandableOnClickHandler.js +35 -0
- package/dist/esm/hooks/useExpandableOnClickHandler.js.map +7 -0
- package/{esm → dist/esm}/hooks/useKeyboardNavigation.js +30 -47
- package/dist/esm/hooks/useKeyboardNavigation.js.map +7 -0
- package/dist/esm/hooks/useOpenableOnClickHandler.js +40 -0
- package/dist/esm/hooks/useOpenableOnClickHandler.js.map +7 -0
- package/dist/esm/hooks/useSelectFirstBodyItem.js +23 -0
- package/dist/esm/hooks/useSelectFirstBodyItem.js.map +7 -0
- package/dist/esm/index.d.js +2 -0
- package/dist/esm/index.d.js.map +7 -0
- package/dist/esm/index.js +12 -0
- package/dist/esm/index.js.map +7 -0
- package/dist/esm/outOfTheBox/ItemControlledDrilldown/index.js +140 -0
- package/dist/esm/outOfTheBox/ItemControlledDrilldown/index.js.map +7 -0
- package/dist/esm/outOfTheBox/ItemControlledDrilldown/styled.js +20 -0
- package/dist/esm/outOfTheBox/ItemControlledDrilldown/styled.js.map +7 -0
- package/dist/esm/outOfTheBox/ItemHeader/index.js +136 -0
- package/dist/esm/outOfTheBox/ItemHeader/index.js.map +7 -0
- package/dist/esm/outOfTheBox/ItemHeader/styled.js +20 -0
- package/dist/esm/outOfTheBox/ItemHeader/styled.js.map +7 -0
- package/dist/esm/outOfTheBox/ItemLink/index.js +95 -0
- package/dist/esm/outOfTheBox/ItemLink/index.js.map +7 -0
- package/dist/esm/outOfTheBox/ItemLink/styled.js +12 -0
- package/dist/esm/outOfTheBox/ItemLink/styled.js.map +7 -0
- package/dist/esm/outOfTheBox/ItemSection/index.js +68 -0
- package/dist/esm/outOfTheBox/ItemSection/index.js.map +7 -0
- package/dist/esm/outOfTheBox/ItemSection/styled.js +24 -0
- package/dist/esm/outOfTheBox/ItemSection/styled.js.map +7 -0
- package/dist/esm/outOfTheBox/ItemSeparator/index.js +51 -0
- package/dist/esm/outOfTheBox/ItemSeparator/index.js.map +7 -0
- package/dist/esm/outOfTheBox/ItemSubmenu/index.js +137 -0
- package/dist/esm/outOfTheBox/ItemSubmenu/index.js.map +7 -0
- package/dist/esm/outOfTheBox/ItemSubmenu/styled.js +20 -0
- package/dist/esm/outOfTheBox/ItemSubmenu/styled.js.map +7 -0
- package/dist/esm/outOfTheBox/ItemTextLabel/index.js +58 -0
- package/dist/esm/outOfTheBox/ItemTextLabel/index.js.map +7 -0
- package/dist/esm/outOfTheBox/ItemTextLabel/styled.js +14 -0
- package/dist/esm/outOfTheBox/ItemTextLabel/styled.js.map +7 -0
- package/dist/esm/outOfTheBox/ItemUncontrolledDrilldown/index.js +154 -0
- package/dist/esm/outOfTheBox/ItemUncontrolledDrilldown/index.js.map +7 -0
- package/dist/esm/outOfTheBox/ItemUncontrolledDrilldown/styled.js +20 -0
- package/dist/esm/outOfTheBox/ItemUncontrolledDrilldown/styled.js.map +7 -0
- package/dist/esm/outOfTheBox/ItemWithDate/index.js +80 -0
- package/dist/esm/outOfTheBox/ItemWithDate/index.js.map +7 -0
- package/dist/esm/outOfTheBox/ItemWithDate/styled.js +20 -0
- package/dist/esm/outOfTheBox/ItemWithDate/styled.js.map +7 -0
- package/dist/esm/outOfTheBox/index.js +48 -0
- package/dist/esm/outOfTheBox/index.js.map +7 -0
- package/dist/esm/parts/LeftNavContent/index.js +67 -0
- package/dist/esm/parts/LeftNavContent/index.js.map +7 -0
- package/dist/esm/parts/LeftNavContent/styled.js +84 -0
- package/dist/esm/parts/LeftNavContent/styled.js.map +7 -0
- package/dist/esm/parts/LeftNavContentWithScrollbar/index.js +88 -0
- package/dist/esm/parts/LeftNavContentWithScrollbar/index.js.map +7 -0
- package/dist/esm/parts/LeftNavFooterItem/index.js +103 -0
- package/dist/esm/parts/LeftNavFooterItem/index.js.map +7 -0
- package/dist/esm/parts/LeftNavFooterItem/styled.js +65 -0
- package/dist/esm/parts/LeftNavFooterItem/styled.js.map +7 -0
- package/dist/esm/parts/LeftNavLoading/index.js +23 -0
- package/dist/esm/parts/LeftNavLoading/index.js.map +7 -0
- package/dist/esm/parts/OutOfTheBoxMapItem.js +42 -0
- package/dist/esm/parts/OutOfTheBoxMapItem.js.map +7 -0
- package/dist/esm/prop-types.js +37 -0
- package/dist/esm/prop-types.js.map +7 -0
- package/package.json +129 -120
- package/cjs/LeftNavigation.js +0 -29
- package/cjs/LeftNavigationContext.js +0 -41
- package/cjs/common/getItemBackgroundStyle.js +0 -12
- package/cjs/common/getLeftBorderStyle.js +0 -12
- package/cjs/common/getScrollbarStyle.js +0 -7
- package/cjs/common/index.js +0 -13
- package/cjs/configs/index.js +0 -10
- package/cjs/configs/useLeftNavConfig.js +0 -102
- package/cjs/configs/useLeftNavItems.js +0 -80
- package/cjs/configs/useLeftNavSmoothExpand.js +0 -35
- package/cjs/exported-related/ChevronItem/index.js +0 -28
- package/cjs/exported-related/Icon/index.js +0 -36
- package/cjs/exported-related/ItemRenderer/index.js +0 -128
- package/cjs/exported-related/ItemRenderer/styled.js +0 -58
- package/cjs/exported-related/ItemRenderer/usePropsWithDefaults.js +0 -57
- package/cjs/exported-related/Notifications/index.js +0 -62
- package/cjs/exported-related/OpenWindowItem/index.js +0 -33
- package/cjs/exported-related/constants.js +0 -29
- package/cjs/exported-related/index.js +0 -23
- package/cjs/hooks/index.js +0 -13
- package/cjs/hooks/useExpandableOnClickHandler.js +0 -35
- package/cjs/hooks/useKeyboardNavigation.js +0 -110
- package/cjs/hooks/useOpenableOnClickHandler.js +0 -40
- package/cjs/hooks/useSelectFirstBodyItem.js +0 -39
- package/cjs/index.d.js +0 -2
- package/cjs/index.js +0 -30
- package/cjs/outOfTheBox/ItemControlledDrilldown/index.js +0 -158
- package/cjs/outOfTheBox/ItemControlledDrilldown/styled.js +0 -27
- package/cjs/outOfTheBox/ItemHeader/index.js +0 -144
- package/cjs/outOfTheBox/ItemHeader/styled.js +0 -22
- package/cjs/outOfTheBox/ItemLink/index.js +0 -97
- package/cjs/outOfTheBox/ItemLink/styled.js +0 -17
- package/cjs/outOfTheBox/ItemSection/index.js +0 -83
- package/cjs/outOfTheBox/ItemSection/styled.js +0 -23
- package/cjs/outOfTheBox/ItemSeparator/index.js +0 -52
- package/cjs/outOfTheBox/ItemSubmenu/index.js +0 -145
- package/cjs/outOfTheBox/ItemSubmenu/styled.js +0 -22
- package/cjs/outOfTheBox/ItemTextLabel/index.js +0 -70
- package/cjs/outOfTheBox/ItemTextLabel/styled.js +0 -23
- package/cjs/outOfTheBox/ItemUncontrolledDrilldown/index.js +0 -172
- package/cjs/outOfTheBox/ItemUncontrolledDrilldown/styled.js +0 -27
- package/cjs/outOfTheBox/ItemWithDate/index.js +0 -86
- package/cjs/outOfTheBox/ItemWithDate/styled.js +0 -27
- package/cjs/outOfTheBox/index.js +0 -62
- package/cjs/parts/LeftNavContent/index.js +0 -84
- package/cjs/parts/LeftNavContent/styled.js +0 -53
- package/cjs/parts/LeftNavContentWithScrollbar/index.js +0 -91
- package/cjs/parts/LeftNavFooterItem/index.js +0 -108
- package/cjs/parts/LeftNavFooterItem/styled.js +0 -39
- package/cjs/parts/LeftNavLoading/index.js +0 -34
- package/cjs/parts/OutOfTheBoxMapItem.js +0 -52
- package/cjs/prop-types.js +0 -47
- package/esm/LeftNavigation.js +0 -20
- package/esm/common/getItemBackgroundStyle.js +0 -8
- package/esm/common/getLeftBorderStyle.js +0 -8
- package/esm/common/getScrollbarStyle.js +0 -3
- package/esm/common/index.js +0 -3
- package/esm/configs/index.js +0 -2
- package/esm/configs/useLeftNavConfig.js +0 -93
- package/esm/configs/useLeftNavItems.js +0 -75
- package/esm/configs/useLeftNavSmoothExpand.js +0 -26
- package/esm/exported-related/ChevronItem/index.js +0 -19
- package/esm/exported-related/Icon/index.js +0 -27
- package/esm/exported-related/ItemRenderer/index.js +0 -119
- package/esm/exported-related/ItemRenderer/styled.js +0 -47
- package/esm/exported-related/ItemRenderer/usePropsWithDefaults.js +0 -49
- package/esm/exported-related/Notifications/index.js +0 -51
- package/esm/exported-related/OpenWindowItem/index.js +0 -23
- package/esm/exported-related/constants.js +0 -21
- package/esm/exported-related/index.js +0 -6
- package/esm/hooks/index.js +0 -3
- package/esm/hooks/useExpandableOnClickHandler.js +0 -31
- package/esm/hooks/useOpenableOnClickHandler.js +0 -36
- package/esm/hooks/useSelectFirstBodyItem.js +0 -35
- package/esm/index.d.js +0 -1
- package/esm/index.js +0 -8
- package/esm/outOfTheBox/ItemControlledDrilldown/index.js +0 -148
- package/esm/outOfTheBox/ItemControlledDrilldown/styled.js +0 -17
- package/esm/outOfTheBox/ItemHeader/index.js +0 -134
- package/esm/outOfTheBox/ItemHeader/styled.js +0 -12
- package/esm/outOfTheBox/ItemLink/index.js +0 -87
- package/esm/outOfTheBox/ItemLink/styled.js +0 -8
- package/esm/outOfTheBox/ItemSection/index.js +0 -73
- package/esm/outOfTheBox/ItemSection/styled.js +0 -13
- package/esm/outOfTheBox/ItemSeparator/index.js +0 -42
- package/esm/outOfTheBox/ItemSubmenu/index.js +0 -135
- package/esm/outOfTheBox/ItemSubmenu/styled.js +0 -12
- package/esm/outOfTheBox/ItemTextLabel/index.js +0 -61
- package/esm/outOfTheBox/ItemTextLabel/styled.js +0 -14
- package/esm/outOfTheBox/ItemUncontrolledDrilldown/index.js +0 -162
- package/esm/outOfTheBox/ItemUncontrolledDrilldown/styled.js +0 -17
- package/esm/outOfTheBox/ItemWithDate/index.js +0 -76
- package/esm/outOfTheBox/ItemWithDate/styled.js +0 -17
- package/esm/outOfTheBox/index.js +0 -57
- package/esm/parts/LeftNavContent/index.js +0 -77
- package/esm/parts/LeftNavContent/styled.js +0 -39
- package/esm/parts/LeftNavContentWithScrollbar/index.js +0 -80
- package/esm/parts/LeftNavFooterItem/index.js +0 -98
- package/esm/parts/LeftNavFooterItem/styled.js +0 -26
- package/esm/parts/LeftNavLoading/index.js +0 -23
- package/esm/parts/OutOfTheBoxMapItem.js +0 -42
- package/esm/prop-types.js +0 -40
- package/types/LeftNavigation.d.ts +0 -55
- package/types/LeftNavigationContext.d.ts +0 -18
- package/types/common/getItemBackgroundStyle.d.ts +0 -5
- package/types/common/getLeftBorderStyle.d.ts +0 -4
- package/types/common/getScrollbarStyle.d.ts +0 -1
- package/types/common/index.d.ts +0 -3
- package/types/configs/index.d.ts +0 -3
- package/types/configs/useLeftNavConfig.d.ts +0 -4
- package/types/configs/useLeftNavItems.d.ts +0 -12
- package/types/configs/useLeftNavSmoothExpand.d.ts +0 -10
- package/types/exported-related/ChevronItem/index.d.ts +0 -3
- package/types/exported-related/Icon/index.d.ts +0 -5
- package/types/exported-related/ItemRenderer/index.d.ts +0 -3
- package/types/exported-related/ItemRenderer/styled.d.ts +0 -16
- package/types/exported-related/ItemRenderer/usePropsWithDefaults.d.ts +0 -2
- package/types/exported-related/Notifications/index.d.ts +0 -8
- package/types/exported-related/OpenWindowItem/index.d.ts +0 -3
- package/types/exported-related/constants.d.ts +0 -19
- package/types/exported-related/index.d.ts +0 -6
- package/types/hooks/index.d.ts +0 -3
- package/types/hooks/useExpandableOnClickHandler.d.ts +0 -9
- package/types/hooks/useKeyboardNavigation.d.ts +0 -8
- package/types/hooks/useOpenableOnClickHandler.d.ts +0 -10
- package/types/hooks/useSelectFirstBodyItem.d.ts +0 -3
- package/types/index.d.d.ts +0 -77
- package/types/index.d.ts +0 -3
- package/types/outOfTheBox/ItemControlledDrilldown/index.d.ts +0 -3
- package/types/outOfTheBox/ItemControlledDrilldown/styled.d.ts +0 -5
- package/types/outOfTheBox/ItemHeader/index.d.ts +0 -3
- package/types/outOfTheBox/ItemHeader/styled.d.ts +0 -3
- package/types/outOfTheBox/ItemLink/index.d.ts +0 -3
- package/types/outOfTheBox/ItemLink/styled.d.ts +0 -2
- package/types/outOfTheBox/ItemSection/index.d.ts +0 -3
- package/types/outOfTheBox/ItemSection/styled.d.ts +0 -3
- package/types/outOfTheBox/ItemSeparator/index.d.ts +0 -3
- package/types/outOfTheBox/ItemSubmenu/index.d.ts +0 -3
- package/types/outOfTheBox/ItemSubmenu/styled.d.ts +0 -3
- package/types/outOfTheBox/ItemTextLabel/index.d.ts +0 -3
- package/types/outOfTheBox/ItemTextLabel/styled.d.ts +0 -2
- package/types/outOfTheBox/ItemUncontrolledDrilldown/index.d.ts +0 -3
- package/types/outOfTheBox/ItemUncontrolledDrilldown/styled.d.ts +0 -5
- package/types/outOfTheBox/ItemWithDate/index.d.ts +0 -3
- package/types/outOfTheBox/ItemWithDate/styled.d.ts +0 -5
- package/types/outOfTheBox/index.d.ts +0 -13
- package/types/parts/LeftNavContent/index.d.ts +0 -3
- package/types/parts/LeftNavContent/styled.d.ts +0 -14
- package/types/parts/LeftNavContentWithScrollbar/index.d.ts +0 -6
- package/types/parts/LeftNavFooterItem/index.d.ts +0 -8
- package/types/parts/LeftNavFooterItem/styled.d.ts +0 -14
- package/types/parts/LeftNavLoading/index.d.ts +0 -4
- package/types/parts/OutOfTheBoxMapItem.d.ts +0 -3
- package/types/prop-types.d.ts +0 -91
- package/types/tests/LeftNavigation.collapsed.test.d.ts +0 -1
- package/types/tests/LeftNavigation.expanded.test.d.ts +0 -1
- package/types/tests/LeftNavigation.opened.test.d.ts +0 -1
- package/types/tests/events/LeftNavigation.events.keyboard.test.d.ts +0 -1
- package/types/tests/events/LeftNavigation.events.subitems.test.d.ts +0 -1
- package/types/tests/events/LeftNavigation.events.test.d.ts +0 -1
- package/types/tests/events/LeftNavigation.focus.events.test.d.ts +0 -1
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import 'core-js/modules/esnext.async-iterator.filter.js';
|
|
2
|
-
import 'core-js/modules/esnext.iterator.constructor.js';
|
|
3
|
-
import 'core-js/modules/esnext.iterator.filter.js';
|
|
4
|
-
import 'core-js/modules/esnext.async-iterator.for-each.js';
|
|
5
|
-
import 'core-js/modules/esnext.iterator.for-each.js';
|
|
6
|
-
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
7
|
-
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
8
|
-
import 'react';
|
|
9
|
-
import styled from 'styled-components';
|
|
10
|
-
import { ItemRenderer } from '../../exported-related/ItemRenderer/index.js';
|
|
11
|
-
import '@elliemae/ds-icons';
|
|
12
|
-
import 'react/jsx-runtime';
|
|
13
|
-
import '@elliemae/ds-grid';
|
|
14
|
-
|
|
15
|
-
var _StyledSeparator;
|
|
16
|
-
|
|
17
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
18
|
-
|
|
19
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
20
|
-
const StyledSeparator = /*#__PURE__*/styled.div.withConfig({
|
|
21
|
-
componentId: "sc-lpwxj6-0"
|
|
22
|
-
})(["height:1px;background-color:", ";width:auto;margin:", " 0;margin-left:", ";grid-column:span 3;"], props => props.theme.colors.neutral[100], props => props.theme.space.xxxs, props => props.theme.space.xxxs);
|
|
23
|
-
const ItemSeparator = props => {
|
|
24
|
-
const {
|
|
25
|
-
item
|
|
26
|
-
} = props;
|
|
27
|
-
return /*#__PURE__*/_jsx(ItemRenderer, {
|
|
28
|
-
item: _objectSpread(_objectSpread({}, item), {}, {
|
|
29
|
-
itemOpts: _objectSpread(_objectSpread({}, item.itemOpts), {}, {
|
|
30
|
-
selectable: false,
|
|
31
|
-
focuseable: false
|
|
32
|
-
}),
|
|
33
|
-
CollapsedComponent: null
|
|
34
|
-
}),
|
|
35
|
-
minHeight: "1px",
|
|
36
|
-
paddingTop: "0px"
|
|
37
|
-
}, void 0, _StyledSeparator || (_StyledSeparator = /*#__PURE__*/_jsx(StyledSeparator, {
|
|
38
|
-
"data-testid": "leftnav-separator-subitem"
|
|
39
|
-
})));
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
export { ItemSeparator };
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
import 'core-js/modules/esnext.async-iterator.filter.js';
|
|
2
|
-
import 'core-js/modules/esnext.iterator.constructor.js';
|
|
3
|
-
import 'core-js/modules/esnext.iterator.filter.js';
|
|
4
|
-
import 'core-js/modules/esnext.async-iterator.for-each.js';
|
|
5
|
-
import 'core-js/modules/esnext.iterator.for-each.js';
|
|
6
|
-
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
7
|
-
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
8
|
-
import { useCallback } from 'react';
|
|
9
|
-
import Grid from '@elliemae/ds-grid';
|
|
10
|
-
import { SimpleTruncatedTooltipText } from '@elliemae/ds-truncated-tooltip-text';
|
|
11
|
-
import { CHEVRON_BACK_DS_ID } from '../../exported-related/constants.js';
|
|
12
|
-
import { ItemRenderer } from '../../exported-related/ItemRenderer/index.js';
|
|
13
|
-
import '@elliemae/ds-icons';
|
|
14
|
-
import 'react/jsx-runtime';
|
|
15
|
-
import 'styled-components';
|
|
16
|
-
import { StyledChevronLeft, StyledLabel } from './styled.js';
|
|
17
|
-
|
|
18
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
19
|
-
|
|
20
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
21
|
-
|
|
22
|
-
const notOpenedShadowStyle = isSelected => theme => "\n box-shadow: inset 4px 0 0 0 ".concat(isSelected ? theme.colors.brand[400] : 'transparent', ";\n\n :hover {\n box-shadow: inset 4px 0 0 0 ").concat(isSelected ? theme.colors.brand[400] : theme.colors.brand[300], ";\n }\n\n :active {\n box-shadow: inset 4px 0 0 0 ").concat(theme.colors.brand[400], ";\n }\n");
|
|
23
|
-
|
|
24
|
-
const ItemSubmenu = props => {
|
|
25
|
-
var _item$itemOpts$ariaLa;
|
|
26
|
-
|
|
27
|
-
const {
|
|
28
|
-
item,
|
|
29
|
-
item: {
|
|
30
|
-
dsId,
|
|
31
|
-
itemOpts: {
|
|
32
|
-
label,
|
|
33
|
-
RightComponent,
|
|
34
|
-
BottomComponent,
|
|
35
|
-
labelDataTestId,
|
|
36
|
-
labelOverflow: itemLabelOverflow
|
|
37
|
-
},
|
|
38
|
-
CollapsedComponent = () => null
|
|
39
|
-
},
|
|
40
|
-
ctx,
|
|
41
|
-
ctx: {
|
|
42
|
-
leftNavProps: {
|
|
43
|
-
openedItem,
|
|
44
|
-
labelOverflow: leftNavLabelOverflow,
|
|
45
|
-
onItemClick
|
|
46
|
-
},
|
|
47
|
-
expandedForAnimation,
|
|
48
|
-
selectedItem,
|
|
49
|
-
selectedParent,
|
|
50
|
-
setFocusedItem
|
|
51
|
-
}
|
|
52
|
-
} = props;
|
|
53
|
-
const labelOverflow = itemLabelOverflow || leftNavLabelOverflow;
|
|
54
|
-
const opened = openedItem === dsId;
|
|
55
|
-
const isSelected = selectedItem === dsId;
|
|
56
|
-
const shadowStyle = useCallback(opened => theme => !opened ? notOpenedShadowStyle(isSelected || selectedParent === dsId)(theme) : "box-shadow: inset 4px 0 0 0 #52A6EC", [dsId, isSelected, openedItem, selectedParent]);
|
|
57
|
-
const ariaLabel = (_item$itemOpts$ariaLa = item.itemOpts.ariaLabel) !== null && _item$itemOpts$ariaLa !== void 0 ? _item$itemOpts$ariaLa : typeof label === 'string' ? label : 'menuitem';
|
|
58
|
-
return /*#__PURE__*/_jsx(ItemRenderer, {
|
|
59
|
-
item: _objectSpread(_objectSpread({}, item), {}, {
|
|
60
|
-
itemOpts: _objectSpread(_objectSpread({}, item.itemOpts), {}, {
|
|
61
|
-
ariaLabel,
|
|
62
|
-
ariaExpanded: opened,
|
|
63
|
-
openable: expandedForAnimation && !opened,
|
|
64
|
-
closable: expandedForAnimation && opened,
|
|
65
|
-
selectable: !opened
|
|
66
|
-
})
|
|
67
|
-
}),
|
|
68
|
-
shadowStyle: shadowStyle,
|
|
69
|
-
hasBorderBottom: opened,
|
|
70
|
-
borderBottomMr: "12px"
|
|
71
|
-
}, void 0, /*#__PURE__*/_jsx(Grid, {
|
|
72
|
-
cols: opened ? ['auto', 'auto'] : ['38px'],
|
|
73
|
-
gutter: "1px",
|
|
74
|
-
pl: opened ? 'xxs' : 0,
|
|
75
|
-
justifyItems: "center",
|
|
76
|
-
"data-testid": "leftnav-leftcomponent"
|
|
77
|
-
}, void 0, opened && /*#__PURE__*/_jsx(StyledChevronLeft, {
|
|
78
|
-
size: "m",
|
|
79
|
-
color: ['brand-primary', 800],
|
|
80
|
-
onClick: e => {
|
|
81
|
-
onItemClick(item, e);
|
|
82
|
-
},
|
|
83
|
-
"data-testid": "leftnav-leftcomponent-chevron",
|
|
84
|
-
tabIndex: 0,
|
|
85
|
-
onFocus: e => {
|
|
86
|
-
e.stopPropagation();
|
|
87
|
-
setFocusedItem(CHEVRON_BACK_DS_ID);
|
|
88
|
-
},
|
|
89
|
-
role: "button",
|
|
90
|
-
"aria-label": "Close ".concat(ariaLabel)
|
|
91
|
-
}), /*#__PURE__*/_jsx(CollapsedComponent, {
|
|
92
|
-
item: item,
|
|
93
|
-
ctx: ctx
|
|
94
|
-
})), /*#__PURE__*/_jsx(StyledLabel, {
|
|
95
|
-
ml: opened ? 'xxs' : '1px',
|
|
96
|
-
mt: "xxxs",
|
|
97
|
-
mb: "15px",
|
|
98
|
-
"data-testid": labelDataTestId || 'leftnav-itemlabel',
|
|
99
|
-
labelOverflow: labelOverflow
|
|
100
|
-
}, void 0, labelOverflow === 'truncate' ? /*#__PURE__*/_jsx(SimpleTruncatedTooltipText, {
|
|
101
|
-
value: label,
|
|
102
|
-
placement: "bottom-start"
|
|
103
|
-
}) : label), /*#__PURE__*/_jsx(Grid, {
|
|
104
|
-
pl: "xs",
|
|
105
|
-
pr: opened ? 'xxs2' : 'xxs',
|
|
106
|
-
onFocus: e => {
|
|
107
|
-
e.stopPropagation();
|
|
108
|
-
setFocusedItem(null);
|
|
109
|
-
},
|
|
110
|
-
onKeyDown: e => e.stopPropagation(),
|
|
111
|
-
onClick: e => openedItem === dsId && e.stopPropagation(),
|
|
112
|
-
"data-testid": "leftnav-right-component"
|
|
113
|
-
}, void 0, RightComponent && /*#__PURE__*/_jsx(RightComponent, {
|
|
114
|
-
ctx: ctx,
|
|
115
|
-
item: item
|
|
116
|
-
})), BottomComponent && /*#__PURE__*/_jsx(Grid, {
|
|
117
|
-
style: {
|
|
118
|
-
gridColumn: 'span 3'
|
|
119
|
-
},
|
|
120
|
-
pb: "xxxs",
|
|
121
|
-
pl: "xxs",
|
|
122
|
-
pr: "xxs",
|
|
123
|
-
onFocus: e => {
|
|
124
|
-
e.stopPropagation();
|
|
125
|
-
setFocusedItem(null);
|
|
126
|
-
},
|
|
127
|
-
onKeyDown: e => e.stopPropagation(),
|
|
128
|
-
onClick: e => openedItem && e.stopPropagation()
|
|
129
|
-
}, void 0, /*#__PURE__*/_jsx(BottomComponent, {
|
|
130
|
-
ctx: ctx,
|
|
131
|
-
item: item
|
|
132
|
-
})));
|
|
133
|
-
};
|
|
134
|
-
|
|
135
|
-
export { ItemSubmenu };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import Grid from '@elliemae/ds-grid';
|
|
2
|
-
import { ChevronSmallLeft } from '@elliemae/ds-icons';
|
|
3
|
-
import styled from 'styled-components';
|
|
4
|
-
|
|
5
|
-
const StyledLabel = /*#__PURE__*/styled(Grid).withConfig({
|
|
6
|
-
componentId: "sc-1hegp8y-0"
|
|
7
|
-
})(["font-size:14px;color:", ";word-break:", ";"], props => props.theme.colors.neutral[800], props => props.labelOverflow === 'wrapAll' ? 'break-all' : 'normal');
|
|
8
|
-
const StyledChevronLeft = /*#__PURE__*/styled(ChevronSmallLeft).withConfig({
|
|
9
|
-
componentId: "sc-1hegp8y-1"
|
|
10
|
-
})(["cursor:pointer;:focus{outline:2px solid ", ";}"], props => props.theme.colors.brand[700]);
|
|
11
|
-
|
|
12
|
-
export { StyledChevronLeft, StyledLabel };
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import 'core-js/modules/esnext.async-iterator.filter.js';
|
|
2
|
-
import 'core-js/modules/esnext.iterator.constructor.js';
|
|
3
|
-
import 'core-js/modules/esnext.iterator.filter.js';
|
|
4
|
-
import 'core-js/modules/esnext.async-iterator.for-each.js';
|
|
5
|
-
import 'core-js/modules/esnext.iterator.for-each.js';
|
|
6
|
-
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
7
|
-
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
8
|
-
import 'react';
|
|
9
|
-
import { SimpleTruncatedTooltipText } from '@elliemae/ds-truncated-tooltip-text';
|
|
10
|
-
import { ItemRenderer } from '../../exported-related/ItemRenderer/index.js';
|
|
11
|
-
import '@elliemae/ds-icons';
|
|
12
|
-
import 'react/jsx-runtime';
|
|
13
|
-
import 'styled-components';
|
|
14
|
-
import '@elliemae/ds-grid';
|
|
15
|
-
import { StyledLabel } from './styled.js';
|
|
16
|
-
|
|
17
|
-
var _div;
|
|
18
|
-
|
|
19
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
20
|
-
|
|
21
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
22
|
-
const ItemTextLabel = props => {
|
|
23
|
-
const {
|
|
24
|
-
item,
|
|
25
|
-
item: {
|
|
26
|
-
itemOpts: {
|
|
27
|
-
label,
|
|
28
|
-
labelOverflow: itemLabelOverflow,
|
|
29
|
-
labelBold,
|
|
30
|
-
labelColor,
|
|
31
|
-
labelDataTestId
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
ctx: {
|
|
35
|
-
leftNavProps: {
|
|
36
|
-
labelOverflow: leftNavLabelOverflow
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
} = props;
|
|
40
|
-
const labelOverflow = itemLabelOverflow || leftNavLabelOverflow;
|
|
41
|
-
return /*#__PURE__*/_jsx(ItemRenderer, {
|
|
42
|
-
item: _objectSpread(_objectSpread({}, item), {}, {
|
|
43
|
-
CollapsedComponent: null
|
|
44
|
-
}),
|
|
45
|
-
minHeight: "32px",
|
|
46
|
-
paddingTop: "8px"
|
|
47
|
-
}, void 0, " ", _div || (_div = /*#__PURE__*/_jsx("div", {})), /*#__PURE__*/_jsx(StyledLabel, {
|
|
48
|
-
"data-testid": labelDataTestId || 'leftnav-list-item-label',
|
|
49
|
-
pl: "24px",
|
|
50
|
-
labelOverflow: labelOverflow,
|
|
51
|
-
labelBold: labelBold,
|
|
52
|
-
labelColor: labelColor,
|
|
53
|
-
mr: "xxs2",
|
|
54
|
-
pb: "xxxs"
|
|
55
|
-
}, void 0, labelOverflow === 'truncate' ? /*#__PURE__*/_jsx(SimpleTruncatedTooltipText, {
|
|
56
|
-
value: label,
|
|
57
|
-
placement: "bottom-start"
|
|
58
|
-
}) : label));
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
export { ItemTextLabel };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
|
-
import Grid from '@elliemae/ds-grid';
|
|
3
|
-
|
|
4
|
-
const StyledLabel = /*#__PURE__*/styled(Grid).withConfig({
|
|
5
|
-
componentId: "sc-1v26p1i-0"
|
|
6
|
-
})(["font-size:13px;font-weight:", ";color:", ";line-height:14px;word-break:", ";"], props => props.labelBold ? props.theme.fontWeights.semibold : props.theme.fontWeights.regular, _ref => {
|
|
7
|
-
let {
|
|
8
|
-
labelColor,
|
|
9
|
-
theme
|
|
10
|
-
} = _ref;
|
|
11
|
-
return labelColor ? theme.colors[labelColor[0]][labelColor[1]] : theme.colors.neutral[800];
|
|
12
|
-
}, props => props.labelOverflow === 'wrapAll' ? 'break-all' : 'normal');
|
|
13
|
-
|
|
14
|
-
export { StyledLabel };
|
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
import 'core-js/modules/esnext.async-iterator.for-each.js';
|
|
2
|
-
import 'core-js/modules/esnext.iterator.for-each.js';
|
|
3
|
-
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
4
|
-
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
5
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
6
|
-
import 'core-js/modules/esnext.async-iterator.map.js';
|
|
7
|
-
import 'core-js/modules/esnext.iterator.map.js';
|
|
8
|
-
import 'core-js/modules/esnext.async-iterator.filter.js';
|
|
9
|
-
import 'core-js/modules/esnext.iterator.constructor.js';
|
|
10
|
-
import 'core-js/modules/esnext.iterator.filter.js';
|
|
11
|
-
import { useEffect, useMemo, useCallback } from 'react';
|
|
12
|
-
import Grid from '@elliemae/ds-grid';
|
|
13
|
-
import { SimpleTruncatedTooltipText } from '@elliemae/ds-truncated-tooltip-text';
|
|
14
|
-
import { ArrowheadDown, ArrowheadRight } from '@elliemae/ds-icons';
|
|
15
|
-
import { ITEM_TYPES } from '../../exported-related/constants.js';
|
|
16
|
-
import { ItemRenderer } from '../../exported-related/ItemRenderer/index.js';
|
|
17
|
-
import 'react/jsx-runtime';
|
|
18
|
-
import 'styled-components';
|
|
19
|
-
import { StyledLabel, StyledDate } from './styled.js';
|
|
20
|
-
import { ItemSeparator } from '../ItemSeparator/index.js';
|
|
21
|
-
import { ItemWithDate } from '../ItemWithDate/index.js';
|
|
22
|
-
import { ItemTextLabel } from '../ItemTextLabel/index.js';
|
|
23
|
-
|
|
24
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
25
|
-
|
|
26
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
27
|
-
// Subitem mapping
|
|
28
|
-
const outOfTheBoxSubitemsComponents = {
|
|
29
|
-
[ITEM_TYPES.LEFT_NAV_ITEM_SEPARATOR]: ItemSeparator,
|
|
30
|
-
[ITEM_TYPES.LEFT_NAV_ITEM_WITH_DATE]: ItemWithDate,
|
|
31
|
-
[ITEM_TYPES.LEFT_NAV_ITEM_TEXT_LABEL]: ItemTextLabel
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
const OutOfTheBoxMapSubitem = props => {
|
|
35
|
-
const {
|
|
36
|
-
item,
|
|
37
|
-
item: {
|
|
38
|
-
type,
|
|
39
|
-
Component
|
|
40
|
-
},
|
|
41
|
-
ctx
|
|
42
|
-
} = props;
|
|
43
|
-
|
|
44
|
-
if (typeof type === 'string' && !!outOfTheBoxSubitemsComponents[type]) {
|
|
45
|
-
var _item$itemOpts$indent, _item$itemOpts;
|
|
46
|
-
|
|
47
|
-
const OutOfTheBoxComponent = outOfTheBoxSubitemsComponents[type];
|
|
48
|
-
const currentIndent = (_item$itemOpts$indent = (_item$itemOpts = item.itemOpts) === null || _item$itemOpts === void 0 ? void 0 : _item$itemOpts.indent) !== null && _item$itemOpts$indent !== void 0 ? _item$itemOpts$indent : 0;
|
|
49
|
-
|
|
50
|
-
const newItem = _objectSpread(_objectSpread({}, item), {}, {
|
|
51
|
-
itemOpts: _objectSpread(_objectSpread({}, item.itemOpts), {}, {
|
|
52
|
-
indent: currentIndent + 44
|
|
53
|
-
})
|
|
54
|
-
});
|
|
55
|
-
|
|
56
|
-
return /*#__PURE__*/_jsx(OutOfTheBoxComponent, {
|
|
57
|
-
item: newItem,
|
|
58
|
-
ctx: ctx
|
|
59
|
-
});
|
|
60
|
-
} // we expect an error to be threw if Component is not defined and type is not a valid out-of-the-box...
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
return /*#__PURE__*/_jsx(Component, {
|
|
64
|
-
item: item,
|
|
65
|
-
ctx: ctx
|
|
66
|
-
});
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
const ItemUncontrolledDrilldown = props => {
|
|
70
|
-
const {
|
|
71
|
-
item,
|
|
72
|
-
item: {
|
|
73
|
-
dsId,
|
|
74
|
-
itemOpts: {
|
|
75
|
-
label,
|
|
76
|
-
RightComponent,
|
|
77
|
-
labelRightSection,
|
|
78
|
-
labelOverflow: itemLabelOverflow,
|
|
79
|
-
labelBold,
|
|
80
|
-
labelColor,
|
|
81
|
-
startOpened,
|
|
82
|
-
items,
|
|
83
|
-
labelDataTestId
|
|
84
|
-
}
|
|
85
|
-
},
|
|
86
|
-
ctx,
|
|
87
|
-
ctx: {
|
|
88
|
-
leftNavProps: {
|
|
89
|
-
labelOverflow: leftNavLabelOverflow
|
|
90
|
-
},
|
|
91
|
-
openedDrilldowns,
|
|
92
|
-
setOpenedDrilldowns
|
|
93
|
-
}
|
|
94
|
-
} = props; // Start opened functionality
|
|
95
|
-
|
|
96
|
-
useEffect(() => {
|
|
97
|
-
if (startOpened) setOpenedDrilldowns([...openedDrilldowns, dsId]);
|
|
98
|
-
}, []);
|
|
99
|
-
const opened = openedDrilldowns.includes(dsId);
|
|
100
|
-
const labelOverflow = itemLabelOverflow || leftNavLabelOverflow;
|
|
101
|
-
const arrowIcon = useMemo(() => {
|
|
102
|
-
const Component = opened ? ArrowheadDown : ArrowheadRight;
|
|
103
|
-
return /*#__PURE__*/_jsx(Component, {
|
|
104
|
-
width: "24px",
|
|
105
|
-
height: "18px",
|
|
106
|
-
color: ['brand-primary', '800']
|
|
107
|
-
});
|
|
108
|
-
}, [opened]); // Array of subitems
|
|
109
|
-
|
|
110
|
-
const subitems = useMemo(() => {
|
|
111
|
-
if (!opened || !items) return [];
|
|
112
|
-
return items.map(subitem => /*#__PURE__*/_jsx(OutOfTheBoxMapSubitem, {
|
|
113
|
-
item: subitem,
|
|
114
|
-
ctx: ctx
|
|
115
|
-
}, subitem.dsId));
|
|
116
|
-
}, [items, opened]);
|
|
117
|
-
const handleOnClick = useCallback(() => {
|
|
118
|
-
if (opened) setOpenedDrilldowns(openedDrilldowns.filter(openedDrilldown => openedDrilldown !== dsId));else setOpenedDrilldowns([...openedDrilldowns, dsId]);
|
|
119
|
-
}, [opened, setOpenedDrilldowns, openedDrilldowns]);
|
|
120
|
-
return /*#__PURE__*/_jsx(ItemRenderer, {
|
|
121
|
-
item: _objectSpread(_objectSpread({}, item), {}, {
|
|
122
|
-
itemOpts: _objectSpread(_objectSpread({
|
|
123
|
-
ariaExpanded: opened,
|
|
124
|
-
ariaRole: 'menuitem'
|
|
125
|
-
}, item.itemOpts), {}, {
|
|
126
|
-
openable: !opened,
|
|
127
|
-
closable: opened
|
|
128
|
-
}),
|
|
129
|
-
CollapsedComponent: null
|
|
130
|
-
}),
|
|
131
|
-
subitems: subitems,
|
|
132
|
-
minHeight: "32px",
|
|
133
|
-
paddingTop: "8px",
|
|
134
|
-
onClick: handleOnClick
|
|
135
|
-
}, void 0, /*#__PURE__*/_jsx(Grid, {
|
|
136
|
-
pl: "xxs",
|
|
137
|
-
mt: "-2px"
|
|
138
|
-
}, void 0, arrowIcon), /*#__PURE__*/_jsx(StyledLabel, {
|
|
139
|
-
pb: "xxxs",
|
|
140
|
-
"data-testid": labelDataTestId || 'leftnav-list-item-label',
|
|
141
|
-
labelOverflow: labelOverflow,
|
|
142
|
-
labelBold: labelBold,
|
|
143
|
-
labelColor: labelColor
|
|
144
|
-
}, void 0, labelOverflow === 'truncate' ? /*#__PURE__*/_jsx(SimpleTruncatedTooltipText, {
|
|
145
|
-
value: label,
|
|
146
|
-
placement: "bottom-start"
|
|
147
|
-
}) : label), /*#__PURE__*/_jsx(Grid, {
|
|
148
|
-
pr: "xxs2",
|
|
149
|
-
cols: ['auto', 'auto'],
|
|
150
|
-
alignItems: "center"
|
|
151
|
-
}, void 0, /*#__PURE__*/_jsx(StyledDate, {
|
|
152
|
-
ml: "xxs",
|
|
153
|
-
"data-testid": "leftnav-list-item-date"
|
|
154
|
-
}, void 0, labelRightSection), /*#__PURE__*/_jsx(Grid, {
|
|
155
|
-
pl: RightComponent ? 'xxs' : '0px'
|
|
156
|
-
}, void 0, RightComponent && /*#__PURE__*/_jsx(RightComponent, {
|
|
157
|
-
ctx: ctx,
|
|
158
|
-
item: item
|
|
159
|
-
}))));
|
|
160
|
-
};
|
|
161
|
-
|
|
162
|
-
export { ItemUncontrolledDrilldown };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
|
-
import Grid from '@elliemae/ds-grid';
|
|
3
|
-
|
|
4
|
-
const StyledLabel = /*#__PURE__*/styled(Grid).withConfig({
|
|
5
|
-
componentId: "sc-17rk89j-0"
|
|
6
|
-
})(["font-size:13px;font-weight:", ";color:", ";line-height:14px;word-break:", ";"], props => props.labelBold ? props.theme.fontWeights.semibold : props.theme.fontWeights.regular, _ref => {
|
|
7
|
-
let {
|
|
8
|
-
labelColor,
|
|
9
|
-
theme
|
|
10
|
-
} = _ref;
|
|
11
|
-
return labelColor ? theme.colors[labelColor[0]][labelColor[1]] : theme.colors.neutral[800];
|
|
12
|
-
}, props => props.labelOverflow === 'wrapAll' ? 'break-all' : 'normal');
|
|
13
|
-
const StyledDate = /*#__PURE__*/styled(Grid).withConfig({
|
|
14
|
-
componentId: "sc-17rk89j-1"
|
|
15
|
-
})(["font-size:12px;color:", ";line-height:14px;"], props => props.theme.colors.neutral[600]);
|
|
16
|
-
|
|
17
|
-
export { StyledDate, StyledLabel };
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import 'core-js/modules/esnext.async-iterator.filter.js';
|
|
2
|
-
import 'core-js/modules/esnext.iterator.constructor.js';
|
|
3
|
-
import 'core-js/modules/esnext.iterator.filter.js';
|
|
4
|
-
import 'core-js/modules/esnext.async-iterator.for-each.js';
|
|
5
|
-
import 'core-js/modules/esnext.iterator.for-each.js';
|
|
6
|
-
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
7
|
-
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
8
|
-
import 'react';
|
|
9
|
-
import Grid from '@elliemae/ds-grid';
|
|
10
|
-
import { SimpleTruncatedTooltipText } from '@elliemae/ds-truncated-tooltip-text';
|
|
11
|
-
import { ItemRenderer } from '../../exported-related/ItemRenderer/index.js';
|
|
12
|
-
import '@elliemae/ds-icons';
|
|
13
|
-
import 'react/jsx-runtime';
|
|
14
|
-
import 'styled-components';
|
|
15
|
-
import { StyledLabel, StyledDate } from './styled.js';
|
|
16
|
-
|
|
17
|
-
var _div;
|
|
18
|
-
|
|
19
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
20
|
-
|
|
21
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
22
|
-
const ItemWithDate = props => {
|
|
23
|
-
const {
|
|
24
|
-
item,
|
|
25
|
-
item: {
|
|
26
|
-
itemOpts: {
|
|
27
|
-
label,
|
|
28
|
-
RightComponent,
|
|
29
|
-
labelRightSection,
|
|
30
|
-
labelOverflow: itemLabelOverflow,
|
|
31
|
-
labelBold,
|
|
32
|
-
labelColor,
|
|
33
|
-
labelDataTestId
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
ctx,
|
|
37
|
-
ctx: {
|
|
38
|
-
leftNavProps: {
|
|
39
|
-
labelOverflow: leftNavLabelOverflow
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
} = props;
|
|
43
|
-
const labelOverflow = itemLabelOverflow || leftNavLabelOverflow;
|
|
44
|
-
return /*#__PURE__*/_jsx(ItemRenderer, {
|
|
45
|
-
item: _objectSpread(_objectSpread({}, item), {}, {
|
|
46
|
-
CollapsedComponent: null
|
|
47
|
-
}),
|
|
48
|
-
minHeight: "32px",
|
|
49
|
-
paddingTop: "8px"
|
|
50
|
-
}, void 0, " ", _div || (_div = /*#__PURE__*/_jsx("div", {})), /*#__PURE__*/_jsx(StyledLabel, {
|
|
51
|
-
pl: "xxs",
|
|
52
|
-
pb: "xxxs",
|
|
53
|
-
"data-testid": labelDataTestId || 'leftnav-list-item-label',
|
|
54
|
-
labelOverflow: labelOverflow,
|
|
55
|
-
labelBold: labelBold,
|
|
56
|
-
labelColor: labelColor
|
|
57
|
-
}, void 0, labelOverflow === 'truncate' ? /*#__PURE__*/_jsx(SimpleTruncatedTooltipText, {
|
|
58
|
-
value: label,
|
|
59
|
-
placement: "bottom-start"
|
|
60
|
-
}) : label), /*#__PURE__*/_jsx(Grid, {
|
|
61
|
-
pr: "xxs2",
|
|
62
|
-
cols: ['auto', 'auto'],
|
|
63
|
-
alignItems: "center"
|
|
64
|
-
}, void 0, /*#__PURE__*/_jsx(StyledDate, {
|
|
65
|
-
ml: "xxs",
|
|
66
|
-
"data-testid": "leftnav-list-item-date"
|
|
67
|
-
}, void 0, labelRightSection), /*#__PURE__*/_jsx(Grid, {
|
|
68
|
-
pl: RightComponent ? 'xxs' : '0px',
|
|
69
|
-
"data-testid": "leftnav-right-component"
|
|
70
|
-
}, void 0, RightComponent && /*#__PURE__*/_jsx(RightComponent, {
|
|
71
|
-
ctx: ctx,
|
|
72
|
-
item: item
|
|
73
|
-
}))));
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
export { ItemWithDate };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
|
-
import Grid from '@elliemae/ds-grid';
|
|
3
|
-
|
|
4
|
-
const StyledLabel = /*#__PURE__*/styled(Grid).withConfig({
|
|
5
|
-
componentId: "sc-govmsc-0"
|
|
6
|
-
})(["font-size:13px;font-weight:", ";color:", ";line-height:14px;word-break:", ";"], props => props.labelBold ? props.theme.fontWeights.semibold : props.theme.fontWeights.regular, _ref => {
|
|
7
|
-
let {
|
|
8
|
-
labelColor,
|
|
9
|
-
theme
|
|
10
|
-
} = _ref;
|
|
11
|
-
return labelColor ? theme.colors[labelColor[0]][labelColor[1]] : theme.colors.neutral[800];
|
|
12
|
-
}, props => props.labelOverflow === 'wrapAll' ? 'break-all' : 'normal');
|
|
13
|
-
const StyledDate = /*#__PURE__*/styled(Grid).withConfig({
|
|
14
|
-
componentId: "sc-govmsc-1"
|
|
15
|
-
})(["font-size:12px;color:", ";line-height:14px;"], props => props.theme.colors.neutral[600]);
|
|
16
|
-
|
|
17
|
-
export { StyledDate, StyledLabel };
|
package/esm/outOfTheBox/index.js
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { ITEM_TYPES } from '../exported-related/constants.js';
|
|
2
|
-
import '@babel/runtime/helpers/esm/jsx';
|
|
3
|
-
import 'react';
|
|
4
|
-
import '@elliemae/ds-grid';
|
|
5
|
-
import 'styled-components';
|
|
6
|
-
import 'core-js/modules/esnext.async-iterator.filter.js';
|
|
7
|
-
import 'core-js/modules/esnext.iterator.constructor.js';
|
|
8
|
-
import 'core-js/modules/esnext.iterator.filter.js';
|
|
9
|
-
import 'core-js/modules/esnext.async-iterator.for-each.js';
|
|
10
|
-
import 'core-js/modules/esnext.iterator.for-each.js';
|
|
11
|
-
import '@babel/runtime/helpers/esm/defineProperty';
|
|
12
|
-
import 'react/jsx-runtime';
|
|
13
|
-
import '@elliemae/ds-icons';
|
|
14
|
-
import { ItemControlledDrilldown } from './ItemControlledDrilldown/index.js';
|
|
15
|
-
export { ItemControlledDrilldown } from './ItemControlledDrilldown/index.js';
|
|
16
|
-
import { ItemUncontrolledDrilldown } from './ItemUncontrolledDrilldown/index.js';
|
|
17
|
-
export { ItemUncontrolledDrilldown } from './ItemUncontrolledDrilldown/index.js';
|
|
18
|
-
import { ItemHeader } from './ItemHeader/index.js';
|
|
19
|
-
export { ItemHeader } from './ItemHeader/index.js';
|
|
20
|
-
import { ItemLink } from './ItemLink/index.js';
|
|
21
|
-
export { ItemLink } from './ItemLink/index.js';
|
|
22
|
-
import { ItemSection } from './ItemSection/index.js';
|
|
23
|
-
export { ItemSection } from './ItemSection/index.js';
|
|
24
|
-
import { ItemSeparator } from './ItemSeparator/index.js';
|
|
25
|
-
export { ItemSeparator } from './ItemSeparator/index.js';
|
|
26
|
-
import { ItemSubmenu } from './ItemSubmenu/index.js';
|
|
27
|
-
export { ItemSubmenu } from './ItemSubmenu/index.js';
|
|
28
|
-
import { ItemTextLabel } from './ItemTextLabel/index.js';
|
|
29
|
-
export { ItemTextLabel } from './ItemTextLabel/index.js';
|
|
30
|
-
import { ItemWithDate } from './ItemWithDate/index.js';
|
|
31
|
-
export { ItemWithDate } from './ItemWithDate/index.js';
|
|
32
|
-
|
|
33
|
-
const outOfTheBoxTypes = Object.values(ITEM_TYPES);
|
|
34
|
-
const {
|
|
35
|
-
LEFT_NAV_ITEM_CONTROLLED_DRILLDOWN,
|
|
36
|
-
LEFT_NAV_ITEM_UNCONTROLLED_DRILLDOWN,
|
|
37
|
-
LEFT_NAV_ITEM_HEADER,
|
|
38
|
-
LEFT_NAV_ITEM_LINK,
|
|
39
|
-
LEFT_NAV_ITEM_SECTION,
|
|
40
|
-
LEFT_NAV_ITEM_SEPARATOR,
|
|
41
|
-
LEFT_NAV_ITEM_SUBMENU,
|
|
42
|
-
LEFT_NAV_ITEM_TEXT_LABEL,
|
|
43
|
-
LEFT_NAV_ITEM_WITH_DATE
|
|
44
|
-
} = ITEM_TYPES;
|
|
45
|
-
const outOfTheBoxComponents = {
|
|
46
|
-
[LEFT_NAV_ITEM_CONTROLLED_DRILLDOWN]: ItemControlledDrilldown,
|
|
47
|
-
[LEFT_NAV_ITEM_UNCONTROLLED_DRILLDOWN]: ItemUncontrolledDrilldown,
|
|
48
|
-
[LEFT_NAV_ITEM_HEADER]: ItemHeader,
|
|
49
|
-
[LEFT_NAV_ITEM_LINK]: ItemLink,
|
|
50
|
-
[LEFT_NAV_ITEM_SECTION]: ItemSection,
|
|
51
|
-
[LEFT_NAV_ITEM_SEPARATOR]: ItemSeparator,
|
|
52
|
-
[LEFT_NAV_ITEM_SUBMENU]: ItemSubmenu,
|
|
53
|
-
[LEFT_NAV_ITEM_TEXT_LABEL]: ItemTextLabel,
|
|
54
|
-
[LEFT_NAV_ITEM_WITH_DATE]: ItemWithDate
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
export { outOfTheBoxComponents, outOfTheBoxTypes };
|