@elliemae/ds-left-navigation 3.22.0-next.2 → 3.22.0-next.21

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.
Files changed (160) hide show
  1. package/dist/cjs/LeftNavigation.js +3 -3
  2. package/dist/cjs/LeftNavigation.js.map +2 -2
  3. package/dist/cjs/LeftNavigationContext.js +2 -1
  4. package/dist/cjs/LeftNavigationContext.js.map +2 -2
  5. package/dist/cjs/common/getItemBackgroundStyle.js.map +2 -2
  6. package/dist/cjs/common/getLeftBorderStyle.js.map +2 -2
  7. package/dist/cjs/configs/useLeftNavConfig.js +31 -26
  8. package/dist/cjs/configs/useLeftNavConfig.js.map +2 -2
  9. package/dist/cjs/configs/useLeftNavItems.js +4 -2
  10. package/dist/cjs/configs/useLeftNavItems.js.map +2 -2
  11. package/dist/cjs/configs/useLeftNavSmoothExpand.js.map +2 -2
  12. package/dist/cjs/exported-related/ChevronItem/index.js.map +2 -2
  13. package/dist/cjs/exported-related/Icon/index.js.map +2 -2
  14. package/dist/cjs/exported-related/ItemRenderer/index.js +8 -5
  15. package/dist/cjs/exported-related/ItemRenderer/index.js.map +2 -2
  16. package/dist/cjs/exported-related/ItemRenderer/styled.js.map +1 -1
  17. package/dist/cjs/exported-related/ItemRenderer/usePropsWithDefaults.js.map +2 -2
  18. package/dist/cjs/exported-related/OpenWindowItem/index.js.map +2 -2
  19. package/dist/cjs/exported-related/constants.js +13 -1
  20. package/dist/cjs/exported-related/constants.js.map +2 -2
  21. package/dist/cjs/hooks/useExpandableOnClickHandler.js.map +2 -2
  22. package/dist/cjs/hooks/useKeyboardNavigation.js +2 -2
  23. package/dist/cjs/hooks/useKeyboardNavigation.js.map +2 -2
  24. package/dist/cjs/hooks/useOpenableOnClickHandler.js.map +2 -2
  25. package/dist/cjs/hooks/useSelectFirstBodyItem.js.map +2 -2
  26. package/dist/cjs/index.js +3 -3
  27. package/dist/cjs/index.js.map +2 -2
  28. package/dist/cjs/outOfTheBox/ItemControlledDrilldown/index.js.map +2 -2
  29. package/dist/cjs/outOfTheBox/ItemHeader/index.js +2 -1
  30. package/dist/cjs/outOfTheBox/ItemHeader/index.js.map +2 -2
  31. package/dist/cjs/outOfTheBox/ItemLink/index.js.map +2 -2
  32. package/dist/cjs/outOfTheBox/ItemSection/index.js.map +2 -2
  33. package/dist/cjs/outOfTheBox/ItemSeparator/index.js.map +2 -2
  34. package/dist/cjs/outOfTheBox/ItemSkeleton/index.js +7 -5
  35. package/dist/cjs/outOfTheBox/ItemSkeleton/index.js.map +2 -2
  36. package/dist/cjs/outOfTheBox/ItemSubmenu/index.js +2 -1
  37. package/dist/cjs/outOfTheBox/ItemSubmenu/index.js.map +2 -2
  38. package/dist/cjs/outOfTheBox/ItemTextLabel/index.js.map +2 -2
  39. package/dist/cjs/outOfTheBox/ItemUncontrolledDrilldown/index.js.map +2 -2
  40. package/dist/cjs/outOfTheBox/ItemWithDate/index.js +1 -1
  41. package/dist/cjs/outOfTheBox/ItemWithDate/index.js.map +2 -2
  42. package/dist/cjs/outOfTheBox/index.js.map +2 -2
  43. package/dist/cjs/outOfTheBox/styled.js.map +1 -1
  44. package/dist/cjs/parts/LeftNavContent/index.js +30 -4
  45. package/dist/cjs/parts/LeftNavContent/index.js.map +2 -2
  46. package/dist/cjs/parts/LeftNavContent/styled.js +2 -2
  47. package/dist/cjs/parts/LeftNavContent/styled.js.map +2 -2
  48. package/dist/cjs/parts/LeftNavFooterItem/index.js +14 -5
  49. package/dist/cjs/parts/LeftNavFooterItem/index.js.map +2 -2
  50. package/dist/cjs/parts/LeftNavFooterItem/styled.js +1 -1
  51. package/dist/cjs/parts/LeftNavFooterItem/styled.js.map +2 -2
  52. package/dist/cjs/parts/OutOfTheBoxMapItem.js +7 -1
  53. package/dist/cjs/parts/OutOfTheBoxMapItem.js.map +2 -2
  54. package/dist/cjs/{prop-types.js → react-desc-prop-types.js} +9 -6
  55. package/dist/cjs/react-desc-prop-types.js.map +7 -0
  56. package/dist/cjs/typescript-testing/typescript-left-navigation-valid.js +186 -0
  57. package/dist/cjs/typescript-testing/typescript-left-navigation-valid.js.map +7 -0
  58. package/dist/esm/LeftNavigation.js +1 -1
  59. package/dist/esm/LeftNavigation.js.map +2 -2
  60. package/dist/esm/LeftNavigationContext.js +2 -1
  61. package/dist/esm/LeftNavigationContext.js.map +2 -2
  62. package/dist/esm/common/getItemBackgroundStyle.js.map +2 -2
  63. package/dist/esm/common/getLeftBorderStyle.js.map +2 -2
  64. package/dist/esm/configs/useLeftNavConfig.js +31 -26
  65. package/dist/esm/configs/useLeftNavConfig.js.map +2 -2
  66. package/dist/esm/configs/useLeftNavItems.js +4 -2
  67. package/dist/esm/configs/useLeftNavItems.js.map +2 -2
  68. package/dist/esm/configs/useLeftNavSmoothExpand.js.map +2 -2
  69. package/dist/esm/exported-related/ChevronItem/index.js.map +2 -2
  70. package/dist/esm/exported-related/Icon/index.js.map +2 -2
  71. package/dist/esm/exported-related/ItemRenderer/index.js +8 -5
  72. package/dist/esm/exported-related/ItemRenderer/index.js.map +2 -2
  73. package/dist/esm/exported-related/ItemRenderer/styled.js.map +1 -1
  74. package/dist/esm/exported-related/ItemRenderer/usePropsWithDefaults.js.map +2 -2
  75. package/dist/esm/exported-related/OpenWindowItem/index.js.map +2 -2
  76. package/dist/esm/exported-related/constants.js +13 -1
  77. package/dist/esm/exported-related/constants.js.map +2 -2
  78. package/dist/esm/hooks/useExpandableOnClickHandler.js.map +2 -2
  79. package/dist/esm/hooks/useKeyboardNavigation.js +2 -2
  80. package/dist/esm/hooks/useKeyboardNavigation.js.map +2 -2
  81. package/dist/esm/hooks/useOpenableOnClickHandler.js.map +2 -2
  82. package/dist/esm/hooks/useSelectFirstBodyItem.js.map +2 -2
  83. package/dist/esm/index.js +1 -1
  84. package/dist/esm/index.js.map +2 -2
  85. package/dist/esm/outOfTheBox/ItemControlledDrilldown/index.js.map +2 -2
  86. package/dist/esm/outOfTheBox/ItemHeader/index.js +2 -1
  87. package/dist/esm/outOfTheBox/ItemHeader/index.js.map +2 -2
  88. package/dist/esm/outOfTheBox/ItemLink/index.js.map +2 -2
  89. package/dist/esm/outOfTheBox/ItemSection/index.js.map +2 -2
  90. package/dist/esm/outOfTheBox/ItemSeparator/index.js.map +2 -2
  91. package/dist/esm/outOfTheBox/ItemSkeleton/index.js +7 -5
  92. package/dist/esm/outOfTheBox/ItemSkeleton/index.js.map +2 -2
  93. package/dist/esm/outOfTheBox/ItemSubmenu/index.js +2 -1
  94. package/dist/esm/outOfTheBox/ItemSubmenu/index.js.map +2 -2
  95. package/dist/esm/outOfTheBox/ItemTextLabel/index.js.map +2 -2
  96. package/dist/esm/outOfTheBox/ItemUncontrolledDrilldown/index.js.map +2 -2
  97. package/dist/esm/outOfTheBox/ItemWithDate/index.js +1 -1
  98. package/dist/esm/outOfTheBox/ItemWithDate/index.js.map +2 -2
  99. package/dist/esm/outOfTheBox/index.js.map +2 -2
  100. package/dist/esm/outOfTheBox/styled.js.map +1 -1
  101. package/dist/esm/parts/LeftNavContent/index.js +30 -4
  102. package/dist/esm/parts/LeftNavContent/index.js.map +2 -2
  103. package/dist/esm/parts/LeftNavContent/styled.js +2 -2
  104. package/dist/esm/parts/LeftNavContent/styled.js.map +2 -2
  105. package/dist/esm/parts/LeftNavFooterItem/index.js +15 -6
  106. package/dist/esm/parts/LeftNavFooterItem/index.js.map +2 -2
  107. package/dist/esm/parts/LeftNavFooterItem/styled.js +1 -1
  108. package/dist/esm/parts/LeftNavFooterItem/styled.js.map +2 -2
  109. package/dist/esm/parts/OutOfTheBoxMapItem.js +7 -1
  110. package/dist/esm/parts/OutOfTheBoxMapItem.js.map +2 -2
  111. package/dist/esm/{prop-types.js → react-desc-prop-types.js} +6 -3
  112. package/dist/esm/react-desc-prop-types.js.map +7 -0
  113. package/dist/esm/typescript-testing/typescript-left-navigation-valid.js +163 -0
  114. package/dist/esm/typescript-testing/typescript-left-navigation-valid.js.map +7 -0
  115. package/dist/types/LeftNavigation.d.ts +6 -17
  116. package/dist/types/LeftNavigationContext.d.ts +4 -4
  117. package/dist/types/common/getItemBackgroundStyle.d.ts +2 -2
  118. package/dist/types/common/getLeftBorderStyle.d.ts +2 -2
  119. package/dist/types/configs/useLeftNavConfig.d.ts +16 -3
  120. package/dist/types/configs/useLeftNavItems.d.ts +5 -5
  121. package/dist/types/configs/useLeftNavSmoothExpand.d.ts +2 -2
  122. package/dist/types/exported-related/ChevronItem/index.d.ts +3 -1
  123. package/dist/types/exported-related/Icon/index.d.ts +2 -1
  124. package/dist/types/exported-related/ItemRenderer/index.d.ts +2 -2
  125. package/dist/types/exported-related/ItemRenderer/styled.d.ts +1 -0
  126. package/dist/types/exported-related/ItemRenderer/usePropsWithDefaults.d.ts +2 -2
  127. package/dist/types/exported-related/Notifications/index.d.ts +1 -0
  128. package/dist/types/exported-related/OpenWindowItem/index.d.ts +3 -1
  129. package/dist/types/exported-related/constants.d.ts +11 -0
  130. package/dist/types/hooks/useExpandableOnClickHandler.d.ts +2 -2
  131. package/dist/types/hooks/useKeyboardNavigation.d.ts +4 -4
  132. package/dist/types/hooks/useOpenableOnClickHandler.d.ts +2 -2
  133. package/dist/types/hooks/useSelectFirstBodyItem.d.ts +2 -2
  134. package/dist/types/index.d.ts +1 -1
  135. package/dist/types/outOfTheBox/ItemControlledDrilldown/index.d.ts +3 -2
  136. package/dist/types/outOfTheBox/ItemHeader/index.d.ts +3 -2
  137. package/dist/types/outOfTheBox/ItemLink/index.d.ts +3 -2
  138. package/dist/types/outOfTheBox/ItemSection/index.d.ts +3 -2
  139. package/dist/types/outOfTheBox/ItemSeparator/index.d.ts +3 -2
  140. package/dist/types/outOfTheBox/ItemSkeleton/index.d.ts +8 -2
  141. package/dist/types/outOfTheBox/ItemSubmenu/index.d.ts +3 -2
  142. package/dist/types/outOfTheBox/ItemTextLabel/index.d.ts +3 -2
  143. package/dist/types/outOfTheBox/ItemUncontrolledDrilldown/index.d.ts +3 -2
  144. package/dist/types/outOfTheBox/ItemWithDate/index.d.ts +3 -2
  145. package/dist/types/outOfTheBox/index.d.ts +2 -2
  146. package/dist/types/outOfTheBox/styled.d.ts +2 -1
  147. package/dist/types/parts/LeftNavContent/styled.d.ts +2 -0
  148. package/dist/types/parts/LeftNavFooterItem/styled.d.ts +6 -4
  149. package/dist/types/parts/OutOfTheBoxMapItem.d.ts +2 -2
  150. package/dist/types/react-desc-prop-types.d.ts +100 -0
  151. package/dist/types/typescript-testing/typescript-left-navigation-valid.d.ts +1 -0
  152. package/package.json +13 -11
  153. package/dist/cjs/index.d.js +0 -28
  154. package/dist/cjs/index.d.js.map +0 -7
  155. package/dist/cjs/prop-types.js.map +0 -7
  156. package/dist/esm/index.d.js +0 -2
  157. package/dist/esm/index.d.js.map +0 -7
  158. package/dist/esm/prop-types.js.map +0 -7
  159. package/dist/types/index.d.d.ts +0 -78
  160. package/dist/types/prop-types.d.ts +0 -22
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
+ import { type SvgIconT } from '@elliemae/ds-icons';
2
3
  export declare const Icon: (IconComponent: React.ComponentType<{
3
4
  color: unknown;
4
5
  tabIndex: number;
5
- }>) => (props: unknown) => JSX.Element;
6
+ }>) => (props?: SvgIconT.Props) => JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- import type { ItemRendererT } from '../../index.d';
3
- export declare const ItemRenderer: React.ComponentType<ItemRendererT>;
2
+ import type { DSLeftNavigationT } from '../../react-desc-prop-types.js';
3
+ export declare const ItemRenderer: React.ComponentType<DSLeftNavigationT.ItemRendererT>;
@@ -10,6 +10,7 @@ interface ItemProps {
10
10
  export declare const borderOutside: (color: string, weight?: number) => string;
11
11
  export declare const StyledItem: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/dist/types/react-desc-prop-types.js").DSGridT.Props & import("react").RefAttributes<HTMLDivElement>>, Theme, {
12
12
  minHeight: string;
13
+ selectedParent: boolean;
13
14
  } & ItemProps & import("@elliemae/ds-system").OwnerInterface, never>;
