@elliemae/ds-left-navigation 1.56.1 → 1.57.0-rc.11

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 (119) hide show
  1. package/cjs/LeftNavigation.js +3 -13
  2. package/cjs/LeftNavigation.js.map +1 -1
  3. package/cjs/configs/index.js +1 -6
  4. package/cjs/configs/index.js.map +1 -1
  5. package/cjs/configs/useGlobalKeyListeners.js +2 -5
  6. package/cjs/configs/useGlobalKeyListeners.js.map +1 -1
  7. package/cjs/configs/useLeftNavConfig.js +1 -6
  8. package/cjs/configs/useLeftNavConfig.js.map +1 -1
  9. package/cjs/configs/useLeftNavItems.js +1 -6
  10. package/cjs/configs/useLeftNavItems.js.map +1 -1
  11. package/cjs/exported-related/ChevronItem/index.js +2 -3
  12. package/cjs/exported-related/ChevronItem/index.js.map +1 -1
  13. package/cjs/exported-related/Notifications/index.js +5 -12
  14. package/cjs/exported-related/Notifications/index.js.map +1 -1
  15. package/cjs/exported-related/OpenWindowItem/index.js +2 -3
  16. package/cjs/exported-related/OpenWindowItem/index.js.map +1 -1
  17. package/cjs/exported-related/constants.js.map +1 -1
  18. package/cjs/exported-related/index.js +1 -6
  19. package/cjs/exported-related/index.js.map +1 -1
  20. package/cjs/index.js +3 -14
  21. package/cjs/index.js.map +1 -1
  22. package/cjs/outOfTheBox/ItemControlledDrilldown/index.js +2 -11
  23. package/cjs/outOfTheBox/ItemControlledDrilldown/index.js.map +1 -1
  24. package/cjs/outOfTheBox/ItemHeader/index.js +1 -7
  25. package/cjs/outOfTheBox/ItemHeader/index.js.map +1 -1
  26. package/cjs/outOfTheBox/ItemHeader/styled.js +2 -3
  27. package/cjs/outOfTheBox/ItemHeader/styled.js.map +1 -1
  28. package/cjs/outOfTheBox/ItemLink/index.js +1 -6
  29. package/cjs/outOfTheBox/ItemLink/index.js.map +1 -1
  30. package/cjs/outOfTheBox/ItemSection/index.js +1 -6
  31. package/cjs/outOfTheBox/ItemSection/index.js.map +1 -1
  32. package/cjs/outOfTheBox/ItemSeparator/index.js +1 -6
  33. package/cjs/outOfTheBox/ItemSeparator/index.js.map +1 -1
  34. package/cjs/outOfTheBox/ItemSubmenu/index.js +1 -7
  35. package/cjs/outOfTheBox/ItemSubmenu/index.js.map +1 -1
  36. package/cjs/outOfTheBox/ItemSubmenu/styled.js +2 -3
  37. package/cjs/outOfTheBox/ItemSubmenu/styled.js.map +1 -1
  38. package/cjs/outOfTheBox/ItemTextLabel/index.js +1 -6
  39. package/cjs/outOfTheBox/ItemTextLabel/index.js.map +1 -1
  40. package/cjs/outOfTheBox/ItemUncontrolledDrilldown/index.js +2 -11
  41. package/cjs/outOfTheBox/ItemUncontrolledDrilldown/index.js.map +1 -1
  42. package/cjs/outOfTheBox/ItemWithDate/index.js +1 -6
  43. package/cjs/outOfTheBox/ItemWithDate/index.js.map +1 -1
  44. package/cjs/outOfTheBox/index.js +1 -9
  45. package/cjs/outOfTheBox/index.js.map +1 -1
  46. package/cjs/parts/LeftNavContent/index.js +3 -13
  47. package/cjs/parts/LeftNavContent/index.js.map +1 -1
  48. package/cjs/parts/LeftNavContentWithScrollbar/index.js +1 -0
  49. package/cjs/parts/LeftNavContentWithScrollbar/index.js.map +1 -1
  50. package/cjs/parts/LeftNavFooterItem/index.js +2 -5
  51. package/cjs/parts/LeftNavFooterItem/index.js.map +1 -1
  52. package/cjs/parts/LeftNavFooterItem/styled.js +6 -6
  53. package/cjs/parts/LeftNavFooterItem/styled.js.map +1 -1
  54. package/cjs/parts/LeftNavLoading/index.js +1 -1
  55. package/cjs/parts/LeftNavLoading/index.js.map +1 -1
  56. package/cjs/parts/OutOfTheBoxMapItem.js +1 -9
  57. package/cjs/parts/OutOfTheBoxMapItem.js.map +1 -1
  58. package/cjs/prop-types.js +1 -9
  59. package/cjs/prop-types.js.map +1 -1
  60. package/esm/LeftNavigation.js +3 -13
  61. package/esm/LeftNavigation.js.map +1 -1
  62. package/esm/configs/index.js +1 -6
  63. package/esm/configs/index.js.map +1 -1
  64. package/esm/configs/useGlobalKeyListeners.js +2 -5
  65. package/esm/configs/useGlobalKeyListeners.js.map +1 -1
  66. package/esm/configs/useLeftNavConfig.js +1 -6
  67. package/esm/configs/useLeftNavConfig.js.map +1 -1
  68. package/esm/configs/useLeftNavItems.js +1 -6
  69. package/esm/configs/useLeftNavItems.js.map +1 -1
  70. package/esm/exported-related/ChevronItem/index.js +2 -2
  71. package/esm/exported-related/ChevronItem/index.js.map +1 -1
  72. package/esm/exported-related/Notifications/index.js +2 -5
  73. package/esm/exported-related/Notifications/index.js.map +1 -1
  74. package/esm/exported-related/OpenWindowItem/index.js +2 -2
  75. package/esm/exported-related/OpenWindowItem/index.js.map +1 -1
  76. package/esm/exported-related/constants.js.map +1 -1
  77. package/esm/exported-related/index.js +1 -6
  78. package/esm/exported-related/index.js.map +1 -1
  79. package/esm/index.js +3 -14
  80. package/esm/index.js.map +1 -1
  81. package/esm/outOfTheBox/ItemControlledDrilldown/index.js +1 -8
  82. package/esm/outOfTheBox/ItemControlledDrilldown/index.js.map +1 -1
  83. package/esm/outOfTheBox/ItemHeader/index.js +1 -7
  84. package/esm/outOfTheBox/ItemHeader/index.js.map +1 -1
  85. package/esm/outOfTheBox/ItemHeader/styled.js +2 -2
  86. package/esm/outOfTheBox/ItemHeader/styled.js.map +1 -1
  87. package/esm/outOfTheBox/ItemLink/index.js +1 -6
  88. package/esm/outOfTheBox/ItemLink/index.js.map +1 -1
  89. package/esm/outOfTheBox/ItemSection/index.js +1 -6
  90. package/esm/outOfTheBox/ItemSection/index.js.map +1 -1
  91. package/esm/outOfTheBox/ItemSeparator/index.js +1 -6
  92. package/esm/outOfTheBox/ItemSeparator/index.js.map +1 -1
  93. package/esm/outOfTheBox/ItemSubmenu/index.js +1 -7
  94. package/esm/outOfTheBox/ItemSubmenu/index.js.map +1 -1
  95. package/esm/outOfTheBox/ItemSubmenu/styled.js +2 -2
  96. package/esm/outOfTheBox/ItemSubmenu/styled.js.map +1 -1
  97. package/esm/outOfTheBox/ItemTextLabel/index.js +1 -6
  98. package/esm/outOfTheBox/ItemTextLabel/index.js.map +1 -1
  99. package/esm/outOfTheBox/ItemUncontrolledDrilldown/index.js +1 -8
  100. package/esm/outOfTheBox/ItemUncontrolledDrilldown/index.js.map +1 -1
  101. package/esm/outOfTheBox/ItemWithDate/index.js +1 -6
  102. package/esm/outOfTheBox/ItemWithDate/index.js.map +1 -1
  103. package/esm/outOfTheBox/index.js +1 -9
  104. package/esm/outOfTheBox/index.js.map +1 -1
  105. package/esm/parts/LeftNavContent/index.js +3 -13
  106. package/esm/parts/LeftNavContent/index.js.map +1 -1
  107. package/esm/parts/LeftNavContentWithScrollbar/index.js +1 -0
  108. package/esm/parts/LeftNavContentWithScrollbar/index.js.map +1 -1
  109. package/esm/parts/LeftNavFooterItem/index.js +1 -3
  110. package/esm/parts/LeftNavFooterItem/index.js.map +1 -1
  111. package/esm/parts/LeftNavFooterItem/styled.js +1 -1
  112. package/esm/parts/LeftNavFooterItem/styled.js.map +1 -1
  113. package/esm/parts/LeftNavLoading/index.js +1 -1
  114. package/esm/parts/LeftNavLoading/index.js.map +1 -1
  115. package/esm/parts/OutOfTheBoxMapItem.js +1 -9
  116. package/esm/parts/OutOfTheBoxMapItem.js.map +1 -1
  117. package/esm/prop-types.js +1 -9
  118. package/esm/prop-types.js.map +1 -1
  119. package/package.json +6 -6
@@ -14,16 +14,9 @@ require('./exported-related/constants.js');
14
14
  require('@elliemae/ds-grid');
15
15
  require('styled-components');
16
16
  require('@babel/runtime/helpers/extends');
17
- require('@elliemae/ds-icons/ChevronSmallRight');
18
- require('@elliemae/ds-icons/Notifications');
19
- require('@elliemae/ds-icons/ExceptionsSmallFill');
20
- require('@elliemae/ds-icons/AlertsSmallFill');
21
- require('@elliemae/ds-icons/MessagesSmallFill');
22
- require('@elliemae/ds-icons/OpenWindow');
17
+ require('@elliemae/ds-icons');
23
18
  require('./outOfTheBox/ItemControlledDrilldown/index.js');
24
19
  require('@elliemae/ds-truncated-tooltip-text');
25
- require('@elliemae/ds-icons/ArrowheadRight');
26
- require('@elliemae/ds-icons/ArrowheadDown');
27
20
  require('./exported-related/ItemRenderer/index.js');
28
21
  require('./exported-related/ItemRenderer/styled.js');
29
22
  require('./exported-related/ItemRenderer/usePropsWithDefaults.js');
@@ -39,7 +32,6 @@ require('./outOfTheBox/ItemTextLabel/index.js');
39
32
  require('./outOfTheBox/ItemTextLabel/styled.js');
40
33
  require('./outOfTheBox/ItemHeader/index.js');
41
34
  require('./outOfTheBox/ItemHeader/styled.js');
42
- require('@elliemae/ds-icons/ChevronSmallLeft');
43
35
  require('./outOfTheBox/ItemLink/index.js');
44
36
  require('./outOfTheBox/ItemLink/styled.js');
45
37
  require('./outOfTheBox/ItemSection/index.js');
@@ -52,19 +44,17 @@ require('./configs/useLeftNavItems.js');
52
44
  require('./configs/useLeftNavSmoothExpand.js');
53
45
  require('./hooks/useSelectFirstBodyItem.js');
54
46
  require('./parts/LeftNavFooterItem/index.js');
55
- require('@elliemae/ds-icons/MenuExpand');
56
47
  require('./parts/LeftNavFooterItem/styled.js');
57
- require('@elliemae/ds-basic');
58
- require('@elliemae/ds-icons');
59
48
  require('./common/getFocusedByKeyboardStyle.js');
60
49
  require('./common/getItemBackgroundStyle.js');
61
50
  require('./common/getLeftBorderStyle.js');
62
51
  require('./parts/LeftNavContentWithScrollbar/index.js');
52
+ require('overlayscrollbars/css/OverlayScrollbars.css');
63
53
  require('overlayscrollbars');
64
54
  require('./parts/OutOfTheBoxMapItem.js');
65
55
  require('./parts/LeftNavContent/styled.js');
66
56
  require('./parts/LeftNavLoading/index.js');
67
- require('@elliemae/ds-basic/CircularProgressIndicator');
57
+ require('@elliemae/ds-circular-progress-indicator');
68
58
 
69
59
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
70
60
 
