@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.
- package/cjs/LeftNavigation.js +3 -13
- package/cjs/LeftNavigation.js.map +1 -1
- package/cjs/configs/index.js +1 -6
- package/cjs/configs/index.js.map +1 -1
- package/cjs/configs/useGlobalKeyListeners.js +2 -5
- package/cjs/configs/useGlobalKeyListeners.js.map +1 -1
- package/cjs/configs/useLeftNavConfig.js +1 -6
- package/cjs/configs/useLeftNavConfig.js.map +1 -1
- package/cjs/configs/useLeftNavItems.js +1 -6
- package/cjs/configs/useLeftNavItems.js.map +1 -1
- package/cjs/exported-related/ChevronItem/index.js +2 -3
- package/cjs/exported-related/ChevronItem/index.js.map +1 -1
- package/cjs/exported-related/Notifications/index.js +5 -12
- package/cjs/exported-related/Notifications/index.js.map +1 -1
- package/cjs/exported-related/OpenWindowItem/index.js +2 -3
- package/cjs/exported-related/OpenWindowItem/index.js.map +1 -1
- package/cjs/exported-related/constants.js.map +1 -1
- package/cjs/exported-related/index.js +1 -6
- package/cjs/exported-related/index.js.map +1 -1
- package/cjs/index.js +3 -14
- package/cjs/index.js.map +1 -1
- package/cjs/outOfTheBox/ItemControlledDrilldown/index.js +2 -11
- package/cjs/outOfTheBox/ItemControlledDrilldown/index.js.map +1 -1
- package/cjs/outOfTheBox/ItemHeader/index.js +1 -7
- package/cjs/outOfTheBox/ItemHeader/index.js.map +1 -1
- package/cjs/outOfTheBox/ItemHeader/styled.js +2 -3
- package/cjs/outOfTheBox/ItemHeader/styled.js.map +1 -1
- package/cjs/outOfTheBox/ItemLink/index.js +1 -6
- package/cjs/outOfTheBox/ItemLink/index.js.map +1 -1
- package/cjs/outOfTheBox/ItemSection/index.js +1 -6
- package/cjs/outOfTheBox/ItemSection/index.js.map +1 -1
- package/cjs/outOfTheBox/ItemSeparator/index.js +1 -6
- package/cjs/outOfTheBox/ItemSeparator/index.js.map +1 -1
- package/cjs/outOfTheBox/ItemSubmenu/index.js +1 -7
- package/cjs/outOfTheBox/ItemSubmenu/index.js.map +1 -1
- package/cjs/outOfTheBox/ItemSubmenu/styled.js +2 -3
- package/cjs/outOfTheBox/ItemSubmenu/styled.js.map +1 -1
- package/cjs/outOfTheBox/ItemTextLabel/index.js +1 -6
- package/cjs/outOfTheBox/ItemTextLabel/index.js.map +1 -1
- package/cjs/outOfTheBox/ItemUncontrolledDrilldown/index.js +2 -11
- package/cjs/outOfTheBox/ItemUncontrolledDrilldown/index.js.map +1 -1
- package/cjs/outOfTheBox/ItemWithDate/index.js +1 -6
- package/cjs/outOfTheBox/ItemWithDate/index.js.map +1 -1
- package/cjs/outOfTheBox/index.js +1 -9
- package/cjs/outOfTheBox/index.js.map +1 -1
- package/cjs/parts/LeftNavContent/index.js +3 -13
- package/cjs/parts/LeftNavContent/index.js.map +1 -1
- package/cjs/parts/LeftNavContentWithScrollbar/index.js +1 -0
- package/cjs/parts/LeftNavContentWithScrollbar/index.js.map +1 -1
- package/cjs/parts/LeftNavFooterItem/index.js +2 -5
- package/cjs/parts/LeftNavFooterItem/index.js.map +1 -1
- package/cjs/parts/LeftNavFooterItem/styled.js +6 -6
- package/cjs/parts/LeftNavFooterItem/styled.js.map +1 -1
- package/cjs/parts/LeftNavLoading/index.js +1 -1
- package/cjs/parts/LeftNavLoading/index.js.map +1 -1
- package/cjs/parts/OutOfTheBoxMapItem.js +1 -9
- package/cjs/parts/OutOfTheBoxMapItem.js.map +1 -1
- package/cjs/prop-types.js +1 -9
- package/cjs/prop-types.js.map +1 -1
- package/esm/LeftNavigation.js +3 -13
- package/esm/LeftNavigation.js.map +1 -1
- package/esm/configs/index.js +1 -6
- package/esm/configs/index.js.map +1 -1
- package/esm/configs/useGlobalKeyListeners.js +2 -5
- package/esm/configs/useGlobalKeyListeners.js.map +1 -1
- package/esm/configs/useLeftNavConfig.js +1 -6
- package/esm/configs/useLeftNavConfig.js.map +1 -1
- package/esm/configs/useLeftNavItems.js +1 -6
- package/esm/configs/useLeftNavItems.js.map +1 -1
- package/esm/exported-related/ChevronItem/index.js +2 -2
- package/esm/exported-related/ChevronItem/index.js.map +1 -1
- package/esm/exported-related/Notifications/index.js +2 -5
- package/esm/exported-related/Notifications/index.js.map +1 -1
- package/esm/exported-related/OpenWindowItem/index.js +2 -2
- package/esm/exported-related/OpenWindowItem/index.js.map +1 -1
- package/esm/exported-related/constants.js.map +1 -1
- package/esm/exported-related/index.js +1 -6
- package/esm/exported-related/index.js.map +1 -1
- package/esm/index.js +3 -14
- package/esm/index.js.map +1 -1
- package/esm/outOfTheBox/ItemControlledDrilldown/index.js +1 -8
- package/esm/outOfTheBox/ItemControlledDrilldown/index.js.map +1 -1
- package/esm/outOfTheBox/ItemHeader/index.js +1 -7
- package/esm/outOfTheBox/ItemHeader/index.js.map +1 -1
- package/esm/outOfTheBox/ItemHeader/styled.js +2 -2
- package/esm/outOfTheBox/ItemHeader/styled.js.map +1 -1
- package/esm/outOfTheBox/ItemLink/index.js +1 -6
- package/esm/outOfTheBox/ItemLink/index.js.map +1 -1
- package/esm/outOfTheBox/ItemSection/index.js +1 -6
- package/esm/outOfTheBox/ItemSection/index.js.map +1 -1
- package/esm/outOfTheBox/ItemSeparator/index.js +1 -6
- package/esm/outOfTheBox/ItemSeparator/index.js.map +1 -1
- package/esm/outOfTheBox/ItemSubmenu/index.js +1 -7
- package/esm/outOfTheBox/ItemSubmenu/index.js.map +1 -1
- package/esm/outOfTheBox/ItemSubmenu/styled.js +2 -2
- package/esm/outOfTheBox/ItemSubmenu/styled.js.map +1 -1
- package/esm/outOfTheBox/ItemTextLabel/index.js +1 -6
- package/esm/outOfTheBox/ItemTextLabel/index.js.map +1 -1
- package/esm/outOfTheBox/ItemUncontrolledDrilldown/index.js +1 -8
- package/esm/outOfTheBox/ItemUncontrolledDrilldown/index.js.map +1 -1
- package/esm/outOfTheBox/ItemWithDate/index.js +1 -6
- package/esm/outOfTheBox/ItemWithDate/index.js.map +1 -1
- package/esm/outOfTheBox/index.js +1 -9
- package/esm/outOfTheBox/index.js.map +1 -1
- package/esm/parts/LeftNavContent/index.js +3 -13
- package/esm/parts/LeftNavContent/index.js.map +1 -1
- package/esm/parts/LeftNavContentWithScrollbar/index.js +1 -0
- package/esm/parts/LeftNavContentWithScrollbar/index.js.map +1 -1
- package/esm/parts/LeftNavFooterItem/index.js +1 -3
- package/esm/parts/LeftNavFooterItem/index.js.map +1 -1
- package/esm/parts/LeftNavFooterItem/styled.js +1 -1
- package/esm/parts/LeftNavFooterItem/styled.js.map +1 -1
- package/esm/parts/LeftNavLoading/index.js +1 -1
- package/esm/parts/LeftNavLoading/index.js.map +1 -1
- package/esm/parts/OutOfTheBoxMapItem.js +1 -9
- package/esm/parts/OutOfTheBoxMapItem.js.map +1 -1
- package/esm/prop-types.js +1 -9
- package/esm/prop-types.js.map +1 -1
- package/package.json +6 -6
package/esm/outOfTheBox/index.js
CHANGED
|
@@ -4,12 +4,7 @@ import 'react';
|
|
|
4
4
|
import '@elliemae/ds-grid';
|
|
5
5
|
import 'styled-components';
|
|
6
6
|
import '@babel/runtime/helpers/esm/extends';
|
|
7
|
-
import '@elliemae/ds-icons
|
|
8
|
-
import '@elliemae/ds-icons/Notifications';
|
|
9
|
-
import '@elliemae/ds-icons/ExceptionsSmallFill';
|
|
10
|
-
import '@elliemae/ds-icons/AlertsSmallFill';
|
|
11
|
-
import '@elliemae/ds-icons/MessagesSmallFill';
|
|
12
|
-
import '@elliemae/ds-icons/OpenWindow';
|
|
7
|
+
import '@elliemae/ds-icons';
|
|
13
8
|
import { ItemControlledDrilldown } from './ItemControlledDrilldown/index.js';
|
|
14
9
|
export { ItemControlledDrilldown } from './ItemControlledDrilldown/index.js';
|
|
15
10
|
import { ItemUncontrolledDrilldown } from './ItemUncontrolledDrilldown/index.js';
|
|
@@ -29,8 +24,6 @@ export { ItemTextLabel } from './ItemTextLabel/index.js';
|
|
|
29
24
|
import { ItemWithDate } from './ItemWithDate/index.js';
|
|
30
25
|
export { ItemWithDate } from './ItemWithDate/index.js';
|
|
31
26
|
import '@elliemae/ds-truncated-tooltip-text';
|
|
32
|
-
import '@elliemae/ds-icons/ArrowheadRight';
|
|
33
|
-
import '@elliemae/ds-icons/ArrowheadDown';
|
|
34
27
|
import '../exported-related/ItemRenderer/index.js';
|
|
35
28
|
import '../exported-related/ItemRenderer/styled.js';
|
|
36
29
|
import '../LeftNavigationContext.js';
|
|
@@ -40,7 +33,6 @@ import './ItemControlledDrilldown/styled.js';
|
|
|
40
33
|
import '@babel/runtime/helpers/esm/toConsumableArray';
|
|
41
34
|
import './ItemUncontrolledDrilldown/styled.js';
|
|
42
35
|
import './ItemHeader/styled.js';
|
|
43
|
-
import '@elliemae/ds-icons/ChevronSmallLeft';
|
|
44
36
|
import './ItemLink/styled.js';
|
|
45
37
|
import './ItemSection/styled.js';
|
|
46
38
|
import './ItemSubmenu/styled.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/outOfTheBox/index.tsx"],"sourcesContent":["import React from 'react';\nimport { ComponentProps } from '../index.d';\nimport { ITEM_TYPES } from '../exported-related';\nimport { ItemControlledDrilldown } from './ItemControlledDrilldown';\nimport { ItemUncontrolledDrilldown } from './ItemUncontrolledDrilldown';\nimport { ItemHeader } from './ItemHeader';\nimport { ItemLink } from './ItemLink';\nimport { ItemSection } from './ItemSection';\nimport { ItemSeparator } from './ItemSeparator';\nimport { ItemSubmenu } from './ItemSubmenu';\nimport { ItemTextLabel } from './ItemTextLabel';\nimport { ItemWithDate } from './ItemWithDate';\n\nexport * from './ItemControlledDrilldown';\nexport * from './ItemUncontrolledDrilldown';\nexport * from './ItemHeader';\nexport * from './ItemLink';\nexport * from './ItemSection';\nexport * from './ItemSeparator';\nexport * from './ItemSubmenu';\nexport * from './ItemTextLabel';\nexport * from './ItemWithDate';\n\nexport const outOfTheBoxTypes = Object.values(ITEM_TYPES);\nconst {\n LEFT_NAV_ITEM_CONTROLLED_DRILLDOWN,\n LEFT_NAV_ITEM_UNCONTROLLED_DRILLDOWN,\n LEFT_NAV_ITEM_HEADER,\n LEFT_NAV_ITEM_LINK,\n LEFT_NAV_ITEM_SECTION,\n LEFT_NAV_ITEM_SEPARATOR,\n LEFT_NAV_ITEM_SUBMENU,\n LEFT_NAV_ITEM_TEXT_LABEL,\n LEFT_NAV_ITEM_WITH_DATE,\n} = ITEM_TYPES;\n\nexport const outOfTheBoxComponents: Record<\n string,\n React.ComponentType<ComponentProps>\n> = {\n [LEFT_NAV_ITEM_CONTROLLED_DRILLDOWN]: ItemControlledDrilldown,\n [LEFT_NAV_ITEM_UNCONTROLLED_DRILLDOWN]: ItemUncontrolledDrilldown,\n [LEFT_NAV_ITEM_HEADER]: ItemHeader,\n [LEFT_NAV_ITEM_LINK]: ItemLink,\n [LEFT_NAV_ITEM_SECTION]: ItemSection,\n [LEFT_NAV_ITEM_SEPARATOR]: ItemSeparator,\n [LEFT_NAV_ITEM_SUBMENU]: ItemSubmenu,\n [LEFT_NAV_ITEM_TEXT_LABEL]: ItemTextLabel,\n [LEFT_NAV_ITEM_WITH_DATE]: ItemWithDate,\n};\n"],"names":["outOfTheBoxTypes","Object","values","ITEM_TYPES","LEFT_NAV_ITEM_CONTROLLED_DRILLDOWN","LEFT_NAV_ITEM_UNCONTROLLED_DRILLDOWN","LEFT_NAV_ITEM_HEADER","LEFT_NAV_ITEM_LINK","LEFT_NAV_ITEM_SECTION","LEFT_NAV_ITEM_SEPARATOR","LEFT_NAV_ITEM_SUBMENU","LEFT_NAV_ITEM_TEXT_LABEL","LEFT_NAV_ITEM_WITH_DATE","outOfTheBoxComponents","ItemControlledDrilldown","ItemUncontrolledDrilldown","ItemHeader","ItemLink","ItemSection","ItemSeparator","ItemSubmenu","ItemTextLabel","ItemWithDate"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/outOfTheBox/index.tsx"],"sourcesContent":["import React from 'react';\nimport { ComponentProps } from '../index.d';\nimport { ITEM_TYPES } from '../exported-related';\nimport { ItemControlledDrilldown } from './ItemControlledDrilldown';\nimport { ItemUncontrolledDrilldown } from './ItemUncontrolledDrilldown';\nimport { ItemHeader } from './ItemHeader';\nimport { ItemLink } from './ItemLink';\nimport { ItemSection } from './ItemSection';\nimport { ItemSeparator } from './ItemSeparator';\nimport { ItemSubmenu } from './ItemSubmenu';\nimport { ItemTextLabel } from './ItemTextLabel';\nimport { ItemWithDate } from './ItemWithDate';\n\nexport * from './ItemControlledDrilldown';\nexport * from './ItemUncontrolledDrilldown';\nexport * from './ItemHeader';\nexport * from './ItemLink';\nexport * from './ItemSection';\nexport * from './ItemSeparator';\nexport * from './ItemSubmenu';\nexport * from './ItemTextLabel';\nexport * from './ItemWithDate';\n\nexport const outOfTheBoxTypes = Object.values(ITEM_TYPES);\nconst {\n LEFT_NAV_ITEM_CONTROLLED_DRILLDOWN,\n LEFT_NAV_ITEM_UNCONTROLLED_DRILLDOWN,\n LEFT_NAV_ITEM_HEADER,\n LEFT_NAV_ITEM_LINK,\n LEFT_NAV_ITEM_SECTION,\n LEFT_NAV_ITEM_SEPARATOR,\n LEFT_NAV_ITEM_SUBMENU,\n LEFT_NAV_ITEM_TEXT_LABEL,\n LEFT_NAV_ITEM_WITH_DATE,\n} = ITEM_TYPES;\n\nexport const outOfTheBoxComponents: Record<\n string,\n React.ComponentType<ComponentProps>\n> = {\n [LEFT_NAV_ITEM_CONTROLLED_DRILLDOWN]: ItemControlledDrilldown,\n [LEFT_NAV_ITEM_UNCONTROLLED_DRILLDOWN]: ItemUncontrolledDrilldown,\n [LEFT_NAV_ITEM_HEADER]: ItemHeader,\n [LEFT_NAV_ITEM_LINK]: ItemLink,\n [LEFT_NAV_ITEM_SECTION]: ItemSection,\n [LEFT_NAV_ITEM_SEPARATOR]: ItemSeparator,\n [LEFT_NAV_ITEM_SUBMENU]: ItemSubmenu,\n [LEFT_NAV_ITEM_TEXT_LABEL]: ItemTextLabel,\n [LEFT_NAV_ITEM_WITH_DATE]: ItemWithDate,\n};\n"],"names":["outOfTheBoxTypes","Object","values","ITEM_TYPES","LEFT_NAV_ITEM_CONTROLLED_DRILLDOWN","LEFT_NAV_ITEM_UNCONTROLLED_DRILLDOWN","LEFT_NAV_ITEM_HEADER","LEFT_NAV_ITEM_LINK","LEFT_NAV_ITEM_SECTION","LEFT_NAV_ITEM_SEPARATOR","LEFT_NAV_ITEM_SUBMENU","LEFT_NAV_ITEM_TEXT_LABEL","LEFT_NAV_ITEM_WITH_DATE","outOfTheBoxComponents","ItemControlledDrilldown","ItemUncontrolledDrilldown","ItemHeader","ItemLink","ItemSection","ItemSeparator","ItemSubmenu","ItemTextLabel","ItemWithDate"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAuBaA,gBAAgB,GAAGC,MAAM,CAACC,MAAP,CAAcC,UAAd;AAChC,IACEC,kCADF,GAUID,UAVJ,CACEC,kCADF;AAAA,IAEEC,oCAFF,GAUIF,UAVJ,CAEEE,oCAFF;AAAA,IAGEC,oBAHF,GAUIH,UAVJ,CAGEG,oBAHF;AAAA,IAIEC,kBAJF,GAUIJ,UAVJ,CAIEI,kBAJF;AAAA,IAKEC,qBALF,GAUIL,UAVJ,CAKEK,qBALF;AAAA,IAMEC,uBANF,GAUIN,UAVJ,CAMEM,uBANF;AAAA,IAOEC,qBAPF,GAUIP,UAVJ,CAOEO,qBAPF;AAAA,IAQEC,wBARF,GAUIR,UAVJ,CAQEQ,wBARF;AAAA,IASEC,uBATF,GAUIT,UAVJ,CASES,uBATF;IAYaC,qBAGZ,uEACET,kCADF,EACuCU,uBADvC,0CAEET,oCAFF,EAEyCU,yBAFzC,0CAGET,oBAHF,EAGyBU,UAHzB,0CAIET,kBAJF,EAIuBU,QAJvB,0CAKET,qBALF,EAK0BU,WAL1B,0CAMET,uBANF,EAM4BU,aAN5B,0CAOET,qBAPF,EAO0BU,WAP1B,0CAQET,wBARF,EAQ6BU,aAR7B,0CASET,uBATF,EAS4BU,YAT5B;;;;"}
|
|
@@ -5,14 +5,12 @@ import { LeftNavContentWithScrollbar } from '../LeftNavContentWithScrollbar/inde
|
|
|
5
5
|
import { OutOfTheBoxMapItem } from '../OutOfTheBoxMapItem.js';
|
|
6
6
|
import { StyledLeftNavExpandAnimationWrapper, StyledLeftNavAreasContainer, StyledLeftNavFooterArea, StyledLeftNavHeaderArea, StyledLeftNavBodyAreasContainer, StyledLeftNavBodyHeaderArea, StyledLeftNavBodyItemsArea } from './styled.js';
|
|
7
7
|
import { LeftNavLoading } from '../LeftNavLoading/index.js';
|
|
8
|
-
import '@elliemae/ds-icons
|
|
8
|
+
import '@elliemae/ds-icons';
|
|
9
9
|
import 'react-desc';
|
|
10
10
|
import '@elliemae/ds-grid';
|
|
11
11
|
import '@elliemae/ds-truncated-tooltip-text';
|
|
12
12
|
import '../LeftNavFooterItem/styled.js';
|
|
13
13
|
import 'styled-components';
|
|
14
|
-
import '@elliemae/ds-basic';
|
|
15
|
-
import '@elliemae/ds-icons';
|
|
16
14
|
import '../../common/getFocusedByKeyboardStyle.js';
|
|
17
15
|
import '../../common/getItemBackgroundStyle.js';
|
|
18
16
|
import '../../common/getLeftBorderStyle.js';
|
|
@@ -20,18 +18,11 @@ import '../../hooks/useKeyboardNavigation.js';
|
|
|
20
18
|
import '../../exported-related/constants.js';
|
|
21
19
|
import '@babel/runtime/helpers/esm/defineProperty';
|
|
22
20
|
import '@babel/runtime/helpers/esm/slicedToArray';
|
|
21
|
+
import 'overlayscrollbars/css/OverlayScrollbars.css';
|
|
23
22
|
import 'overlayscrollbars';
|
|
24
23
|
import '../../outOfTheBox/index.js';
|
|
25
24
|
import '@babel/runtime/helpers/esm/extends';
|
|
26
|
-
import '@elliemae/ds-icons/ChevronSmallRight';
|
|
27
|
-
import '@elliemae/ds-icons/Notifications';
|
|
28
|
-
import '@elliemae/ds-icons/ExceptionsSmallFill';
|
|
29
|
-
import '@elliemae/ds-icons/AlertsSmallFill';
|
|
30
|
-
import '@elliemae/ds-icons/MessagesSmallFill';
|
|
31
|
-
import '@elliemae/ds-icons/OpenWindow';
|
|
32
25
|
import '../../outOfTheBox/ItemControlledDrilldown/index.js';
|
|
33
|
-
import '@elliemae/ds-icons/ArrowheadRight';
|
|
34
|
-
import '@elliemae/ds-icons/ArrowheadDown';
|
|
35
26
|
import '../../exported-related/ItemRenderer/index.js';
|
|
36
27
|
import '../../exported-related/ItemRenderer/styled.js';
|
|
37
28
|
import '../../exported-related/ItemRenderer/usePropsWithDefaults.js';
|
|
@@ -46,14 +37,13 @@ import '../../outOfTheBox/ItemTextLabel/index.js';
|
|
|
46
37
|
import '../../outOfTheBox/ItemTextLabel/styled.js';
|
|
47
38
|
import '../../outOfTheBox/ItemHeader/index.js';
|
|
48
39
|
import '../../outOfTheBox/ItemHeader/styled.js';
|
|
49
|
-
import '@elliemae/ds-icons/ChevronSmallLeft';
|
|
50
40
|
import '../../outOfTheBox/ItemLink/index.js';
|
|
51
41
|
import '../../outOfTheBox/ItemLink/styled.js';
|
|
52
42
|
import '../../outOfTheBox/ItemSection/index.js';
|
|
53
43
|
import '../../outOfTheBox/ItemSection/styled.js';
|
|
54
44
|
import '../../outOfTheBox/ItemSubmenu/index.js';
|
|
55
45
|
import '../../outOfTheBox/ItemSubmenu/styled.js';
|
|
56
|
-
import '@elliemae/ds-
|
|
46
|
+
import '@elliemae/ds-circular-progress-indicator';
|
|
57
47
|
|
|
58
48
|
var 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.';
|
|
59
49
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/parts/LeftNavContent/index.tsx"],"sourcesContent":["import React from 'react';\nimport { LeftNavContext } from '../../LeftNavigationContext';\nimport { LeftNavFooterItem } from '../LeftNavFooterItem';\nimport { LeftNavContentWithScrollbar } from '../LeftNavContentWithScrollbar';\nimport { OutOfTheBoxMapItem } from '../OutOfTheBoxMapItem';\nimport {\n StyledLeftNavExpandAnimationWrapper,\n StyledLeftNavAreasContainer,\n StyledLeftNavHeaderArea,\n StyledLeftNavBodyAreasContainer,\n StyledLeftNavBodyHeaderArea,\n StyledLeftNavBodyItemsArea,\n StyledLeftNavFooterArea,\n} from './styled';\nimport { LeftNavLoading } from '../LeftNavLoading';\n\nconst leftNavScreenReaderInstructions =\n 'Left Navigation. You can navigate through the items using the Up/Down arrows. ' +\n 'To expand or select an item, use the Enter/Return or Space keys. ' +\n 'Expandable items can also be opened/closed with the Right/Left arrows. ' +\n 'The Home and End keys will take you to the first and last item respectively.';\n\nconst LeftNavInnerContent = () => {\n const {\n leftNavProps: { HeaderComponent, BodyHeaderComponent, openedItem, items },\n selectedItem,\n } = React.useContext(LeftNavContext);\n return (\n <>\n <StyledLeftNavHeaderArea\n data-testid=\"leftnav-header-area\"\n selected={HeaderComponent && [selectedItem, openedItem].includes(HeaderComponent.dsId)}\n >\n {HeaderComponent ? <OutOfTheBoxMapItem item={HeaderComponent} /> : null}\n </StyledLeftNavHeaderArea>\n <StyledLeftNavBodyAreasContainer>\n <StyledLeftNavBodyHeaderArea\n data-testid=\"leftnav-body-header-area\"\n selected={BodyHeaderComponent && [selectedItem, openedItem].includes(BodyHeaderComponent.dsId)}\n >\n {BodyHeaderComponent ? <OutOfTheBoxMapItem item={BodyHeaderComponent} /> : null}\n </StyledLeftNavBodyHeaderArea>\n <StyledLeftNavBodyItemsArea selected={openedItem !== null} data-testid=\"leftnav-body-items-area\" tabIndex={-1}>\n <LeftNavContentWithScrollbar>\n {items.map((item) => (\n <OutOfTheBoxMapItem item={item} key={item.dsId} />\n ))}\n </LeftNavContentWithScrollbar>\n </StyledLeftNavBodyItemsArea>\n </StyledLeftNavBodyAreasContainer>\n </>\n );\n};\n\nconst LeftNavContent: React.ComponentType = () => {\n const {\n expandedForAnimation,\n leftNavProps: { expanded, expandedWidth, footerLabel, onFooterExpand, onFooterClose, loading },\n } = React.useContext(LeftNavContext);\n\n return (\n <StyledLeftNavExpandAnimationWrapper\n expandedWidth={expandedWidth}\n expanded={expanded}\n data-testid=\"leftnav-component\"\n aria-label={leftNavScreenReaderInstructions}\n >\n <StyledLeftNavAreasContainer expandedWidth={expandedWidth} expanded={expandedForAnimation}>\n {loading && <LeftNavLoading expanded={expandedForAnimation} />}\n {!loading && <LeftNavInnerContent />}\n <StyledLeftNavFooterArea>\n <LeftNavFooterItem footerLabel={footerLabel} onFooterExpand={onFooterExpand} onFooterClose={onFooterClose} />\n </StyledLeftNavFooterArea>\n </StyledLeftNavAreasContainer>\n </StyledLeftNavExpandAnimationWrapper>\n );\n};\n\nexport default LeftNavContent;\n"],"names":["leftNavScreenReaderInstructions","LeftNavInnerContent","React","useContext","LeftNavContext","leftNavProps","HeaderComponent","BodyHeaderComponent","openedItem","items","selectedItem","includes","dsId","map","item","LeftNavContent","expandedForAnimation","expanded","expandedWidth","footerLabel","onFooterExpand","onFooterClose","loading"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/parts/LeftNavContent/index.tsx"],"sourcesContent":["import React from 'react';\nimport { LeftNavContext } from '../../LeftNavigationContext';\nimport { LeftNavFooterItem } from '../LeftNavFooterItem';\nimport { LeftNavContentWithScrollbar } from '../LeftNavContentWithScrollbar';\nimport { OutOfTheBoxMapItem } from '../OutOfTheBoxMapItem';\nimport {\n StyledLeftNavExpandAnimationWrapper,\n StyledLeftNavAreasContainer,\n StyledLeftNavHeaderArea,\n StyledLeftNavBodyAreasContainer,\n StyledLeftNavBodyHeaderArea,\n StyledLeftNavBodyItemsArea,\n StyledLeftNavFooterArea,\n} from './styled';\nimport { LeftNavLoading } from '../LeftNavLoading';\n\nconst leftNavScreenReaderInstructions =\n 'Left Navigation. You can navigate through the items using the Up/Down arrows. ' +\n 'To expand or select an item, use the Enter/Return or Space keys. ' +\n 'Expandable items can also be opened/closed with the Right/Left arrows. ' +\n 'The Home and End keys will take you to the first and last item respectively.';\n\nconst LeftNavInnerContent = () => {\n const {\n leftNavProps: { HeaderComponent, BodyHeaderComponent, openedItem, items },\n selectedItem,\n } = React.useContext(LeftNavContext);\n return (\n <>\n <StyledLeftNavHeaderArea\n data-testid=\"leftnav-header-area\"\n selected={HeaderComponent && [selectedItem, openedItem].includes(HeaderComponent.dsId)}\n >\n {HeaderComponent ? <OutOfTheBoxMapItem item={HeaderComponent} /> : null}\n </StyledLeftNavHeaderArea>\n <StyledLeftNavBodyAreasContainer>\n <StyledLeftNavBodyHeaderArea\n data-testid=\"leftnav-body-header-area\"\n selected={BodyHeaderComponent && [selectedItem, openedItem].includes(BodyHeaderComponent.dsId)}\n >\n {BodyHeaderComponent ? <OutOfTheBoxMapItem item={BodyHeaderComponent} /> : null}\n </StyledLeftNavBodyHeaderArea>\n <StyledLeftNavBodyItemsArea selected={openedItem !== null} data-testid=\"leftnav-body-items-area\" tabIndex={-1}>\n <LeftNavContentWithScrollbar>\n {items.map((item) => (\n <OutOfTheBoxMapItem item={item} key={item.dsId} />\n ))}\n </LeftNavContentWithScrollbar>\n </StyledLeftNavBodyItemsArea>\n </StyledLeftNavBodyAreasContainer>\n </>\n );\n};\n\nconst LeftNavContent: React.ComponentType = () => {\n const {\n expandedForAnimation,\n leftNavProps: { expanded, expandedWidth, footerLabel, onFooterExpand, onFooterClose, loading },\n } = React.useContext(LeftNavContext);\n\n return (\n <StyledLeftNavExpandAnimationWrapper\n expandedWidth={expandedWidth}\n expanded={expanded}\n data-testid=\"leftnav-component\"\n aria-label={leftNavScreenReaderInstructions}\n >\n <StyledLeftNavAreasContainer expandedWidth={expandedWidth} expanded={expandedForAnimation}>\n {loading && <LeftNavLoading expanded={expandedForAnimation} />}\n {!loading && <LeftNavInnerContent />}\n <StyledLeftNavFooterArea>\n <LeftNavFooterItem footerLabel={footerLabel} onFooterExpand={onFooterExpand} onFooterClose={onFooterClose} />\n </StyledLeftNavFooterArea>\n </StyledLeftNavAreasContainer>\n </StyledLeftNavExpandAnimationWrapper>\n );\n};\n\nexport default LeftNavContent;\n"],"names":["leftNavScreenReaderInstructions","LeftNavInnerContent","React","useContext","LeftNavContext","leftNavProps","HeaderComponent","BodyHeaderComponent","openedItem","items","selectedItem","includes","dsId","map","item","LeftNavContent","expandedForAnimation","expanded","expandedWidth","footerLabel","onFooterExpand","onFooterClose","loading"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgBA,IAAMA,+BAA+B,GACnC,mFACA,mEADA,GAEA,yEAFA,GAGA,8EAJF;;AAMA,IAAMC,mBAAmB,GAAG,SAAtBA,mBAAsB,GAAM;AAChC,0BAGIC,KAAK,CAACC,UAAN,CAAiBC,cAAjB,CAHJ;AAAA,gDACEC,YADF;AAAA,MACkBC,eADlB,yBACkBA,eADlB;AAAA,MACmCC,mBADnC,yBACmCA,mBADnC;AAAA,MACwDC,UADxD,yBACwDA,UADxD;AAAA,MACoEC,KADpE,yBACoEA,KADpE;AAAA,MAEEC,YAFF,qBAEEA,YAFF;;AAIA,sBACE,uDACE,oBAAC,uBAAD;AACE,mBAAY,qBADd;AAEE,IAAA,QAAQ,EAAEJ,eAAe,IAAI,CAACI,YAAD,EAAeF,UAAf,EAA2BG,QAA3B,CAAoCL,eAAe,CAACM,IAApD;AAF/B,KAIGN,eAAe,gBAAG,oBAAC,kBAAD;AAAoB,IAAA,IAAI,EAAEA;AAA1B,IAAH,GAAmD,IAJrE,CADF,eAOE,oBAAC,+BAAD,qBACE,oBAAC,2BAAD;AACE,mBAAY,0BADd;AAEE,IAAA,QAAQ,EAAEC,mBAAmB,IAAI,CAACG,YAAD,EAAeF,UAAf,EAA2BG,QAA3B,CAAoCJ,mBAAmB,CAACK,IAAxD;AAFnC,KAIGL,mBAAmB,gBAAG,oBAAC,kBAAD;AAAoB,IAAA,IAAI,EAAEA;AAA1B,IAAH,GAAuD,IAJ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,CAHF,CANF,CADF;AAgBD;;;;"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
2
2
|
import _slicedToArray from '@babel/runtime/helpers/esm/slicedToArray';
|
|
3
3
|
import React, { useState, useRef, useEffect } from 'react';
|
|
4
|
+
import 'overlayscrollbars/css/OverlayScrollbars.css';
|
|
4
5
|
import OverlayScrollbars from 'overlayscrollbars';
|
|
5
6
|
import styled from 'styled-components';
|
|
6
7
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/parts/LeftNavContentWithScrollbar/index.tsx"],"sourcesContent":["/* eslint-disable react/prop-types */\nimport React, { useEffect, useRef, useState } from 'react';\nimport OverlayScrollbars, { Options } from 'overlayscrollbars';\nimport styled from 'styled-components';\n\nexport interface OverlayScrollbarsComponentProps extends React.HTMLAttributes<HTMLDivElement> {\n children?: React.ReactNode;\n}\n\nconst StyledHandle = styled.div`\n width: 6px;\n border: 1px solid rgba(0, 0, 0, 0);\n background-color: rgba(105, 116, 137, 0.5) !important;\n border-radius: 7px;\n\n :hover {\n background-color: rgba(105, 116, 137, 0.7) !important;\n }\n\n :active {\n background-color: rgba(105, 116, 137, 0.7) !important;\n }\n`;\n\nconst options: Options = {\n className: 'os-theme-dark',\n scrollbars: {\n autoHide: 'leave',\n autoHideDelay: 0,\n },\n};\n\nexport const LeftNavContentWithScrollbar: React.ComponentType<OverlayScrollbarsComponentProps> = (props) => {\n const { children } = props;\n\n const inheritBoxShadow = { boxShadow: 'inherit' };\n const [osInstance, setOsInstance] = useState<OverlayScrollbars>();\n const osTargetRef = useRef<HTMLDivElement>(null);\n\n useEffect(() => {\n const nextOsInstance: OverlayScrollbars = OverlayScrollbars(osTargetRef.current, options);\n setOsInstance(nextOsInstance);\n }, [osInstance]);\n\n return (\n <div className=\"os-host\" style={{ height: '100%', ...inheritBoxShadow }} tabIndex={-1} ref={osTargetRef}>\n <div className=\"os-resize-observer-host\" />\n <div className=\"os-padding\" style={inheritBoxShadow}>\n <div className=\"os-viewport\" style={inheritBoxShadow}>\n <div className=\"os-content\" style={inheritBoxShadow} aria-hidden>\n {children}\n </div>\n </div>\n </div>\n <div className=\"os-scrollbar os-scrollbar-horizontal \">\n <div className=\"os-scrollbar-track\">\n <div className=\"os-scrollbar-handle\" />\n </div>\n </div>\n <div className=\"os-scrollbar os-scrollbar-vertical\">\n <div className=\"os-scrollbar-track\">\n <StyledHandle className=\"os-scrollbar-handle\"></StyledHandle>\n </div>\n </div>\n <div className=\"os-scrollbar-corner\" />\n </div>\n );\n};\n"],"names":["StyledHandle","styled","div","options","className","scrollbars","autoHide","autoHideDelay","LeftNavContentWithScrollbar","props","children","inheritBoxShadow","boxShadow","useState","osInstance","setOsInstance","osTargetRef","useRef","useEffect","nextOsInstance","OverlayScrollbars","current","height"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/parts/LeftNavContentWithScrollbar/index.tsx"],"sourcesContent":["/* eslint-disable react/prop-types */\nimport React, { useEffect, useRef, useState } from 'react';\nimport 'overlayscrollbars/css/OverlayScrollbars.css';\nimport OverlayScrollbars, { Options } from 'overlayscrollbars';\nimport styled from 'styled-components';\n\nexport interface OverlayScrollbarsComponentProps extends React.HTMLAttributes<HTMLDivElement> {\n children?: React.ReactNode;\n}\n\nconst StyledHandle = styled.div`\n width: 6px;\n border: 1px solid rgba(0, 0, 0, 0);\n background-color: rgba(105, 116, 137, 0.5) !important;\n border-radius: 7px;\n\n :hover {\n background-color: rgba(105, 116, 137, 0.7) !important;\n }\n\n :active {\n background-color: rgba(105, 116, 137, 0.7) !important;\n }\n`;\n\nconst options: Options = {\n className: 'os-theme-dark',\n scrollbars: {\n autoHide: 'leave',\n autoHideDelay: 0,\n },\n};\n\nexport const LeftNavContentWithScrollbar: React.ComponentType<OverlayScrollbarsComponentProps> = (props) => {\n const { children } = props;\n\n const inheritBoxShadow = { boxShadow: 'inherit' };\n const [osInstance, setOsInstance] = useState<OverlayScrollbars>();\n const osTargetRef = useRef<HTMLDivElement>(null);\n\n useEffect(() => {\n const nextOsInstance: OverlayScrollbars = OverlayScrollbars(osTargetRef.current, options);\n setOsInstance(nextOsInstance);\n }, [osInstance]);\n\n return (\n <div className=\"os-host\" style={{ height: '100%', ...inheritBoxShadow }} tabIndex={-1} ref={osTargetRef}>\n <div className=\"os-resize-observer-host\" />\n <div className=\"os-padding\" style={inheritBoxShadow}>\n <div className=\"os-viewport\" style={inheritBoxShadow}>\n <div className=\"os-content\" style={inheritBoxShadow} aria-hidden>\n {children}\n </div>\n </div>\n </div>\n <div className=\"os-scrollbar os-scrollbar-horizontal \">\n <div className=\"os-scrollbar-track\">\n <div className=\"os-scrollbar-handle\" />\n </div>\n </div>\n <div className=\"os-scrollbar os-scrollbar-vertical\">\n <div className=\"os-scrollbar-track\">\n <StyledHandle className=\"os-scrollbar-handle\"></StyledHandle>\n </div>\n </div>\n <div className=\"os-scrollbar-corner\" />\n </div>\n );\n};\n"],"names":["StyledHandle","styled","div","options","className","scrollbars","autoHide","autoHideDelay","LeftNavContentWithScrollbar","props","children","inheritBoxShadow","boxShadow","useState","osInstance","setOsInstance","osTargetRef","useRef","useEffect","nextOsInstance","OverlayScrollbars","current","height"],"mappings":";;;;;;;;;;AAUA,IAAMA,YAAY,gBAAGC,MAAM,CAACC,GAAV;AAAA;AAAA,0OAAlB;AAeA,IAAMC,OAAgB,GAAG;AACvBC,EAAAA,SAAS,EAAE,eADY;AAEvBC,EAAAA,UAAU,EAAE;AACVC,IAAAA,QAAQ,EAAE,OADA;AAEVC,IAAAA,aAAa,EAAE;AAFL;AAFW,CAAzB;IAQaC,2BAAiF,GAAG,SAApFA,2BAAoF,CAACC,KAAD,EAAW;AAC1G,MAAQC,QAAR,GAAqBD,KAArB,CAAQC,QAAR;AAEA,MAAMC,gBAAgB,GAAG;AAAEC,IAAAA,SAAS,EAAE;AAAb,GAAzB;;AACA,kBAAoCC,QAAQ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elliemae/ds-icons';
|
|
3
3
|
import { PropTypes } from 'react-desc';
|
|
4
4
|
import Grid from '@elliemae/ds-grid';
|
|
5
5
|
import { SimpleTruncatedTooltipText } from '@elliemae/ds-truncated-tooltip-text';
|
|
@@ -8,8 +8,6 @@ import { LeftNavContext } from '../../LeftNavigationContext.js';
|
|
|
8
8
|
import { useKeyboardNavigation } from '../../hooks/useKeyboardNavigation.js';
|
|
9
9
|
import { FOOTER_MENU_CLOSE_DS_ID, FOOTER_DS_ID } from '../../exported-related/constants.js';
|
|
10
10
|
import 'styled-components';
|
|
11
|
-
import '@elliemae/ds-basic';
|
|
12
|
-
import '@elliemae/ds-icons';
|
|
13
11
|
import '../../common/getFocusedByKeyboardStyle.js';
|
|
14
12
|
import '../../common/getItemBackgroundStyle.js';
|
|
15
13
|
import '../../common/getLeftBorderStyle.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/parts/LeftNavFooterItem/index.tsx"],"sourcesContent":["/* eslint-disable max-lines */\nimport React, { useContext } from 'react';\nimport MenuExpand from '@elliemae/ds-icons
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/parts/LeftNavFooterItem/index.tsx"],"sourcesContent":["/* eslint-disable max-lines */\nimport React, { useContext } from 'react';\nimport { MenuExpand } from '@elliemae/ds-icons';\nimport { PropTypes } from 'react-desc';\nimport Grid from '@elliemae/ds-grid';\nimport { SimpleTruncatedTooltipText } from '@elliemae/ds-truncated-tooltip-text';\nimport {\n StyledFooterMenu,\n StyledItem,\n StyledItemWrapper,\n StyledLabel,\n StyledSeparator,\n StyledMenuCollapse,\n} from './styled';\nimport { useKeyboardNavigation } from '../../hooks';\nimport LeftNavigationContext from '../../LeftNavigationContext';\nimport { FOOTER_DS_ID, FOOTER_MENU_CLOSE_DS_ID } from '../../exported-related/constants';\n\ntype LeftNavFooterItemProps = {\n footerLabel: string | JSX.Element;\n onFooterExpand: React.MouseEventHandler & React.KeyboardEventHandler;\n onFooterClose: React.MouseEventHandler & React.KeyboardEventHandler;\n};\n\nexport const LeftNavFooterItem: React.ComponentType<LeftNavFooterItemProps> = (props) => {\n const { footerLabel, onFooterExpand = () => null, onFooterClose = () => null } = props;\n const {\n leftNavProps: { labelOverflow, openedItem },\n expandedForAnimation,\n setSelectedItem,\n focusedItem,\n setFocusedItem,\n focusedByKey,\n visibleItemsRefs,\n } = useContext(LeftNavigationContext);\n\n const id = FOOTER_DS_ID;\n\n const handleOnClick = expandedForAnimation ? onFooterClose : onFooterExpand;\n\n const onKeyDown = useKeyboardNavigation({\n item: {\n dsId: id,\n itemOpts: {\n selectable: !expandedForAnimation,\n openable: false,\n closable: false,\n },\n },\n onClick: handleOnClick,\n });\n\n return (\n <StyledFooterMenu key={id} data-testid=\"leftnav-container\">\n <StyledItemWrapper>\n <StyledItem\n ref={visibleItemsRefs.current[id]}\n tabIndex={expandedForAnimation ? -1 : 0}\n expanded={expandedForAnimation}\n pt=\"xxs2\"\n height={expandedForAnimation ? 'auto' : '48px'}\n alignItems=\"flex-start\"\n pl=\"xxs\"\n cols={expandedForAnimation ? ['auto', '1fr', 'auto'] : ['38px']}\n onClick={expandedForAnimation ? () => null : handleOnClick}\n onKeyDown={onKeyDown}\n focused={focusedItem === id}\n focusedByKey={focusedByKey}\n onFocus={() => setFocusedItem(id)}\n data-testid=\"leftnav-item-container\"\n role=\"menuitem\"\n aria-label={expandedForAnimation ? `Footer, ${footerLabel}` : `Expand left navigation`}\n >\n {!expandedForAnimation ? (\n <MenuExpand size=\"m\" color={['brand-primary', 800]} data-testid=\"leftnav-footer-btn\" />\n ) : (\n <>\n <StyledLabel\n mt=\"5px\"\n mr=\"12px\"\n mb=\"16px\"\n data-testid=\"leftnav-itemlabel\"\n labelOverflow={labelOverflow}\n aria-live=\"polite\"\n >\n {labelOverflow === 'truncate' ? (\n <SimpleTruncatedTooltipText value={footerLabel} placement=\"bottom-start\" />\n ) : (\n footerLabel\n )}\n </StyledLabel>\n <StyledSeparator mt=\"xxxs\" />\n <Grid m=\"0 12px\">\n <StyledMenuCollapse\n size=\"m\"\n color={['brand-primary', 800]}\n onClick={(e) => {\n if (openedItem) setSelectedItem(openedItem);\n e.stopPropagation();\n handleOnClick(e);\n }}\n onKeyDown={(e) => {\n if (['Space', 'Enter'].includes(e.code) && openedItem) setSelectedItem(openedItem);\n }}\n data-testid=\"leftnav-footer-btn\"\n tabIndex={0}\n onFocus={(e) => {\n e.stopPropagation();\n setFocusedItem(FOOTER_MENU_CLOSE_DS_ID);\n }}\n role=\"button\"\n aria-label=\"Collapse left navigation\"\n />\n </Grid>\n </>\n )}\n </StyledItem>\n </StyledItemWrapper>\n </StyledFooterMenu>\n );\n};\n\nLeftNavFooterItem.propTypes = {\n footerLabel: PropTypes.any,\n onFooterExpand: PropTypes.func,\n onFooterClose: PropTypes.func,\n};\n\nexport default LeftNavFooterItem;\n"],"names":["LeftNavFooterItem","props","footerLabel","onFooterExpand","onFooterClose","useContext","LeftNavigationContext","leftNavProps","labelOverflow","openedItem","expandedForAnimation","setSelectedItem","focusedItem","setFocusedItem","focusedByKey","visibleItemsRefs","id","FOOTER_DS_ID","handleOnClick","onKeyDown","useKeyboardNavigation","item","dsId","itemOpts","selectable","openable","closable","onClick","current","e","stopPropagation","includes","code","FOOTER_MENU_CLOSE_DS_ID","propTypes","PropTypes","any","func"],"mappings":";;;;;;;;;;;;;;AAAA;IAwBaA,iBAA8D,GAAG,SAAjEA,iBAAiE,CAACC,KAAD,EAAW;AACvF,MAAQC,WAAR,GAAiFD,KAAjF,CAAQC,WAAR;AAAA,8BAAiFD,KAAjF,CAAqBE,cAArB;AAAA,MAAqBA,cAArB,sCAAsC;AAAA,WAAM,IAAN;AAAA,GAAtC;AAAA,6BAAiFF,KAAjF,CAAkDG,aAAlD;AAAA,MAAkDA,aAAlD,qCAAkE;AAAA,WAAM,IAAN;AAAA,GAAlE;;AACA,oBAQIC,UAAU,CAACC,cAAD,CARd;AAAA,0CACEC,YADF;AAAA,M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,EAAO;AAChB,UAAI,CAAC,OAAD,EAAU,OAAV,EAAmBE,QAAnB,CAA4BF,CAAC,CAACG,IAA9B,KAAuCvB,UAA3C,EAAuDE,eAAe,CAACF,UAAD,CAAf;AACxD,KAVH;AAWE,mBAAY,oBAXd;AAYE,IAAA,QAAQ,EAAE,CAZZ;AAaE,IAAA,OAAO,EAAE,iBAACoB,CAAD,EAAO;AACdA,MAAAA,CAAC,CAACC,eAAF;AACAjB,MAAAA,cAAc,CAACoB,uBAAD,CAAd;AACD,KAhBH;AAiBE,IAAA,IAAI,EAAC,QAjBP;AAkBE,kBAAW;AAlBb,IADF,CAhBF,CArBJ,CADF,CADF,CADF;AAoED;AAEDjC,iBAAiB,CAACkC,SAAlB,GAA8B;AAC5BhC,EAAAA,WAAW,EAAEiC,SAAS,CAACC,GADK;AAE5BjC,EAAAA,cAAc,EAAEgC,SAAS,CAACE,IAFE;AAG5BjC,EAAAA,aAAa,EAAE+B,SAAS,CAACE;AAHG,CAA9B;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
|
-
import { Grid } from '@elliemae/ds-
|
|
2
|
+
import { Grid } from '@elliemae/ds-grid';
|
|
3
3
|
import { MenuCollapse } from '@elliemae/ds-icons';
|
|
4
4
|
import { getFocusedByKeyboardBorderStyle } from '../../common/getFocusedByKeyboardStyle.js';
|
|
5
5
|
import { getItemBackgroundStyle } from '../../common/getItemBackgroundStyle.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styled.js","sources":["../../../../src/parts/LeftNavFooterItem/styled.tsx"],"sourcesContent":["import styled from 'styled-components';\nimport { Grid } from '@elliemae/ds-
|
|
1
|
+
{"version":3,"file":"styled.js","sources":["../../../../src/parts/LeftNavFooterItem/styled.tsx"],"sourcesContent":["import styled from 'styled-components';\nimport { Grid } from '@elliemae/ds-grid';\nimport { MenuCollapse } from '@elliemae/ds-icons';\nimport { getFocusedByKeyboardBorderStyle, getLeftBorderStyle, getItemBackgroundStyle } from '../../common';\n\nexport const StyledFooterMenu = styled(Grid)`\n width: 100%;\n margin-top: auto;\n background: ${(props) => props.theme.colors.neutral['000']};\n\n ${getLeftBorderStyle}\n\n border-top: 1px solid ${(props) => props.theme.colors.neutral[100]};\n`;\n\nexport const StyledItemWrapper = styled(Grid)`\n position: relative;\n padding-left: ${(props) => props.theme.space.xxxs};\n`;\n\nexport const StyledItem = styled(Grid)`\n min-height: 48px;\n cursor: ${(props) => (props.expanded ? 'auto' : 'pointer')};\n\n ${getItemBackgroundStyle}\n\n outline: none;\n\n ${getFocusedByKeyboardBorderStyle}\n`;\n\nexport const StyledLabel = styled(Grid)`\n font-size: 11px;\n color: ${(props) => props.theme.colors.neutral[500]};\n line-height: 14px;\n word-break: ${(props) => (props.labelOverflow === 'wrapAll' ? 'break-all' : 'normal')};\n`;\n\nexport const StyledSeparator = styled(Grid)`\n height: 16px;\n width: 1px;\n background-color: ${(props) => props.theme.colors.neutral[100]};\n`;\n\nexport const StyledMenuCollapse = styled(MenuCollapse)`\n cursor: pointer;\n :focus {\n outline: 1px solid ${(props) => props.theme.colors.brand[800]};\n }\n`;\n"],"names":["StyledFooterMenu","styled","Grid","props","theme","colors","neutral","getLeftBorderStyle","StyledItemWrapper","space","xxxs","StyledItem","expanded","getItemBackgroundStyle","getFocusedByKeyboardBorderStyle","StyledLabel","labelOverflow","StyledSeparator","StyledMenuCollapse","MenuCollapse","brand"],"mappings":";;;;;;;IAKaA,gBAAgB,gBAAGC,MAAM,CAACC,IAAD,CAAT;AAAA;AAAA,mFAGb,UAACC,KAAD;AAAA,SAAWA,KAAK,CAACC,KAAN,CAAYC,MAAZ,CAAmBC,OAAnB,CAA2B,KAA3B,CAAX;AAAA,CAHa,EAKzBC,kBALyB,EAOH,UAACJ,KAAD;AAAA,SAAWA,KAAK,CAACC,KAAN,CAAYC,MAAZ,CAAmBC,OAAnB,CAA2B,GAA3B,CAAX;AAAA,CAPG;IAUhBE,iBAAiB,gBAAGP,MAAM,CAACC,IAAD,CAAT;AAAA;AAAA,6CAEZ,UAACC,KAAD;AAAA,SAAWA,KAAK,CAACC,KAAN,CAAYK,KAAZ,CAAkBC,IAA7B;AAAA,CAFY;IAKjBC,UAAU,gBAAGV,MAAM,CAACC,IAAD,CAAT;AAAA;AAAA,2DAEX,UAACC,KAAD;AAAA,SAAYA,KAAK,CAACS,QAAN,GAAiB,MAAjB,GAA0B,SAAtC;AAAA,CAFW,EAInBC,sBAJmB,EAQnBC,+BARmB;IAWVC,WAAW,gBAAGd,MAAM,CAACC,IAAD,CAAT;AAAA;AAAA,oEAEb,UAACC,KAAD;AAAA,SAAWA,KAAK,CAACC,KAAN,CAAYC,MAAZ,CAAmBC,OAAnB,CAA2B,GAA3B,CAAX;AAAA,CAFa,EAIR,UAACH,KAAD;AAAA,SAAYA,KAAK,CAACa,aAAN,KAAwB,SAAxB,GAAoC,WAApC,GAAkD,QAA9D;AAAA,CAJQ;IAOXC,eAAe,gBAAGhB,MAAM,CAACC,IAAD,CAAT;AAAA;AAAA,qDAGN,UAACC,KAAD;AAAA,SAAWA,KAAK,CAACC,KAAN,CAAYC,MAAZ,CAAmBC,OAAnB,CAA2B,GAA3B,CAAX;AAAA,CAHM;IAMfY,kBAAkB,gBAAGjB,MAAM,CAACkB,YAAD,CAAT;AAAA;AAAA,uDAGN,UAAChB,KAAD;AAAA,SAAWA,KAAK,CAACC,KAAN,CAAYC,MAAZ,CAAmBe,KAAnB,CAAyB,GAAzB,CAAX;AAAA,CAHM;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import DSCircularProgressIndicator from '@elliemae/ds-
|
|
2
|
+
import DSCircularProgressIndicator from '@elliemae/ds-circular-progress-indicator';
|
|
3
3
|
import Grid from '@elliemae/ds-grid';
|
|
4
4
|
import styled from 'styled-components';
|
|
5
5
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/parts/LeftNavLoading/index.tsx"],"sourcesContent":["import React from 'react';\nimport DSCircularProgressIndicator from '@elliemae/ds-
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/parts/LeftNavLoading/index.tsx"],"sourcesContent":["import React from 'react';\nimport DSCircularProgressIndicator from '@elliemae/ds-circular-progress-indicator';\nimport Grid from '@elliemae/ds-grid';\nimport styled from 'styled-components';\n\nconst StyledLoaderWrapper = styled(Grid)`\n grid-area: left-nav-body;\n height: 100%;\n place-items: center;\n z-index: 0;\n background-color: white;\n`;\n\nexport const LeftNavLoading: React.ComponentType<{ expanded: boolean }> = ({ expanded }) => (\n <StyledLoaderWrapper>\n <DSCircularProgressIndicator\n size={expanded ? 'xl' : 'm'}\n loading\n showLabel={expanded}\n waiting={false}\n showTooltip={!expanded}\n />\n </StyledLoaderWrapper>\n);\n"],"names":["StyledLoaderWrapper","styled","Grid","LeftNavLoading","expanded"],"mappings":";;;;;AAKA,IAAMA,mBAAmB,gBAAGC,MAAM,CAACC,IAAD,CAAT;AAAA;AAAA,gGAAzB;IAQaC,cAA0D,GAAG,SAA7DA,cAA6D;AAAA,MAAGC,QAAH,QAAGA,QAAH;AAAA,sBACxE,oBAAC,mBAAD,qBACE,oBAAC,2BAAD;AACE,IAAA,IAAI,EAAEA,QAAQ,GAAG,IAAH,GAAU,GAD1B;AAEE,IAAA,OAAO,MAFT;AAGE,IAAA,SAAS,EAAEA,QAHb;AAIE,IAAA,OAAO,EAAE,KAJX;AAKE,IAAA,WAAW,EAAE,CAACA;AALhB,IADF,CADwE;AAAA;;;;"}
|
|
@@ -6,16 +6,9 @@ import '../exported-related/constants.js';
|
|
|
6
6
|
import '@elliemae/ds-grid';
|
|
7
7
|
import 'styled-components';
|
|
8
8
|
import '@babel/runtime/helpers/esm/extends';
|
|
9
|
-
import '@elliemae/ds-icons
|
|
10
|
-
import '@elliemae/ds-icons/Notifications';
|
|
11
|
-
import '@elliemae/ds-icons/ExceptionsSmallFill';
|
|
12
|
-
import '@elliemae/ds-icons/AlertsSmallFill';
|
|
13
|
-
import '@elliemae/ds-icons/MessagesSmallFill';
|
|
14
|
-
import '@elliemae/ds-icons/OpenWindow';
|
|
9
|
+
import '@elliemae/ds-icons';
|
|
15
10
|
import '../outOfTheBox/ItemControlledDrilldown/index.js';
|
|
16
11
|
import '@elliemae/ds-truncated-tooltip-text';
|
|
17
|
-
import '@elliemae/ds-icons/ArrowheadRight';
|
|
18
|
-
import '@elliemae/ds-icons/ArrowheadDown';
|
|
19
12
|
import '../exported-related/ItemRenderer/index.js';
|
|
20
13
|
import '../exported-related/ItemRenderer/styled.js';
|
|
21
14
|
import '../exported-related/ItemRenderer/usePropsWithDefaults.js';
|
|
@@ -31,7 +24,6 @@ import '../outOfTheBox/ItemTextLabel/index.js';
|
|
|
31
24
|
import '../outOfTheBox/ItemTextLabel/styled.js';
|
|
32
25
|
import '../outOfTheBox/ItemHeader/index.js';
|
|
33
26
|
import '../outOfTheBox/ItemHeader/styled.js';
|
|
34
|
-
import '@elliemae/ds-icons/ChevronSmallLeft';
|
|
35
27
|
import '../outOfTheBox/ItemLink/index.js';
|
|
36
28
|
import '../outOfTheBox/ItemLink/styled.js';
|
|
37
29
|
import '../outOfTheBox/ItemSection/index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OutOfTheBoxMapItem.js","sources":["../../../src/parts/OutOfTheBoxMapItem.tsx"],"sourcesContent":["import React from 'react';\nimport { outOfTheBoxComponents } from '../outOfTheBox';\nimport { OutOfTheBoxMapItemT } from '../index.d';\nimport { LeftNavContext } from '../LeftNavigationContext';\n\nexport const OutOfTheBoxMapItem = (props: OutOfTheBoxMapItemT): JSX.Element => {\n const {\n item,\n item: { type, Component },\n } = props;\n const ctx = React.useContext(LeftNavContext);\n\n if (typeof type === 'string' && !!outOfTheBoxComponents[type]) {\n const OutOfTheBoxComponent = outOfTheBoxComponents[type];\n return <OutOfTheBoxComponent item={{ itemOpts: {}, ...item }} 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"],"names":["OutOfTheBoxMapItem","props","item","type","Component","ctx","React","useContext","LeftNavContext","outOfTheBoxComponents","OutOfTheBoxComponent","itemOpts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"OutOfTheBoxMapItem.js","sources":["../../../src/parts/OutOfTheBoxMapItem.tsx"],"sourcesContent":["import React from 'react';\nimport { outOfTheBoxComponents } from '../outOfTheBox';\nimport { OutOfTheBoxMapItemT } from '../index.d';\nimport { LeftNavContext } from '../LeftNavigationContext';\n\nexport const OutOfTheBoxMapItem = (props: OutOfTheBoxMapItemT): JSX.Element => {\n const {\n item,\n item: { type, Component },\n } = props;\n const ctx = React.useContext(LeftNavContext);\n\n if (typeof type === 'string' && !!outOfTheBoxComponents[type]) {\n const OutOfTheBoxComponent = outOfTheBoxComponents[type];\n return <OutOfTheBoxComponent item={{ itemOpts: {}, ...item }} 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"],"names":["OutOfTheBoxMapItem","props","item","type","Component","ctx","React","useContext","LeftNavContext","outOfTheBoxComponents","OutOfTheBoxComponent","itemOpts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAKaA,kBAAkB,GAAG,SAArBA,kBAAqB,CAACC,KAAD,EAA6C;AAC7E,MACEC,IADF,GAGID,KAHJ,CACEC,IADF;AAAA,oBAGID,KAHJ,CAEEC,IAFF;AAAA,MAEUC,IAFV,eAEUA,IAFV;AAAA,MAEgBC,SAFhB,eAEgBA,SAFhB;AAIA,MAAMC,GAAG,GAAGC,KAAK,CAACC,UAAN,CAAiBC,cAAjB,CAAZ;;AAEA,MAAI,OAAOL,IAAP,KAAgB,QAAhB,IAA4B,CAAC,CAACM,qBAAqB,CAACN,IAAD,CAAvD,EAA+D;AAC7D,QAAMO,oBAAoB,GAAGD,qBAAqB,CAACN,IAAD,CAAlD;AACA,wBAAO,oBAAC,oBAAD;AAAsB,MAAA,IAAI;AAAIQ,QAAAA,QAAQ,EAAE;AAAd,SAAqBT,IAArB,CAA1B;AAAuD,MAAA,GAAG,EAAEG;AAA5D,MAAP;AACD,GAV4E;;;AAY7E,sBAAO,oBAAC,SAAD;AAAW,IAAA,IAAI,EAAEH,IAAjB;AAAuB,IAAA,GAAG,EAAEG;AAA5B,IAAP;AACD;;;;"}
|
package/esm/prop-types.js
CHANGED
|
@@ -6,16 +6,9 @@ import 'react';
|
|
|
6
6
|
import '@elliemae/ds-grid';
|
|
7
7
|
import 'styled-components';
|
|
8
8
|
import '@babel/runtime/helpers/esm/extends';
|
|
9
|
-
import '@elliemae/ds-icons
|
|
10
|
-
import '@elliemae/ds-icons/Notifications';
|
|
11
|
-
import '@elliemae/ds-icons/ExceptionsSmallFill';
|
|
12
|
-
import '@elliemae/ds-icons/AlertsSmallFill';
|
|
13
|
-
import '@elliemae/ds-icons/MessagesSmallFill';
|
|
14
|
-
import '@elliemae/ds-icons/OpenWindow';
|
|
9
|
+
import '@elliemae/ds-icons';
|
|
15
10
|
import './outOfTheBox/ItemControlledDrilldown/index.js';
|
|
16
11
|
import '@elliemae/ds-truncated-tooltip-text';
|
|
17
|
-
import '@elliemae/ds-icons/ArrowheadRight';
|
|
18
|
-
import '@elliemae/ds-icons/ArrowheadDown';
|
|
19
12
|
import './exported-related/ItemRenderer/index.js';
|
|
20
13
|
import './exported-related/ItemRenderer/styled.js';
|
|
21
14
|
import './LeftNavigationContext.js';
|
|
@@ -32,7 +25,6 @@ import './outOfTheBox/ItemTextLabel/index.js';
|
|
|
32
25
|
import './outOfTheBox/ItemTextLabel/styled.js';
|
|
33
26
|
import './outOfTheBox/ItemHeader/index.js';
|
|
34
27
|
import './outOfTheBox/ItemHeader/styled.js';
|
|
35
|
-
import '@elliemae/ds-icons/ChevronSmallLeft';
|
|
36
28
|
import './outOfTheBox/ItemLink/index.js';
|
|
37
29
|
import './outOfTheBox/ItemLink/styled.js';
|
|
38
30
|
import './outOfTheBox/ItemSection/index.js';
|
package/esm/prop-types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prop-types.js","sources":["../../src/prop-types.tsx"],"sourcesContent":["import { PropTypes, describe } from 'react-desc';\nimport { outOfTheBoxTypes } from './outOfTheBox';\n\nexport const leftNavItemProps = {\n type: PropTypes.oneOf(outOfTheBoxTypes).description('out of the box types'),\n dsId: PropTypes.string.description('unique identifier for the left nav item'),\n Component: PropTypes.func.description(\n \"A custom component, receives the item as prop. This is used only when type is not defined or doesn't matches any out-of-the-box\",\n ),\n CollapsedComponent: PropTypes.func.description(\n 'A component which is renderer when the left-nav is collapsed',\n ),\n itemOpts: PropTypes.object.description('Item options'),\n};\n\nexport const leftNavigationProps = {\n containerProps: PropTypes.shape({ expandedWidth: PropTypes.string })\n .description('Set of Properties attached to the main container')\n .defaultValue({ expandedWidth: '240px' }),\n expanded: PropTypes.bool\n .description('Whether to show the left navigation expanded or collapsed')\n .defaultValue(false),\n loading: PropTypes.bool\n .description('Whether the left-nav is loading')\n .defaultValue(false),\n tabIndex: PropTypes.number.description('Tab index').defaultValue(0),\n openedItem: PropTypes.string\n .description('The id of the left navigation item you want to be opened')\n .defaultValue(null),\n footerLabel: PropTypes.string.description(\n 'The label to show in the footer item',\n ),\n onFooterExpand: PropTypes.func.description(\n 'The function to call when the left-nav is opened via the footer',\n ),\n onFooterClose: PropTypes.func.description(\n 'The function to call when the left-nav is closed via the footer',\n ),\n onSelectedChange: PropTypes.func\n .description('A callback which triggers when the selected item changes')\n .defaultValue(() => null),\n onFocusChange: PropTypes.func\n .description('A callback which triggers when the focused item changes')\n .defaultValue(() => null),\n items: PropTypes.arrayOf(PropTypes.object)\n .description('The array of items you want to render inside the left nav')\n .defaultValue([]),\n};\n\nconst LeftNavItemProps = () => null;\nexport const LeftNavItemPropsSchema = describe(LeftNavItemProps);\nLeftNavItemPropsSchema.propTypes = leftNavItemProps;\n\nconst LeftNavItemOptions = () => null;\nexport const LeftNavItemOptionsSchema = describe(LeftNavItemOptions);\nLeftNavItemOptionsSchema.propTypes = leftNavItemProps;\n"],"names":["leftNavItemProps","type","PropTypes","oneOf","outOfTheBoxTypes","description","dsId","string","Component","func","CollapsedComponent","itemOpts","object","leftNavigationProps","containerProps","shape","expandedWidth","defaultValue","expanded","bool","loading","tabIndex","number","openedItem","footerLabel","onFooterExpand","onFooterClose","onSelectedChange","onFocusChange","items","arrayOf","LeftNavItemProps","LeftNavItemPropsSchema","describe","propTypes","LeftNavItemOptions","LeftNavItemOptionsSchema"],"mappings":"
|
|
1
|
+
{"version":3,"file":"prop-types.js","sources":["../../src/prop-types.tsx"],"sourcesContent":["import { PropTypes, describe } from 'react-desc';\nimport { outOfTheBoxTypes } from './outOfTheBox';\n\nexport const leftNavItemProps = {\n type: PropTypes.oneOf(outOfTheBoxTypes).description('out of the box types'),\n dsId: PropTypes.string.description('unique identifier for the left nav item'),\n Component: PropTypes.func.description(\n \"A custom component, receives the item as prop. This is used only when type is not defined or doesn't matches any out-of-the-box\",\n ),\n CollapsedComponent: PropTypes.func.description(\n 'A component which is renderer when the left-nav is collapsed',\n ),\n itemOpts: PropTypes.object.description('Item options'),\n};\n\nexport const leftNavigationProps = {\n containerProps: PropTypes.shape({ expandedWidth: PropTypes.string })\n .description('Set of Properties attached to the main container')\n .defaultValue({ expandedWidth: '240px' }),\n expanded: PropTypes.bool\n .description('Whether to show the left navigation expanded or collapsed')\n .defaultValue(false),\n loading: PropTypes.bool\n .description('Whether the left-nav is loading')\n .defaultValue(false),\n tabIndex: PropTypes.number.description('Tab index').defaultValue(0),\n openedItem: PropTypes.string\n .description('The id of the left navigation item you want to be opened')\n .defaultValue(null),\n footerLabel: PropTypes.string.description(\n 'The label to show in the footer item',\n ),\n onFooterExpand: PropTypes.func.description(\n 'The function to call when the left-nav is opened via the footer',\n ),\n onFooterClose: PropTypes.func.description(\n 'The function to call when the left-nav is closed via the footer',\n ),\n onSelectedChange: PropTypes.func\n .description('A callback which triggers when the selected item changes')\n .defaultValue(() => null),\n onFocusChange: PropTypes.func\n .description('A callback which triggers when the focused item changes')\n .defaultValue(() => null),\n items: PropTypes.arrayOf(PropTypes.object)\n .description('The array of items you want to render inside the left nav')\n .defaultValue([]),\n};\n\nconst LeftNavItemProps = () => null;\nexport const LeftNavItemPropsSchema = describe(LeftNavItemProps);\nLeftNavItemPropsSchema.propTypes = leftNavItemProps;\n\nconst LeftNavItemOptions = () => null;\nexport const LeftNavItemOptionsSchema = describe(LeftNavItemOptions);\nLeftNavItemOptionsSchema.propTypes = leftNavItemProps;\n"],"names":["leftNavItemProps","type","PropTypes","oneOf","outOfTheBoxTypes","description","dsId","string","Component","func","CollapsedComponent","itemOpts","object","leftNavigationProps","containerProps","shape","expandedWidth","defaultValue","expanded","bool","loading","tabIndex","number","openedItem","footerLabel","onFooterExpand","onFooterClose","onSelectedChange","onFocusChange","items","arrayOf","LeftNavItemProps","LeftNavItemPropsSchema","describe","propTypes","LeftNavItemOptions","LeftNavItemOptionsSchema"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAGaA,gBAAgB,GAAG;AAC9BC,EAAAA,IAAI,EAAEC,SAAS,CAACC,KAAV,CAAgBC,gBAAhB,EAAkCC,WAAlC,CAA8C,sBAA9C,CADwB;AAE9BC,EAAAA,IAAI,EAAEJ,SAAS,CAACK,MAAV,CAAiBF,WAAjB,CAA6B,yCAA7B,CAFwB;AAG9BG,EAAAA,SAAS,EAAEN,SAAS,CAACO,IAAV,CAAeJ,WAAf,CACT,iIADS,CAHmB;AAM9BK,EAAAA,kBAAkB,EAAER,SAAS,CAACO,IAAV,CAAeJ,WAAf,CAClB,8DADkB,CANU;AAS9BM,EAAAA,QAAQ,EAAET,SAAS,CAACU,MAAV,CAAiBP,WAAjB,CAA6B,cAA7B;AAToB;IAYnBQ,mBAAmB,GAAG;AACjCC,EAAAA,cAAc,EAA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;AA7B0B;;AAkCnC,IAAMc,gBAAgB,GAAG,SAAnBA,gBAAmB;AAAA,SAAM,IAAN;AAAA,CAAzB;;IACaC,sBAAsB,GAAGC,QAAQ,CAACF,gBAAD;AAC9CC,sBAAsB,CAACE,SAAvB,GAAmClC,gBAAnC;;AAEA,IAAMmC,kBAAkB,GAAG,SAArBA,kBAAqB;AAAA,SAAM,IAAN;AAAA,CAA3B;;IACaC,wBAAwB,GAAGH,QAAQ,CAACE,kBAAD;AAChDC,wBAAwB,CAACF,SAAzB,GAAqClC,gBAArC;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-left-navigation",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.57.0-rc.11",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Ellie Mae - Dim Sum - Left Navigation",
|
|
6
6
|
"main": "cjs/index.js",
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
"directory": "dist"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@elliemae/ds-basic": "1.
|
|
20
|
-
"@elliemae/ds-grid": "1.
|
|
21
|
-
"@elliemae/ds-icons": "1.
|
|
22
|
-
"@elliemae/ds-system": "1.
|
|
23
|
-
"@elliemae/ds-truncated-tooltip-text": "1.
|
|
19
|
+
"@elliemae/ds-basic": "1.57.0-rc.11",
|
|
20
|
+
"@elliemae/ds-grid": "1.57.0-rc.11",
|
|
21
|
+
"@elliemae/ds-icons": "1.57.0-rc.11",
|
|
22
|
+
"@elliemae/ds-system": "1.57.0-rc.11",
|
|
23
|
+
"@elliemae/ds-truncated-tooltip-text": "1.57.0-rc.11",
|
|
24
24
|
"overlayscrollbars": "1.13.1",
|
|
25
25
|
"prop-types": "~15.7.2",
|
|
26
26
|
"react-desc": "^4.1.2"
|