14
15
  export declare const StyledCollapsedContainer: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/dist/types/react-desc-prop-types.js").DSGridT.Props & import("react").RefAttributes<HTMLDivElement>>, Theme, object & import("@elliemae/ds-system").OwnerInterface, never>;
15
16
  export declare const StyledBorderBottom: import("styled-components").StyledComponent<"div", Theme, {
@@ -1,2 +1,2 @@
1
- import type { ItemRendererT } from '../../index.d';
2
- export declare const usePropsWithDefaults: (props: ItemRendererT) => Required<ItemRendererT>;
1
+ import type { DSLeftNavigationT } from '../../react-desc-prop-types.js';
2
+ export declare const usePropsWithDefaults: (props: DSLeftNavigationT.ItemRendererT) => Required<DSLeftNavigationT.ItemRendererT>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  type NotificationsProps = {
2
3
  exceptions?: boolean;
3
4
  alerts?: boolean;
@@ -1,2 +1,4 @@
1
- export declare const OpenWindow: (props: unknown) => JSX.Element;
1
+ /// <reference types="react" />
2
+ import { type SvgIconT } from '@elliemae/ds-icons';
3
+ export declare const OpenWindow: (props: SvgIconT.Props) => JSX.Element;
2
4
  export default OpenWindow;
@@ -15,6 +15,17 @@ export declare const ITEM_TYPES: {
15
15
  LEFT_NAV_ITEM_TEXT_LABEL: string;
16
16
  LEFT_NAV_ITEM_WITH_DATE: string;
17
17
  };
18
+ export declare const MAP_ITEMS_TO_SKELETON: {
19
+ readonly 'ds-left-nav-item-header': "item";
20
+ readonly 'ds-left-nav-item-link': "subitem";
21
+ readonly 'ds-left-nav-item-submenu': "item";
22
+ readonly 'ds-left-nav-item-controlled-drilldown': "subitem";
23
+ readonly 'ds-left-nav-item-uncontrolled-drilldown': "subitem";
24
+ readonly 'ds-left-nav-item-section': "subitem";
25
+ readonly 'ds-left-nav-item-separator': "subitem";
26
+ readonly 'ds-left-nav-item-text-label': "subitem";
27
+ readonly 'ds-left-nav-item-with-date': "subitem";
28
+ };
18
29
  export declare const FOOTER_DS_ID = "ds-left-nav-__internal__-footer";
19
30
  export declare const FOOTER_MENU_CLOSE_DS_ID = "ds-left-nav-__internal__-footer-menu-close";
20
31
  export declare const CHEVRON_BACK_DS_ID = "ds-left-nav-__internal__-chevron-back";
@@ -1,9 +1,9 @@
1
1
  import type React from 'react';
2
- type useExpandableOnClickHandlerProps = {
2
+ type UseExpandableOnClickHandlerProps = {
3
3
  id: string;
4
4
  onExpand: React.MouseEventHandler & React.KeyboardEventHandler;
5
5
  onOpen: React.MouseEventHandler & React.KeyboardEventHandler;
6
6
  selectable?: boolean;
7
7
  };
8
- export declare const useExpandableOnClickHandler: ({ id, onExpand, onOpen, selectable, }: useExpandableOnClickHandlerProps) => (e: React.MouseEvent<HTMLElement>) => void;
8
+ export declare const useExpandableOnClickHandler: ({ id, onExpand, onOpen, selectable, }: UseExpandableOnClickHandlerProps) => (e: React.MouseEvent<HTMLElement>) => void;
9
9
  export {};
@@ -1,8 +1,8 @@
1
1
  import type React from 'react';
2
- import type { GenericItemItemProps } from '../index.d';
3
- type useKeyboardNavigationProps = {
4
- item: GenericItemItemProps;
2
+ import type { DSLeftNavigationT } from '../react-desc-prop-types.js';
3
+ type UseKeyboardNavigationProps = {
4
+ item: DSLeftNavigationT.GenericItemItemProps;
5
5
  onClick: (e: any) => void;
6
6
  };
7
- export declare const useKeyboardNavigation: ({ item, onClick }: useKeyboardNavigationProps) => React.KeyboardEventHandler;
7
+ export declare const useKeyboardNavigation: ({ item, onClick }: UseKeyboardNavigationProps) => React.KeyboardEventHandler;
8
8
  export {};
@@ -1,10 +1,10 @@
1
1
  /// <reference types="react" />
2
- type useOpenableOnClickHandlerProps = {
2
+ type UseOpenableOnClickHandlerProps = {
3
3
  id: string;
4
4
  onExpand: React.MouseEventHandler & React.KeyboardEventHandler;
5
5
  onOpen: React.MouseEventHandler & React.KeyboardEventHandler;
6
6
  onClose: React.MouseEventHandler & React.KeyboardEventHandler;
7
7
  opened: boolean;
8
8
  };
9
- export declare const useOpenableOnClickHandler: ({ id, opened, onExpand, onOpen, onClose, }: useOpenableOnClickHandlerProps) => (e: React.MouseEvent<HTMLElement>) => void;
9
+ export declare const useOpenableOnClickHandler: ({ id, opened, onExpand, onOpen, onClose, }: UseOpenableOnClickHandlerProps) => (e: React.MouseEvent<HTMLElement>) => void;
10
10
  export {};
@@ -1,3 +1,3 @@
1
1
  import type React from 'react';
2
- import type { GenericItemItemProps } from '../index.d';
3
- export declare const useSelectFirstBodyItem: (items: GenericItemItemProps[], openedItem: string | null, selectedItem: string | null, setSelectedItem: React.Dispatch<React.SetStateAction<string | null>>, disableDefaultSelection: boolean | undefined) => void;
2
+ import type { DSLeftNavigationT } from '../react-desc-prop-types.js';
3
+ export declare const useSelectFirstBodyItem: (items: DSLeftNavigationT.GenericItemItemProps[], openedItem: string | null, selectedItem: string | null, setSelectedItem: React.Dispatch<React.SetStateAction<string | null>>, disableDefaultSelection: boolean | undefined) => void;
@@ -1,6 +1,6 @@
1
1
  import { LeftNavigation } from './LeftNavigation.js';
2
2
  export default LeftNavigation;
3
- export { LeftNavItemPropsSchema, LeftNavItemOptionsSchema } from './prop-types.js';
3
+ export { LeftNavItemPropsSchema, LeftNavItemOptionsSchema, type DSLeftNavigationT } from './react-desc-prop-types.js';
4
4
  export { LeftNavigation, LeftNavigationWithSchema } from './LeftNavigation.js';
5
5
  export * from './exported-related/index.js';
6
6
  export * from './constants/index.js';
@@ -1,2 +1,3 @@
1
- import type { ComponentProps } from '../../index.d';
2
- export declare const ItemControlledDrilldown: (props: ComponentProps) => JSX.Element;
1
+ /// <reference types="react" />
2
+ import type { DSLeftNavigationT } from '../../react-desc-prop-types.js';
3
+ export declare const ItemControlledDrilldown: (props: DSLeftNavigationT.ComponentProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
- import type { ComponentProps } from '../../index.d';
2
- export declare const ItemHeader: (props: ComponentProps) => JSX.Element;
1
+ /// <reference types="react" />
2
+ import type { DSLeftNavigationT } from '../../react-desc-prop-types.js';
3
+ export declare const ItemHeader: (props: DSLeftNavigationT.ComponentProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
- import type { ComponentProps } from '../../index.d';
2
- export declare const ItemLink: (props: ComponentProps) => JSX.Element;
1
+ /// <reference types="react" />
2
+ import type { DSLeftNavigationT } from '../../react-desc-prop-types.js';
3
+ export declare const ItemLink: (props: DSLeftNavigationT.ComponentProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
- import type { ComponentProps } from '../../index.d';
2
- export declare const ItemSection: (props: ComponentProps) => JSX.Element;
1
+ /// <reference types="react" />
2
+ import type { DSLeftNavigationT } from '../../react-desc-prop-types.js';
3
+ export declare const ItemSection: (props: DSLeftNavigationT.ComponentProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
- import type { ComponentProps } from '../../index.d';
2
- export declare const ItemSeparator: (props: ComponentProps) => JSX.Element;
1
+ /// <reference types="react" />
2
+ import type { DSLeftNavigationT } from '../../react-desc-prop-types.js';
3
+ export declare const ItemSeparator: (props: DSLeftNavigationT.ComponentProps) => JSX.Element;
@@ -1,2 +1,8 @@
1
- import type { ComponentProps } from '../../index.d';
2
- export declare const ItemSkeleton: (props: ComponentProps) => JSX.Element;
1
+ /// <reference types="react" />
2
+ import type { DSLeftNavigationT } from '../../react-desc-prop-types.js';
3
+ interface SkeletonPropsT {
4
+ item: DSLeftNavigationT.ComponentProps['item'];
5
+ hasBorderBottom?: boolean;
6
+ }
7
+ export declare const ItemSkeleton: (props: SkeletonPropsT) => JSX.Element;
8
+ export {};
@@ -1,2 +1,3 @@
1
- import type { ComponentProps } from '../../index.d';
2
- export declare const ItemSubmenu: (props: ComponentProps) => JSX.Element;
1
+ /// <reference types="react" />
2
+ import type { DSLeftNavigationT } from '../../react-desc-prop-types.js';
3
+ export declare const ItemSubmenu: (props: DSLeftNavigationT.ComponentProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
- import type { ComponentProps } from '../../index.d';
2
- export declare const ItemTextLabel: (props: ComponentProps) => JSX.Element;
1
+ /// <reference types="react" />
2
+ import type { DSLeftNavigationT } from '../../react-desc-prop-types.js';
3
+ export declare const ItemTextLabel: (props: DSLeftNavigationT.ComponentProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
- import type { ComponentProps } from '../../index.d';
2
- export declare const ItemUncontrolledDrilldown: (props: ComponentProps) => JSX.Element;
1
+ /// <reference types="react" />
2
+ import type { DSLeftNavigationT } from '../../react-desc-prop-types.js';
3
+ export declare const ItemUncontrolledDrilldown: (props: DSLeftNavigationT.ComponentProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
- import type { ComponentProps } from '../../index.d';
2
- export declare const ItemWithDate: (props: ComponentProps) => JSX.Element;
1
+ /// <reference types="react" />
2
+ import type { DSLeftNavigationT } from '../../react-desc-prop-types.js';
3
+ export declare const ItemWithDate: (props: DSLeftNavigationT.ComponentProps) => JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import type React from 'react';
2
- import type { ComponentProps } from '../index.d';
2
+ import type { DSLeftNavigationT } from '../react-desc-prop-types.js';
3
3
  export * from './ItemControlledDrilldown/index.js';
4
4
  export * from './ItemUncontrolledDrilldown/index.js';
5
5
  export * from './ItemHeader/index.js';
@@ -11,4 +11,4 @@ export * from './ItemSubmenu/index.js';
11
11
  export * from './ItemTextLabel/index.js';
12
12
  export * from './ItemWithDate/index.js';
13
13
  export declare const outOfTheBoxTypes: string[];
14
- export declare const outOfTheBoxComponents: Record<string, React.ComponentType<ComponentProps>>;
14
+ export declare const outOfTheBoxComponents: Record<string, React.ComponentType<DSLeftNavigationT.ComponentProps>>;
@@ -1,5 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { type Theme } from '@elliemae/ds-system';
3
+ import type { DSLeftNavigationT } from '../react-desc-prop-types.js';
3
4
  type ColorsKey = keyof Theme['colors'];
4
5
  interface StyledLabelT {
5
6
  labelBold?: boolean;
@@ -17,7 +18,7 @@ export declare const StyledSectionContainer: import("styled-components").StyledC
17
18
  export declare const StyledBottomContainer: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/dist/types/react-desc-prop-types.js").DSGridT.Props & import("react").RefAttributes<HTMLDivElement>>, Theme, object & import("@elliemae/ds-system").OwnerInterface, never>;
18
19
  export declare const StyledLeftContainer: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/dist/types/react-desc-prop-types.js").DSGridT.Props & import("react").RefAttributes<HTMLDivElement>>, Theme, object & import("@elliemae/ds-system").OwnerInterface, never>;
19
20
  export declare const StyledItemLabel: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/dist/types/react-desc-prop-types.js").DSGridT.Props & import("react").RefAttributes<HTMLDivElement>>, Theme, {
20
- labelOverflow: string;
21
+ labelOverflow?: DSLeftNavigationT.LabelOveflowT | undefined;
21
22
  } & import("@elliemae/ds-system").OwnerInterface, never>;
22
23
  export declare const StyledChevronLeft: import("styled-components").StyledComponent<import("react").ComponentType<import("@elliemae/ds-button-v2").DSButtonT.Props>, Theme, object & import("@elliemae/ds-system").OwnerInterface, never>;
23
24
  export {};
@@ -14,8 +14,10 @@ export declare const StyledLeftNavBodyAreasContainer: import("styled-components"
14
14
  export declare const StyledLeftNavBodyHeaderArea: import("styled-components").StyledComponent<"div", Theme, {
15
15
  selected: boolean;
16
16
  selectedParent?: boolean | undefined;
17
+ isSkeleton: boolean;
17
18
  } & import("@elliemae/ds-system").OwnerInterface, never>;
18
19
  export declare const StyledLeftNavBodyItemsArea: import("styled-components").StyledComponent<"div", Theme, {
19
20
  selected: boolean;
21
+ isSkeleton: boolean;
20
22
  } & import("@elliemae/ds-system").OwnerInterface, never>;
21
23
  export {};
@@ -1,12 +1,14 @@
1
1
  /// <reference types="react" />
2
+ import type { DSLeftNavigationT } from '../../react-desc-prop-types.js';
2
3
  export declare const StyledFooterMenu: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/dist/types/react-desc-prop-types.js").DSGridT.Props & import("react").RefAttributes<HTMLDivElement>>, import("@elliemae/ds-system").Theme, object & import("@elliemae/ds-system").OwnerInterface, never>;
3
4
  export declare const StyledFooterItem: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/dist/types/react-desc-prop-types.js").DSGridT.Props & import("react").RefAttributes<HTMLDivElement>>, import("@elliemae/ds-system").Theme, {
4
- expanded: boolean;
5
- opened: boolean;
6
- selected: boolean;
5
+ expanded?: boolean | undefined;
6
+ opened?: boolean | undefined;
7
+ selected?: boolean | undefined;
8
+ selectedParent?: boolean | undefined;
7
9
  } & import("@elliemae/ds-system").OwnerInterface, never>;
8
10
  export declare const StyledFooterLabel: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/dist/types/react-desc-prop-types.js").DSGridT.Props & import("react").RefAttributes<HTMLDivElement>>, import("@elliemae/ds-system").Theme, {
9
- labelOverflow: string;
11
+ labelOverflow?: DSLeftNavigationT.LabelOveflowT | undefined;
10
12
  } & import("@elliemae/ds-system").OwnerInterface, never>;
11
13
  export declare const StyledFooterSeparator: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/dist/types/react-desc-prop-types.js").DSGridT.Props & import("react").RefAttributes<HTMLDivElement>>, import("@elliemae/ds-system").Theme, object & import("@elliemae/ds-system").OwnerInterface, never>;
12
14
  export declare const StyledMenuCollapse: import("styled-components").StyledComponent<import("react").ComponentType<import("@elliemae/ds-button-v2").DSButtonT.Props>, import("@elliemae/ds-system").Theme, object & import("@elliemae/ds-system").OwnerInterface, never>;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- import type { OutOfTheBoxMapItemT } from '../index.d';
3
- export declare const OutOfTheBoxMapItem: React.ComponentType<OutOfTheBoxMapItemT>;
2
+ import type { DSLeftNavigationT } from '../react-desc-prop-types.js';
3
+ export declare const OutOfTheBoxMapItem: React.ComponentType<DSLeftNavigationT.OutOfTheBoxMapItemT>;
@@ -0,0 +1,100 @@
1
+ import type { WeakValidationMap } from 'react';
2
+ import { type Theme } from '@elliemae/ds-system';
3
+ import type { GlobalAttributesT, XstyledProps } from '@elliemae/ds-props-helpers';
4
+ import type { ContextProps } from './LeftNavigationContext.js';
5
+ type ColorsKey = keyof Theme['colors'];
6
+ export declare namespace DSLeftNavigationT {
7
+ type LabelOveflowT = 'wrap' | 'wrapAll' | 'truncate';
8
+ interface DefaultProps {
9
+ expanded: boolean;
10
+ expandedWidth: string;
11
+ openedItem: string | null;
12
+ items: GenericItemItemProps[];
13
+ footerLabel: string | JSX.Element;
14
+ labelOverflow: LabelOveflowT;
15
+ onSelectedChange: (item: string | null) => void;
16
+ onFocusChange: (item: string | null) => void;
17
+ onFooterExpand: () => void;
18
+ onFooterClose: () => void;
19
+ onItemClick: (item: GenericItemItemProps, e: React.MouseEvent<HTMLElement>) => void;
20
+ loading: boolean;
21
+ isSkeleton: boolean;
22
+ }
23
+ interface OptionalProps {
24
+ selectedItem?: string | null;
25
+ selectedParent?: string | null;
26
+ disableDefaultSelection?: boolean;
27
+ withoutBodyShadow?: boolean;
28
+ actionRef?: React.RefObject<{
29
+ setFocusedItem: React.Dispatch<React.SetStateAction<string | null>>;
30
+ }>;
31
+ HeaderComponent?: GenericItemItemProps;
32
+ BodyHeaderComponent?: GenericItemItemProps;
33
+ }
34
+ interface Props extends Partial<DefaultProps>, OptionalProps, Omit<GlobalAttributesT<HTMLButtonElement>, keyof DefaultProps | keyof OptionalProps>, XstyledProps {
35
+ }
36
+ interface InternalProps extends DefaultProps, OptionalProps, Omit<GlobalAttributesT<HTMLButtonElement>, keyof DefaultProps | keyof OptionalProps>, XstyledProps {
37
+ }
38
+ type OutOfTheBoxT = 'ds-left-nav-item-header' | 'ds-left-nav-item-link' | 'ds-left-nav-item-submenu' | 'ds-left-nav-item-controlled-drilldown' | 'ds-left-nav-item-uncontrolled-drilldown' | 'ds-left-nav-item-section' | 'ds-left-nav-item-separator' | 'ds-left-nav-item-text-label' | 'ds-left-nav-item-with-date';
39
+ interface ItemOptsT extends Record<string, unknown> {
40
+ label?: string | JSX.Element;
41
+ labelBold?: boolean;
42
+ labelColor?: [ColorsKey, keyof Theme['colors'][ColorsKey]];
43
+ labelOverflow?: LabelOveflowT;
44
+ labelRightSection?: string | JSX.Element;
45
+ selectable?: boolean;
46
+ focuseable?: boolean;
47
+ startOpened?: boolean;
48
+ isOpened?: boolean;
49
+ openable?: boolean;
50
+ closable?: boolean;
51
+ indent?: number;
52
+ LeftComponent?: React.ComponentType<ComponentProps>;
53
+ RightComponent?: React.ComponentType<ComponentProps>;
54
+ BottomComponent?: React.ComponentType<ComponentProps>;
55
+ ariaLabel?: string;
56
+ ariaRole?: string;
57
+ ariaLive?: string;
58
+ ariaExpanded?: boolean;
59
+ ariaDescribedBy?: string;
60
+ items?: GenericItemItemProps[];
61
+ labelDataTestId?: string;
62
+ skeletonVariant?: 'item' | 'subitem';
63
+ }
64
+ interface ComponentProps {
65
+ item: GenericItemItemProps;
66
+ ctx: ContextProps;
67
+ }
68
+ interface GenericItemItemProps {
69
+ dsId?: string;
70
+ type?: string;
71
+ CollapsedComponent?: React.ComponentType<ComponentProps> | null;
72
+ Component?: React.ComponentType<ComponentProps>;
73
+ itemOpts: ItemOptsT;
74
+ }
75
+ interface OutOfTheBoxMapItemT {
76
+ item: GenericItemItemProps;
77
+ }
78
+ interface ItemRendererT {
79
+ item: GenericItemItemProps;
80
+ subitems?: JSX.Element[];
81
+ minHeight?: string;
82
+ paddingTop?: string;
83
+ onClick?: () => void;
84
+ shadowStyle?: (opened: boolean, type?: string) => (theme: Theme) => string;
85
+ hasBorderBottom?: boolean;
86
+ borderBottomMr?: string;
87
+ children: React.ReactNode;
88
+ }
89
+ }
90
+ export declare const leftNavItemProps: {
91
+ type: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
92
+ dsId: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
93
+ Component: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
94
+ CollapsedComponent: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
95
+ itemOpts: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
96
+ };
97
+ export declare const leftNavigationProps: WeakValidationMap<DSLeftNavigationT.Props>;
98
+ export declare const LeftNavItemPropsSchema: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").DocumentedReactComponent<unknown>;
99
+ export declare const LeftNavItemOptionsSchema: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").DocumentedReactComponent<unknown>;
100
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-left-navigation",
3
- "version": "3.22.0-next.2",
3
+ "version": "3.22.0-next.21",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Left Navigation",
6
6
  "files": [
@@ -235,21 +235,23 @@
235
235
  "typeSafety": false
236
236
  },
237
237
  "dependencies": {
238
- "@elliemae/ds-button-v2": "3.22.0-next.2",
239
- "@elliemae/ds-circular-progress-indicator": "3.22.0-next.2",
240
- "@elliemae/ds-grid": "3.22.0-next.2",
241
- "@elliemae/ds-icons": "3.22.0-next.2",
242
- "@elliemae/ds-props-helpers": "3.22.0-next.2",
243
- "@elliemae/ds-skeleton": "3.22.0-next.2",
244
- "@elliemae/ds-system": "3.22.0-next.2",
245
- "@elliemae/ds-truncated-tooltip-text": "3.22.0-next.2"
238
+ "@elliemae/ds-button-v2": "3.22.0-next.21",
239
+ "@elliemae/ds-circular-progress-indicator": "3.22.0-next.21",
240
+ "@elliemae/ds-grid": "3.22.0-next.21",
241
+ "@elliemae/ds-icons": "3.22.0-next.21",
242
+ "@elliemae/ds-props-helpers": "3.22.0-next.21",
243
+ "@elliemae/ds-skeleton": "3.22.0-next.21",
244
+ "@elliemae/ds-system": "3.22.0-next.21",
245
+ "@elliemae/ds-truncated-tooltip-text": "3.22.0-next.21"
246
246
  },
247
247
  "devDependencies": {
248
+ "@elliemae/pui-cli": "~9.0.0-next.22",
248
249
  "@testing-library/jest-dom": "~5.16.5",
249
250
  "@testing-library/react": "~12.1.3",
250
251
  "@testing-library/user-event": "~13.5.0",
251
252
  "jest-axe": "^7.0.1",
252
- "styled-components": "~5.3.9"
253
+ "styled-components": "~5.3.9",
254
+ "@elliemae/ds-monorepo-devops": "3.22.0-next.21"
253
255
  },
254
256
  "peerDependencies": {
255
257
  "lodash": "^4.17.21",
@@ -258,7 +260,7 @@
258
260
  "styled-components": "~5.3.9"
259
261
  },
260
262
  "scripts": {
261
- "test": "node ../../scripts/testing/test.mjs",
263
+ "test": "pui-cli test --passWithNoTests",
262
264
  "lint": "node ../../scripts/lint.mjs",
263
265
  "eslint:fix": "eslint --ext='.js,.jsx,.test.js,.ts,.tsx' --fix --config='../../.eslintrc.js' src/",
264
266
  "dts": "node ../../scripts/dts.mjs",
@@ -1,28 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __copyProps = (to, from, except, desc) => {
9
- if (from && typeof from === "object" || typeof from === "function") {
10
- for (let key of __getOwnPropNames(from))
11
- if (!__hasOwnProp.call(to, key) && key !== except)
12
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
- }
14
- return to;
15
- };
16
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
17
- // If the importer is in node compatibility mode or this is not an ESM
18
- // file that has been converted to a CommonJS file using a Babel-
19
- // compatible transform (i.e. "__esModule" has not been set), then set
20
- // "default" to the CommonJS "module.exports" for node compatibility.
21
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
- mod
23
- ));
24
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
25
- var index_d_exports = {};
26
- module.exports = __toCommonJS(index_d_exports);
27
- var React = __toESM(require("react"));
28
- //# sourceMappingURL=index.d.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/index.d.tsx", "../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["import type React from 'react';\nimport { type Theme } from '@elliemae/ds-system';\nimport type { ContextProps } from './LeftNavigationContext.js';\n\nexport type LabelOveflowT = 'wrap' | 'wrapAll' | 'truncate';\nexport interface LeftNavProps {\n expanded: boolean;\n expandedWidth: string;\n openedItem: string | null;\n items: GenericItemItemProps[];\n footerLabel: string;\n labelOverflow: LabelOveflowT;\n onSelectedChange: (item: string | null) => void;\n onFocusChange: (item: string | null) => void;\n onFooterExpand: () => void;\n onFooterClose: () => void;\n onItemClick: (item: GenericItemItemProps, e: React.MouseEvent<HTMLElement>) => void;\n HeaderComponent?: GenericItemItemProps;\n BodyHeaderComponent?: GenericItemItemProps;\n loading: boolean;\n selectedItem?: string;\n selectedParent?: string;\n disableDefaultSelection?: boolean;\n withoutBodyShadow?: boolean;\n actionRef?: React.RefObject<{ setFocusedItem: React.Dispatch<React.SetStateAction<string | null>> }>;\n}\nexport type OutOfTheBoxT =\n | 'ds-left-nav-item-header'\n | 'ds-left-nav-item-link'\n | 'ds-left-nav-item-submenu'\n | 'ds-left-nav-item-controlled-drilldown'\n | 'ds-left-nav-item-uncontrolled-drilldown'\n | 'ds-left-nav-item-section'\n | 'ds-left-nav-item-separator'\n | 'ds-left-nav-item-text-label'\n | 'ds-left-nav-item-with-date';\n\nexport interface ItemOptsT {\n label?: string | JSX.Element;\n labelBold?: boolean;\n labelColor?: [string, string];\n labelOverflow?: LabelOveflowT;\n labelRightSection?: string | JSX.Element;\n selectable?: boolean;\n focuseable?: boolean;\n startOpened?: boolean;\n isOpened?: boolean;\n openable?: boolean;\n closable?: boolean;\n indent?: number;\n LeftComponent?: React.ComponentType<ComponentProps>;\n RightComponent?: React.ComponentType<ComponentProps>;\n BottomComponent?: React.ComponentType<ComponentProps>;\n ariaLabel?: string;\n ariaRole?: string;\n ariaLive?: string;\n ariaExpanded?: boolean;\n ariaDescribedBy?: string;\n items?: GenericItemItemProps[];\n labelDataTestId?: string;\n skeletonVariant?: 'item' | 'subitem';\n}\n\nexport interface ComponentProps {\n item: GenericItemItemProps;\n ctx: ContextProps;\n}\nexport interface GenericItemItemProps {\n dsId?: string;\n type?: string;\n CollapsedComponent?: React.ComponentType<ComponentProps> | null;\n Component?: React.ComponentType<ComponentProps>;\n itemOpts: ItemOptsT;\n}\nexport interface OutOfTheBoxMapItemT {\n item: GenericItemItemProps;\n}\nexport interface ItemRendererT {\n item: GenericItemItemProps;\n subitems?: JSX.Element[];\n minHeight?: string;\n paddingTop?: string;\n onClick?: () => void;\n shadowStyle?: (opened: boolean, type: string) => (theme: Theme) => string;\n hasBorderBottom?: boolean;\n borderBottomMr?: string;\n children: React.ReactNode;\n}\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;ACAA,YAAuB;",
6
- "names": []
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/prop-types.tsx", "../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["import { PropTypes, describe } from '@elliemae/ds-props-helpers';\nimport { outOfTheBoxTypes } from './outOfTheBox/index.js';\n\nexport const leftNavItemProps = {\n type: PropTypes.oneOf(outOfTheBoxTypes).description('out of the box types'),\n dsId: PropTypes.string.description('unique identifier for the left nav item'),\n Component: PropTypes.func.description(\n \"A custom component, receives the item as prop. This is used only when type is not defined or doesn't matches any out-of-the-box\",\n ),\n CollapsedComponent: PropTypes.func.description('A component which is renderer when the left-nav is collapsed'),\n itemOpts: PropTypes.object.description('Item options'),\n};\n\nexport const leftNavigationProps = {\n containerProps: PropTypes.shape({ expandedWidth: PropTypes.string })\n .description('Set of Properties attached to the main container')\n .defaultValue({ expandedWidth: '240px' }),\n expanded: PropTypes.bool.description('Whether to show the left navigation expanded or collapsed').defaultValue(false),\n loading: PropTypes.bool.description('Whether the left-nav is loading').defaultValue(false),\n openedItem: PropTypes.string\n .description('The id of the left navigation item you want to be opened')\n .defaultValue(null),\n footerLabel: PropTypes.string.description('The label to show in the footer item'),\n onFooterExpand: PropTypes.func.description('The function to call when the left-nav is opened via the footer'),\n onFooterClose: PropTypes.func.description('The function to call when the left-nav is closed via the footer'),\n onSelectedChange: PropTypes.func\n .description('A callback which triggers when the selected item changes')\n .defaultValue(() => null),\n onFocusChange: PropTypes.func\n .description('A callback which triggers when the focused item changes')\n .defaultValue(() => null),\n items: PropTypes.arrayOf(PropTypes.object)\n .description('The array of items you want to render inside the left nav')\n .defaultValue([]),\n disableDefaultSelection: PropTypes.bool\n .description('Whether you do not want to automatically select the first body item')\n .defaultValue(false),\n};\n\nconst LeftNavItemProps = () => null;\nLeftNavItemProps.displayName = 'LeftNavItemProps';\nexport const LeftNavItemPropsSchema = describe(LeftNavItemProps);\nLeftNavItemPropsSchema.propTypes = leftNavItemProps;\n\nconst LeftNavItemOptions = () => null;\nLeftNavItemOptions.displayName = 'LeftNavItemOptions';\nexport const LeftNavItemOptionsSchema = describe(LeftNavItemOptions);\nLeftNavItemOptionsSchema.propTypes = leftNavItemProps;\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,8BAAoC;AACpC,yBAAiC;AAE1B,MAAM,mBAAmB;AAAA,EAC9B,MAAM,kCAAU,MAAM,mCAAgB,EAAE,YAAY,sBAAsB;AAAA,EAC1E,MAAM,kCAAU,OAAO,YAAY,yCAAyC;AAAA,EAC5E,WAAW,kCAAU,KAAK;AAAA,IACxB;AAAA,EACF;AAAA,EACA,oBAAoB,kCAAU,KAAK,YAAY,8DAA8D;AAAA,EAC7G,UAAU,kCAAU,OAAO,YAAY,cAAc;AACvD;AAEO,MAAM,sBAAsB;AAAA,EACjC,gBAAgB,kCAAU,MAAM,EAAE,eAAe,kCAAU,OAAO,CAAC,EAChE,YAAY,kDAAkD,EAC9D,aAAa,EAAE,eAAe,QAAQ,CAAC;AAAA,EAC1C,UAAU,kCAAU,KAAK,YAAY,2DAA2D,EAAE,aAAa,KAAK;AAAA,EACpH,SAAS,kCAAU,KAAK,YAAY,iCAAiC,EAAE,aAAa,KAAK;AAAA,EACzF,YAAY,kCAAU,OACnB,YAAY,0DAA0D,EACtE,aAAa,IAAI;AAAA,EACpB,aAAa,kCAAU,OAAO,YAAY,sCAAsC;AAAA,EAChF,gBAAgB,kCAAU,KAAK,YAAY,iEAAiE;AAAA,EAC5G,eAAe,kCAAU,KAAK,YAAY,iEAAiE;AAAA,EAC3G,kBAAkB,kCAAU,KACzB,YAAY,0DAA0D,EACtE,aAAa,MAAM,IAAI;AAAA,EAC1B,eAAe,kCAAU,KACtB,YAAY,yDAAyD,EACrE,aAAa,MAAM,IAAI;AAAA,EAC1B,OAAO,kCAAU,QAAQ,kCAAU,MAAM,EACtC,YAAY,2DAA2D,EACvE,aAAa,CAAC,CAAC;AAAA,EAClB,yBAAyB,kCAAU,KAChC,YAAY,qEAAqE,EACjF,aAAa,KAAK;AACvB;AAEA,MAAM,mBAAmB,MAAM;AAC/B,iBAAiB,cAAc;AACxB,MAAM,6BAAyB,kCAAS,gBAAgB;AAC/D,uBAAuB,YAAY;AAEnC,MAAM,qBAAqB,MAAM;AACjC,mBAAmB,cAAc;AAC1B,MAAM,+BAA2B,kCAAS,kBAAkB;AACnE,yBAAyB,YAAY;",
6
- "names": []
7
- }
@@ -1,2 +0,0 @@
1
- import * as React from "react";
2
- //# sourceMappingURL=index.d.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n"],
5
- "mappings": "AAAA,YAAY,WAAW;",
6
- "names": []
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/prop-types.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { PropTypes, describe } from '@elliemae/ds-props-helpers';\nimport { outOfTheBoxTypes } from './outOfTheBox/index.js';\n\nexport const leftNavItemProps = {\n type: PropTypes.oneOf(outOfTheBoxTypes).description('out of the box types'),\n dsId: PropTypes.string.description('unique identifier for the left nav item'),\n Component: PropTypes.func.description(\n \"A custom component, receives the item as prop. This is used only when type is not defined or doesn't matches any out-of-the-box\",\n ),\n CollapsedComponent: PropTypes.func.description('A component which is renderer when the left-nav is collapsed'),\n itemOpts: PropTypes.object.description('Item options'),\n};\n\nexport const leftNavigationProps = {\n containerProps: PropTypes.shape({ expandedWidth: PropTypes.string })\n .description('Set of Properties attached to the main container')\n .defaultValue({ expandedWidth: '240px' }),\n expanded: PropTypes.bool.description('Whether to show the left navigation expanded or collapsed').defaultValue(false),\n loading: PropTypes.bool.description('Whether the left-nav is loading').defaultValue(false),\n openedItem: PropTypes.string\n .description('The id of the left navigation item you want to be opened')\n .defaultValue(null),\n footerLabel: PropTypes.string.description('The label to show in the footer item'),\n onFooterExpand: PropTypes.func.description('The function to call when the left-nav is opened via the footer'),\n onFooterClose: PropTypes.func.description('The function to call when the left-nav is closed via the footer'),\n onSelectedChange: PropTypes.func\n .description('A callback which triggers when the selected item changes')\n .defaultValue(() => null),\n onFocusChange: PropTypes.func\n .description('A callback which triggers when the focused item changes')\n .defaultValue(() => null),\n items: PropTypes.arrayOf(PropTypes.object)\n .description('The array of items you want to render inside the left nav')\n .defaultValue([]),\n disableDefaultSelection: PropTypes.bool\n .description('Whether you do not want to automatically select the first body item')\n .defaultValue(false),\n};\n\nconst LeftNavItemProps = () => null;\nLeftNavItemProps.displayName = 'LeftNavItemProps';\nexport const LeftNavItemPropsSchema = describe(LeftNavItemProps);\nLeftNavItemPropsSchema.propTypes = leftNavItemProps;\n\nconst LeftNavItemOptions = () => null;\nLeftNavItemOptions.displayName = 'LeftNavItemOptions';\nexport const LeftNavItemOptionsSchema = describe(LeftNavItemOptions);\nLeftNavItemOptionsSchema.propTypes = leftNavItemProps;\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,WAAW,gBAAgB;AACpC,SAAS,wBAAwB;AAE1B,MAAM,mBAAmB;AAAA,EAC9B,MAAM,UAAU,MAAM,gBAAgB,EAAE,YAAY,sBAAsB;AAAA,EAC1E,MAAM,UAAU,OAAO,YAAY,yCAAyC;AAAA,EAC5E,WAAW,UAAU,KAAK;AAAA,IACxB;AAAA,EACF;AAAA,EACA,oBAAoB,UAAU,KAAK,YAAY,8DAA8D;AAAA,EAC7G,UAAU,UAAU,OAAO,YAAY,cAAc;AACvD;AAEO,MAAM,sBAAsB;AAAA,EACjC,gBAAgB,UAAU,MAAM,EAAE,eAAe,UAAU,OAAO,CAAC,EAChE,YAAY,kDAAkD,EAC9D,aAAa,EAAE,eAAe,QAAQ,CAAC;AAAA,EAC1C,UAAU,UAAU,KAAK,YAAY,2DAA2D,EAAE,aAAa,KAAK;AAAA,EACpH,SAAS,UAAU,KAAK,YAAY,iCAAiC,EAAE,aAAa,KAAK;AAAA,EACzF,YAAY,UAAU,OACnB,YAAY,0DAA0D,EACtE,aAAa,IAAI;AAAA,EACpB,aAAa,UAAU,OAAO,YAAY,sCAAsC;AAAA,EAChF,gBAAgB,UAAU,KAAK,YAAY,iEAAiE;AAAA,EAC5G,eAAe,UAAU,KAAK,YAAY,iEAAiE;AAAA,EAC3G,kBAAkB,UAAU,KACzB,YAAY,0DAA0D,EACtE,aAAa,MAAM,IAAI;AAAA,EAC1B,eAAe,UAAU,KACtB,YAAY,yDAAyD,EACrE,aAAa,MAAM,IAAI;AAAA,EAC1B,OAAO,UAAU,QAAQ,UAAU,MAAM,EACtC,YAAY,2DAA2D,EACvE,aAAa,CAAC,CAAC;AAAA,EAClB,yBAAyB,UAAU,KAChC,YAAY,qEAAqE,EACjF,aAAa,KAAK;AACvB;AAEA,MAAM,mBAAmB,MAAM;AAC/B,iBAAiB,cAAc;AACxB,MAAM,yBAAyB,SAAS,gBAAgB;AAC/D,uBAAuB,YAAY;AAEnC,MAAM,qBAAqB,MAAM;AACjC,mBAAmB,cAAc;AAC1B,MAAM,2BAA2B,SAAS,kBAAkB;AACnE,yBAAyB,YAAY;",
6
- "names": []
7
- }
@@ -1,78 +0,0 @@
1
- import type React from 'react';
2
- import { type Theme } from '@elliemae/ds-system';
3
- import type { ContextProps } from './LeftNavigationContext.js';
4
- export type LabelOveflowT = 'wrap' | 'wrapAll' | 'truncate';
5
- export interface LeftNavProps {
6
- expanded: boolean;
7
- expandedWidth: string;
8
- openedItem: string | null;
9
- items: GenericItemItemProps[];
10
- footerLabel: string;
11
- labelOverflow: LabelOveflowT;
12
- onSelectedChange: (item: string | null) => void;
13
- onFocusChange: (item: string | null) => void;
14
- onFooterExpand: () => void;
15
- onFooterClose: () => void;
16
- onItemClick: (item: GenericItemItemProps, e: React.MouseEvent<HTMLElement>) => void;
17
- HeaderComponent?: GenericItemItemProps;
18
- BodyHeaderComponent?: GenericItemItemProps;
19
- loading: boolean;
20
- selectedItem?: string;
21
- selectedParent?: string;
22
- disableDefaultSelection?: boolean;
23
- withoutBodyShadow?: boolean;
24
- actionRef?: React.RefObject<{
25
- setFocusedItem: React.Dispatch<React.SetStateAction<string | null>>;
26
- }>;
27
- }
28
- export type OutOfTheBoxT = 'ds-left-nav-item-header' | 'ds-left-nav-item-link' | 'ds-left-nav-item-submenu' | 'ds-left-nav-item-controlled-drilldown' | 'ds-left-nav-item-uncontrolled-drilldown' | 'ds-left-nav-item-section' | 'ds-left-nav-item-separator' | 'ds-left-nav-item-text-label' | 'ds-left-nav-item-with-date';
29
- export interface ItemOptsT {
30
- label?: string | JSX.Element;
31
- labelBold?: boolean;
32
- labelColor?: [string, string];
33
- labelOverflow?: LabelOveflowT;
34
- labelRightSection?: string | JSX.Element;
35
- selectable?: boolean;
36
- focuseable?: boolean;
37
- startOpened?: boolean;
38
- isOpened?: boolean;
39
- openable?: boolean;
40
- closable?: boolean;
41
- indent?: number;
42
- LeftComponent?: React.ComponentType<ComponentProps>;
43
- RightComponent?: React.ComponentType<ComponentProps>;
44
- BottomComponent?: React.ComponentType<ComponentProps>;
45
- ariaLabel?: string;
46
- ariaRole?: string;
47
- ariaLive?: string;
48
- ariaExpanded?: boolean;
49
- ariaDescribedBy?: string;
50
- items?: GenericItemItemProps[];
51
- labelDataTestId?: string;
52
- skeletonVariant?: 'item' | 'subitem';
53
- }
54
- export interface ComponentProps {
55
- item: GenericItemItemProps;
56
- ctx: ContextProps;
57
- }
58
- export interface GenericItemItemProps {
59
- dsId?: string;
60
- type?: string;
61
- CollapsedComponent?: React.ComponentType<ComponentProps> | null;
62
- Component?: React.ComponentType<ComponentProps>;
63
- itemOpts: ItemOptsT;
64
- }
65
- export interface OutOfTheBoxMapItemT {
66
- item: GenericItemItemProps;
67
- }
68
- export interface ItemRendererT {
69
- item: GenericItemItemProps;
70
- subitems?: JSX.Element[];
71
- minHeight?: string;
72
- paddingTop?: string;
73
- onClick?: () => void;
74
- shadowStyle?: (opened: boolean, type: string) => (theme: Theme) => string;
75
- hasBorderBottom?: boolean;
76
- borderBottomMr?: string;
77
- children: React.ReactNode;
78
- }