@@ -1 +1 @@
1
- {"version":3,"file":"LeftNavigation.js","sources":["../../src/LeftNavigation.tsx"],"sourcesContent":["import React from 'react';\nimport { describe } from 'react-desc';\nimport { leftNavigationProps } from './prop-types';\nimport LeftNavigationContext, { defaultProps } from './LeftNavigationContext';\nimport { useLeftNavConfig } from './configs/useLeftNavConfig';\nimport LeftNavContent from './parts/LeftNavContent';\nimport type { LeftNavProps } from './index.d';\n\nexport const LeftNavigation = (props: LeftNavProps): JSX.Element => {\n const leftNavConfig = useLeftNavConfig(props);\n\n return (\n <LeftNavigationContext.Provider value={leftNavConfig}>\n <LeftNavContent />\n </LeftNavigationContext.Provider>\n );\n};\n\nLeftNavigation.propTypes = leftNavigationProps;\nLeftNavigation.defaultProps = defaultProps;\n\nexport const LeftNavigationWithSchema = describe(LeftNavigation).description(\n 'Left Navigation',\n);\nLeftNavigationWithSchema.propTypes = leftNavigationProps;\n"],"names":["LeftNavigation","props","leftNavConfig","useLeftNavConfig","React","LeftNavigationContext","LeftNavContent","propTypes","leftNavigationProps","defaultProps","LeftNavigationWithSchema","describe","description"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAQaA,cAAc,GAAG,SAAjBA,cAAiB,CAACC,KAAD,EAAsC;AAClE,MAAMC,aAAa,GAAGC,yCAAgB,CAACF,KAAD,CAAtC;AAEA,sBACEG,wCAACC,oCAAD,CAAuB,QAAvB;AAAgC,IAAA,KAAK,EAAEH;AAAvC,kBACEE,wCAACE,0BAAD,OADF,CADF;AAKD;AAEDN,cAAc,CAACO,SAAf,GAA2BC,6BAA3B;AACAR,cAAc,CAACS,YAAf,GAA8BA,kCAA9B;IAEaC,wBAAwB,GAAGC,kBAAQ,CAACX,cAAD,CAAR,CAAyBY,WAAzB,CACtC,iBADsC;AAGxCF,wBAAwB,CAACH,SAAzB,GAAqCC,6BAArC;;;;;"}
1
+ {"version":3,"file":"LeftNavigation.js","sources":["../../src/LeftNavigation.tsx"],"sourcesContent":["import React from 'react';\nimport { describe } from 'react-desc';\nimport { leftNavigationProps } from './prop-types';\nimport LeftNavigationContext, { defaultProps } from './LeftNavigationContext';\nimport { useLeftNavConfig } from './configs/useLeftNavConfig';\nimport LeftNavContent from './parts/LeftNavContent';\nimport type { LeftNavProps } from './index.d';\n\nexport const LeftNavigation = (props: LeftNavProps): JSX.Element => {\n const leftNavConfig = useLeftNavConfig(props);\n\n return (\n <LeftNavigationContext.Provider value={leftNavConfig}>\n <LeftNavContent />\n </LeftNavigationContext.Provider>\n );\n};\n\nLeftNavigation.propTypes = leftNavigationProps;\nLeftNavigation.defaultProps = defaultProps;\n\nexport const LeftNavigationWithSchema = describe(LeftNavigation).description(\n 'Left Navigation',\n);\nLeftNavigationWithSchema.propTypes = leftNavigationProps;\n"],"names":["LeftNavigation","props","leftNavConfig","useLeftNavConfig","React","LeftNavigationContext","LeftNavContent","propTypes","leftNavigationProps","defaultProps","LeftNavigationWithSchema","describe","description"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAQaA,cAAc,GAAG,SAAjBA,cAAiB,CAACC,KAAD,EAAsC;AAClE,MAAMC,aAAa,GAAGC,yCAAgB,CAACF,KAAD,CAAtC;AAEA,sBACEG,wCAACC,oCAAD,CAAuB,QAAvB;AAAgC,IAAA,KAAK,EAAEH;AAAvC,kBACEE,wCAACE,0BAAD,OADF,CADF;AAKD;AAEDN,cAAc,CAACO,SAAf,GAA2BC,6BAA3B;AACAR,cAAc,CAACS,YAAf,GAA8BA,kCAA9B;IAEaC,wBAAwB,GAAGC,kBAAQ,CAACX,cAAD,CAAR,CAAyBY,WAAzB,CACtC,iBADsC;AAGxCF,wBAAwB,CAACH,SAAzB,GAAqCC,6BAArC;;;;;"}
@@ -13,12 +13,7 @@ require('@elliemae/ds-grid');
13
13
  require('styled-components');
14
14
  require('@babel/runtime/helpers/defineProperty');
15
15
  require('@babel/runtime/helpers/extends');
16
- require('@elliemae/ds-icons/ChevronSmallRight');
17
- require('@elliemae/ds-icons/Notifications');
18
- require('@elliemae/ds-icons/ExceptionsSmallFill');
19
- require('@elliemae/ds-icons/AlertsSmallFill');
20
- require('@elliemae/ds-icons/MessagesSmallFill');
21
- require('@elliemae/ds-icons/OpenWindow');
16
+ require('@elliemae/ds-icons');
22
17
  require('./useLeftNavSmoothExpand.js');
23
18
  require('../hooks/useSelectFirstBodyItem.js');
24
19
 
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;"}
@@ -11,19 +11,16 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
11
11
  var useGlobalKeyListeners = function useGlobalKeyListeners(opts) {
12
12
  var setFocusedByKey = opts.setFocusedByKey;
13
13
  React__default['default'].useEffect(function () {
14
- var isKey = function isKey() {
15
- return setFocusedByKey(true);
16
- };
17
14
 
18
15
  var isClick = function isClick() {
19
16
  return setFocusedByKey(false);
20
17
  }; // To track wheter it's keyboard focus to apply the necessary style
18
+ // window.addEventListener('keydown', isKey);
21
19
 
22
20
 
23
- window.addEventListener('keydown', isKey);
24
21
  window.addEventListener('mousedown', isClick);
25
22
  return function () {
26
- window.removeEventListener('keydown', isKey);
23
+ // window.removeEventListener('keydown', isKey);
27
24
  window.removeEventListener('mousedown', isClick);
28
25
  };
29
26
  }, [setFocusedByKey]);
@@ -1 +1 @@
1
- {"version":3,"file":"useGlobalKeyListeners.js","sources":["../../../src/configs/useGlobalKeyListeners.tsx"],"sourcesContent":["import React from 'react';\n\ninterface optsT {\n setFocusedByKey: React.Dispatch<boolean>;\n}\n\nexport const useGlobalKeyListeners = (opts: optsT) => {\n const { setFocusedByKey } = opts;\n React.useEffect(() => {\n const isKey = () => setFocusedByKey(true);\n const isClick = () => setFocusedByKey(false);\n\n // To track wheter it's keyboard focus to apply the necessary style\n window.addEventListener('keydown', isKey);\n window.addEventListener('mousedown', isClick);\n\n return () => {\n window.removeEventListener('keydown', isKey);\n window.removeEventListener('mousedown', isClick);\n };\n }, [setFocusedByKey]);\n};\n\nexport default useGlobalKeyListeners;\n"],"names":["useGlobalKeyListeners","opts","setFocusedByKey","React","useEffect","isKey","isClick","window","addEventListener","removeEventListener"],"mappings":";;;;;;;;;;IAMaA,qBAAqB,GAAG,SAAxBA,qBAAwB,CAACC,IAAD,EAAiB;AACpD,MAAQC,eAAR,GAA4BD,IAA5B,CAAQC,eAAR;AACAC,EAAAA,yBAAK,CAACC,SAAN,CAAgB,YAAM;AACpB,QAAMC,KAAK,GAAG,SAARA,KAAQ;AAAA,aAAMH,eAAe,CAAC,IAAD,CAArB;AAAA,KAAd;;AACA,QAAMI,OAAO,GAAG,SAAVA,OAAU;AAAA,aAAMJ,eAAe,CAAC,KAAD,CAArB;AAAA,KAAhB,CAFoB;;;AAKpBK,IAAAA,MAAM,CAACC,gBAAP,CAAwB,SAAxB,EAAmCH,KAAnC;AACAE,IAAAA,MAAM,CAACC,gBAAP,CAAwB,WAAxB,EAAqCF,OAArC;AAEA,WAAO,YAAM;AACXC,MAAAA,MAAM,CAACE,mBAAP,CAA2B,SAA3B,EAAsCJ,KAAtC;AACAE,MAAAA,MAAM,CAACE,mBAAP,CAA2B,WAA3B,EAAwCH,OAAxC;AACD,KAHD;AAID,GAZD,EAYG,CAACJ,eAAD,CAZH;AAaD;;;;;"}
1
+ {"version":3,"file":"useGlobalKeyListeners.js","sources":["../../../src/configs/useGlobalKeyListeners.tsx"],"sourcesContent":["import React from 'react';\n\ninterface optsT {\n setFocusedByKey: React.Dispatch<boolean>;\n}\n\nexport const useGlobalKeyListeners = (opts: optsT) => {\n const { setFocusedByKey } = opts;\n React.useEffect(() => {\n const isKey = () => setFocusedByKey(true);\n const isClick = () => setFocusedByKey(false);\n\n // To track wheter it's keyboard focus to apply the necessary style\n // window.addEventListener('keydown', isKey);\n window.addEventListener('mousedown', isClick);\n\n return () => {\n // window.removeEventListener('keydown', isKey);\n window.removeEventListener('mousedown', isClick);\n };\n }, [setFocusedByKey]);\n};\n\nexport default useGlobalKeyListeners;\n"],"names":["useGlobalKeyListeners","opts","setFocusedByKey","React","useEffect","isClick","window","addEventListener","removeEventListener"],"mappings":";;;;;;;;;;IAMaA,qBAAqB,GAAG,SAAxBA,qBAAwB,CAACC,IAAD,EAAiB;AACpD,MAAQC,eAAR,GAA4BD,IAA5B,CAAQC,eAAR;AACAC,EAAAA,yBAAK,CAACC,SAAN,CAAgB,YAAM;;AAEpB,QAAMC,OAAO,GAAG,SAAVA,OAAU;AAAA,aAAMH,eAAe,CAAC,KAAD,CAArB;AAAA,KAAhB,CAFoB;AAKpB;;;AACAI,IAAAA,MAAM,CAACC,gBAAP,CAAwB,WAAxB,EAAqCF,OAArC;AAEA,WAAO,YAAM;AACX;AACAC,MAAAA,MAAM,CAACE,mBAAP,CAA2B,WAA3B,EAAwCH,OAAxC;AACD,KAHD;AAID,GAZD,EAYG,CAACH,eAAD,CAZH;AAaD;;;;;"}
@@ -14,12 +14,7 @@ require('@elliemae/ds-grid');
14
14
  require('styled-components');
15
15
  require('@babel/runtime/helpers/defineProperty');
16
16
  require('@babel/runtime/helpers/extends');
17
- require('@elliemae/ds-icons/ChevronSmallRight');
18
- require('@elliemae/ds-icons/Notifications');
19
- require('@elliemae/ds-icons/ExceptionsSmallFill');
20
- require('@elliemae/ds-icons/AlertsSmallFill');
21
- require('@elliemae/ds-icons/MessagesSmallFill');
22
- require('@elliemae/ds-icons/OpenWindow');
17
+ require('@elliemae/ds-icons');
23
18
 
24
19
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
25
20
 
@@ -1 +1 @@
1
- {"version":3,"file":"useLeftNavConfig.js","sources":["../../../src/configs/useLeftNavConfig.tsx"],"sourcesContent":["import React from 'react';\nimport type { LeftNavProps } from '../index.d';\nimport { ContextProps } from '../LeftNavigationContext';\nimport { useGlobalKeyListeners } from './useGlobalKeyListeners';\nimport useLeftNavItems from './useLeftNavItems';\nimport { useLeftNavSmoothExpand } from './useLeftNavSmoothExpand';\nimport { useSelectFirstBodyItem } from '../hooks/useSelectFirstBodyItem';\n\nexport const useLeftNavConfig = (props: LeftNavProps): ContextProps => {\n const {\n expanded,\n openedItem,\n onSelectedChange,\n onFocusChange,\n items,\n } = props;\n\n // -----------------------------------------------------------------------------\n // ************************** ------------ **************************\n // * INTERNAL STATE *\n // ************************** ------------ **************************\n // Selection related\n const [selectedItem, setSelectedItem] = React.useState(null);\n const [selectedSubitem, setSelectedSubitem] = React.useState(null);\n // Focus related\n const [focusedItem, setFocusedItem] = React.useState(null);\n const [focusedByKey, setFocusedByKey] = React.useState(true);\n // Opened uncontrolled drilldowns\n const [openedDrilldowns, setOpenedDrilldowns] = React.useState<string[]>([]);\n\n // -----------------------------------------------------------------------------\n // ************************** ------------ **************************\n // * EXPAND ANIMATION *\n // ************************** ------------ **************************\n const [expandedForAnimation, setExpandedForAnimation] = React.useState(\n expanded,\n );\n const timeoutRef = React.useRef<ReturnType<typeof setTimeout>>(null);\n const smoothExpandOpts = React.useMemo(\n () => ({\n expandedForAnimation,\n timeoutRef,\n setExpandedForAnimation,\n }),\n [expandedForAnimation, timeoutRef, setExpandedForAnimation],\n );\n useLeftNavSmoothExpand(props, smoothExpandOpts);\n\n // -----------------------------------------------------------------------------\n // ************************** ------------ **************************\n // * KEYBOARD *\n // ************************** ------------ **************************\n const globalKeyOpts = React.useMemo(() => ({ setFocusedByKey }), [\n setFocusedByKey,\n ]);\n useGlobalKeyListeners(globalKeyOpts);\n\n // -----------------------------------------------------------------------------\n // ************************** ------------ **************************\n // * SIDE EFFECTS *\n // ************************** ------------ **************************\n React.useEffect(() => {\n onSelectedChange(selectedItem);\n }, [selectedItem, onSelectedChange]);\n\n React.useEffect(() => {\n onFocusChange(focusedItem);\n }, [focusedItem, setFocusedItem]);\n\n useSelectFirstBodyItem(items, openedItem, setSelectedItem);\n\n // -----------------------------------------------------------------------------\n // ************************** ------------ **************************\n // * ITEMS MANAGEMENT *\n // ************************** ------------ **************************\n\n const leftNavItemsProps = React.useMemo(\n () => ({\n headerItem: props.HeaderComponent,\n bodyHeaderItem: props.BodyHeaderComponent,\n items: props.items,\n openedDrilldowns,\n }),\n [props.items, openedDrilldowns],\n );\n // We need to know the current visible items since we have drilldowns\n const { visibleItems, visibleItemsRefs } = useLeftNavItems(leftNavItemsProps);\n\n // -----------------------------------------------------------------------------\n // ************************** ------------ **************************\n // * LEFTNAV CONFIG *\n // ************************** ------------ **************************\n const finalConfig = React.useMemo(\n () => ({\n leftNavProps: props,\n expandedForAnimation,\n selectedItem,\n setSelectedItem,\n selectedSubitem,\n setSelectedSubitem,\n focusedItem,\n setFocusedItem,\n focusedByKey,\n setFocusedByKey,\n openedDrilldowns,\n setOpenedDrilldowns,\n visibleItems,\n visibleItemsRefs,\n }),\n [\n props,\n props.items,\n expandedForAnimation,\n selectedItem,\n setSelectedItem,\n selectedSubitem,\n setSelectedSubitem,\n focusedItem,\n setFocusedItem,\n focusedByKey,\n setFocusedByKey,\n openedDrilldowns,\n setOpenedDrilldowns,\n visibleItems,\n visibleItemsRefs,\n ],\n );\n\n return finalConfig;\n};\n\nexport default useLeftNavConfig;\n"],"names":["useLeftNavConfig","props","expanded","openedItem","onSelectedChange","onFocusChange","items","React","useState","selectedItem","setSelectedItem","selectedSubitem","setSelectedSubitem","focusedItem","setFocusedItem","focusedByKey","setFocusedByKey","openedDrilldowns","setOpenedDrilldowns","expandedForAnimation","setExpandedForAnimation","timeoutRef","useRef","smoothExpandOpts","useMemo","useLeftNavSmoothExpand","globalKeyOpts","useGlobalKeyListeners","useEffect","useSelectFirstBodyItem","leftNavItemsProps","headerItem","HeaderComponent","bodyHeaderItem","BodyHeaderComponent","useLeftNavItems","visibleItems","visibleItemsRefs","finalConfig","leftNavProps"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;IAQaA,gBAAgB,GA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MC,WAAW,GAAG/B,yBAAK,CAACiB,OAAN,CAClB;AAAA,WAAO;AACLe,MAAAA,YAAY,EAAEtC,KADT;AAELkB,MAAAA,oBAAoB,EAApBA,oBAFK;AAGLV,MAAAA,YAAY,EAAZA,YAHK;AAILC,MAAAA,eAAe,EAAfA,eAJK;AAKLC,MAAAA,eAAe,EAAfA,eALK;AAMLC,MAAAA,kBAAkB,EAAlBA,kBANK;AAOLC,MAAAA,WAAW,EAAXA,WAPK;AAQLC,MAAAA,cAAc,EAAdA,cARK;AASLC,MAAAA,YAAY,EAAZA,YATK;AAULC,MAAAA,eAAe,EAAfA,eAVK;AAWLC,MAAAA,gBAAgB,EAAhBA,gBAXK;AAYLC,MAAAA,mBAAmB,EAAnBA,mBAZK;AAaLkB,MAAAA,YAAY,EAAZA,YAbK;AAcLC,MAAAA,gBAAgB,EAAhBA;AAdK,KAAP;AAAA,GADkB,EAiBlB,CACEpC,KADF,EAEEA,KAAK,CAACK,KAFR,EAGEa,oBAHF,EAIEV,YAJF,EAKEC,eALF,EAMEC,eANF,EAOEC,kBAPF,EAQEC,WARF,EASEC,cATF,EAUEC,YAVF,EAWEC,eAXF,EAYEC,gBAZF,EAaEC,mBAbF,EAcEkB,YAdF,EAeEC,gBAfF,CAjBkB,CAApB;AAoCA,SAAOC,WAAP;AACD;;;;;"}
1
+ {"version":3,"file":"useLeftNavConfig.js","sources":["../../../src/configs/useLeftNavConfig.tsx"],"sourcesContent":["import React from 'react';\nimport type { LeftNavProps } from '../index.d';\nimport { ContextProps } from '../LeftNavigationContext';\nimport { useGlobalKeyListeners } from './useGlobalKeyListeners';\nimport useLeftNavItems from './useLeftNavItems';\nimport { useLeftNavSmoothExpand } from './useLeftNavSmoothExpand';\nimport { useSelectFirstBodyItem } from '../hooks/useSelectFirstBodyItem';\n\nexport const useLeftNavConfig = (props: LeftNavProps): ContextProps => {\n const {\n expanded,\n openedItem,\n onSelectedChange,\n onFocusChange,\n items,\n } = props;\n\n // -----------------------------------------------------------------------------\n // ************************** ------------ **************************\n // * INTERNAL STATE *\n // ************************** ------------ **************************\n // Selection related\n const [selectedItem, setSelectedItem] = React.useState(null);\n const [selectedSubitem, setSelectedSubitem] = React.useState(null);\n // Focus related\n const [focusedItem, setFocusedItem] = React.useState(null);\n const [focusedByKey, setFocusedByKey] = React.useState(true);\n // Opened uncontrolled drilldowns\n const [openedDrilldowns, setOpenedDrilldowns] = React.useState<string[]>([]);\n\n // -----------------------------------------------------------------------------\n // ************************** ------------ **************************\n // * EXPAND ANIMATION *\n // ************************** ------------ **************************\n const [expandedForAnimation, setExpandedForAnimation] = React.useState(\n expanded,\n );\n const timeoutRef = React.useRef<ReturnType<typeof setTimeout>>(null);\n const smoothExpandOpts = React.useMemo(\n () => ({\n expandedForAnimation,\n timeoutRef,\n setExpandedForAnimation,\n }),\n [expandedForAnimation, timeoutRef, setExpandedForAnimation],\n );\n useLeftNavSmoothExpand(props, smoothExpandOpts);\n\n // -----------------------------------------------------------------------------\n // ************************** ------------ **************************\n // * KEYBOARD *\n // ************************** ------------ **************************\n const globalKeyOpts = React.useMemo(() => ({ setFocusedByKey }), [\n setFocusedByKey,\n ]);\n useGlobalKeyListeners(globalKeyOpts);\n\n // -----------------------------------------------------------------------------\n // ************************** ------------ **************************\n // * SIDE EFFECTS *\n // ************************** ------------ **************************\n React.useEffect(() => {\n onSelectedChange(selectedItem);\n }, [selectedItem, onSelectedChange]);\n\n React.useEffect(() => {\n onFocusChange(focusedItem);\n }, [focusedItem, setFocusedItem]);\n\n useSelectFirstBodyItem(items, openedItem, setSelectedItem);\n\n // -----------------------------------------------------------------------------\n // ************************** ------------ **************************\n // * ITEMS MANAGEMENT *\n // ************************** ------------ **************************\n\n const leftNavItemsProps = React.useMemo(\n () => ({\n headerItem: props.HeaderComponent,\n bodyHeaderItem: props.BodyHeaderComponent,\n items: props.items,\n openedDrilldowns,\n }),\n [props.items, openedDrilldowns],\n );\n // We need to know the current visible items since we have drilldowns\n const { visibleItems, visibleItemsRefs } = useLeftNavItems(leftNavItemsProps);\n\n // -----------------------------------------------------------------------------\n // ************************** ------------ **************************\n // * LEFTNAV CONFIG *\n // ************************** ------------ **************************\n const finalConfig = React.useMemo(\n () => ({\n leftNavProps: props,\n expandedForAnimation,\n selectedItem,\n setSelectedItem,\n selectedSubitem,\n setSelectedSubitem,\n focusedItem,\n setFocusedItem,\n focusedByKey,\n setFocusedByKey,\n openedDrilldowns,\n setOpenedDrilldowns,\n visibleItems,\n visibleItemsRefs,\n }),\n [\n props,\n props.items,\n expandedForAnimation,\n selectedItem,\n setSelectedItem,\n selectedSubitem,\n setSelectedSubitem,\n focusedItem,\n setFocusedItem,\n focusedByKey,\n setFocusedByKey,\n openedDrilldowns,\n setOpenedDrilldowns,\n visibleItems,\n visibleItemsRefs,\n ],\n );\n\n return finalConfig;\n};\n\nexport default useLeftNavConfig;\n"],"names":["useLeftNavConfig","props","expanded","openedItem","onSelectedChange","onFocusChange","items","React","useState","selectedItem","setSelectedItem","selectedSubitem","setSelectedSubitem","focusedItem","setFocusedItem","focusedByKey","setFocusedByKey","openedDrilldowns","setOpenedDrilldowns","expandedForAnimation","setExpandedForAnimation","timeoutRef","useRef","smoothExpandOpts","useMemo","useLeftNavSmoothExpand","globalKeyOpts","useGlobalKeyListeners","useEffect","useSelectFirstBodyItem","leftNavItemsProps","headerItem","HeaderComponent","bodyHeaderItem","BodyHeaderComponent","useLeftNavItems","visibleItems","visibleItemsRefs","finalConfig","leftNavProps"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;IAQaA,gBAAgB,GAAG,SAAnBA,gBAAmB,CAACC,KAAD,EAAuC;AACrE,MACEC,QADF,GAMID,KANJ,CACEC,QADF;AAAA,MAEEC,UAFF,GAMIF,KANJ,CAEEE,UAFF;AAAA,MAGEC,gBAHF,GAMIH,KANJ,CAGEG,gBAHF;AAAA,MAIEC,aAJF,GAMIJ,KANJ,CAIEI,aAJF;AAAA,MAKEC,KALF,GAMIL,KANJ,CAKEK,KALF,CADq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C,MAAAA,WAAW,EAAXA,WAPK;AAQLC,MAAAA,cAAc,EAAdA,cARK;AASLC,MAAAA,YAAY,EAAZA,YATK;AAULC,MAAAA,eAAe,EAAfA,eAVK;AAWLC,MAAAA,gBAAgB,EAAhBA,gBAXK;AAYLC,MAAAA,mBAAmB,EAAnBA,mBAZK;AAaLkB,MAAAA,YAAY,EAAZA,YAbK;AAcLC,MAAAA,gBAAgB,EAAhBA;AAdK,KAAP;AAAA,GADkB,EAiBlB,CACEpC,KADF,EAEEA,KAAK,CAACK,KAFR,EAGEa,oBAHF,EAIEV,YAJF,EAKEC,eALF,EAMEC,eANF,EAOEC,kBAPF,EAQEC,WARF,EASEC,cATF,EAUEC,YAVF,EAWEC,eAXF,EAYEC,gBAZF,EAaEC,mBAbF,EAcEkB,YAdF,EAeEC,gBAfF,CAjBkB,CAApB;AAoCA,SAAOC,WAAP;AACD;;;;;"}
@@ -9,12 +9,7 @@ require('@elliemae/ds-grid');
9
9
  require('styled-components');
10
10
  require('@babel/runtime/helpers/defineProperty');
11
11
  require('@babel/runtime/helpers/extends');
12
- require('@elliemae/ds-icons/ChevronSmallRight');
13
- require('@elliemae/ds-icons/Notifications');
14
- require('@elliemae/ds-icons/ExceptionsSmallFill');
15
- require('@elliemae/ds-icons/AlertsSmallFill');
16
- require('@elliemae/ds-icons/MessagesSmallFill');
17
- require('@elliemae/ds-icons/OpenWindow');
12
+ require('@elliemae/ds-icons');
18
13
 
19
14
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
20
15
 
@@ -1 +1 @@
1
- {"version":3,"file":"useLeftNavItems.js","sources":["../../../src/configs/useLeftNavItems.tsx"],"sourcesContent":["/* eslint-disable complexity */\nimport { createRef, MutableRefObject, RefObject, useMemo, useRef } from 'react';\nimport { ITEM_TYPES } from '../exported-related';\nimport type { GenericItemItemProps } from '../index.d';\nimport { FOOTER_DS_ID } from '../exported-related/constants';\n\nconst notFocuseableItems = [\n ITEM_TYPES.LEFT_NAV_ITEM_SEPARATOR,\n ITEM_TYPES.LEFT_NAV_ITEM_SECTION,\n];\n\n// Walks the array of items\n// Drilldowns are tree-like structures\nconst walkItems = (\n items: GenericItemItemProps[],\n openedDrilldowns: string[],\n callback: (dsId: string) => void,\n) => {\n items.forEach((item) => {\n if (typeof item.type === 'string') {\n // Out of the box item\n if (notFocuseableItems.includes(item.type)) return; // not focuseable\n\n callback(item.dsId);\n\n // If it's an opened uncontrolled drilldown\n if (\n item.type === ITEM_TYPES.LEFT_NAV_ITEM_UNCONTROLLED_DRILLDOWN &&\n openedDrilldowns.includes(item.dsId)\n )\n walkItems(item.itemOpts?.items ?? [], openedDrilldowns, callback);\n\n // If it's an opened controlled drilldown\n if (\n item.type === ITEM_TYPES.LEFT_NAV_ITEM_CONTROLLED_DRILLDOWN &&\n item.itemOpts?.isOpened\n )\n walkItems(item.itemOpts?.items ?? [], openedDrilldowns, callback);\n } else {\n // Custom item\n if (!item.itemOpts?.focuseable) return; // not focuseable specified\n callback(item.dsId);\n }\n });\n};\n\nexport const useLeftNavItems = (props: {\n headerItem: GenericItemItemProps;\n bodyHeaderItem: GenericItemItemProps;\n items: GenericItemItemProps[];\n openedDrilldowns: string[];\n}): {\n visibleItems: string[];\n visibleItemsRefs: MutableRefObject<Record<string, RefObject<HTMLElement>>>;\n} => {\n const {\n headerItem,\n bodyHeaderItem,\n items: bodyItems,\n openedDrilldowns,\n } = props;\n\n // Place the header and body header items into the array of items\n const items = useMemo(() => {\n const itemsArray: GenericItemItemProps[] = [...bodyItems];\n if (bodyHeaderItem) itemsArray.unshift(bodyHeaderItem);\n if (headerItem) itemsArray.unshift(headerItem);\n return itemsArray;\n }, [headerItem, bodyHeaderItem, bodyItems]);\n\n const visibleItemsRefs = useRef<Record<string, RefObject<HTMLElement>>>({});\n\n const visibleItems: string[] = useMemo(() => {\n const visibleItemsArray: string[] = [];\n walkItems(items, openedDrilldowns, (dsId: string) => {\n visibleItemsArray.push(dsId);\n });\n visibleItemsArray.push(FOOTER_DS_ID);\n return visibleItemsArray;\n }, [props]);\n\n visibleItems.forEach((dsId) => {\n if (!(dsId in visibleItemsRefs.current))\n visibleItemsRefs.current[dsId] = createRef();\n });\n\n return { visibleItems, visibleItemsRefs };\n};\n\nexport default useLeftNavItems;\n"],"names":["notFocuseableItems","ITEM_TYPES","LEFT_NAV_ITEM_SEPARATOR","LEFT_NAV_ITEM_SECTION","walkItems","items","openedDrilldowns","callback","forEach","item","type","includes","dsId","LEFT_NAV_ITEM_UNCONTROLLED_DRILLDOWN","itemOpts","LEFT_NAV_ITEM_CONTROLLED_DRILLDOWN","isOpened","focuseable","useLeftNavItems","props","headerItem","bodyHeaderItem","bodyItems","useMemo","itemsArray","unshift","visibleItemsRefs","useRef","visibleItems","visibleItemsArray","push","FOOTER_DS_ID","current","createRef"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAMA,IAAMA,kBAAkB,GAAG,CACzBC,oCAAU,CAACC,uBADc,EAEzBD,oCAAU,CAACE,qBAFc,CAA3B;AAMA;;AACA,IAAMC,SAAS,GAAG,SAAZA,SAAY,CAChBC,KADgB,EAEhBC,gBAFgB,EAGhBC,QAHgB,EAIb;AACHF,EAAAA,KAAK,CAACG,OAAN,CAAc,UAACC,IAAD,EAAU;AACtB,QAAI,OAAOA,IAAI,CAACC,IAAZ,KAAqB,QAAzB,EAAmC;AAAA;;AACjC;AACA,UAAIV,kBAAkB,CAACW,QAAnB,CAA4BF,IAAI,CAACC,IAAjC,CAAJ,EAA4C,OAFX;;AAIjCH,MAAAA,QAAQ,CAACE,IAAI,CAACG,IAAN,CAAR,CAJiC;;AAOjC,UACEH,IAAI,CAACC,IAAL,KAAcT,oCAAU,CAACY,oCAAzB,IACAP,gBAAgB,CAACK,QAAjB,CAA0BF,IAAI,CAACG,IAA/B,CAFF,EAIER,SAAS,2CAACK,IAAI,CAACK,QAAN,mDAAC,eAAeT,KAAhB,uEAAyB,EAAzB,EAA6BC,gBAA7B,EAA+CC,QA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AAuBlB,IAAvB;AACD,KAFQ,CAAT;AAGAiB,IAAAA,iBAAiB,CAACC,IAAlB,CAAuBC,sCAAvB;AACA,WAAOF,iBAAP;AACD,GAPqC,EAOnC,CAACV,KAAD,CAPmC,CAAtC;AASAS,EAAAA,YAAY,CAACpB,OAAb,CAAqB,UAACI,IAAD,EAAU;AAC7B,QAAI,EAAEA,IAAI,IAAIc,gBAAgB,CAACM,OAA3B,CAAJ,EACEN,gBAAgB,CAACM,OAAjB,CAAyBpB,IAAzB,iBAAiCqB,eAAS,EAA1C;AACH,GAHD;AAKA,SAAO;AAAEL,IAAAA,YAAY,EAAZA,YAAF;AAAgBF,IAAAA,gBAAgB,EAAhBA;AAAhB,GAAP;AACD;;;;;"}
1
+ {"version":3,"file":"useLeftNavItems.js","sources":["../../../src/configs/useLeftNavItems.tsx"],"sourcesContent":["/* eslint-disable complexity */\nimport { createRef, MutableRefObject, RefObject, useMemo, useRef } from 'react';\nimport { ITEM_TYPES } from '../exported-related';\nimport type { GenericItemItemProps } from '../index.d';\nimport { FOOTER_DS_ID } from '../exported-related/constants';\n\nconst notFocuseableItems = [\n ITEM_TYPES.LEFT_NAV_ITEM_SEPARATOR,\n ITEM_TYPES.LEFT_NAV_ITEM_SECTION,\n];\n\n// Walks the array of items\n// Drilldowns are tree-like structures\nconst walkItems = (\n items: GenericItemItemProps[],\n openedDrilldowns: string[],\n callback: (dsId: string) => void,\n) => {\n items.forEach((item) => {\n if (typeof item.type === 'string') {\n // Out of the box item\n if (notFocuseableItems.includes(item.type)) return; // not focuseable\n\n callback(item.dsId);\n\n // If it's an opened uncontrolled drilldown\n if (\n item.type === ITEM_TYPES.LEFT_NAV_ITEM_UNCONTROLLED_DRILLDOWN &&\n openedDrilldowns.includes(item.dsId)\n )\n walkItems(item.itemOpts?.items ?? [], openedDrilldowns, callback);\n\n // If it's an opened controlled drilldown\n if (\n item.type === ITEM_TYPES.LEFT_NAV_ITEM_CONTROLLED_DRILLDOWN &&\n item.itemOpts?.isOpened\n )\n walkItems(item.itemOpts?.items ?? [], openedDrilldowns, callback);\n } else {\n // Custom item\n if (!item.itemOpts?.focuseable) return; // not focuseable specified\n callback(item.dsId);\n }\n });\n};\n\nexport const useLeftNavItems = (props: {\n headerItem: GenericItemItemProps;\n bodyHeaderItem: GenericItemItemProps;\n items: GenericItemItemProps[];\n openedDrilldowns: string[];\n}): {\n visibleItems: string[];\n visibleItemsRefs: MutableRefObject<Record<string, RefObject<HTMLElement>>>;\n} => {\n const {\n headerItem,\n bodyHeaderItem,\n items: bodyItems,\n openedDrilldowns,\n } = props;\n\n // Place the header and body header items into the array of items\n const items = useMemo(() => {\n const itemsArray: GenericItemItemProps[] = [...bodyItems];\n if (bodyHeaderItem) itemsArray.unshift(bodyHeaderItem);\n if (headerItem) itemsArray.unshift(headerItem);\n return itemsArray;\n }, [headerItem, bodyHeaderItem, bodyItems]);\n\n const visibleItemsRefs = useRef<Record<string, RefObject<HTMLElement>>>({});\n\n const visibleItems: string[] = useMemo(() => {\n const visibleItemsArray: string[] = [];\n walkItems(items, openedDrilldowns, (dsId: string) => {\n visibleItemsArray.push(dsId);\n });\n visibleItemsArray.push(FOOTER_DS_ID);\n return visibleItemsArray;\n }, [props]);\n\n visibleItems.forEach((dsId) => {\n if (!(dsId in visibleItemsRefs.current))\n visibleItemsRefs.current[dsId] = createRef();\n });\n\n return { visibleItems, visibleItemsRefs };\n};\n\nexport default useLeftNavItems;\n"],"names":["notFocuseableItems","ITEM_TYPES","LEFT_NAV_ITEM_SEPARATOR","LEFT_NAV_ITEM_SECTION","walkItems","items","openedDrilldowns","callback","forEach","item","type","includes","dsId","LEFT_NAV_ITEM_UNCONTROLLED_DRILLDOWN","itemOpts","LEFT_NAV_ITEM_CONTROLLED_DRILLDOWN","isOpened","focuseable","useLeftNavItems","props","headerItem","bodyHeaderItem","bodyItems","useMemo","itemsArray","unshift","visibleItemsRefs","useRef","visibleItems","visibleItemsArray","push","FOOTER_DS_ID","current","createRef"],"mappings":";;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/runtime/helpers/extends');
6
6
  var React = require('react');
7
- var ChevronRight = require('@elliemae/ds-icons/ChevronSmallRight');
7
+ var dsIcons = require('@elliemae/ds-icons');
8
8
 
9
9
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
10
10
 
11
11
  var _extends__default = /*#__PURE__*/_interopDefaultLegacy(_extends);
12
12
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
13
- var ChevronRight__default = /*#__PURE__*/_interopDefaultLegacy(ChevronRight);
14
13
 
15
14
  var ChevronItem = function ChevronItem(props) {
16
- return /*#__PURE__*/React__default['default'].createElement(ChevronRight__default['default'], _extends__default['default']({
15
+ return /*#__PURE__*/React__default['default'].createElement(dsIcons.ChevronSmallRight, _extends__default['default']({
17
16
  size: "m",
18
17
  color: ['brand-primary', 800]
19
18
  }, props));
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../src/exported-related/ChevronItem/index.tsx"],"sourcesContent":["import React from 'react';\nimport ChevronRight from '@elliemae/ds-icons/ChevronSmallRight';\n\nexport const ChevronItem = (props: unknown): JSX.Element => (\n <ChevronRight size=\"m\" color={['brand-primary', 800]} {...props} />\n);\n\nexport default ChevronItem;\n"],"names":["ChevronItem","props","React","ChevronRight"],"mappings":";;;;;;;;;;;;;;IAGaA,WAAW,GAAG,SAAdA,WAAc,CAACC,KAAD;AAAA,sBACzBC,wCAACC,gCAAD;AAAc,IAAA,IAAI,EAAC,GAAnB;AAAuB,IAAA,KAAK,EAAE,CAAC,eAAD,EAAkB,GAAlB;AAA9B,KAA0DF,KAA1D,EADyB;AAAA;;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../src/exported-related/ChevronItem/index.tsx"],"sourcesContent":["import React from 'react';\nimport { ChevronSmallRight } from '@elliemae/ds-icons';\n\nexport const ChevronItem = (props: unknown): JSX.Element => (\n <ChevronSmallRight size=\"m\" color={['brand-primary', 800]} {...props} />\n);\n\nexport default ChevronItem;\n"],"names":["ChevronItem","props","React","ChevronSmallRight"],"mappings":";;;;;;;;;;;;;IAGaA,WAAW,GAAG,SAAdA,WAAc,CAACC,KAAD;AAAA,sBACzBC,wCAACC,yBAAD;AAAmB,IAAA,IAAI,EAAC,GAAxB;AAA4B,IAAA,KAAK,EAAE,CAAC,eAAD,EAAkB,GAAlB;AAAnC,KAA+DF,KAA/D,EADyB;AAAA;;;;;"}
@@ -3,20 +3,13 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var React = require('react');
6
- var InternalNotifications = require('@elliemae/ds-icons/Notifications');
7
- var ExceptionsSmallFill = require('@elliemae/ds-icons/ExceptionsSmallFill');
8
- var AlertsSmallFill = require('@elliemae/ds-icons/AlertsSmallFill');
9
- var MessagesSmallFill = require('@elliemae/ds-icons/MessagesSmallFill');
6
+ var dsIcons = require('@elliemae/ds-icons');
10
7
  var styled = require('styled-components');
11
8
  var Grid = require('@elliemae/ds-grid');
12
9
 
13
10
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
14
11
 
15
12
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
16
- var InternalNotifications__default = /*#__PURE__*/_interopDefaultLegacy(InternalNotifications);
17
- var ExceptionsSmallFill__default = /*#__PURE__*/_interopDefaultLegacy(ExceptionsSmallFill);
18
- var AlertsSmallFill__default = /*#__PURE__*/_interopDefaultLegacy(AlertsSmallFill);
19
- var MessagesSmallFill__default = /*#__PURE__*/_interopDefaultLegacy(MessagesSmallFill);
20
13
  var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
21
14
  var Grid__default = /*#__PURE__*/_interopDefaultLegacy(Grid);
22
15
 
@@ -30,7 +23,7 @@ var Notifications = function Notifications(_ref) {
30
23
  alerts = _ref$alerts === void 0 ? false : _ref$alerts,
31
24
  _ref$messages = _ref.messages,
32
25
  messages = _ref$messages === void 0 ? false : _ref$messages;
33
- return /*#__PURE__*/React__default['default'].createElement(StyledIcon, null, /*#__PURE__*/React__default['default'].createElement(InternalNotifications__default['default'], {
26
+ return /*#__PURE__*/React__default['default'].createElement(StyledIcon, null, /*#__PURE__*/React__default['default'].createElement(dsIcons.Notifications, {
34
27
  size: "m",
35
28
  color: ['brand-primary', 800]
36
29
  }), (exceptions || alerts || messages) && /*#__PURE__*/React__default['default'].createElement(Grid__default['default'], {
@@ -40,21 +33,21 @@ var Notifications = function Notifications(_ref) {
40
33
  }, /*#__PURE__*/React__default['default'].createElement(Grid__default['default'], {
41
34
  width: "6px",
42
35
  height: "6px"
43
- }, exceptions && /*#__PURE__*/React__default['default'].createElement(ExceptionsSmallFill__default['default'], {
36
+ }, exceptions && /*#__PURE__*/React__default['default'].createElement(dsIcons.ExceptionsSmallFill, {
44
37
  width: "6px",
45
38
  height: "6px",
46
39
  color: ['warning', 900]
47
40
  })), /*#__PURE__*/React__default['default'].createElement(Grid__default['default'], {
48
41
  width: "6px",
49
42
  height: "6px"
50
- }, alerts && /*#__PURE__*/React__default['default'].createElement(AlertsSmallFill__default['default'], {
43
+ }, alerts && /*#__PURE__*/React__default['default'].createElement(dsIcons.AlertsSmallFill, {
51
44
  width: "6px",
52
45
  height: "6px",
53
46
  color: ['danger', 900]
54
47
  })), /*#__PURE__*/React__default['default'].createElement(Grid__default['default'], {
55
48
  width: "6px",
56
49
  height: "6px"
57
- }, messages && /*#__PURE__*/React__default['default'].createElement(MessagesSmallFill__default['default'], {
50
+ }, messages && /*#__PURE__*/React__default['default'].createElement(dsIcons.MessagesSmallFill, {
58
51
  width: "6px",
59
52
  height: "6px",
60
53
  color: ['success', 900]
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../src/exported-related/Notifications/index.tsx"],"sourcesContent":["import React from 'react';\nimport InternalNotifications from '@elliemae/ds-icons/Notifications';\nimport ExceptionsSmallFill from '@elliemae/ds-icons/ExceptionsSmallFill';\nimport AlertsSmallFill from '@elliemae/ds-icons/AlertsSmallFill';\nimport MessagesSmallFill from '@elliemae/ds-icons/MessagesSmallFill';\nimport styled from 'styled-components';\nimport Grid from '@elliemae/ds-grid';\n\nconst StyledIcon = styled.div`\n display: flex;\n flex-direction: column;\n align-items: center;\n`;\n\ntype NotificationsProps = {\n exceptions?: boolean;\n alerts?: boolean;\n messages?: boolean;\n};\n\nexport const Notifications = ({\n exceptions = false,\n alerts = false,\n messages = false,\n}: NotificationsProps): JSX.Element => (\n <StyledIcon>\n <InternalNotifications size=\"m\" color={['brand-primary', 800]} />\n {(exceptions || alerts || messages) && (\n <Grid cols={['1fr', '1fr', '1fr']} gutter=\"xxxs\" mt=\"2px\">\n <Grid width=\"6px\" height=\"6px\">\n {exceptions && (\n <ExceptionsSmallFill\n width=\"6px\"\n height=\"6px\"\n color={['warning', 900]}\n />\n )}\n </Grid>\n <Grid width=\"6px\" height=\"6px\">\n {alerts && (\n <AlertsSmallFill width=\"6px\" height=\"6px\" color={['danger', 900]} />\n )}\n </Grid>\n <Grid width=\"6px\" height=\"6px\">\n {messages && (\n <MessagesSmallFill\n width=\"6px\"\n height=\"6px\"\n color={['success', 900]}\n />\n )}\n </Grid>\n </Grid>\n )}\n </StyledIcon>\n);\n\nexport default Notifications;\n"],"names":["StyledIcon","styled","div","Notifications","exceptions","alerts","messages","React","InternalNotifications","Grid","ExceptionsSmallFill","AlertsSmallFill","MessagesSmallFill"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAQA,IAAMA,UAAU,gBAAGC,0BAAM,CAACC,GAAV;AAAA;AAAA,8DAAhB;IAYaC,aAAa,GAAG,SAAhBA,aAAgB;AAAA,6BAC3BC,UAD2B;AAAA,MAC3BA,UAD2B,gCACd,KADc;AAAA,yBAE3BC,MAF2B;AAAA,MAE3BA,MAF2B,4BAElB,KAFkB;AAAA,2BAG3BC,QAH2B;AAAA,MAG3BA,QAH2B,8BAGhB,KAHgB;AAAA,sBAK3BC,wCAAC,UAAD,qBACEA,wCAACC,yCAAD;AAAuB,IAAA,IAAI,EAAC,GAA5B;AAAgC,IAAA,KAAK,EAAE,CAAC,eAAD,EAAkB,GAAlB;AAAvC,IADF,EAEG,CAACJ,UAAU,IAAIC,MAAd,IAAwBC,QAAzB,kBACCC,wCAACE,wBAAD;AAAM,IAAA,IAAI,EAAE,CAAC,KAAD,EAAQ,KAAR,EAAe,KAAf,CAAZ;AAAmC,IAAA,MAAM,EAAC,MAA1C;AAAiD,IAAA,EAAE,EAAC;AAApD,kBACEF,wCAACE,wBAAD;AAAM,IAAA,KAAK,EAAC,KAAZ;AAAkB,IAAA,MAAM,EAAC;AAAzB,KACGL,UAAU,iBACTG,wCAACG,uCAAD;AACE,IAAA,KAAK,EAAC,KADR;AAEE,IAAA,MAAM,EAAC,KAFT;AAGE,IAAA,KAAK,EAAE,CAAC,SAAD,EAAY,GAAZ;AAHT,IAFJ,CADF,eAUEH,wCAACE,wBAAD;AAAM,IAAA,KAAK,EAAC,KAAZ;AAAkB,IAAA,MAAM,EAAC;AAAzB,KACGJ,MAAM,iBACLE,wCAACI,mCAAD;AAAiB,IAAA,KAAK,EAAC,KAAvB;AAA6B,IAAA,MAAM,EAAC,KAApC;AAA0C,IAAA,KAAK,EAAE,CAAC,QAAD,EAAW,GAAX;AAAjD,IAFJ,CAVF,eAeEJ,wCAACE,wBAAD;AAAM,IAAA,KAAK,EAAC,KAAZ;AAAkB,IAAA,MAAM,EAAC;AAAzB,KACGH,QAAQ,iBACPC,wCAACK,qCAAD;AACE,IAAA,KAAK,EAAC,KADR;AAEE,IAAA,MAAM,EAAC,KAFT;AAGE,IAAA,KAAK,EAAE,CAAC,SAAD,EAAY,GAAZ;AAHT,IAFJ,CAfF,CAHJ,CAL2B;AAAA;;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../src/exported-related/Notifications/index.tsx"],"sourcesContent":["import React from 'react';\nimport {\n AlertsSmallFill,\n Notifications as InternalNotifications,\n ExceptionsSmallFill,\n MessagesSmallFill,\n} from '@elliemae/ds-icons';\nimport styled from 'styled-components';\nimport Grid from '@elliemae/ds-grid';\n\nconst StyledIcon = styled.div`\n display: flex;\n flex-direction: column;\n align-items: center;\n`;\n\ntype NotificationsProps = {\n exceptions?: boolean;\n alerts?: boolean;\n messages?: boolean;\n};\n\nexport const Notifications = ({\n exceptions = false,\n alerts = false,\n messages = false,\n}: NotificationsProps): JSX.Element => (\n <StyledIcon>\n <InternalNotifications size=\"m\" color={['brand-primary', 800]} />\n {(exceptions || alerts || messages) && (\n <Grid cols={['1fr', '1fr', '1fr']} gutter=\"xxxs\" mt=\"2px\">\n <Grid width=\"6px\" height=\"6px\">\n {exceptions && <ExceptionsSmallFill width=\"6px\" height=\"6px\" color={['warning', 900]} />}\n </Grid>\n <Grid width=\"6px\" height=\"6px\">\n {alerts && <AlertsSmallFill width=\"6px\" height=\"6px\" color={['danger', 900]} />}\n </Grid>\n <Grid width=\"6px\" height=\"6px\">\n {messages && <MessagesSmallFill width=\"6px\" height=\"6px\" color={['success', 900]} />}\n </Grid>\n </Grid>\n )}\n </StyledIcon>\n);\n\nexport default Notifications;\n"],"names":["StyledIcon","styled","div","Notifications","exceptions","alerts","messages","React","InternalNotifications","Grid","ExceptionsSmallFill","AlertsSmallFill","MessagesSmallFill"],"mappings":";;;;;;;;;;;;;;;AAUA,IAAMA,UAAU,gBAAGC,0BAAM,CAACC,GAAV;AAAA;AAAA,8DAAhB;IAYaC,aAAa,GAAG,SAAhBA,aAAgB;AAAA,6BAC3BC,UAD2B;AAAA,MAC3BA,UAD2B,gCACd,KADc;AAAA,yBAE3BC,MAF2B;AAAA,MAE3BA,MAF2B,4BAElB,KAFkB;AAAA,2BAG3BC,QAH2B;AAAA,MAG3BA,QAH2B,8BAGhB,KAHgB;AAAA,sBAK3BC,wCAAC,UAAD,qBACEA,wCAACC,qBAAD;AAAuB,IAAA,IAAI,EAAC,GAA5B;AAAgC,IAAA,KAAK,EAAE,CAAC,eAAD,EAAkB,GAAlB;AAAvC,IADF,EAEG,CAACJ,UAAU,IAAIC,MAAd,IAAwBC,QAAzB,kBACCC,wCAACE,wBAAD;AAAM,IAAA,IAAI,EAAE,CAAC,KAAD,EAAQ,KAAR,EAAe,KAAf,CAAZ;AAAmC,IAAA,MAAM,EAAC,MAA1C;AAAiD,IAAA,EAAE,EAAC;AAApD,kBACEF,wCAACE,wBAAD;AAAM,IAAA,KAAK,EAAC,KAAZ;AAAkB,IAAA,MAAM,EAAC;AAAzB,KACGL,UAAU,iBAAIG,wCAACG,2BAAD;AAAqB,IAAA,KAAK,EAAC,KAA3B;AAAiC,IAAA,MAAM,EAAC,KAAxC;AAA8C,IAAA,KAAK,EAAE,CAAC,SAAD,EAAY,GAAZ;AAArD,IADjB,CADF,eAIEH,wCAACE,wBAAD;AAAM,IAAA,KAAK,EAAC,KAAZ;AAAkB,IAAA,MAAM,EAAC;AAAzB,KACGJ,MAAM,iBAAIE,wCAACI,uBAAD;AAAiB,IAAA,KAAK,EAAC,KAAvB;AAA6B,IAAA,MAAM,EAAC,KAApC;AAA0C,IAAA,KAAK,EAAE,CAAC,QAAD,EAAW,GAAX;AAAjD,IADb,CAJF,eAOEJ,wCAACE,wBAAD;AAAM,IAAA,KAAK,EAAC,KAAZ;AAAkB,IAAA,MAAM,EAAC;AAAzB,KACGH,QAAQ,iBAAIC,wCAACK,yBAAD;AAAmB,IAAA,KAAK,EAAC,KAAzB;AAA+B,IAAA,MAAM,EAAC,KAAtC;AAA4C,IAAA,KAAK,EAAE,CAAC,SAAD,EAAY,GAAZ;AAAnD,IADf,CAPF,CAHJ,CAL2B;AAAA;;;;;"}
@@ -5,16 +5,15 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var _extends = require('@babel/runtime/helpers/extends');
6
6
  var React = require('react');
7
7
  var styled = require('styled-components');
8
- var InternalOpenWindow = require('@elliemae/ds-icons/OpenWindow');
8
+ var dsIcons = require('@elliemae/ds-icons');
9
9
 
10
10
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
11
11
 
12
12
  var _extends__default = /*#__PURE__*/_interopDefaultLegacy(_extends);
13
13
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
14
14
  var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
15
- var InternalOpenWindow__default = /*#__PURE__*/_interopDefaultLegacy(InternalOpenWindow);
16
15
 
17
- var StyledOpenWindow = /*#__PURE__*/styled__default['default'](InternalOpenWindow__default['default']).withConfig({
16
+ var StyledOpenWindow = /*#__PURE__*/styled__default['default'](dsIcons.OpenWindow).withConfig({
18
17
  componentId: "sc-g53ios-0"
19
18
  })(["cursor:pointer;:focus{outline:1px solid ", ";}"], function (props) {
20
19
  return props.theme.colors.brand[800];
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../src/exported-related/OpenWindowItem/index.tsx"],"sourcesContent":["import React from 'react';\nimport styled from 'styled-components';\nimport InternalOpenWindow from '@elliemae/ds-icons/OpenWindow';\n\nconst StyledOpenWindow = styled(InternalOpenWindow)`\n cursor: pointer;\n :focus {\n outline: 1px solid ${(props) => props.theme.colors.brand[800]};\n }\n`;\n\nexport const OpenWindow = (props: unknown): JSX.Element => (\n <StyledOpenWindow size=\"s\" color={['brand-primary', 800]} {...props} />\n);\n\nexport default OpenWindow;\n"],"names":["StyledOpenWindow","styled","InternalOpenWindow","props","theme","colors","brand","OpenWindow","React"],"mappings":";;;;;;;;;;;;;;;;AAIA,IAAMA,gBAAgB,gBAAGC,0BAAM,CAACC,sCAAD,CAAT;AAAA;AAAA,uDAGG,UAACC,KAAD;AAAA,SAAWA,KAAK,CAACC,KAAN,CAAYC,MAAZ,CAAmBC,KAAnB,CAAyB,GAAzB,CAAX;AAAA,CAHH,CAAtB;IAOaC,UAAU,GAAG,SAAbA,UAAa,CAACJ,KAAD;AAAA,sBACxBK,wCAAC,gBAAD;AAAkB,IAAA,IAAI,EAAC,GAAvB;AAA2B,IAAA,KAAK,EAAE,CAAC,eAAD,EAAkB,GAAlB;AAAlC,KAA8DL,KAA9D,EADwB;AAAA;;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../src/exported-related/OpenWindowItem/index.tsx"],"sourcesContent":["import React from 'react';\nimport styled from 'styled-components';\nimport { OpenWindow as OpenWindowIcon } from '@elliemae/ds-icons';\n\nconst StyledOpenWindow = styled(OpenWindowIcon)`\n cursor: pointer;\n :focus {\n outline: 1px solid ${(props) => props.theme.colors.brand[800]};\n }\n`;\n\nexport const OpenWindow = (props: unknown): JSX.Element => (\n <StyledOpenWindow size=\"s\" color={['brand-primary', 800]} {...props} />\n);\n\nexport default OpenWindow;\n"],"names":["StyledOpenWindow","styled","OpenWindowIcon","props","theme","colors","brand","OpenWindow","React"],"mappings":";;;;;;;;;;;;;;;AAIA,IAAMA,gBAAgB,gBAAGC,0BAAM,CAACC,kBAAD,CAAT;AAAA;AAAA,uDAGG,UAACC,KAAD;AAAA,SAAWA,KAAK,CAACC,KAAN,CAAYC,MAAZ,CAAmBC,KAAnB,CAAyB,GAAzB,CAAX;AAAA,CAHH,CAAtB;IAOaC,UAAU,GAAG,SAAbA,UAAa,CAACJ,KAAD;AAAA,sBACxBK,wCAAC,gBAAD;AAAkB,IAAA,IAAI,EAAC,GAAvB;AAA2B,IAAA,KAAK,EAAE,CAAC,eAAD,EAAkB,GAAlB;AAAlC,KAA8DL,KAA9D,EADwB;AAAA;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sources":["../../../src/exported-related/constants.tsx"],"sourcesContent":["export const LABEL_OVERFLOW = {\n WRAP: 'wrap',\n WRAP_ALL: 'wrapAll',\n TRUNCATE: 'truncate',\n};\n\nexport const ITEM_TYPES = {\n LEFT_NAV_ITEM_HEADER: 'ds-left-nav-item-header',\n LEFT_NAV_ITEM_LINK: 'ds-left-nav-item-link',\n LEFT_NAV_ITEM_SUBMENU: 'ds-left-nav-item-submenu',\n LEFT_NAV_ITEM_CONTROLLED_DRILLDOWN: 'ds-left-nav-item-controlled-drilldown',\n LEFT_NAV_ITEM_UNCONTROLLED_DRILLDOWN:\n 'ds-left-nav-item-uncontrolled-drilldown',\n LEFT_NAV_ITEM_SECTION: 'ds-left-nav-item-section',\n LEFT_NAV_ITEM_SEPARATOR: 'ds-left-nav-item-separator',\n LEFT_NAV_ITEM_TEXT_LABEL: 'ds-left-nav-item-text-label',\n LEFT_NAV_ITEM_WITH_DATE: 'ds-left-nav-item-with-date',\n};\n\nexport const FOOTER_DS_ID = 'ds-left-nav-__internal__-footer';\n\nexport const FOOTER_MENU_CLOSE_DS_ID =\n 'ds-left-nav-__internal__-footer-menu-close';\n\nexport const CHEVRON_BACK_DS_ID = 'ds-left-nav-__internal__-chevron-back';\n"],"names":["LABEL_OVERFLOW","WRAP","WRAP_ALL","TRUNCATE","ITEM_TYPES","LEFT_NAV_ITEM_HEADER","LEFT_NAV_ITEM_LINK","LEFT_NAV_ITEM_SUBMENU","LEFT_NAV_ITEM_CONTROLLED_DRILLDOWN","LEFT_NAV_ITEM_UNCONTROLLED_DRILLDOWN","LEFT_NAV_ITEM_SECTION","LEFT_NAV_ITEM_SEPARATOR","LEFT_NAV_ITEM_TEXT_LABEL","LEFT_NAV_ITEM_WITH_DATE","FOOTER_DS_ID","FOOTER_MENU_CLOSE_DS_ID","CHEVRON_BACK_DS_ID"],"mappings":";;;;IAAaA,cAAc,GAAG;AAC5BC,EAAAA,IAAI,EAAE,MADsB;AAE5BC,EAAAA,QAAQ,EAAE,SAFkB;AAG5BC,EAAAA,QAAQ,EAAE;AAHkB;IAMjBC,UAAU,GAAG;AACxBC,EAAAA,oBAAoB,EAAE,yBADE;AAExBC,EAAAA,kBAAkB,EAAE,uBAFI;AAGxBC,EAAAA,qBAAqB,EAAE,0BAHC;AAIxBC,EAAAA,kCAAkC,EAAE,uCAJZ;AAKxBC,EAAAA,oCAAoC,EAClC,yCANsB;AAOxBC,EAAAA,qBAAqB,EAAE,0BAPC;AAQxBC,EAAAA,uBAAuB,EAAE,4BARD;AASxBC,EAAAA,wBAAwB,EAAE,6BATF;AAUxBC,EAAAA,uBAAuB,EAAE;AAVD;IAabC,YAAY,GAAG;IAEfC,uBAAuB,GAClC;IAEWC,kBAAkB,GAAG;;;;;;;;"}
1
+ {"version":3,"file":"constants.js","sources":["../../../src/exported-related/constants.tsx"],"sourcesContent":["export const LABEL_OVERFLOW = {\n WRAP: 'wrap',\n WRAP_ALL: 'wrapAll',\n TRUNCATE: 'truncate',\n};\n\nexport const ITEM_TYPES = {\n LEFT_NAV_ITEM_HEADER: 'ds-left-nav-item-header',\n LEFT_NAV_ITEM_LINK: 'ds-left-nav-item-link',\n LEFT_NAV_ITEM_SUBMENU: 'ds-left-nav-item-submenu',\n LEFT_NAV_ITEM_CONTROLLED_DRILLDOWN: 'ds-left-nav-item-controlled-drilldown',\n LEFT_NAV_ITEM_UNCONTROLLED_DRILLDOWN: 'ds-left-nav-item-uncontrolled-drilldown',\n LEFT_NAV_ITEM_SECTION: 'ds-left-nav-item-section',\n LEFT_NAV_ITEM_SEPARATOR: 'ds-left-nav-item-separator',\n LEFT_NAV_ITEM_TEXT_LABEL: 'ds-left-nav-item-text-label',\n LEFT_NAV_ITEM_WITH_DATE: 'ds-left-nav-item-with-date',\n};\n\nexport const FOOTER_DS_ID = 'ds-left-nav-__internal__-footer';\n\nexport const FOOTER_MENU_CLOSE_DS_ID = 'ds-left-nav-__internal__-footer-menu-close';\n\nexport const CHEVRON_BACK_DS_ID = 'ds-left-nav-__internal__-chevron-back';\n"],"names":["LABEL_OVERFLOW","WRAP","WRAP_ALL","TRUNCATE","ITEM_TYPES","LEFT_NAV_ITEM_HEADER","LEFT_NAV_ITEM_LINK","LEFT_NAV_ITEM_SUBMENU","LEFT_NAV_ITEM_CONTROLLED_DRILLDOWN","LEFT_NAV_ITEM_UNCONTROLLED_DRILLDOWN","LEFT_NAV_ITEM_SECTION","LEFT_NAV_ITEM_SEPARATOR","LEFT_NAV_ITEM_TEXT_LABEL","LEFT_NAV_ITEM_WITH_DATE","FOOTER_DS_ID","FOOTER_MENU_CLOSE_DS_ID","CHEVRON_BACK_DS_ID"],"mappings":";;;;IAAaA,cAAc,GAAG;AAC5BC,EAAAA,IAAI,EAAE,MADsB;AAE5BC,EAAAA,QAAQ,EAAE,SAFkB;AAG5BC,EAAAA,QAAQ,EAAE;AAHkB;IAMjBC,UAAU,GAAG;AACxBC,EAAAA,oBAAoB,EAAE,yBADE;AAExBC,EAAAA,kBAAkB,EAAE,uBAFI;AAGxBC,EAAAA,qBAAqB,EAAE,0BAHC;AAIxBC,EAAAA,kCAAkC,EAAE,uCAJZ;AAKxBC,EAAAA,oCAAoC,EAAE,yCALd;AAMxBC,EAAAA,qBAAqB,EAAE,0BANC;AAOxBC,EAAAA,uBAAuB,EAAE,4BAPD;AAQxBC,EAAAA,wBAAwB,EAAE,6BARF;AASxBC,EAAAA,uBAAuB,EAAE;AATD;IAYbC,YAAY,GAAG;IAEfC,uBAAuB,GAAG;IAE1BC,kBAAkB,GAAG;;;;;;;;"}
@@ -17,12 +17,7 @@ require('./ItemRenderer/usePropsWithDefaults.js');
17
17
  require('@babel/runtime/helpers/defineProperty');
18
18
  require('../hooks/useKeyboardNavigation.js');
19
19
  require('@babel/runtime/helpers/extends');
20
- require('@elliemae/ds-icons/ChevronSmallRight');
21
- require('@elliemae/ds-icons/Notifications');
22
- require('@elliemae/ds-icons/ExceptionsSmallFill');
23
- require('@elliemae/ds-icons/AlertsSmallFill');
24
- require('@elliemae/ds-icons/MessagesSmallFill');
25
- require('@elliemae/ds-icons/OpenWindow');
20
+ require('@elliemae/ds-icons');
26
21
 
27
22
 
28
23
 
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/cjs/index.js CHANGED
@@ -2,7 +2,6 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- require('overlayscrollbars/css/OverlayScrollbars.css');
6
5
  var propTypes = require('./prop-types.js');
7
6
  var LeftNavigation = require('./LeftNavigation.js');
8
7
  var exportedRelated_constants = require('./exported-related/constants.js');
@@ -18,16 +17,9 @@ require('react');
18
17
  require('@elliemae/ds-grid');
19
18
  require('styled-components');
20
19
  require('@babel/runtime/helpers/extends');
21
- require('@elliemae/ds-icons/ChevronSmallRight');
22
- require('@elliemae/ds-icons/Notifications');
23
- require('@elliemae/ds-icons/ExceptionsSmallFill');
24
- require('@elliemae/ds-icons/AlertsSmallFill');
25
- require('@elliemae/ds-icons/MessagesSmallFill');
26
- require('@elliemae/ds-icons/OpenWindow');
20
+ require('@elliemae/ds-icons');
27
21
  require('./outOfTheBox/ItemControlledDrilldown/index.js');
28
22
  require('@elliemae/ds-truncated-tooltip-text');
29
- require('@elliemae/ds-icons/ArrowheadRight');
30
- require('@elliemae/ds-icons/ArrowheadDown');
31
23
  require('./outOfTheBox/ItemControlledDrilldown/styled.js');
32
24
  require('./outOfTheBox/ItemSeparator/index.js');
33
25
  require('./exported-related/ItemRenderer/styled.js');
@@ -43,7 +35,6 @@ require('./outOfTheBox/ItemTextLabel/index.js');
43
35
  require('./outOfTheBox/ItemTextLabel/styled.js');
44
36
  require('./outOfTheBox/ItemHeader/index.js');
45
37
  require('./outOfTheBox/ItemHeader/styled.js');
46
- require('@elliemae/ds-icons/ChevronSmallLeft');
47
38
  require('./outOfTheBox/ItemLink/index.js');
48
39
  require('./outOfTheBox/ItemLink/styled.js');
49
40
  require('./outOfTheBox/ItemSection/index.js');
@@ -58,19 +49,17 @@ require('./configs/useLeftNavSmoothExpand.js');
58
49
  require('./hooks/useSelectFirstBodyItem.js');
59
50
  require('./parts/LeftNavContent/index.js');
60
51
  require('./parts/LeftNavFooterItem/index.js');
61
- require('@elliemae/ds-icons/MenuExpand');
62
52
  require('./parts/LeftNavFooterItem/styled.js');
63
- require('@elliemae/ds-basic');
64
- require('@elliemae/ds-icons');
65
53
  require('./common/getFocusedByKeyboardStyle.js');
66
54
  require('./common/getItemBackgroundStyle.js');
67
55
  require('./common/getLeftBorderStyle.js');
68
56
  require('./parts/LeftNavContentWithScrollbar/index.js');
57
+ require('overlayscrollbars/css/OverlayScrollbars.css');
69
58
  require('overlayscrollbars');
70
59
  require('./parts/OutOfTheBoxMapItem.js');
71
60
  require('./parts/LeftNavContent/styled.js');
72
61
  require('./parts/LeftNavLoading/index.js');
73
- require('@elliemae/ds-basic/CircularProgressIndicator');
62
+ require('@elliemae/ds-circular-progress-indicator');
74
63
 
75
64
 
76
65
 
package/cjs/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -6,18 +6,11 @@ var _defineProperty = require('@babel/runtime/helpers/defineProperty');
6
6
  var React = require('react');
7
7
  var Grid = require('@elliemae/ds-grid');
8
8
  var dsTruncatedTooltipText = require('@elliemae/ds-truncated-tooltip-text');
9
- var ArrowheadRight = require('@elliemae/ds-icons/ArrowheadRight');
10
- var ArrowheadDown = require('@elliemae/ds-icons/ArrowheadDown');
9
+ var dsIcons = require('@elliemae/ds-icons');
11
10
  var exportedRelated_constants = require('../../exported-related/constants.js');
12
11
  var exportedRelated_ItemRenderer_index = require('../../exported-related/ItemRenderer/index.js');
13
12
  require('@babel/runtime/helpers/extends');
14
- require('@elliemae/ds-icons/ChevronSmallRight');
15
- require('@elliemae/ds-icons/Notifications');
16
- require('@elliemae/ds-icons/ExceptionsSmallFill');
17
- require('@elliemae/ds-icons/AlertsSmallFill');
18
- require('@elliemae/ds-icons/MessagesSmallFill');
19
13
  require('styled-components');
20
- require('@elliemae/ds-icons/OpenWindow');
21
14
  var outOfTheBox_ItemControlledDrilldown_styled = require('./styled.js');
22
15
  var outOfTheBox_ItemSeparator_index = require('../ItemSeparator/index.js');
23
16
  var outOfTheBox_ItemWithDate_index = require('../ItemWithDate/index.js');
@@ -32,8 +25,6 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
32
25
  var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
33
26
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
34
27
  var Grid__default = /*#__PURE__*/_interopDefaultLegacy(Grid);
35
- var ArrowheadRight__default = /*#__PURE__*/_interopDefaultLegacy(ArrowheadRight);
36
- var ArrowheadDown__default = /*#__PURE__*/_interopDefaultLegacy(ArrowheadDown);
37
28
 
38
29
  var _outOfTheBoxSubitemsC;
39
30
 
@@ -89,7 +80,7 @@ var ItemControlledDrilldown = function ItemControlledDrilldown(props) {
89
80
  leftNavLabelOverflow = props.ctx.leftNavProps.labelOverflow;
90
81
  var labelOverflow = itemLabelOverflow || leftNavLabelOverflow;
91
82
  var arrowIcon = React.useMemo(function () {
92
- var Component = isOpened ? ArrowheadDown__default['default'] : ArrowheadRight__default['default'];
83
+ var Component = isOpened ? dsIcons.ArrowheadDown : dsIcons.ArrowheadRight;
93
84
  return /*#__PURE__*/React__default['default'].createElement(Component, {
94
85
  width: "24px",
95
86
  height: "18px",
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../src/outOfTheBox/ItemControlledDrilldown/index.tsx"],"sourcesContent":["import React, { useMemo } from 'react';\nimport Grid from '@elliemae/ds-grid';\nimport { SimpleTruncatedTooltipText } from '@elliemae/ds-truncated-tooltip-text';\nimport ArrowheadRight from '@elliemae/ds-icons/ArrowheadRight';\nimport ArrowheadDown from '@elliemae/ds-icons/ArrowheadDown';\nimport { ItemRenderer, ITEM_TYPES } from '../../exported-related/index';\nimport { StyledLabel, StyledDate } from './styled';\nimport { ItemSeparator } from '../ItemSeparator';\nimport { ItemWithDate } from '../ItemWithDate';\nimport type { ComponentProps } from '../../index.d';\n\nconst outOfTheBoxSubitemsComponents: Record<\n string,\n React.ComponentType<ComponentProps>\n> = {\n [ITEM_TYPES.LEFT_NAV_ITEM_SEPARATOR]: ItemSeparator,\n [ITEM_TYPES.LEFT_NAV_ITEM_WITH_DATE]: ItemWithDate,\n};\n\nconst OutOfTheBoxMapSubitem = (props: ComponentProps): JSX.Element => {\n const {\n item,\n item: { type, Component },\n ctx,\n } = props;\n\n if (typeof type === 'string' && !!outOfTheBoxSubitemsComponents[type]) {\n const OutOfTheBoxComponent = outOfTheBoxSubitemsComponents[type];\n const currentIndent = item.itemOpts?.indent ?? 0;\n const newItem = {\n ...item,\n itemOpts: { ...item.itemOpts, indent: currentIndent + 44 },\n };\n return <OutOfTheBoxComponent item={newItem} ctx={ctx} />;\n }\n // we expect an error to be threw if Component is not defined and type is not a valid out-of-the-box...\n return <Component item={item} ctx={ctx} />;\n};\n\nexport const ItemControlledDrilldown = (props: ComponentProps): JSX.Element => {\n const {\n item,\n item: {\n itemOpts: {\n label,\n RightComponent,\n labelRightSection,\n labelOverflow: itemLabelOverflow,\n labelBold,\n labelColor,\n isOpened,\n items,\n },\n },\n ctx,\n ctx: {\n leftNavProps: { labelOverflow: leftNavLabelOverflow },\n },\n } = props;\n\n const labelOverflow = itemLabelOverflow || leftNavLabelOverflow;\n\n const arrowIcon = useMemo(() => {\n const Component = isOpened ? ArrowheadDown : ArrowheadRight;\n return (\n <Component width=\"24px\" height=\"18px\" color={['brand-primary', '800']} />\n );\n }, [isOpened]);\n\n const subitems = useMemo(() => {\n if (!isOpened || !items) return [];\n return items.map((subitem) => (\n <OutOfTheBoxMapSubitem item={subitem} ctx={ctx} key={subitem.dsId} />\n ));\n }, [items, isOpened]);\n\n return (\n <ItemRenderer\n item={{\n ...item,\n itemOpts: {\n ariaExpanded: isOpened,\n ariaRole: 'menuitem',\n ...item.itemOpts,\n openable: !isOpened,\n closable: isOpened,\n },\n CollapsedComponent: null,\n }}\n subitems={subitems}\n minHeight=\"32px\"\n paddingTop=\"8px\"\n >\n <Grid pl=\"xxs\" mt=\"-2px\">\n {arrowIcon}\n </Grid>\n <StyledLabel\n pb=\"xxxs\"\n data-testid=\"leftnav-list-item-label\"\n labelOverflow={labelOverflow}\n labelBold={labelBold}\n labelColor={labelColor}\n >\n {labelOverflow === 'truncate' ? (\n <SimpleTruncatedTooltipText value={label} placement=\"bottom-start\" />\n ) : (\n label\n )}\n </StyledLabel>\n <Grid pr=\"xxs2\" cols={['auto', 'auto']} alignItems=\"center\">\n <StyledDate ml=\"xxs\" data-testid=\"leftnav-list-item-date\">\n {labelRightSection}\n </StyledDate>\n <Grid\n pl={RightComponent ? 'xxs' : '0px'}\n data-testid=\"leftnav-right-component\"\n >\n {RightComponent && <RightComponent ctx={ctx} item={item} />}\n </Grid>\n </Grid>\n </ItemRenderer>\n );\n};\n"],"names":["outOfTheBoxSubitemsComponents","ITEM_TYPES","LEFT_NAV_ITEM_SEPARATOR","ItemSeparator","LEFT_NAV_ITEM_WITH_DATE","ItemWithDate","OutOfTheBoxMapSubitem","props","item","type","Component","ctx","OutOfTheBoxComponent","currentIndent","itemOpts","indent","newItem","React","ItemControlledDrilldown","label","RightComponent","labelRightSection","itemLabelOverflow","labelOverflow","labelBold","labelColor","isOpened","items","leftNavLabelOverflow","leftNavProps","arrowIcon","useMemo","ArrowheadDown","ArrowheadRight","subitems","map","subitem","dsId","ItemRenderer","ariaExpanded","ariaRole","openable","closable","CollapsedComponent","Grid","StyledLabel","SimpleTruncatedTooltipText","StyledDate"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAWA,IAAMA,6BAGL,2FACEC,oCAAU,CAACC,uBADb,EACuCC,6CADvC,8DAEEF,oCAAU,CAACG,uBAFb,EAEuCC,2CAFvC,yBAHD;;AAQ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AATlB,MADN;AAYE,IAAA,QAAQ,EAAET,QAZZ;AAaE,IAAA,SAAS,EAAC,MAbZ;AAcE,IAAA,UAAU,EAAC;AAdb,kBAgBEjB,wCAAC2B,wBAAD;AAAM,IAAA,EAAE,EAAC,KAAT;AAAe,IAAA,EAAE,EAAC;AAAlB,KACGd,SADH,CAhBF,eAmBEb,wCAAC4B,sDAAD;AACE,IAAA,EAAE,EAAC,MADL;AAEE,mBAAY,yBAFd;AAGE,IAAA,aAAa,EAAEtB,aAHjB;AAIE,IAAA,SAAS,EAAEC,SAJb;AAKE,IAAA,UAAU,EAAEC;AALd,KAOGF,aAAa,KAAK,UAAlB,gBACCN,wCAAC6B,iDAAD;AAA4B,IAAA,KAAK,EAAE3B,KAAnC;AAA0C,IAAA,SAAS,EAAC;AAApD,IADD,GAGCA,KAVJ,CAnBF,eAgCEF,wCAAC2B,wBAAD;AAAM,IAAA,EAAE,EAAC,MAAT;AAAgB,IAAA,IAAI,EAAE,CAAC,MAAD,EAAS,MAAT,CAAtB;AAAwC,IAAA,UAAU,EAAC;AAAnD,kBACE3B,wCAAC8B,qDAAD;AAAY,IAAA,EAAE,EAAC,KAAf;AAAqB,mBAAY;AAAjC,KACG1B,iBADH,CADF,eAIEJ,wCAAC2B,wBAAD;AACE,IAAA,EAAE,EAAExB,cAAc,GAAG,KAAH,GAAW,KAD/B;AAEE,mBAAY;AAFd,KAIGA,cAAc,iBAAIH,wCAAC,cAAD;AAAgB,IAAA,GAAG,EAAEN,GAArB;AAA0B,IAAA,IAAI,EAAEH;AAAhC,IAJrB,CAJF,CAhCF,CADF;AA8CD;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../src/outOfTheBox/ItemControlledDrilldown/index.tsx"],"sourcesContent":["import React, { useMemo } from 'react';\nimport Grid from '@elliemae/ds-grid';\nimport { SimpleTruncatedTooltipText } from '@elliemae/ds-truncated-tooltip-text';\nimport { ArrowheadDown, ArrowheadRight } from '@elliemae/ds-icons';\nimport { ItemRenderer, ITEM_TYPES } from '../../exported-related/index';\nimport { StyledLabel, StyledDate } from './styled';\nimport { ItemSeparator } from '../ItemSeparator';\nimport { ItemWithDate } from '../ItemWithDate';\nimport type { ComponentProps } from '../../index.d';\n\nconst outOfTheBoxSubitemsComponents: Record<string, React.ComponentType<ComponentProps>> = {\n [ITEM_TYPES.LEFT_NAV_ITEM_SEPARATOR]: ItemSeparator,\n [ITEM_TYPES.LEFT_NAV_ITEM_WITH_DATE]: ItemWithDate,\n};\n\nconst OutOfTheBoxMapSubitem = (props: ComponentProps): JSX.Element => {\n const {\n item,\n item: { type, Component },\n ctx,\n } = props;\n\n if (typeof type === 'string' && !!outOfTheBoxSubitemsComponents[type]) {\n const OutOfTheBoxComponent = outOfTheBoxSubitemsComponents[type];\n const currentIndent = item.itemOpts?.indent ?? 0;\n const newItem = {\n ...item,\n itemOpts: { ...item.itemOpts, indent: currentIndent + 44 },\n };\n return <OutOfTheBoxComponent item={newItem} ctx={ctx} />;\n }\n // we expect an error to be threw if Component is not defined and type is not a valid out-of-the-box...\n return <Component item={item} ctx={ctx} />;\n};\n\nexport const ItemControlledDrilldown = (props: ComponentProps): JSX.Element => {\n const {\n item,\n item: {\n itemOpts: {\n label,\n RightComponent,\n labelRightSection,\n labelOverflow: itemLabelOverflow,\n labelBold,\n labelColor,\n isOpened,\n items,\n },\n },\n ctx,\n ctx: {\n leftNavProps: { labelOverflow: leftNavLabelOverflow },\n },\n } = props;\n\n const labelOverflow = itemLabelOverflow || leftNavLabelOverflow;\n\n const arrowIcon = useMemo(() => {\n const Component = isOpened ? ArrowheadDown : ArrowheadRight;\n return <Component width=\"24px\" height=\"18px\" color={['brand-primary', '800']} />;\n }, [isOpened]);\n\n const subitems = useMemo(() => {\n if (!isOpened || !items) return [];\n return items.map((subitem) => <OutOfTheBoxMapSubitem item={subitem} ctx={ctx} key={subitem.dsId} />);\n }, [items, isOpened]);\n\n return (\n <ItemRenderer\n item={{\n ...item,\n itemOpts: {\n ariaExpanded: isOpened,\n ariaRole: 'menuitem',\n ...item.itemOpts,\n openable: !isOpened,\n closable: isOpened,\n },\n CollapsedComponent: null,\n }}\n subitems={subitems}\n minHeight=\"32px\"\n paddingTop=\"8px\"\n >\n <Grid pl=\"xxs\" mt=\"-2px\">\n {arrowIcon}\n </Grid>\n <StyledLabel\n pb=\"xxxs\"\n data-testid=\"leftnav-list-item-label\"\n labelOverflow={labelOverflow}\n labelBold={labelBold}\n labelColor={labelColor}\n >\n {labelOverflow === 'truncate' ? <SimpleTruncatedTooltipText value={label} placement=\"bottom-start\" /> : label}\n </StyledLabel>\n <Grid pr=\"xxs2\" cols={['auto', 'auto']} alignItems=\"center\">\n <StyledDate ml=\"xxs\" data-testid=\"leftnav-list-item-date\">\n {labelRightSection}\n </StyledDate>\n <Grid pl={RightComponent ? 'xxs' : '0px'} data-testid=\"leftnav-right-component\">\n {RightComponent && <RightComponent ctx={ctx} item={item} />}\n </Grid>\n </Grid>\n </ItemRenderer>\n );\n};\n"],"names":["outOfTheBoxSubitemsComponents","ITEM_TYPES","LEFT_NAV_ITEM_SEPARATOR","ItemSeparator","LEFT_NAV_ITEM_WITH_DATE","ItemWithDate","OutOfTheBoxMapSubitem","props","item","type","Component","ctx","OutOfTheBoxComponent","currentIndent","itemOpts","indent","newItem","React","ItemControlledDrilldown","label","RightComponent","labelRightSection","itemLabelOverflow","labelOverflow","labelBold","labelColor","isOpened","items","leftNavLabelOverflow","leftNavProps","arrowIcon","useMemo","ArrowheadDown","ArrowheadRight","subitems","map","subitem","dsId","ItemRenderer","ariaExpanded","ariaRole","openable","closable","CollapsedComponent","Grid","StyledLabel","SimpleTruncatedTooltipText","StyledDate"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUA,IAAMA,6BAAkF,2FACrFC,oCAAU,CAACC,uBAD0E,EAChDC,6CADgD,8DAErFF,oCAAU,CAACG,uBAF0E,EAEhDC,2CAFgD,yBAAxF;;AAKA,IAAMC,qBAAqB,GAAG,SAAxB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AAQ,EAAET,QAZZ;AAaE,IAAA,SAAS,EAAC,MAbZ;AAcE,IAAA,UAAU,EAAC;AAdb,kBAgBEjB,wCAAC2B,wBAAD;AAAM,IAAA,EAAE,EAAC,KAAT;AAAe,IAAA,EAAE,EAAC;AAAlB,KACGd,SADH,CAhBF,eAmBEb,wCAAC4B,sDAAD;AACE,IAAA,EAAE,EAAC,MADL;AAEE,mBAAY,yBAFd;AAGE,IAAA,aAAa,EAAEtB,aAHjB;AAIE,IAAA,SAAS,EAAEC,SAJb;AAKE,IAAA,UAAU,EAAEC;AALd,KAOGF,aAAa,KAAK,UAAlB,gBAA+BN,wCAAC6B,iDAAD;AAA4B,IAAA,KAAK,EAAE3B,KAAnC;AAA0C,IAAA,SAAS,EAAC;AAApD,IAA/B,GAAuGA,KAP1G,CAnBF,eA4BEF,wCAAC2B,wBAAD;AAAM,IAAA,EAAE,EAAC,MAAT;AAAgB,IAAA,IAAI,EAAE,CAAC,MAAD,EAAS,MAAT,CAAtB;AAAwC,IAAA,UAAU,EAAC;AAAnD,kBACE3B,wCAAC8B,qDAAD;AAAY,IAAA,EAAE,EAAC,KAAf;AAAqB,mBAAY;AAAjC,KACG1B,iBADH,CADF,eAIEJ,wCAAC2B,wBAAD;AAAM,IAAA,EAAE,EAAExB,cAAc,GAAG,KAAH,GAAW,KAAnC;AAA0C,mBAAY;AAAtD,KACGA,cAAc,iBAAIH,wCAAC,cAAD;AAAgB,IAAA,GAAG,EAAEN,GAArB;AAA0B,IAAA,IAAI,EAAEH;AAAhC,IADrB,CAJF,CA5BF,CADF;AAuCD;;;;"}
@@ -9,19 +9,13 @@ var dsTruncatedTooltipText = require('@elliemae/ds-truncated-tooltip-text');
9
9
  var exportedRelated_constants = require('../../exported-related/constants.js');
10
10
  var exportedRelated_ItemRenderer_index = require('../../exported-related/ItemRenderer/index.js');
11
11
  require('@babel/runtime/helpers/extends');
12
- require('@elliemae/ds-icons/ChevronSmallRight');
13
- require('@elliemae/ds-icons/Notifications');
14
- require('@elliemae/ds-icons/ExceptionsSmallFill');
15
- require('@elliemae/ds-icons/AlertsSmallFill');
16
- require('@elliemae/ds-icons/MessagesSmallFill');
12
+ require('@elliemae/ds-icons');
17
13
  require('styled-components');
18
- require('@elliemae/ds-icons/OpenWindow');
19
14
  var outOfTheBox_ItemHeader_styled = require('./styled.js');
20
15
  require('../../exported-related/ItemRenderer/styled.js');
21
16
  require('../../LeftNavigationContext.js');
22
17
  require('../../exported-related/ItemRenderer/usePropsWithDefaults.js');
23
18
  require('../../hooks/useKeyboardNavigation.js');
24
- require('@elliemae/ds-icons/ChevronSmallLeft');
25
19
 
26
20
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
27
21
 
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../src/outOfTheBox/ItemHeader/index.tsx"],"sourcesContent":["/* eslint-disable complexity */\nimport React from 'react';\nimport Grid from '@elliemae/ds-grid';\nimport { SimpleTruncatedTooltipText } from '@elliemae/ds-truncated-tooltip-text';\nimport { ItemRenderer } from '../../exported-related/index';\nimport type { ComponentProps } from '../../index.d';\nimport { StyledLabel, StyledChevronLeft } from './styled';\nimport { CHEVRON_BACK_DS_ID } from '../../exported-related/constants';\n\nexport const ItemHeader = (props: ComponentProps): JSX.Element => {\n const {\n item,\n item: {\n dsId,\n itemOpts: { label, RightComponent, BottomComponent },\n CollapsedComponent = () => null,\n },\n ctx,\n ctx: {\n leftNavProps: { openedItem, labelOverflow, onItemClick },\n expandedForAnimation,\n setSelectedItem,\n setFocusedItem,\n },\n } = props;\n\n const opened = openedItem === dsId;\n\n const ariaLabel =\n item.itemOpts.ariaLabel ?? (typeof label === 'string' ? label : 'menuitem');\n\n return (\n <ItemRenderer\n item={{\n ...item,\n itemOpts: {\n ariaLabel,\n ariaExpanded: opened,\n ...item.itemOpts,\n openable: expandedForAnimation && !opened,\n closable: expandedForAnimation && opened,\n selectable: !opened,\n },\n }}\n hasBorderBottom\n borderBottomMr={opened ? '12px' : '0px'}\n >\n <Grid\n cols={opened ? ['auto', 'auto'] : ['38px']}\n gutter=\"1px\"\n pl={opened ? 'xxs' : 0}\n justifyItems=\"center\"\n data-testid=\"leftnav-leftcomponent\"\n >\n {opened && (\n <StyledChevronLeft\n size=\"m\"\n color={['brand-primary', 800]}\n onClick={(e) => {\n onItemClick(item, e);\n setSelectedItem(dsId);\n }}\n data-testid=\"leftnav-leftcomponent-chevron\"\n tabIndex={0}\n onFocus={(e) => {\n e.stopPropagation();\n setFocusedItem(CHEVRON_BACK_DS_ID);\n }}\n role=\"button\"\n aria-label={`Close ${ariaLabel}`}\n />\n )}\n <CollapsedComponent item={item} ctx={ctx} />\n </Grid>\n <StyledLabel\n ml={opened ? 'xxs' : '1px'}\n mt=\"xxxs\"\n mb=\"15px\"\n data-testid=\"leftnav-itemlabel\"\n labelOverflow={labelOverflow}\n >\n {labelOverflow === 'truncate' ? (\n <SimpleTruncatedTooltipText value={label} placement=\"bottom-start\" />\n ) : (\n label\n )}\n </StyledLabel>\n <Grid\n pl=\"xs\"\n pr={opened ? 'xxs2' : 'xxs'}\n onFocus={(e) => {\n setFocusedItem(null);\n e.stopPropagation();\n }}\n onKeyDown={(e) => e.stopPropagation()}\n data-testid=\"leftnav-right-component\"\n >\n {RightComponent && <RightComponent ctx={ctx} item={item} />}\n </Grid>\n {BottomComponent && (\n <Grid\n style={{ gridColumn: 'span 3' }}\n pb=\"xxxs\"\n pl=\"xxs\"\n pr=\"xxs\"\n onFocus={(e) => {\n setFocusedItem(null);\n e.stopPropagation();\n }}\n onKeyDown={(e) => e.stopPropagation()}\n >\n <BottomComponent ctx={ctx} item={item} />\n </Grid>\n )}\n </ItemRenderer>\n );\n};\n"],"names":["ItemHeader","props","item","dsId","itemOpts","label","RightComponent","BottomComponent","CollapsedComponent","ctx","leftNavProps","openedItem","labelOverflow","onItemClick","expandedForAnimation","setSelectedItem","setFocusedItem","opened","ariaLabel","React","ItemRenderer","ariaExpanded","openable","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AAa,KAAK,UAAlB,gBACCO,wCAACY,iDAAD;AAA4B,IAAA,KAAK,EAAE1B,KAAnC;AAA0C,IAAA,SAAS,EAAC;AAApD,IADD,GAGCA,KAVJ,CA1CF,eAuDEc,wCAACM,wBAAD;AACE,IAAA,EAAE,EAAC,IADL;AAEE,IAAA,EAAE,EAAER,MAAM,GAAG,MAAH,GAAY,KAFxB;AAGE,IAAA,OAAO,EAAE,iBAACU,CAAD,EAAO;AACdX,MAAAA,cAAc,CAAC,IAAD,CAAd;AACAW,MAAAA,CAAC,CAACC,eAAF;AACD,KANH;AAOE,IAAA,SAAS,EAAE,mBAACD,CAAD;AAAA,aAAOA,CAAC,CAACC,eAAF,EAAP;AAAA,KAPb;AAQE,mBAAY;AARd,KAUGtB,cAAc,iBAAIa,wCAAC,cAAD;AAAgB,IAAA,GAAG,EAAEV,GAArB;AAA0B,IAAA,IAAI,EAAEP;AAAhC,IAVrB,CAvDF,EAmEGK,eAAe,iBACdY,wCAACM,wBAAD;AACE,IAAA,KAAK,EAAE;AAAEO,MAAAA,UAAU,EAAE;AAAd,KADT;AAEE,IAAA,EAAE,EAAC,MAFL;AAGE,IAAA,EAAE,EAAC,KAHL;AAIE,IAAA,EAAE,EAAC,KAJL;AAKE,IAAA,OAAO,EAAE,iBAACL,CAAD,EAAO;AACdX,MAAAA,cAAc,CAAC,IAAD,CAAd;AACAW,MAAAA,CAAC,CAACC,eAAF;AACD,KARH;AASE,IAAA,SAAS,EAAE,mBAACD,CAAD;AAAA,aAAOA,CAAC,CAACC,eAAF,EAAP;AAAA;AATb,kBAWET,wCAAC,eAAD;AAAiB,IAAA,GAAG,EAAEV,GAAtB;AAA2B,IAAA,IAAI,EAAEP;AAAjC,IAXF,CApEJ,CADF;AAqFD;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../src/outOfTheBox/ItemHeader/index.tsx"],"sourcesContent":["/* eslint-disable complexity */\nimport React from 'react';\nimport Grid from '@elliemae/ds-grid';\nimport { SimpleTruncatedTooltipText } from '@elliemae/ds-truncated-tooltip-text';\nimport { ItemRenderer } from '../../exported-related/index';\nimport type { ComponentProps } from '../../index.d';\nimport { StyledLabel, StyledChevronLeft } from './styled';\nimport { CHEVRON_BACK_DS_ID } from '../../exported-related/constants';\n\nexport const ItemHeader = (props: ComponentProps): JSX.Element => {\n const {\n item,\n item: {\n dsId,\n itemOpts: { label, RightComponent, BottomComponent },\n CollapsedComponent = () => null,\n },\n ctx,\n ctx: {\n leftNavProps: { openedItem, labelOverflow, onItemClick },\n expandedForAnimation,\n setSelectedItem,\n setFocusedItem,\n },\n } = props;\n\n const opened = openedItem === dsId;\n\n const ariaLabel =\n item.itemOpts.ariaLabel ?? (typeof label === 'string' ? label : 'menuitem');\n\n return (\n <ItemRenderer\n item={{\n ...item,\n itemOpts: {\n ariaLabel,\n ariaExpanded: opened,\n ...item.itemOpts,\n openable: expandedForAnimation && !opened,\n closable: expandedForAnimation && opened,\n selectable: !opened,\n },\n }}\n hasBorderBottom\n borderBottomMr={opened ? '12px' : '0px'}\n >\n <Grid\n cols={opened ? ['auto', 'auto'] : ['38px']}\n gutter=\"1px\"\n pl={opened ? 'xxs' : 0}\n justifyItems=\"center\"\n data-testid=\"leftnav-leftcomponent\"\n >\n {opened && (\n <StyledChevronLeft\n size=\"m\"\n color={['brand-primary', 800]}\n onClick={(e) => {\n onItemClick(item, e);\n setSelectedItem(dsId);\n }}\n data-testid=\"leftnav-leftcomponent-chevron\"\n tabIndex={0}\n onFocus={(e) => {\n e.stopPropagation();\n setFocusedItem(CHEVRON_BACK_DS_ID);\n }}\n role=\"button\"\n aria-label={`Close ${ariaLabel}`}\n />\n )}\n <CollapsedComponent item={item} ctx={ctx} />\n </Grid>\n <StyledLabel\n ml={opened ? 'xxs' : '1px'}\n mt=\"xxxs\"\n mb=\"15px\"\n data-testid=\"leftnav-itemlabel\"\n labelOverflow={labelOverflow}\n >\n {labelOverflow === 'truncate' ? (\n <SimpleTruncatedTooltipText value={label} placement=\"bottom-start\" />\n ) : (\n label\n )}\n </StyledLabel>\n <Grid\n pl=\"xs\"\n pr={opened ? 'xxs2' : 'xxs'}\n onFocus={(e) => {\n setFocusedItem(null);\n e.stopPropagation();\n }}\n onKeyDown={(e) => e.stopPropagation()}\n data-testid=\"leftnav-right-component\"\n >\n {RightComponent && <RightComponent ctx={ctx} item={item} />}\n </Grid>\n {BottomComponent && (\n <Grid\n style={{ gridColumn: 'span 3' }}\n pb=\"xxxs\"\n pl=\"xxs\"\n pr=\"xxs\"\n onFocus={(e) => {\n setFocusedItem(null);\n e.stopPropagation();\n }}\n onKeyDown={(e) => e.stopPropagation()}\n >\n <BottomComponent ctx={ctx} item={item} />\n </Grid>\n )}\n </ItemRenderer>\n );\n};\n"],"names":["ItemHeader","props","item","dsId","itemOpts","label","RightComponent","BottomComponent","CollapsedComponent","ctx","leftNavProps","openedItem","labelOverflow","onItemClick","expandedForAnimation","setSelectedItem","setFocusedItem","opened","ariaLabel","React","ItemRenderer","ariaExpanded","openable","closable","selectable","Grid","StyledChevronLeft","e","stopPropagation","CHEVRON_BACK_DS_ID","StyledLabel","SimpleTruncatedTooltipText","gridColumn"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;IASaA,UAAU,GAAG,SAAbA,UAAa,CAACC,KAAD,EAAwC;AAAA;;AAChE,MACEC,IADF,GAcID,KAdJ,CACEC,IADF;AAAA,oBAcID,KAdJ,CAEEC,IAFF;AAAA,MAGIC,IAHJ,eAGIA,IAHJ;AAAA,yCAIIC,QAJJ;AAAA,MAIgBC,KAJhB,wBAIgBA,KAJhB;AAAA,MAIuBC,cAJvB,wBAIuBA,cAJvB;AAAA,MAIuCC,eAJvC,wBAIuCA,eAJvC;AAAA,0CAKIC,kBALJ;AAAA,MAKIA,kBALJ,sCAKyB;AAAA,WAAM,IAAN;AAAA,GALzB;AAAA,MAOEC,GAPF,GAcIR,KAdJ,CAOEQ,GAPF;AAAA,mBAcIR,KAdJ,CAQEQ,GARF;AAAA,yCASIC,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