@elliemae/ds-left-navigation 2.3.0-alpha.8 → 2.3.0-next.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (370) hide show
  1. package/cjs/LeftNavigation.js +29 -0
  2. package/cjs/LeftNavigationContext.js +41 -0
  3. package/cjs/common/getItemBackgroundStyle.js +12 -0
  4. package/cjs/common/getLeftBorderStyle.js +12 -0
  5. package/cjs/common/getScrollbarStyle.js +7 -0
  6. package/cjs/common/index.js +13 -0
  7. package/cjs/configs/index.js +10 -0
  8. package/cjs/configs/useLeftNavConfig.js +102 -0
  9. package/cjs/configs/useLeftNavItems.js +80 -0
  10. package/cjs/configs/useLeftNavSmoothExpand.js +35 -0
  11. package/cjs/exported-related/ChevronItem/index.js +28 -0
  12. package/cjs/exported-related/Icon/index.js +36 -0
  13. package/cjs/exported-related/ItemRenderer/index.js +128 -0
  14. package/cjs/exported-related/ItemRenderer/styled.js +58 -0
  15. package/cjs/exported-related/ItemRenderer/usePropsWithDefaults.js +57 -0
  16. package/cjs/exported-related/Notifications/index.js +62 -0
  17. package/cjs/exported-related/OpenWindowItem/index.js +33 -0
  18. package/cjs/exported-related/constants.js +29 -0
  19. package/cjs/exported-related/index.js +23 -0
  20. package/cjs/hooks/index.js +13 -0
  21. package/cjs/hooks/useExpandableOnClickHandler.js +35 -0
  22. package/cjs/hooks/useKeyboardNavigation.js +110 -0
  23. package/cjs/hooks/useOpenableOnClickHandler.js +40 -0
  24. package/cjs/hooks/useSelectFirstBodyItem.js +39 -0
  25. package/cjs/index.d.js +2 -0
  26. package/cjs/index.js +30 -0
  27. package/cjs/outOfTheBox/ItemControlledDrilldown/index.js +158 -0
  28. package/cjs/outOfTheBox/ItemControlledDrilldown/styled.js +27 -0
  29. package/cjs/outOfTheBox/ItemHeader/index.js +144 -0
  30. package/cjs/outOfTheBox/ItemHeader/styled.js +22 -0
  31. package/cjs/outOfTheBox/ItemLink/index.js +97 -0
  32. package/cjs/outOfTheBox/ItemLink/styled.js +17 -0
  33. package/cjs/outOfTheBox/ItemSection/index.js +83 -0
  34. package/cjs/outOfTheBox/ItemSection/styled.js +23 -0
  35. package/cjs/outOfTheBox/ItemSeparator/index.js +52 -0
  36. package/cjs/outOfTheBox/ItemSubmenu/index.js +145 -0
  37. package/cjs/outOfTheBox/ItemSubmenu/styled.js +22 -0
  38. package/cjs/outOfTheBox/ItemTextLabel/index.js +70 -0
  39. package/cjs/outOfTheBox/ItemTextLabel/styled.js +23 -0
  40. package/cjs/outOfTheBox/ItemUncontrolledDrilldown/index.js +172 -0
  41. package/cjs/outOfTheBox/ItemUncontrolledDrilldown/styled.js +27 -0
  42. package/cjs/outOfTheBox/ItemWithDate/index.js +86 -0
  43. package/cjs/outOfTheBox/ItemWithDate/styled.js +27 -0
  44. package/cjs/outOfTheBox/index.js +62 -0
  45. package/cjs/parts/LeftNavContent/index.js +84 -0
  46. package/cjs/parts/LeftNavContent/styled.js +53 -0
  47. package/cjs/parts/LeftNavContentWithScrollbar/index.js +91 -0
  48. package/cjs/parts/LeftNavFooterItem/index.js +108 -0
  49. package/cjs/parts/LeftNavFooterItem/styled.js +39 -0
  50. package/cjs/parts/LeftNavLoading/index.js +34 -0
  51. package/cjs/parts/OutOfTheBoxMapItem.js +52 -0
  52. package/cjs/prop-types.js +47 -0
  53. package/esm/LeftNavigation.js +20 -0
  54. package/{dist/esm → esm}/LeftNavigationContext.js +11 -15
  55. package/esm/common/getItemBackgroundStyle.js +8 -0
  56. package/esm/common/getLeftBorderStyle.js +8 -0
  57. package/esm/common/getScrollbarStyle.js +3 -0
  58. package/esm/common/index.js +3 -0
  59. package/esm/configs/index.js +2 -0
  60. package/esm/configs/useLeftNavConfig.js +93 -0
  61. package/esm/configs/useLeftNavItems.js +75 -0
  62. package/esm/configs/useLeftNavSmoothExpand.js +26 -0
  63. package/esm/exported-related/ChevronItem/index.js +19 -0
  64. package/esm/exported-related/Icon/index.js +27 -0
  65. package/esm/exported-related/ItemRenderer/index.js +119 -0
  66. package/esm/exported-related/ItemRenderer/styled.js +47 -0
  67. package/esm/exported-related/ItemRenderer/usePropsWithDefaults.js +49 -0
  68. package/esm/exported-related/Notifications/index.js +51 -0
  69. package/esm/exported-related/OpenWindowItem/index.js +23 -0
  70. package/esm/exported-related/constants.js +21 -0
  71. package/esm/exported-related/index.js +6 -0
  72. package/esm/hooks/index.js +3 -0
  73. package/esm/hooks/useExpandableOnClickHandler.js +31 -0
  74. package/{dist/esm → esm}/hooks/useKeyboardNavigation.js +47 -30
  75. package/esm/hooks/useOpenableOnClickHandler.js +36 -0
  76. package/esm/hooks/useSelectFirstBodyItem.js +35 -0
  77. package/esm/index.d.js +1 -0
  78. package/esm/index.js +8 -0
  79. package/esm/outOfTheBox/ItemControlledDrilldown/index.js +148 -0
  80. package/esm/outOfTheBox/ItemControlledDrilldown/styled.js +17 -0
  81. package/esm/outOfTheBox/ItemHeader/index.js +134 -0
  82. package/esm/outOfTheBox/ItemHeader/styled.js +12 -0
  83. package/esm/outOfTheBox/ItemLink/index.js +87 -0
  84. package/esm/outOfTheBox/ItemLink/styled.js +8 -0
  85. package/esm/outOfTheBox/ItemSection/index.js +73 -0
  86. package/esm/outOfTheBox/ItemSection/styled.js +13 -0
  87. package/esm/outOfTheBox/ItemSeparator/index.js +42 -0
  88. package/esm/outOfTheBox/ItemSubmenu/index.js +135 -0
  89. package/esm/outOfTheBox/ItemSubmenu/styled.js +12 -0
  90. package/esm/outOfTheBox/ItemTextLabel/index.js +61 -0
  91. package/esm/outOfTheBox/ItemTextLabel/styled.js +14 -0
  92. package/esm/outOfTheBox/ItemUncontrolledDrilldown/index.js +162 -0
  93. package/esm/outOfTheBox/ItemUncontrolledDrilldown/styled.js +17 -0
  94. package/esm/outOfTheBox/ItemWithDate/index.js +76 -0
  95. package/esm/outOfTheBox/ItemWithDate/styled.js +17 -0
  96. package/esm/outOfTheBox/index.js +57 -0
  97. package/esm/parts/LeftNavContent/index.js +77 -0
  98. package/esm/parts/LeftNavContent/styled.js +39 -0
  99. package/esm/parts/LeftNavContentWithScrollbar/index.js +80 -0
  100. package/esm/parts/LeftNavFooterItem/index.js +98 -0
  101. package/esm/parts/LeftNavFooterItem/styled.js +26 -0
  102. package/esm/parts/LeftNavLoading/index.js +23 -0
  103. package/esm/parts/OutOfTheBoxMapItem.js +42 -0
  104. package/esm/prop-types.js +40 -0
  105. package/package.json +121 -123
  106. package/types/LeftNavigation.d.ts +55 -0
  107. package/types/LeftNavigationContext.d.ts +18 -0
  108. package/types/common/getItemBackgroundStyle.d.ts +5 -0
  109. package/types/common/getLeftBorderStyle.d.ts +4 -0
  110. package/types/common/getScrollbarStyle.d.ts +1 -0
  111. package/types/common/index.d.ts +3 -0
  112. package/types/configs/index.d.ts +3 -0
  113. package/types/configs/useLeftNavConfig.d.ts +4 -0
  114. package/types/configs/useLeftNavItems.d.ts +12 -0
  115. package/types/configs/useLeftNavSmoothExpand.d.ts +10 -0
  116. package/types/exported-related/ChevronItem/index.d.ts +3 -0
  117. package/types/exported-related/Icon/index.d.ts +5 -0
  118. package/types/exported-related/ItemRenderer/index.d.ts +3 -0
  119. package/types/exported-related/ItemRenderer/styled.d.ts +16 -0
  120. package/types/exported-related/ItemRenderer/usePropsWithDefaults.d.ts +2 -0
  121. package/types/exported-related/Notifications/index.d.ts +8 -0
  122. package/types/exported-related/OpenWindowItem/index.d.ts +3 -0
  123. package/types/exported-related/constants.d.ts +19 -0
  124. package/types/exported-related/index.d.ts +6 -0
  125. package/types/hooks/index.d.ts +3 -0
  126. package/types/hooks/useExpandableOnClickHandler.d.ts +9 -0
  127. package/types/hooks/useKeyboardNavigation.d.ts +8 -0
  128. package/types/hooks/useOpenableOnClickHandler.d.ts +10 -0
  129. package/types/hooks/useSelectFirstBodyItem.d.ts +3 -0
  130. package/types/index.d.d.ts +77 -0
  131. package/types/index.d.ts +3 -0
  132. package/types/outOfTheBox/ItemControlledDrilldown/index.d.ts +3 -0
  133. package/types/outOfTheBox/ItemControlledDrilldown/styled.d.ts +5 -0
  134. package/types/outOfTheBox/ItemHeader/index.d.ts +3 -0
  135. package/types/outOfTheBox/ItemHeader/styled.d.ts +3 -0
  136. package/types/outOfTheBox/ItemLink/index.d.ts +3 -0
  137. package/types/outOfTheBox/ItemLink/styled.d.ts +2 -0
  138. package/types/outOfTheBox/ItemSection/index.d.ts +3 -0
  139. package/types/outOfTheBox/ItemSection/styled.d.ts +3 -0
  140. package/types/outOfTheBox/ItemSeparator/index.d.ts +3 -0
  141. package/types/outOfTheBox/ItemSubmenu/index.d.ts +3 -0
  142. package/types/outOfTheBox/ItemSubmenu/styled.d.ts +3 -0
  143. package/types/outOfTheBox/ItemTextLabel/index.d.ts +3 -0
  144. package/types/outOfTheBox/ItemTextLabel/styled.d.ts +2 -0
  145. package/types/outOfTheBox/ItemUncontrolledDrilldown/index.d.ts +3 -0
  146. package/types/outOfTheBox/ItemUncontrolledDrilldown/styled.d.ts +5 -0
  147. package/types/outOfTheBox/ItemWithDate/index.d.ts +3 -0
  148. package/types/outOfTheBox/ItemWithDate/styled.d.ts +5 -0
  149. package/types/outOfTheBox/index.d.ts +13 -0
  150. package/types/parts/LeftNavContent/index.d.ts +3 -0
  151. package/types/parts/LeftNavContent/styled.d.ts +14 -0
  152. package/types/parts/LeftNavContentWithScrollbar/index.d.ts +6 -0
  153. package/types/parts/LeftNavFooterItem/index.d.ts +8 -0
  154. package/types/parts/LeftNavFooterItem/styled.d.ts +14 -0
  155. package/types/parts/LeftNavLoading/index.d.ts +4 -0
  156. package/types/parts/OutOfTheBoxMapItem.d.ts +3 -0
  157. package/types/prop-types.d.ts +91 -0
  158. package/types/tests/LeftNavigation.collapsed.test.d.ts +1 -0
  159. package/types/tests/LeftNavigation.expanded.test.d.ts +1 -0
  160. package/types/tests/LeftNavigation.opened.test.d.ts +1 -0
  161. package/types/tests/events/LeftNavigation.events.keyboard.test.d.ts +1 -0
  162. package/types/tests/events/LeftNavigation.events.subitems.test.d.ts +1 -0
  163. package/types/tests/events/LeftNavigation.events.test.d.ts +1 -0
  164. package/types/tests/events/LeftNavigation.focus.events.test.d.ts +1 -0
  165. package/dist/cjs/LeftNavigation.js +0 -51
  166. package/dist/cjs/LeftNavigation.js.map +0 -7
  167. package/dist/cjs/LeftNavigationContext.js +0 -67
  168. package/dist/cjs/LeftNavigationContext.js.map +0 -7
  169. package/dist/cjs/common/getItemBackgroundStyle.js +0 -51
  170. package/dist/cjs/common/getItemBackgroundStyle.js.map +0 -7
  171. package/dist/cjs/common/getLeftBorderStyle.js +0 -54
  172. package/dist/cjs/common/getLeftBorderStyle.js.map +0 -7
  173. package/dist/cjs/common/getScrollbarStyle.js +0 -58
  174. package/dist/cjs/common/getScrollbarStyle.js.map +0 -7
  175. package/dist/cjs/common/index.js +0 -30
  176. package/dist/cjs/common/index.js.map +0 -7
  177. package/dist/cjs/configs/index.js +0 -38
  178. package/dist/cjs/configs/index.js.map +0 -7
  179. package/dist/cjs/configs/useLeftNavConfig.js +0 -106
  180. package/dist/cjs/configs/useLeftNavConfig.js.map +0 -7
  181. package/dist/cjs/configs/useLeftNavItems.js +0 -82
  182. package/dist/cjs/configs/useLeftNavItems.js.map +0 -7
  183. package/dist/cjs/configs/useLeftNavSmoothExpand.js +0 -53
  184. package/dist/cjs/configs/useLeftNavSmoothExpand.js.map +0 -7
  185. package/dist/cjs/exported-related/ChevronItem/index.js +0 -43
  186. package/dist/cjs/exported-related/ChevronItem/index.js.map +0 -7
  187. package/dist/cjs/exported-related/Icon/index.js +0 -53
  188. package/dist/cjs/exported-related/Icon/index.js.map +0 -7
  189. package/dist/cjs/exported-related/ItemRenderer/index.js +0 -133
  190. package/dist/cjs/exported-related/ItemRenderer/index.js.map +0 -7
  191. package/dist/cjs/exported-related/ItemRenderer/styled.js +0 -90
  192. package/dist/cjs/exported-related/ItemRenderer/styled.js.map +0 -7
  193. package/dist/cjs/exported-related/ItemRenderer/usePropsWithDefaults.js +0 -69
  194. package/dist/cjs/exported-related/ItemRenderer/usePropsWithDefaults.js.map +0 -7
  195. package/dist/cjs/exported-related/Notifications/index.js +0 -82
  196. package/dist/cjs/exported-related/Notifications/index.js.map +0 -7
  197. package/dist/cjs/exported-related/OpenWindowItem/index.js +0 -50
  198. package/dist/cjs/exported-related/OpenWindowItem/index.js.map +0 -7
  199. package/dist/cjs/exported-related/constants.js +0 -57
  200. package/dist/cjs/exported-related/constants.js.map +0 -7
  201. package/dist/cjs/exported-related/index.js +0 -33
  202. package/dist/cjs/exported-related/index.js.map +0 -7
  203. package/dist/cjs/hooks/index.js +0 -30
  204. package/dist/cjs/hooks/index.js.map +0 -7
  205. package/dist/cjs/hooks/useExpandableOnClickHandler.js +0 -64
  206. package/dist/cjs/hooks/useExpandableOnClickHandler.js.map +0 -7
  207. package/dist/cjs/hooks/useKeyboardNavigation.js +0 -118
  208. package/dist/cjs/hooks/useKeyboardNavigation.js.map +0 -7
  209. package/dist/cjs/hooks/useOpenableOnClickHandler.js +0 -69
  210. package/dist/cjs/hooks/useOpenableOnClickHandler.js.map +0 -7
  211. package/dist/cjs/hooks/useSelectFirstBodyItem.js +0 -52
  212. package/dist/cjs/hooks/useSelectFirstBodyItem.js.map +0 -7
  213. package/dist/cjs/index.d.js +0 -27
  214. package/dist/cjs/index.d.js.map +0 -7
  215. package/dist/cjs/index.js +0 -41
  216. package/dist/cjs/index.js.map +0 -7
  217. package/dist/cjs/outOfTheBox/ItemControlledDrilldown/index.js +0 -152
  218. package/dist/cjs/outOfTheBox/ItemControlledDrilldown/index.js.map +0 -7
  219. package/dist/cjs/outOfTheBox/ItemControlledDrilldown/styled.js +0 -49
  220. package/dist/cjs/outOfTheBox/ItemControlledDrilldown/styled.js.map +0 -7
  221. package/dist/cjs/outOfTheBox/ItemHeader/index.js +0 -147
  222. package/dist/cjs/outOfTheBox/ItemHeader/index.js.map +0 -7
  223. package/dist/cjs/outOfTheBox/ItemHeader/styled.js +0 -49
  224. package/dist/cjs/outOfTheBox/ItemHeader/styled.js.map +0 -7
  225. package/dist/cjs/outOfTheBox/ItemLink/index.js +0 -106
  226. package/dist/cjs/outOfTheBox/ItemLink/index.js.map +0 -7
  227. package/dist/cjs/outOfTheBox/ItemLink/styled.js +0 -41
  228. package/dist/cjs/outOfTheBox/ItemLink/styled.js.map +0 -7
  229. package/dist/cjs/outOfTheBox/ItemSection/index.js +0 -79
  230. package/dist/cjs/outOfTheBox/ItemSection/index.js.map +0 -7
  231. package/dist/cjs/outOfTheBox/ItemSection/styled.js +0 -53
  232. package/dist/cjs/outOfTheBox/ItemSection/styled.js.map +0 -7
  233. package/dist/cjs/outOfTheBox/ItemSeparator/index.js +0 -63
  234. package/dist/cjs/outOfTheBox/ItemSeparator/index.js.map +0 -7
  235. package/dist/cjs/outOfTheBox/ItemSubmenu/index.js +0 -149
  236. package/dist/cjs/outOfTheBox/ItemSubmenu/index.js.map +0 -7
  237. package/dist/cjs/outOfTheBox/ItemSubmenu/styled.js +0 -49
  238. package/dist/cjs/outOfTheBox/ItemSubmenu/styled.js.map +0 -7
  239. package/dist/cjs/outOfTheBox/ItemTextLabel/index.js +0 -69
  240. package/dist/cjs/outOfTheBox/ItemTextLabel/index.js.map +0 -7
  241. package/dist/cjs/outOfTheBox/ItemTextLabel/styled.js +0 -43
  242. package/dist/cjs/outOfTheBox/ItemTextLabel/styled.js.map +0 -7
  243. package/dist/cjs/outOfTheBox/ItemUncontrolledDrilldown/index.js +0 -166
  244. package/dist/cjs/outOfTheBox/ItemUncontrolledDrilldown/index.js.map +0 -7
  245. package/dist/cjs/outOfTheBox/ItemUncontrolledDrilldown/styled.js +0 -49
  246. package/dist/cjs/outOfTheBox/ItemUncontrolledDrilldown/styled.js.map +0 -7
  247. package/dist/cjs/outOfTheBox/ItemWithDate/index.js +0 -91
  248. package/dist/cjs/outOfTheBox/ItemWithDate/index.js.map +0 -7
  249. package/dist/cjs/outOfTheBox/ItemWithDate/styled.js +0 -49
  250. package/dist/cjs/outOfTheBox/ItemWithDate/styled.js.map +0 -7
  251. package/dist/cjs/outOfTheBox/index.js +0 -77
  252. package/dist/cjs/outOfTheBox/index.js.map +0 -7
  253. package/dist/cjs/parts/LeftNavContent/index.js +0 -88
  254. package/dist/cjs/parts/LeftNavContent/index.js.map +0 -7
  255. package/dist/cjs/parts/LeftNavContent/styled.js +0 -113
  256. package/dist/cjs/parts/LeftNavContent/styled.js.map +0 -7
  257. package/dist/cjs/parts/LeftNavContentWithScrollbar/index.js +0 -101
  258. package/dist/cjs/parts/LeftNavContentWithScrollbar/index.js.map +0 -7
  259. package/dist/cjs/parts/LeftNavFooterItem/index.js +0 -125
  260. package/dist/cjs/parts/LeftNavFooterItem/index.js.map +0 -7
  261. package/dist/cjs/parts/LeftNavFooterItem/styled.js +0 -94
  262. package/dist/cjs/parts/LeftNavFooterItem/styled.js.map +0 -7
  263. package/dist/cjs/parts/LeftNavLoading/index.js +0 -52
  264. package/dist/cjs/parts/LeftNavLoading/index.js.map +0 -7
  265. package/dist/cjs/parts/OutOfTheBoxMapItem.js +0 -55
  266. package/dist/cjs/parts/OutOfTheBoxMapItem.js.map +0 -7
  267. package/dist/cjs/prop-types.js +0 -66
  268. package/dist/cjs/prop-types.js.map +0 -7
  269. package/dist/esm/LeftNavigation.js +0 -22
  270. package/dist/esm/LeftNavigation.js.map +0 -7
  271. package/dist/esm/LeftNavigationContext.js.map +0 -7
  272. package/dist/esm/common/getItemBackgroundStyle.js +0 -22
  273. package/dist/esm/common/getItemBackgroundStyle.js.map +0 -7
  274. package/dist/esm/common/getLeftBorderStyle.js +0 -25
  275. package/dist/esm/common/getLeftBorderStyle.js.map +0 -7
  276. package/dist/esm/common/getScrollbarStyle.js +0 -29
  277. package/dist/esm/common/getScrollbarStyle.js.map +0 -7
  278. package/dist/esm/common/index.js +0 -5
  279. package/dist/esm/common/index.js.map +0 -7
  280. package/dist/esm/configs/index.js +0 -9
  281. package/dist/esm/configs/index.js.map +0 -7
  282. package/dist/esm/configs/useLeftNavConfig.js +0 -77
  283. package/dist/esm/configs/useLeftNavConfig.js.map +0 -7
  284. package/dist/esm/configs/useLeftNavItems.js +0 -53
  285. package/dist/esm/configs/useLeftNavItems.js.map +0 -7
  286. package/dist/esm/configs/useLeftNavSmoothExpand.js +0 -24
  287. package/dist/esm/configs/useLeftNavSmoothExpand.js.map +0 -7
  288. package/dist/esm/exported-related/ChevronItem/index.js +0 -14
  289. package/dist/esm/exported-related/ChevronItem/index.js.map +0 -7
  290. package/dist/esm/exported-related/Icon/index.js +0 -24
  291. package/dist/esm/exported-related/Icon/index.js.map +0 -7
  292. package/dist/esm/exported-related/ItemRenderer/index.js +0 -104
  293. package/dist/esm/exported-related/ItemRenderer/index.js.map +0 -7
  294. package/dist/esm/exported-related/ItemRenderer/styled.js +0 -61
  295. package/dist/esm/exported-related/ItemRenderer/styled.js.map +0 -7
  296. package/dist/esm/exported-related/ItemRenderer/usePropsWithDefaults.js +0 -40
  297. package/dist/esm/exported-related/ItemRenderer/usePropsWithDefaults.js.map +0 -7
  298. package/dist/esm/exported-related/Notifications/index.js +0 -58
  299. package/dist/esm/exported-related/Notifications/index.js.map +0 -7
  300. package/dist/esm/exported-related/OpenWindowItem/index.js +0 -21
  301. package/dist/esm/exported-related/OpenWindowItem/index.js.map +0 -7
  302. package/dist/esm/exported-related/constants.js +0 -28
  303. package/dist/esm/exported-related/constants.js.map +0 -7
  304. package/dist/esm/exported-related/index.js +0 -8
  305. package/dist/esm/exported-related/index.js.map +0 -7
  306. package/dist/esm/hooks/index.js +0 -5
  307. package/dist/esm/hooks/index.js.map +0 -7
  308. package/dist/esm/hooks/useExpandableOnClickHandler.js +0 -35
  309. package/dist/esm/hooks/useExpandableOnClickHandler.js.map +0 -7
  310. package/dist/esm/hooks/useKeyboardNavigation.js.map +0 -7
  311. package/dist/esm/hooks/useOpenableOnClickHandler.js +0 -40
  312. package/dist/esm/hooks/useOpenableOnClickHandler.js.map +0 -7
  313. package/dist/esm/hooks/useSelectFirstBodyItem.js +0 -23
  314. package/dist/esm/hooks/useSelectFirstBodyItem.js.map +0 -7
  315. package/dist/esm/index.d.js +0 -2
  316. package/dist/esm/index.d.js.map +0 -7
  317. package/dist/esm/index.js +0 -12
  318. package/dist/esm/index.js.map +0 -7
  319. package/dist/esm/outOfTheBox/ItemControlledDrilldown/index.js +0 -123
  320. package/dist/esm/outOfTheBox/ItemControlledDrilldown/index.js.map +0 -7
  321. package/dist/esm/outOfTheBox/ItemControlledDrilldown/styled.js +0 -20
  322. package/dist/esm/outOfTheBox/ItemControlledDrilldown/styled.js.map +0 -7
  323. package/dist/esm/outOfTheBox/ItemHeader/index.js +0 -118
  324. package/dist/esm/outOfTheBox/ItemHeader/index.js.map +0 -7
  325. package/dist/esm/outOfTheBox/ItemHeader/styled.js +0 -20
  326. package/dist/esm/outOfTheBox/ItemHeader/styled.js.map +0 -7
  327. package/dist/esm/outOfTheBox/ItemLink/index.js +0 -77
  328. package/dist/esm/outOfTheBox/ItemLink/index.js.map +0 -7
  329. package/dist/esm/outOfTheBox/ItemLink/styled.js +0 -12
  330. package/dist/esm/outOfTheBox/ItemLink/styled.js.map +0 -7
  331. package/dist/esm/outOfTheBox/ItemSection/index.js +0 -50
  332. package/dist/esm/outOfTheBox/ItemSection/index.js.map +0 -7
  333. package/dist/esm/outOfTheBox/ItemSection/styled.js +0 -24
  334. package/dist/esm/outOfTheBox/ItemSection/styled.js.map +0 -7
  335. package/dist/esm/outOfTheBox/ItemSeparator/index.js +0 -34
  336. package/dist/esm/outOfTheBox/ItemSeparator/index.js.map +0 -7
  337. package/dist/esm/outOfTheBox/ItemSubmenu/index.js +0 -120
  338. package/dist/esm/outOfTheBox/ItemSubmenu/index.js.map +0 -7
  339. package/dist/esm/outOfTheBox/ItemSubmenu/styled.js +0 -20
  340. package/dist/esm/outOfTheBox/ItemSubmenu/styled.js.map +0 -7
  341. package/dist/esm/outOfTheBox/ItemTextLabel/index.js +0 -40
  342. package/dist/esm/outOfTheBox/ItemTextLabel/index.js.map +0 -7
  343. package/dist/esm/outOfTheBox/ItemTextLabel/styled.js +0 -14
  344. package/dist/esm/outOfTheBox/ItemTextLabel/styled.js.map +0 -7
  345. package/dist/esm/outOfTheBox/ItemUncontrolledDrilldown/index.js +0 -137
  346. package/dist/esm/outOfTheBox/ItemUncontrolledDrilldown/index.js.map +0 -7
  347. package/dist/esm/outOfTheBox/ItemUncontrolledDrilldown/styled.js +0 -20
  348. package/dist/esm/outOfTheBox/ItemUncontrolledDrilldown/styled.js.map +0 -7
  349. package/dist/esm/outOfTheBox/ItemWithDate/index.js +0 -62
  350. package/dist/esm/outOfTheBox/ItemWithDate/index.js.map +0 -7
  351. package/dist/esm/outOfTheBox/ItemWithDate/styled.js +0 -20
  352. package/dist/esm/outOfTheBox/ItemWithDate/styled.js.map +0 -7
  353. package/dist/esm/outOfTheBox/index.js +0 -48
  354. package/dist/esm/outOfTheBox/index.js.map +0 -7
  355. package/dist/esm/parts/LeftNavContent/index.js +0 -67
  356. package/dist/esm/parts/LeftNavContent/index.js.map +0 -7
  357. package/dist/esm/parts/LeftNavContent/styled.js +0 -84
  358. package/dist/esm/parts/LeftNavContent/styled.js.map +0 -7
  359. package/dist/esm/parts/LeftNavContentWithScrollbar/index.js +0 -72
  360. package/dist/esm/parts/LeftNavContentWithScrollbar/index.js.map +0 -7
  361. package/dist/esm/parts/LeftNavFooterItem/index.js +0 -103
  362. package/dist/esm/parts/LeftNavFooterItem/index.js.map +0 -7
  363. package/dist/esm/parts/LeftNavFooterItem/styled.js +0 -65
  364. package/dist/esm/parts/LeftNavFooterItem/styled.js.map +0 -7
  365. package/dist/esm/parts/LeftNavLoading/index.js +0 -23
  366. package/dist/esm/parts/LeftNavLoading/index.js.map +0 -7
  367. package/dist/esm/parts/OutOfTheBoxMapItem.js +0 -26
  368. package/dist/esm/parts/OutOfTheBoxMapItem.js.map +0 -7
  369. package/dist/esm/prop-types.js +0 -37
  370. package/dist/esm/prop-types.js.map +0 -7
@@ -0,0 +1,135 @@
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 };
@@ -0,0 +1,12 @@
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 };
@@ -0,0 +1,61 @@
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 };
@@ -0,0 +1,14 @@
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 };
@@ -0,0 +1,162 @@
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 };
@@ -0,0 +1,17 @@
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 };
@@ -0,0 +1,76 @@
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 };
@@ -0,0 +1,17 @@
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 };
@@ -0,0 +1,57 @@
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 };
@@ -0,0 +1,77 @@
1
+ import _jsx from '@babel/runtime/helpers/esm/jsx';
2
+ import 'core-js/modules/esnext.async-iterator.map.js';
3
+ import 'core-js/modules/esnext.iterator.map.js';
4
+ import React from 'react';
5
+ import { LeftNavContext } from '../../LeftNavigationContext.js';
6
+ import { LeftNavFooterItem } from '../LeftNavFooterItem/index.js';
7
+ import { LeftNavContentWithScrollbar } from '../LeftNavContentWithScrollbar/index.js';
8
+ import { OutOfTheBoxMapItem } from '../OutOfTheBoxMapItem.js';
9
+ import { StyledLeftNavExpandAnimationWrapper, StyledLeftNavAreasContainer, StyledLeftNavFooterArea, StyledLeftNavHeaderArea, StyledLeftNavBodyAreasContainer, StyledLeftNavBodyHeaderArea, StyledLeftNavBodyItemsArea } from './styled.js';
10
+ import { LeftNavLoading } from '../LeftNavLoading/index.js';
11
+ import { jsxs, Fragment } from 'react/jsx-runtime';
12
+
13
+ var _LeftNavInnerContent;
14
+ const leftNavScreenReaderInstructions = 'Left Navigation. You can navigate through the items using the Up/Down arrows. ' + 'To expand or select an item, use the Enter/Return or Space keys. ' + 'Expandable items can also be opened/closed with the Right/Left arrows. ' + 'The Home and End keys will take you to the first and last item respectively.';
15
+
16
+ const LeftNavInnerContent = () => {
17
+ const {
18
+ leftNavProps: {
19
+ HeaderComponent,
20
+ BodyHeaderComponent,
21
+ openedItem,
22
+ items,
23
+ withoutBodyShadow
24
+ },
25
+ selectedItem
26
+ } = React.useContext(LeftNavContext);
27
+ return /*#__PURE__*/jsxs(Fragment, {
28
+ children: [/*#__PURE__*/_jsx(StyledLeftNavHeaderArea, {
29
+ "data-testid": "leftnav-header-area",
30
+ selected: HeaderComponent && [selectedItem, openedItem].includes(HeaderComponent.dsId)
31
+ }, void 0, HeaderComponent ? /*#__PURE__*/_jsx(OutOfTheBoxMapItem, {
32
+ item: HeaderComponent
33
+ }) : null), /*#__PURE__*/_jsx(StyledLeftNavBodyAreasContainer, {}, void 0, /*#__PURE__*/_jsx(StyledLeftNavBodyHeaderArea, {
34
+ "data-testid": "leftnav-body-header-area",
35
+ selected: BodyHeaderComponent && [selectedItem, openedItem].includes(BodyHeaderComponent.dsId)
36
+ }, void 0, BodyHeaderComponent ? /*#__PURE__*/_jsx(OutOfTheBoxMapItem, {
37
+ item: BodyHeaderComponent
38
+ }) : null), /*#__PURE__*/_jsx(StyledLeftNavBodyItemsArea, {
39
+ selected: !withoutBodyShadow && openedItem !== null,
40
+ "data-testid": "leftnav-body-items-area",
41
+ tabIndex: -1
42
+ }, void 0, /*#__PURE__*/_jsx(LeftNavContentWithScrollbar, {}, void 0, items.map(item => /*#__PURE__*/_jsx(OutOfTheBoxMapItem, {
43
+ item: item
44
+ }, item.dsId)))))]
45
+ });
46
+ };
47
+
48
+ const LeftNavContent = () => {
49
+ const {
50
+ expandedForAnimation,
51
+ leftNavProps: {
52
+ expanded,
53
+ expandedWidth,
54
+ footerLabel,
55
+ onFooterExpand,
56
+ onFooterClose,
57
+ loading
58
+ }
59
+ } = React.useContext(LeftNavContext);
60
+ return /*#__PURE__*/_jsx(StyledLeftNavExpandAnimationWrapper, {
61
+ expandedWidth: expandedWidth,
62
+ expanded: expanded,
63
+ "data-testid": "leftnav-component",
64
+ "aria-label": leftNavScreenReaderInstructions
65
+ }, void 0, /*#__PURE__*/_jsx(StyledLeftNavAreasContainer, {
66
+ expandedWidth: expandedWidth,
67
+ expanded: expandedForAnimation
68
+ }, void 0, loading && /*#__PURE__*/_jsx(LeftNavLoading, {
69
+ expanded: expandedForAnimation
70
+ }), !loading && (_LeftNavInnerContent || (_LeftNavInnerContent = /*#__PURE__*/_jsx(LeftNavInnerContent, {}))), /*#__PURE__*/_jsx(StyledLeftNavFooterArea, {}, void 0, /*#__PURE__*/_jsx(LeftNavFooterItem, {
71
+ footerLabel: footerLabel,
72
+ onFooterExpand: onFooterExpand,
73
+ onFooterClose: onFooterClose
74
+ }))));
75
+ };
76
+
77
+ export { LeftNavContent as default };