@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
|
@@ -3,13 +3,12 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var Grid = require('@elliemae/ds-grid');
|
|
6
|
-
var
|
|
6
|
+
var dsIcons = require('@elliemae/ds-icons');
|
|
7
7
|
var styled = require('styled-components');
|
|
8
8
|
|
|
9
9
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
10
10
|
|
|
11
11
|
var Grid__default = /*#__PURE__*/_interopDefaultLegacy(Grid);
|
|
12
|
-
var ChevronLeft__default = /*#__PURE__*/_interopDefaultLegacy(ChevronLeft);
|
|
13
12
|
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
14
13
|
|
|
15
14
|
var StyledLabel = /*#__PURE__*/styled__default['default'](Grid__default['default']).withConfig({
|
|
@@ -19,7 +18,7 @@ var StyledLabel = /*#__PURE__*/styled__default['default'](Grid__default['default
|
|
|
19
18
|
}, function (props) {
|
|
20
19
|
return props.labelOverflow === 'wrapAll' ? 'break-all' : 'normal';
|
|
21
20
|
});
|
|
22
|
-
var StyledChevronLeft = /*#__PURE__*/styled__default['default'](
|
|
21
|
+
var StyledChevronLeft = /*#__PURE__*/styled__default['default'](dsIcons.ChevronSmallLeft).withConfig({
|
|
23
22
|
componentId: "sc-m5k4h8-1"
|
|
24
23
|
})(["cursor:pointer;:focus{outline:1px solid ", ";}"], function (props) {
|
|
25
24
|
return props.theme.colors.brand[800];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styled.js","sources":["../../../../src/outOfTheBox/ItemHeader/styled.tsx"],"sourcesContent":["import Grid from '@elliemae/ds-grid';\nimport
|
|
1
|
+
{"version":3,"file":"styled.js","sources":["../../../../src/outOfTheBox/ItemHeader/styled.tsx"],"sourcesContent":["import Grid from '@elliemae/ds-grid';\nimport { ChevronSmallLeft } from '@elliemae/ds-icons';\nimport styled from 'styled-components';\n\nexport const StyledLabel = styled(Grid)`\n font-size: 14px;\n color: ${(props) => props.theme.colors.neutral[800]};\n word-break: ${(props) => (props.labelOverflow === 'wrapAll' ? 'break-all' : 'normal')};\n`;\n\nexport const StyledChevronLeft = styled(ChevronSmallLeft)`\n cursor: pointer;\n :focus {\n outline: 1px solid ${(props) => props.theme.colors.brand[800]};\n }\n`;\n"],"names":["StyledLabel","styled","Grid","props","theme","colors","neutral","labelOverflow","StyledChevronLeft","ChevronSmallLeft","brand"],"mappings":";;;;;;;;;;;;;IAIaA,WAAW,gBAAGC,0BAAM,CAACC,wBAAD,CAAT;AAAA;AAAA,mDAEb,UAACC,KAAD;AAAA,SAAWA,KAAK,CAACC,KAAN,CAAYC,MAAZ,CAAmBC,OAAnB,CAA2B,GAA3B,CAAX;AAAA,CAFa,EAGR,UAACH,KAAD;AAAA,SAAYA,KAAK,CAACI,aAAN,KAAwB,SAAxB,GAAoC,WAApC,GAAkD,QAA9D;AAAA,CAHQ;IAMXC,iBAAiB,gBAAGP,0BAAM,CAACQ,wBAAD,CAAT;AAAA;AAAA,uDAGL,UAACN,KAAD;AAAA,SAAWA,KAAK,CAACC,KAAN,CAAYC,MAAZ,CAAmBK,KAAnB,CAAyB,GAAzB,CAAX;AAAA,CAHK;;;;;"}
|
|
@@ -8,13 +8,8 @@ var Grid = require('@elliemae/ds-grid');
|
|
|
8
8
|
var dsTruncatedTooltipText = require('@elliemae/ds-truncated-tooltip-text');
|
|
9
9
|
var exportedRelated_ItemRenderer_index = require('../../exported-related/ItemRenderer/index.js');
|
|
10
10
|
require('@babel/runtime/helpers/extends');
|
|
11
|
-
require('@elliemae/ds-icons
|
|
12
|
-
require('@elliemae/ds-icons/Notifications');
|
|
13
|
-
require('@elliemae/ds-icons/ExceptionsSmallFill');
|
|
14
|
-
require('@elliemae/ds-icons/AlertsSmallFill');
|
|
15
|
-
require('@elliemae/ds-icons/MessagesSmallFill');
|
|
11
|
+
require('@elliemae/ds-icons');
|
|
16
12
|
require('styled-components');
|
|
17
|
-
require('@elliemae/ds-icons/OpenWindow');
|
|
18
13
|
var outOfTheBox_ItemLink_styled = require('./styled.js');
|
|
19
14
|
require('../../exported-related/ItemRenderer/styled.js');
|
|
20
15
|
require('../../LeftNavigationContext.js');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/outOfTheBox/ItemLink/index.tsx"],"sourcesContent":["/* eslint-disable indent */\nimport React, { useCallback } 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 } from './styled';\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nconst notOpenedShadowStyle = (isSelected: boolean) => (theme: any) =>\n `\n box-shadow: inset 4px 0 0 0 ${\n isSelected ? theme.colors.brand[400] : 'transparent'\n };\n\n :hover {\n box-shadow: inset 4px 0 0 0 ${\n isSelected ? theme.colors.brand[400] : theme.colors.neutral[300]\n };\n }\n\n :active {\n box-shadow: inset 4px 0 0 0 ${theme.colors.brand[400]};\n }\n`;\n\nexport const ItemLink = (props: ComponentProps): JSX.Element => {\n const {\n item,\n item: {\n dsId,\n itemOpts: { label, RightComponent },\n CollapsedComponent = () => null,\n },\n ctx,\n ctx: {\n leftNavProps: { labelOverflow, openedItem },\n selectedItem,\n },\n } = props;\n\n const isSelected = selectedItem === dsId;\n\n const shadowStyle = useCallback(\n (theme) =>\n !openedItem\n ? notOpenedShadowStyle(isSelected)(theme)\n : `box-shadow: inherit`,\n [isSelected, !openedItem],\n );\n\n return (\n <ItemRenderer\n item={{\n ...item,\n itemOpts: {\n ariaLabel: typeof label === 'string' ? label : '',\n ariaRole: 'link',\n ...item.itemOpts,\n },\n }}\n shadowStyle={shadowStyle}\n >\n <Grid\n cols={['38px']}\n gutter=\"1px\"\n pl={0}\n justifyItems=\"center\"\n data-testid=\"leftnav-leftcomponent\"\n >\n <CollapsedComponent item={item} ctx={ctx} />\n </Grid>\n <StyledLabel\n ml=\"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 mt=\"xxxs\" pr=\"xxs2\" data-testid=\"leftnav-right-component\">\n {RightComponent && <RightComponent ctx={ctx} item={item} />}\n </Grid>\n </ItemRenderer>\n );\n};\n"],"names":["notOpenedShadowStyle","isSelected","theme","colors","brand","neutral","ItemLink","props","item","dsId","itemOpts","label","RightComponent","CollapsedComponent","ctx","leftNavProps","labelOverflow","openedItem","selectedItem","shadowStyle","useCallback","React","ItemRenderer","ariaLabel","ariaRole","Grid","StyledLabel","SimpleTruncatedTooltipText"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/outOfTheBox/ItemLink/index.tsx"],"sourcesContent":["/* eslint-disable indent */\nimport React, { useCallback } 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 } from './styled';\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nconst notOpenedShadowStyle = (isSelected: boolean) => (theme: any) =>\n `\n box-shadow: inset 4px 0 0 0 ${\n isSelected ? theme.colors.brand[400] : 'transparent'\n };\n\n :hover {\n box-shadow: inset 4px 0 0 0 ${\n isSelected ? theme.colors.brand[400] : theme.colors.neutral[300]\n };\n }\n\n :active {\n box-shadow: inset 4px 0 0 0 ${theme.colors.brand[400]};\n }\n`;\n\nexport const ItemLink = (props: ComponentProps): JSX.Element => {\n const {\n item,\n item: {\n dsId,\n itemOpts: { label, RightComponent },\n CollapsedComponent = () => null,\n },\n ctx,\n ctx: {\n leftNavProps: { labelOverflow, openedItem },\n selectedItem,\n },\n } = props;\n\n const isSelected = selectedItem === dsId;\n\n const shadowStyle = useCallback(\n (theme) =>\n !openedItem\n ? notOpenedShadowStyle(isSelected)(theme)\n : `box-shadow: inherit`,\n [isSelected, !openedItem],\n );\n\n return (\n <ItemRenderer\n item={{\n ...item,\n itemOpts: {\n ariaLabel: typeof label === 'string' ? label : '',\n ariaRole: 'link',\n ...item.itemOpts,\n },\n }}\n shadowStyle={shadowStyle}\n >\n <Grid\n cols={['38px']}\n gutter=\"1px\"\n pl={0}\n justifyItems=\"center\"\n data-testid=\"leftnav-leftcomponent\"\n >\n <CollapsedComponent item={item} ctx={ctx} />\n </Grid>\n <StyledLabel\n ml=\"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 mt=\"xxxs\" pr=\"xxs2\" data-testid=\"leftnav-right-component\">\n {RightComponent && <RightComponent ctx={ctx} item={item} />}\n </Grid>\n </ItemRenderer>\n );\n};\n"],"names":["notOpenedShadowStyle","isSelected","theme","colors","brand","neutral","ItemLink","props","item","dsId","itemOpts","label","RightComponent","CollapsedComponent","ctx","leftNavProps","labelOverflow","openedItem","selectedItem","shadowStyle","useCallback","React","ItemRenderer","ariaLabel","ariaRole","Grid","StyledLabel","SimpleTruncatedTooltipText"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,IAAMA,oBAAoB,GAAG,SAAvBA,oBAAuB,CAACC,UAAD;AAAA,SAAyB,UAACC,KAAD;AAAA,qDAGlDD,UAAU,GAAGC,KAAK,CAACC,MAAN,CAAaC,KAAb,CAAmB,GAAnB,CAAH,GAA6B,aAHW,8DAQhDH,UAAU,GAAGC,KAAK,CAACC,MAAN,CAAaC,KAAb,CAAmB,GAAnB,CAAH,GAA6BF,KAAK,CAACC,MAAN,CAAaE,OAAb,CAAqB,GAArB,CARS,oEAapBH,KAAK,CAACC,MAAN,CAAaC,KAAb,CAAmB,GAAnB,CAboB;AAAA,GAAzB;AAAA,CAA7B;;IAiBaE,QAAQ,GAAG,SAAXA,QAAW,CAACC,KAAD,EAAwC;AAC9D,MACEC,IADF,GAYID,KAZJ,CACEC,IADF;AAAA,oBAYID,KAZJ,CAEEC,IAFF;AAAA,MAGIC,IAHJ,eAGIA,IAHJ;AAAA,yCAIIC,QAJJ;AAAA,MAIgBC,KAJhB,wBAIgBA,KAJhB;AAAA,MAIuBC,cAJvB,wBAIuBA,cAJvB;AAAA,0CAKIC,kBALJ;AAAA,MAKIA,kBALJ,sCAKyB;AAAA,WAAM,IAAN;AAAA,GALzB;AAAA,MAOEC,GAPF,GAYIP,KAZJ,CAOEO,GAPF;AAAA,mBAYIP,KAZJ,CAQEO,GARF;AAAA,yCASIC,YATJ;AAAA,MASoBC,aATpB,yBASoBA,aATpB;AAAA,MASmCC,UATnC,yBASmCA,UATnC;AAAA,MAUIC,YAVJ,cAUIA,YAV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AAAgB,IAAA,GAAG,EAAEP,GAArB;AAA0B,IAAA,IAAI,EAAEN;AAAhC,IADrB,CAjCF,CADF;AAuCD;;;;"}
|
|
@@ -7,13 +7,8 @@ var React = require('react');
|
|
|
7
7
|
var Grid = require('@elliemae/ds-grid');
|
|
8
8
|
var exportedRelated_ItemRenderer_index = require('../../exported-related/ItemRenderer/index.js');
|
|
9
9
|
require('@babel/runtime/helpers/extends');
|
|
10
|
-
require('@elliemae/ds-icons
|
|
11
|
-
require('@elliemae/ds-icons/Notifications');
|
|
12
|
-
require('@elliemae/ds-icons/ExceptionsSmallFill');
|
|
13
|
-
require('@elliemae/ds-icons/AlertsSmallFill');
|
|
14
|
-
require('@elliemae/ds-icons/MessagesSmallFill');
|
|
10
|
+
require('@elliemae/ds-icons');
|
|
15
11
|
require('styled-components');
|
|
16
|
-
require('@elliemae/ds-icons/OpenWindow');
|
|
17
12
|
var outOfTheBox_ItemSection_styled = require('./styled.js');
|
|
18
13
|
require('../../exported-related/ItemRenderer/styled.js');
|
|
19
14
|
require('../../LeftNavigationContext.js');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/outOfTheBox/ItemSection/index.tsx"],"sourcesContent":["import React from 'react';\nimport Grid from '@elliemae/ds-grid';\nimport { ItemRenderer } from '../../exported-related/index';\nimport type { ComponentProps } from '../../index.d';\nimport { StyledLabel, StyledRightLabel, StyledVerticalSeparator } from './styled';\n\nexport const ItemSection = (props: ComponentProps): JSX.Element => {\n const {\n item,\n item: {\n itemOpts: { label, LeftComponent, RightComponent, labelRightSection },\n },\n ctx,\n ctx: { setFocusedItem },\n } = props;\n\n return (\n <ItemRenderer\n item={{\n ...item,\n itemOpts: { ...item.itemOpts, selectable: false, focuseable: false },\n CollapsedComponent: null,\n }}\n minHeight=\"32px\"\n paddingTop=\"8px\"\n >\n <Grid cols={['min-content', 'auto', 'min-content', 'auto']} pl=\"xxs\" alignItems=\"center\">\n {LeftComponent ? <LeftComponent ctx={ctx} item={item} /> : <div />}\n <StyledLabel>{label}</StyledLabel>\n <StyledVerticalSeparator />\n <StyledRightLabel>{labelRightSection}</StyledRightLabel>\n </Grid>\n <Grid\n ml=\"auto\"\n onFocus={(e) => {\n setFocusedItem(null);\n e.stopPropagation();\n }}\n onKeyDown={(e) => e.stopPropagation()}\n pr=\"xxs2\"\n alignItems=\"center\"\n data-testid=\"leftnav-right-component\"\n >\n {RightComponent && <RightComponent ctx={ctx} item={item} />}\n </Grid>\n </ItemRenderer>\n );\n};\n"],"names":["ItemSection","props","item","itemOpts","label","LeftComponent","RightComponent","labelRightSection","ctx","setFocusedItem","React","ItemRenderer","selectable","focuseable","CollapsedComponent","Grid","StyledLabel","StyledVerticalSeparator","StyledRightLabel","e","stopPropagation"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/outOfTheBox/ItemSection/index.tsx"],"sourcesContent":["import React from 'react';\nimport Grid from '@elliemae/ds-grid';\nimport { ItemRenderer } from '../../exported-related/index';\nimport type { ComponentProps } from '../../index.d';\nimport { StyledLabel, StyledRightLabel, StyledVerticalSeparator } from './styled';\n\nexport const ItemSection = (props: ComponentProps): JSX.Element => {\n const {\n item,\n item: {\n itemOpts: { label, LeftComponent, RightComponent, labelRightSection },\n },\n ctx,\n ctx: { setFocusedItem },\n } = props;\n\n return (\n <ItemRenderer\n item={{\n ...item,\n itemOpts: { ...item.itemOpts, selectable: false, focuseable: false },\n CollapsedComponent: null,\n }}\n minHeight=\"32px\"\n paddingTop=\"8px\"\n >\n <Grid cols={['min-content', 'auto', 'min-content', 'auto']} pl=\"xxs\" alignItems=\"center\">\n {LeftComponent ? <LeftComponent ctx={ctx} item={item} /> : <div />}\n <StyledLabel>{label}</StyledLabel>\n <StyledVerticalSeparator />\n <StyledRightLabel>{labelRightSection}</StyledRightLabel>\n </Grid>\n <Grid\n ml=\"auto\"\n onFocus={(e) => {\n setFocusedItem(null);\n e.stopPropagation();\n }}\n onKeyDown={(e) => e.stopPropagation()}\n pr=\"xxs2\"\n alignItems=\"center\"\n data-testid=\"leftnav-right-component\"\n >\n {RightComponent && <RightComponent ctx={ctx} item={item} />}\n </Grid>\n </ItemRenderer>\n );\n};\n"],"names":["ItemSection","props","item","itemOpts","label","LeftComponent","RightComponent","labelRightSection","ctx","setFocusedItem","React","ItemRenderer","selectable","focuseable","CollapsedComponent","Grid","StyledLabel","StyledVerticalSeparator","StyledRightLabel","e","stopPropagation"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;IAMaA,WAAW,GAAG,SAAdA,WAAc,CAACC,KAAD,EAAwC;AACjE,MACEC,IADF,GAOID,KAPJ,CACEC,IADF;AAAA,6BAOID,KAPJ,CAEEC,IAFF,CAGIC,QAHJ;AAAA,MAGgBC,KAHhB,wBAGgBA,KAHhB;AAAA,MAGuBC,aAHvB,wBAGuBA,aAHvB;AAAA,MAGsCC,cAHtC,wBAGsCA,cAHtC;AAAA,MAGsDC,iBAHtD,wBAGsDA,iBAHtD;AAAA,MAKEC,GALF,GAOIP,KAPJ,CAKEO,GALF;AAAA,MAMSC,cANT,GAOIR,KAPJ,CAMEO,GANF,CAMSC,cANT;AASA,sBACEC,wCAACC,+CAAD;AACE,IAAA,IAAI,kCACCT,IADD;AAEFC,MAAAA,QAAQ,kCAAOD,IAAI,CAACC,QAAZ;AAAsBS,QAAAA,UAAU,EAAE,KAAlC;AAAyCC,QAAAA,UAAU,EAAE;AAArD,QAFN;AAGFC,MAAAA,kBAAkB,EAAE;AAHlB,MADN;AAME,IAAA,SAAS,EAAC,MANZ;AAOE,IAAA,UAAU,EAAC;AAPb,kBASEJ,wCAACK,wBAAD;AAAM,IAAA,IAAI,EAAE,CAAC,aAAD,EAAgB,MAAhB,EAAwB,aAAxB,EAAuC,MAAvC,CAAZ;AAA4D,IAAA,EAAE,EAAC,KAA/D;AAAqE,IAAA,UAAU,EAAC;AAAhF,KACGV,aAAa,gBAAGK,wCAAC,aAAD;AAAe,IAAA,GAAG,EAAEF,GAApB;AAAyB,IAAA,IAAI,EAAEN;AAA/B,IAAH,gBAA6CQ,oDAD7D,eAEEA,wCAACM,0CAAD,QAAcZ,KAAd,CAFF,eAGEM,wCAACO,sDAAD,OAHF,eAIEP,wCAACQ,+CAAD,QAAmBX,iBAAnB,CAJF,CATF,eAeEG,wCAACK,wBAAD;AACE,IAAA,EAAE,EAAC,MADL;AAEE,IAAA,OAAO,EAAE,iBAACI,CAAD,EAAO;AACdV,MAAAA,cAAc,CAAC,IAAD,CAAd;AACAU,MAAAA,CAAC,CAACC,eAAF;AACD,KALH;AAME,IAAA,SAAS,EAAE,mBAACD,CAAD;AAAA,aAAOA,CAAC,CAACC,eAAF,EAAP;AAAA,KANb;AAOE,IAAA,EAAE,EAAC,MAPL;AAQE,IAAA,UAAU,EAAC,QARb;AASE,mBAAY;AATd,KAWGd,cAAc,iBAAII,wCAAC,cAAD;AAAgB,IAAA,GAAG,EAAEF,GAArB;AAA0B,IAAA,IAAI,EAAEN;AAAhC,IAXrB,CAfF,CADF;AA+BD;;;;"}
|
|
@@ -7,13 +7,8 @@ var React = require('react');
|
|
|
7
7
|
var styled = require('styled-components');
|
|
8
8
|
var exportedRelated_ItemRenderer_index = require('../../exported-related/ItemRenderer/index.js');
|
|
9
9
|
require('@babel/runtime/helpers/extends');
|
|
10
|
-
require('@elliemae/ds-icons
|
|
11
|
-
require('@elliemae/ds-icons/Notifications');
|
|
12
|
-
require('@elliemae/ds-icons/ExceptionsSmallFill');
|
|
13
|
-
require('@elliemae/ds-icons/AlertsSmallFill');
|
|
14
|
-
require('@elliemae/ds-icons/MessagesSmallFill');
|
|
10
|
+
require('@elliemae/ds-icons');
|
|
15
11
|
require('@elliemae/ds-grid');
|
|
16
|
-
require('@elliemae/ds-icons/OpenWindow');
|
|
17
12
|
require('../../exported-related/ItemRenderer/styled.js');
|
|
18
13
|
require('../../LeftNavigationContext.js');
|
|
19
14
|
require('../../exported-related/ItemRenderer/usePropsWithDefaults.js');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/outOfTheBox/ItemSeparator/index.tsx"],"sourcesContent":["import React from 'react';\nimport styled from 'styled-components';\nimport { ItemRenderer } from '../../exported-related/index';\nimport type { ComponentProps } from '../../index.d';\n\nconst StyledSeparator = styled.div`\n height: 1px;\n background-color: ${(props) => props.theme.colors.neutral[100]};\n width: auto;\n margin: ${(props) => props.theme.space.xxxs} 0;\n margin-left: ${(props) => props.theme.space.xxxs};\n grid-column: span 3;\n`;\n\nexport const ItemSeparator = (props: ComponentProps): JSX.Element => {\n const { item } = props;\n return (\n <ItemRenderer\n item={{\n ...item,\n itemOpts: {\n ...item.itemOpts,\n selectable: false,\n focuseable: false,\n },\n CollapsedComponent: null,\n }}\n minHeight=\"1px\"\n paddingTop=\"0px\"\n >\n <StyledSeparator data-testid=\"leftnav-separator-subitem\" />\n </ItemRenderer>\n );\n};\n"],"names":["StyledSeparator","styled","div","props","theme","colors","neutral","space","xxxs","ItemSeparator","item","React","ItemRenderer","itemOpts","selectable","focuseable","CollapsedComponent"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/outOfTheBox/ItemSeparator/index.tsx"],"sourcesContent":["import React from 'react';\nimport styled from 'styled-components';\nimport { ItemRenderer } from '../../exported-related/index';\nimport type { ComponentProps } from '../../index.d';\n\nconst StyledSeparator = styled.div`\n height: 1px;\n background-color: ${(props) => props.theme.colors.neutral[100]};\n width: auto;\n margin: ${(props) => props.theme.space.xxxs} 0;\n margin-left: ${(props) => props.theme.space.xxxs};\n grid-column: span 3;\n`;\n\nexport const ItemSeparator = (props: ComponentProps): JSX.Element => {\n const { item } = props;\n return (\n <ItemRenderer\n item={{\n ...item,\n itemOpts: {\n ...item.itemOpts,\n selectable: false,\n focuseable: false,\n },\n CollapsedComponent: null,\n }}\n minHeight=\"1px\"\n paddingTop=\"0px\"\n >\n <StyledSeparator data-testid=\"leftnav-separator-subitem\" />\n </ItemRenderer>\n );\n};\n"],"names":["StyledSeparator","styled","div","props","theme","colors","neutral","space","xxxs","ItemSeparator","item","React","ItemRenderer","itemOpts","selectable","focuseable","CollapsedComponent"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,IAAMA,eAAe,gBAAGC,0BAAM,CAACC,GAAV;AAAA;AAAA,uGAEC,UAACC,KAAD;AAAA,SAAWA,KAAK,CAACC,KAAN,CAAYC,MAAZ,CAAmBC,OAAnB,CAA2B,GAA3B,CAAX;AAAA,CAFD,EAIT,UAACH,KAAD;AAAA,SAAWA,KAAK,CAACC,KAAN,CAAYG,KAAZ,CAAkBC,IAA7B;AAAA,CAJS,EAKJ,UAACL,KAAD;AAAA,SAAWA,KAAK,CAACC,KAAN,CAAYG,KAAZ,CAAkBC,IAA7B;AAAA,CALI,CAArB;IASaC,aAAa,GAAG,SAAhBA,aAAgB,CAACN,KAAD,EAAwC;AACnE,MAAQO,IAAR,GAAiBP,KAAjB,CAAQO,IAAR;AACA,sBACEC,wCAACC,+CAAD;AACE,IAAA,IAAI,kCACCF,IADD;AAEFG,MAAAA,QAAQ,kCACHH,IAAI,CAACG,QADF;AAENC,QAAAA,UAAU,EAAE,KAFN;AAGNC,QAAAA,UAAU,EAAE;AAHN,QAFN;AAOFC,MAAAA,kBAAkB,EAAE;AAPlB,MADN;AAUE,IAAA,SAAS,EAAC,KAVZ;AAWE,IAAA,UAAU,EAAC;AAXb,kBAaEL,wCAAC,eAAD;AAAiB,mBAAY;AAA7B,IAbF,CADF;AAiBD;;;;"}
|
|
@@ -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
|
|
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_ItemSubmenu_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/ItemSubmenu/index.tsx"],"sourcesContent":["/* eslint-disable max-lines */\n/* eslint-disable complexity */\n/* eslint-disable indent */\nimport React, { useCallback } 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\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nconst notOpenedShadowStyle = (isSelected: boolean) => (theme: any) =>\n `\n box-shadow: inset 4px 0 0 0 ${\n isSelected ? theme.colors.brand[400] : 'transparent'\n };\n\n :hover {\n box-shadow: inset 4px 0 0 0 ${\n isSelected ? theme.colors.brand[400] : theme.colors.neutral[300]\n };\n }\n\n :active {\n box-shadow: inset 4px 0 0 0 ${theme.colors.brand[400]};\n }\n`;\n\nexport const ItemSubmenu = (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 selectedItem,\n setSelectedItem,\n setFocusedItem,\n },\n } = props;\n\n const opened = openedItem === dsId;\n\n const isSelected = selectedItem === dsId;\n\n const shadowStyle = useCallback(\n (theme) =>\n !openedItem\n ? notOpenedShadowStyle(isSelected)(theme)\n : `box-shadow: inherit`,\n [isSelected, !openedItem],\n );\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 ...item.itemOpts,\n ariaLabel,\n ariaExpanded: opened,\n openable: expandedForAnimation && !opened,\n closable: expandedForAnimation && opened,\n selectable: !opened,\n },\n }}\n shadowStyle={shadowStyle}\n hasBorderBottom={opened}\n borderBottomMr=\"12px\"\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 e.stopPropagation();\n setFocusedItem(null);\n }}\n onKeyDown={(e) => e.stopPropagation()}\n onClick={(e) => openedItem && 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 e.stopPropagation();\n setFocusedItem(null);\n }}\n onKeyDown={(e) => e.stopPropagation()}\n onClick={(e) => openedItem && e.stopPropagation()}\n >\n <BottomComponent ctx={ctx} item={item} />\n </Grid>\n )}\n </ItemRenderer>\n );\n};\n"],"names":["notOpenedShadowStyle","isSelected","theme","colors","brand","neutral","ItemSubmenu","props","item","dsId","itemOpts","label","RightComponent","BottomComponent","CollapsedComponent","ctx","leftNavProps","openedItem","labelOverflow","onItemClick","expandedForAnimation","selectedItem","setSelectedItem","setFocusedItem","opened","shadowStyle","useCallback","ariaLabel","React","ItemRenderer","ariaExpanded","openable","closable","selectable","Grid","StyledChevronLeft","e","stopPropagation","CHEVRON_BACK_DS_ID","StyledLabel","SimpleTruncatedTooltipText","gridColumn"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/outOfTheBox/ItemSubmenu/index.tsx"],"sourcesContent":["/* eslint-disable max-lines */\n/* eslint-disable complexity */\n/* eslint-disable indent */\nimport React, { useCallback } 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\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nconst notOpenedShadowStyle = (isSelected: boolean) => (theme: any) =>\n `\n box-shadow: inset 4px 0 0 0 ${\n isSelected ? theme.colors.brand[400] : 'transparent'\n };\n\n :hover {\n box-shadow: inset 4px 0 0 0 ${\n isSelected ? theme.colors.brand[400] : theme.colors.neutral[300]\n };\n }\n\n :active {\n box-shadow: inset 4px 0 0 0 ${theme.colors.brand[400]};\n }\n`;\n\nexport const ItemSubmenu = (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 selectedItem,\n setSelectedItem,\n setFocusedItem,\n },\n } = props;\n\n const opened = openedItem === dsId;\n\n const isSelected = selectedItem === dsId;\n\n const shadowStyle = useCallback(\n (theme) =>\n !openedItem\n ? notOpenedShadowStyle(isSelected)(theme)\n : `box-shadow: inherit`,\n [isSelected, !openedItem],\n );\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 ...item.itemOpts,\n ariaLabel,\n ariaExpanded: opened,\n openable: expandedForAnimation && !opened,\n closable: expandedForAnimation && opened,\n selectable: !opened,\n },\n }}\n shadowStyle={shadowStyle}\n hasBorderBottom={opened}\n borderBottomMr=\"12px\"\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 e.stopPropagation();\n setFocusedItem(null);\n }}\n onKeyDown={(e) => e.stopPropagation()}\n onClick={(e) => openedItem && 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 e.stopPropagation();\n setFocusedItem(null);\n }}\n onKeyDown={(e) => e.stopPropagation()}\n onClick={(e) => openedItem && e.stopPropagation()}\n >\n <BottomComponent ctx={ctx} item={item} />\n </Grid>\n )}\n </ItemRenderer>\n );\n};\n"],"names":["notOpenedShadowStyle","isSelected","theme","colors","brand","neutral","ItemSubmenu","props","item","dsId","itemOpts","label","RightComponent","BottomComponent","CollapsedComponent","ctx","leftNavProps","openedItem","labelOverflow","onItemClick","expandedForAnimation","selectedItem","setSelectedItem","setFocusedItem","opened","shadowStyle","useCallback","ariaLabel","React","ItemRenderer","ariaExpanded","openable","closable","selectable","Grid","StyledChevronLeft","e","stopPropagation","CHEVRON_BACK_DS_ID","StyledLabel","SimpleTruncatedTooltipText","gridColumn"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAYA,IAAMA,oBAAoB,GAAG,SAAvBA,oBAAuB,CAACC,UAAD;AAAA,SAAyB,UAACC,KAAD;AAAA,qDAGlDD,UAAU,GAAGC,KAAK,CAACC,MAAN,CAAaC,KAAb,CAAm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AAGE,IAAA,EAAE,EAAC,KAHL;AAIE,IAAA,EAAE,EAAC,KAJL;AAKE,IAAA,OAAO,EAAE,iBAACL,CAAD,EAAO;AACdA,MAAAA,CAAC,CAACC,eAAF;AACAd,MAAAA,cAAc,CAAC,IAAD,CAAd;AACD,KARH;AASE,IAAA,SAAS,EAAE,mBAACa,CAAD;AAAA,aAAOA,CAAC,CAACC,eAAF,EAAP;AAAA,KATb;AAUE,IAAA,OAAO,EAAE,iBAACD,CAAD;AAAA,aAAOnB,UAAU,IAAImB,CAAC,CAACC,eAAF,EAArB;AAAA;AAVX,kBAYET,wCAAC,eAAD;AAAiB,IAAA,GAAG,EAAEb,GAAtB;AAA2B,IAAA,IAAI,EAAEP;AAAjC,IAZF,CAtEJ,CADF;AAwFD;;;;"}
|
|
@@ -3,13 +3,12 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var Grid = require('@elliemae/ds-grid');
|
|
6
|
-
var
|
|
6
|
+
var dsIcons = require('@elliemae/ds-icons');
|
|
7
7
|
var styled = require('styled-components');
|
|
8
8
|
|
|
9
9
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
10
10
|
|
|
11
11
|
var Grid__default = /*#__PURE__*/_interopDefaultLegacy(Grid);
|
|
12
|
-
var ChevronLeft__default = /*#__PURE__*/_interopDefaultLegacy(ChevronLeft);
|
|
13
12
|
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
14
13
|
|
|
15
14
|
var StyledLabel = /*#__PURE__*/styled__default['default'](Grid__default['default']).withConfig({
|
|
@@ -19,7 +18,7 @@ var StyledLabel = /*#__PURE__*/styled__default['default'](Grid__default['default
|
|
|
19
18
|
}, function (props) {
|
|
20
19
|
return props.labelOverflow === 'wrapAll' ? 'break-all' : 'normal';
|
|
21
20
|
});
|
|
22
|
-
var StyledChevronLeft = /*#__PURE__*/styled__default['default'](
|
|
21
|
+
var StyledChevronLeft = /*#__PURE__*/styled__default['default'](dsIcons.ChevronSmallLeft).withConfig({
|
|
23
22
|
componentId: "sc-1hegp8y-1"
|
|
24
23
|
})(["cursor:pointer;:focus{outline:1px solid ", ";}"], function (props) {
|
|
25
24
|
return props.theme.colors.brand[800];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styled.js","sources":["../../../../src/outOfTheBox/ItemSubmenu/styled.tsx"],"sourcesContent":["import Grid from '@elliemae/ds-grid';\nimport
|
|
1
|
+
{"version":3,"file":"styled.js","sources":["../../../../src/outOfTheBox/ItemSubmenu/styled.tsx"],"sourcesContent":["import Grid from '@elliemae/ds-grid';\nimport { ChevronSmallLeft } from '@elliemae/ds-icons';\nimport styled from 'styled-components';\n\nexport const StyledLabel = styled(Grid)`\n font-size: 14px;\n color: ${(props) => props.theme.colors.neutral[800]};\n word-break: ${(props) => (props.labelOverflow === 'wrapAll' ? 'break-all' : 'normal')};\n`;\n\nexport const StyledChevronLeft = styled(ChevronSmallLeft)`\n cursor: pointer;\n :focus {\n outline: 1px solid ${(props) => props.theme.colors.brand[800]};\n }\n`;\n"],"names":["StyledLabel","styled","Grid","props","theme","colors","neutral","labelOverflow","StyledChevronLeft","ChevronSmallLeft","brand"],"mappings":";;;;;;;;;;;;;IAIaA,WAAW,gBAAGC,0BAAM,CAACC,wBAAD,CAAT;AAAA;AAAA,mDAEb,UAACC,KAAD;AAAA,SAAWA,KAAK,CAACC,KAAN,CAAYC,MAAZ,CAAmBC,OAAnB,CAA2B,GAA3B,CAAX;AAAA,CAFa,EAGR,UAACH,KAAD;AAAA,SAAYA,KAAK,CAACI,aAAN,KAAwB,SAAxB,GAAoC,WAApC,GAAkD,QAA9D;AAAA,CAHQ;IAMXC,iBAAiB,gBAAGP,0BAAM,CAACQ,wBAAD,CAAT;AAAA;AAAA,uDAGL,UAACN,KAAD;AAAA,SAAWA,KAAK,CAACC,KAAN,CAAYC,MAAZ,CAAmBK,KAAnB,CAAyB,GAAzB,CAAX;AAAA,CAHK;;;;;"}
|
|
@@ -7,14 +7,9 @@ var React = require('react');
|
|
|
7
7
|
var dsTruncatedTooltipText = require('@elliemae/ds-truncated-tooltip-text');
|
|
8
8
|
var exportedRelated_ItemRenderer_index = require('../../exported-related/ItemRenderer/index.js');
|
|
9
9
|
require('@babel/runtime/helpers/extends');
|
|
10
|
-
require('@elliemae/ds-icons
|
|
11
|
-
require('@elliemae/ds-icons/Notifications');
|
|
12
|
-
require('@elliemae/ds-icons/ExceptionsSmallFill');
|
|
13
|
-
require('@elliemae/ds-icons/AlertsSmallFill');
|
|
14
|
-
require('@elliemae/ds-icons/MessagesSmallFill');
|
|
10
|
+
require('@elliemae/ds-icons');
|
|
15
11
|
require('styled-components');
|
|
16
12
|
require('@elliemae/ds-grid');
|
|
17
|
-
require('@elliemae/ds-icons/OpenWindow');
|
|
18
13
|
var outOfTheBox_ItemTextLabel_styled = require('./styled.js');
|
|
19
14
|
require('../../exported-related/ItemRenderer/styled.js');
|
|
20
15
|
require('../../LeftNavigationContext.js');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/outOfTheBox/ItemTextLabel/index.tsx"],"sourcesContent":["import React from 'react';\nimport { SimpleTruncatedTooltipText } from '@elliemae/ds-truncated-tooltip-text';\nimport { ItemRenderer } from '../../exported-related/index';\nimport type { ComponentProps } from '../../index.d';\nimport { StyledLabel } from './styled';\n\nexport const ItemTextLabel = (props: ComponentProps): JSX.Element => {\n const {\n item,\n item: {\n itemOpts: {\n label,\n labelOverflow: itemLabelOverflow,\n labelBold,\n labelColor,\n },\n },\n ctx: {\n leftNavProps: { labelOverflow: leftNavLabelOverflow },\n },\n } = props;\n\n const labelOverflow = itemLabelOverflow || leftNavLabelOverflow;\n\n return (\n <ItemRenderer\n item={{\n ...item,\n CollapsedComponent: null,\n }}\n minHeight=\"32px\"\n paddingTop=\"8px\"\n >\n {/* Empty LeftComponent */} <div />\n <StyledLabel\n data-testid=\"leftnav-list-item-label\"\n pl=\"24px\"\n labelOverflow={labelOverflow}\n labelBold={labelBold}\n labelColor={labelColor}\n mr=\"xxs2\"\n >\n {labelOverflow === 'truncate' ? (\n <SimpleTruncatedTooltipText value={label} placement=\"bottom-start\" />\n ) : (\n label\n )}\n </StyledLabel>\n </ItemRenderer>\n );\n};\n"],"names":["ItemTextLabel","props","item","itemOpts","label","itemLabelOverflow","labelOverflow","labelBold","labelColor","leftNavLabelOverflow","ctx","leftNavProps","React","ItemRenderer","CollapsedComponent","StyledLabel","SimpleTruncatedTooltipText"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/outOfTheBox/ItemTextLabel/index.tsx"],"sourcesContent":["import React from 'react';\nimport { SimpleTruncatedTooltipText } from '@elliemae/ds-truncated-tooltip-text';\nimport { ItemRenderer } from '../../exported-related/index';\nimport type { ComponentProps } from '../../index.d';\nimport { StyledLabel } from './styled';\n\nexport const ItemTextLabel = (props: ComponentProps): JSX.Element => {\n const {\n item,\n item: {\n itemOpts: {\n label,\n labelOverflow: itemLabelOverflow,\n labelBold,\n labelColor,\n },\n },\n ctx: {\n leftNavProps: { labelOverflow: leftNavLabelOverflow },\n },\n } = props;\n\n const labelOverflow = itemLabelOverflow || leftNavLabelOverflow;\n\n return (\n <ItemRenderer\n item={{\n ...item,\n CollapsedComponent: null,\n }}\n minHeight=\"32px\"\n paddingTop=\"8px\"\n >\n {/* Empty LeftComponent */} <div />\n <StyledLabel\n data-testid=\"leftnav-list-item-label\"\n pl=\"24px\"\n labelOverflow={labelOverflow}\n labelBold={labelBold}\n labelColor={labelColor}\n mr=\"xxs2\"\n >\n {labelOverflow === 'truncate' ? (\n <SimpleTruncatedTooltipText value={label} placement=\"bottom-start\" />\n ) : (\n label\n )}\n </StyledLabel>\n </ItemRenderer>\n );\n};\n"],"names":["ItemTextLabel","props","item","itemOpts","label","itemLabelOverflow","labelOverflow","labelBold","labelColor","leftNavLabelOverflow","ctx","leftNavProps","React","ItemRenderer","CollapsedComponent","StyledLabel","SimpleTruncatedTooltipText"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;IAMaA,aAAa,GAAG,SAAhBA,aAAgB,CAACC,KAAD,EAAwC;AACnE,MACEC,IADF,GAaID,KAbJ,CACEC,IADF;AAAA,6BAaID,KAbJ,CAEEC,IAFF,CAGIC,QAHJ;AAAA,MAIMC,KAJN,wBAIMA,KAJN;AAAA,MAKqBC,iBALrB,wBAKMC,aALN;AAAA,MAMMC,SANN,wBAMMA,SANN;AAAA,MAOMC,UAPN,wBAOMA,UAPN;AAAA,MAWmCC,oBAXnC,GAaIR,KAbJ,CAUES,GAVF,CAWIC,YAXJ,CAWoBL,aAXpB;AAeA,MAAMA,aAAa,GAAGD,iBAAiB,IAAII,oBAA3C;AAEA,sBACEG,wCAACC,+CAAD;AACE,IAAA,IAAI,kCACCX,IADD;AAEFY,MAAAA,kBAAkB,EAAE;AAFlB,MADN;AAKE,IAAA,SAAS,EAAC,MALZ;AAME,IAAA,UAAU,EAAC;AANb,uBAQ8BF,oDAR9B,eASEA,wCAACG,4CAAD;AACE,mBAAY,yBADd;AAEE,IAAA,EAAE,EAAC,MAFL;AAGE,IAAA,aAAa,EAAET,aAHjB;AAIE,IAAA,SAAS,EAAEC,SAJb;AAKE,IAAA,UAAU,EAAEC,UALd;AAME,IAAA,EAAE,EAAC;AANL,KAQGF,aAAa,KAAK,UAAlB,gBACCM,wCAACI,iDAAD;AAA4B,IAAA,KAAK,EAAEZ,KAAnC;AAA0C,IAAA,SAAS,EAAC;AAApD,IADD,GAGCA,KAXJ,CATF,CADF;AA0BD;;;;"}
|
|
@@ -7,18 +7,11 @@ var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
|
7
7
|
var React = require('react');
|
|
8
8
|
var Grid = require('@elliemae/ds-grid');
|
|
9
9
|
var dsTruncatedTooltipText = require('@elliemae/ds-truncated-tooltip-text');
|
|
10
|
-
var
|
|
11
|
-
var ArrowheadDown = require('@elliemae/ds-icons/ArrowheadDown');
|
|
10
|
+
var dsIcons = require('@elliemae/ds-icons');
|
|
12
11
|
var exportedRelated_constants = require('../../exported-related/constants.js');
|
|
13
12
|
var exportedRelated_ItemRenderer_index = require('../../exported-related/ItemRenderer/index.js');
|
|
14
13
|
require('@babel/runtime/helpers/extends');
|
|
15
|
-
require('@elliemae/ds-icons/ChevronSmallRight');
|
|
16
|
-
require('@elliemae/ds-icons/Notifications');
|
|
17
|
-
require('@elliemae/ds-icons/ExceptionsSmallFill');
|
|
18
|
-
require('@elliemae/ds-icons/AlertsSmallFill');
|
|
19
|
-
require('@elliemae/ds-icons/MessagesSmallFill');
|
|
20
14
|
require('styled-components');
|
|
21
|
-
require('@elliemae/ds-icons/OpenWindow');
|
|
22
15
|
var outOfTheBox_ItemUncontrolledDrilldown_styled = require('./styled.js');
|
|
23
16
|
var outOfTheBox_ItemSeparator_index = require('../ItemSeparator/index.js');
|
|
24
17
|
var outOfTheBox_ItemWithDate_index = require('../ItemWithDate/index.js');
|
|
@@ -36,8 +29,6 @@ var _toConsumableArray__default = /*#__PURE__*/_interopDefaultLegacy(_toConsumab
|
|
|
36
29
|
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
|
|
37
30
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
38
31
|
var Grid__default = /*#__PURE__*/_interopDefaultLegacy(Grid);
|
|
39
|
-
var ArrowheadRight__default = /*#__PURE__*/_interopDefaultLegacy(ArrowheadRight);
|
|
40
|
-
var ArrowheadDown__default = /*#__PURE__*/_interopDefaultLegacy(ArrowheadDown);
|
|
41
32
|
|
|
42
33
|
var _outOfTheBoxSubitemsC;
|
|
43
34
|
|
|
@@ -104,7 +95,7 @@ var ItemUncontrolledDrilldown = function ItemUncontrolledDrilldown(props) {
|
|
|
104
95
|
var opened = openedDrilldowns.includes(dsId);
|
|
105
96
|
var labelOverflow = itemLabelOverflow || leftNavLabelOverflow;
|
|
106
97
|
var arrowIcon = React.useMemo(function () {
|
|
107
|
-
var Component = opened ?
|
|
98
|
+
var Component = opened ? dsIcons.ArrowheadDown : dsIcons.ArrowheadRight;
|
|
108
99
|
return /*#__PURE__*/React__default['default'].createElement(Component, {
|
|
109
100
|
width: "24px",
|
|
110
101
|
height: "18px",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/outOfTheBox/ItemUncontrolledDrilldown/index.tsx"],"sourcesContent":["/* eslint-disable max-lines */\nimport React, { useMemo, useCallback, useEffect } from 'react';\nimport Grid from '@elliemae/ds-grid';\nimport { SimpleTruncatedTooltipText } from '@elliemae/ds-truncated-tooltip-text';\nimport
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/outOfTheBox/ItemUncontrolledDrilldown/index.tsx"],"sourcesContent":["/* eslint-disable max-lines */\nimport React, { useMemo, useCallback, useEffect } 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 { ItemTextLabel } from '../ItemTextLabel';\nimport type { ComponentProps } from '../../index.d';\n\n// Subitem mapping\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 [ITEM_TYPES.LEFT_NAV_ITEM_TEXT_LABEL]: ItemTextLabel,\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 ItemUncontrolledDrilldown = (props: ComponentProps): JSX.Element => {\n const {\n item,\n item: {\n dsId,\n itemOpts: {\n label,\n RightComponent,\n labelRightSection,\n labelOverflow: itemLabelOverflow,\n labelBold,\n labelColor,\n startOpened,\n items,\n },\n },\n ctx,\n ctx: {\n leftNavProps: { labelOverflow: leftNavLabelOverflow },\n openedDrilldowns,\n setOpenedDrilldowns,\n },\n } = props;\n\n // Start opened functionality\n useEffect(() => {\n if (startOpened) setOpenedDrilldowns([...openedDrilldowns, dsId]);\n }, []);\n\n const opened = openedDrilldowns.includes(dsId);\n\n const labelOverflow = itemLabelOverflow || leftNavLabelOverflow;\n\n const arrowIcon = useMemo(() => {\n const Component = opened ? ArrowheadDown : ArrowheadRight;\n return <Component width=\"24px\" height=\"18px\" color={['brand-primary', '800']} />;\n }, [opened]);\n\n // Array of subitems\n const subitems = useMemo(() => {\n if (!opened || !items) return [];\n return items.map((subitem) => <OutOfTheBoxMapSubitem item={subitem} ctx={ctx} key={subitem.dsId} />);\n }, [items, opened]);\n\n const handleOnClick = useCallback(() => {\n if (opened) setOpenedDrilldowns(openedDrilldowns.filter((openedDrilldown) => openedDrilldown !== dsId));\n else setOpenedDrilldowns([...openedDrilldowns, dsId]);\n }, [opened, setOpenedDrilldowns, openedDrilldowns]);\n\n return (\n <ItemRenderer\n item={{\n ...item,\n itemOpts: {\n ariaExpanded: opened,\n ariaRole: 'menuitem',\n ...item.itemOpts,\n openable: !opened,\n closable: opened,\n },\n CollapsedComponent: null,\n }}\n subitems={subitems}\n minHeight=\"32px\"\n paddingTop=\"8px\"\n onClick={handleOnClick}\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'}>{RightComponent && <RightComponent ctx={ctx} item={item} />}</Grid>\n </Grid>\n </ItemRenderer>\n );\n};\n"],"names":["outOfTheBoxSubitemsComponents","ITEM_TYPES","LEFT_NAV_ITEM_SEPARATOR","ItemSeparator","LEFT_NAV_ITEM_WITH_DATE","ItemWithDate","LEFT_NAV_ITEM_TEXT_LABEL","ItemTextLabel","OutOfTheBoxMapSubitem","props","item","type","Component","ctx","OutOfTheBoxComponent","currentIndent","itemOpts","indent","newItem","React","ItemUncontrolledDrilldown","dsId","label","RightComponent","labelRightSection","itemLabelOverflow","labelOverflow","labelBold","labelColor","startOpened","items","leftNavLabelOverflow","leftNavProps","openedDrilldowns","setOpenedDrilldowns","useEffect","opened","includes","arrowIcon","useMemo","ArrowheadDown","ArrowheadRight","subitems","map","subitem","handleOnClick","useCallback","filter","openedDrilldown","ItemRenderer","ariaExpanded","ariaRole","openable","closable","CollapsedComponent","Grid","StyledLabel","SimpleTruncatedTooltipText","StyledDate"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAYA;AACA,IAAMA,6BAAkF,2FACrFC,oCAAU,CAACC,uBAD0E,EAChDC,6CADgD,8DAErFF,oCAAU,CAACG,uBAF0E,EAEhDC,2CAFgD,8DAGrFJ,oCAAU,CAACK,wBAH0E,EAG/CC,6CAH+C,yBAAxF;;AAMA,IAAMC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AuGA,KAP1G,CApBF,eA6BEH,wCAACoC,wBAAD;AAAM,IAAA,EAAE,EAAC,MAAT;AAAgB,IAAA,IAAI,EAAE,CAAC,MAAD,EAAS,MAAT,CAAtB;AAAwC,IAAA,UAAU,EAAC;AAAnD,kBACEpC,wCAACuC,uDAAD;AAAY,IAAA,EAAE,EAAC,KAAf;AAAqB,mBAAY;AAAjC,KACGlC,iBADH,CADF,eAIEL,wCAACoC,wBAAD;AAAM,IAAA,EAAE,EAAEhC,cAAc,GAAG,KAAH,GAAW;AAAnC,KAA2CA,cAAc,iBAAIJ,wCAAC,cAAD;AAAgB,IAAA,GAAG,EAAEN,GAArB;AAA0B,IAAA,IAAI,EAAEH;AAAhC,IAA7D,CAJF,CA7BF,CADF;AAsCD;;;;"}
|
|
@@ -8,13 +8,8 @@ var Grid = require('@elliemae/ds-grid');
|
|
|
8
8
|
var dsTruncatedTooltipText = require('@elliemae/ds-truncated-tooltip-text');
|
|
9
9
|
var exportedRelated_ItemRenderer_index = require('../../exported-related/ItemRenderer/index.js');
|
|
10
10
|
require('@babel/runtime/helpers/extends');
|
|
11
|
-
require('@elliemae/ds-icons
|
|
12
|
-
require('@elliemae/ds-icons/Notifications');
|
|
13
|
-
require('@elliemae/ds-icons/ExceptionsSmallFill');
|
|
14
|
-
require('@elliemae/ds-icons/AlertsSmallFill');
|
|
15
|
-
require('@elliemae/ds-icons/MessagesSmallFill');
|
|
11
|
+
require('@elliemae/ds-icons');
|
|
16
12
|
require('styled-components');
|
|
17
|
-
require('@elliemae/ds-icons/OpenWindow');
|
|
18
13
|
var outOfTheBox_ItemWithDate_styled = require('./styled.js');
|
|
19
14
|
require('../../exported-related/ItemRenderer/styled.js');
|
|
20
15
|
require('../../LeftNavigationContext.js');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/outOfTheBox/ItemWithDate/index.tsx"],"sourcesContent":["import 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, StyledDate } from './styled';\n\nexport const ItemWithDate = (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 },\n },\n ctx,\n ctx: {\n leftNavProps: { labelOverflow: leftNavLabelOverflow },\n },\n } = props;\n\n const labelOverflow = itemLabelOverflow || leftNavLabelOverflow;\n\n return (\n <ItemRenderer\n item={{\n ...item,\n CollapsedComponent: null,\n }}\n minHeight=\"32px\"\n paddingTop=\"8px\"\n >\n {/* Empty LeftComponent */} <div />\n <StyledLabel\n pl=\"xxs\"\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":["ItemWithDate","props","item","itemOpts","label","RightComponent","labelRightSection","itemLabelOverflow","labelOverflow","labelBold","labelColor","ctx","leftNavLabelOverflow","leftNavProps","React","ItemRenderer","CollapsedComponent","StyledLabel","SimpleTruncatedTooltipText","Grid","StyledDate"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/outOfTheBox/ItemWithDate/index.tsx"],"sourcesContent":["import 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, StyledDate } from './styled';\n\nexport const ItemWithDate = (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 },\n },\n ctx,\n ctx: {\n leftNavProps: { labelOverflow: leftNavLabelOverflow },\n },\n } = props;\n\n const labelOverflow = itemLabelOverflow || leftNavLabelOverflow;\n\n return (\n <ItemRenderer\n item={{\n ...item,\n CollapsedComponent: null,\n }}\n minHeight=\"32px\"\n paddingTop=\"8px\"\n >\n {/* Empty LeftComponent */} <div />\n <StyledLabel\n pl=\"xxs\"\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":["ItemWithDate","props","item","itemOpts","label","RightComponent","labelRightSection","itemLabelOverflow","labelOverflow","labelBold","labelColor","ctx","leftNavLabelOverflow","leftNavProps","React","ItemRenderer","CollapsedComponent","StyledLabel","SimpleTruncatedTooltipText","Grid","StyledDate"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;IAOaA,YAAY,GAAG,SAAfA,YAAe,CAACC,KAAD,EAAwC;AAClE,MACEC,IADF,GAgBID,KAhBJ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G,KAAH,GAAW,KAD/B;AAEE,mBAAY;AAFd,KAIGA,cAAc,iBAAIS,wCAAC,cAAD;AAAgB,IAAA,GAAG,EAAEH,GAArB;AAA0B,IAAA,IAAI,EAAET;AAAhC,IAJrB,CAJF,CAvBF,CADF;AAqCD;;;;"}
|
package/cjs/outOfTheBox/index.js
CHANGED
|
@@ -8,12 +8,7 @@ require('react');
|
|
|
8
8
|
require('@elliemae/ds-grid');
|
|
9
9
|
require('styled-components');
|
|
10
10
|
require('@babel/runtime/helpers/extends');
|
|
11
|
-
require('@elliemae/ds-icons
|
|
12
|
-
require('@elliemae/ds-icons/Notifications');
|
|
13
|
-
require('@elliemae/ds-icons/ExceptionsSmallFill');
|
|
14
|
-
require('@elliemae/ds-icons/AlertsSmallFill');
|
|
15
|
-
require('@elliemae/ds-icons/MessagesSmallFill');
|
|
16
|
-
require('@elliemae/ds-icons/OpenWindow');
|
|
11
|
+
require('@elliemae/ds-icons');
|
|
17
12
|
var outOfTheBox_ItemControlledDrilldown_index = require('./ItemControlledDrilldown/index.js');
|
|
18
13
|
var outOfTheBox_ItemUncontrolledDrilldown_index = require('./ItemUncontrolledDrilldown/index.js');
|
|
19
14
|
var outOfTheBox_ItemHeader_index = require('./ItemHeader/index.js');
|
|
@@ -24,8 +19,6 @@ var outOfTheBox_ItemSubmenu_index = require('./ItemSubmenu/index.js');
|
|
|
24
19
|
var outOfTheBox_ItemTextLabel_index = require('./ItemTextLabel/index.js');
|
|
25
20
|
var outOfTheBox_ItemWithDate_index = require('./ItemWithDate/index.js');
|
|
26
21
|
require('@elliemae/ds-truncated-tooltip-text');
|
|
27
|
-
require('@elliemae/ds-icons/ArrowheadRight');
|
|
28
|
-
require('@elliemae/ds-icons/ArrowheadDown');
|
|
29
22
|
require('../exported-related/ItemRenderer/index.js');
|
|
30
23
|
require('../exported-related/ItemRenderer/styled.js');
|
|
31
24
|
require('../LeftNavigationContext.js');
|
|
@@ -35,7 +28,6 @@ require('./ItemControlledDrilldown/styled.js');
|
|
|
35
28
|
require('@babel/runtime/helpers/toConsumableArray');
|
|
36
29
|
require('./ItemUncontrolledDrilldown/styled.js');
|
|
37
30
|
require('./ItemHeader/styled.js');
|
|
38
|
-
require('@elliemae/ds-icons/ChevronSmallLeft');
|
|
39
31
|
require('./ItemLink/styled.js');
|
|
40
32
|
require('./ItemSection/styled.js');
|
|
41
33
|
require('./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,oCAAd;AAChC,IACEC,kCADF,GAUID,oCAVJ,CACEC,kCADF;AAAA,IAEEC,oCAFF,GAUIF,oCAVJ,CAEEE,oCAFF;AAAA,IAGEC,oBAHF,GAUIH,oCAVJ,CAGEG,oBAHF;AAAA,IAIEC,kBAJF,GAUIJ,oCAVJ,CAIEI,kBAJF;AAAA,IAKEC,qBALF,GAUIL,oCAVJ,CAKEK,qBALF;AAAA,IAMEC,uBANF,GAUIN,oCAVJ,CAMEM,uBANF;AAAA,IAOEC,qBAPF,GAUIP,oCAVJ,CAOEO,qBAPF;AAAA,IAQEC,wBARF,GAUIR,oCAVJ,CAQEQ,wBARF;AAAA,IASEC,uBATF,GAUIT,oCAVJ,CASES,uBATF;IAYaC,qBAGZ,2FACET,kCADF,EACuCU,iEADvC,8DAEET,oCAFF,EAEyCU,qEAFzC,8DAGET,oBAHF,EAGyBU,uCAHzB,8DAIET,kBAJF,EAIuBU,mCAJvB,8DAKET,qBALF,EAK0BU,yCAL1B,8DAMET,uBANF,EAM4BU,6CAN5B,8DAOET,qBAPF,EAO0BU,yCAP1B,8DAQET,wBARF,EAQ6BU,6CAR7B,8DASET,uBATF,EAS4BU,2CAT5B;;;;;;;;;;;;;;"}
|
|
@@ -7,14 +7,12 @@ var parts_LeftNavContentWithScrollbar_index = require('../LeftNavContentWithScro
|
|
|
7
7
|
var parts_OutOfTheBoxMapItem = require('../OutOfTheBoxMapItem.js');
|
|
8
8
|
var parts_LeftNavContent_styled = require('./styled.js');
|
|
9
9
|
var parts_LeftNavLoading_index = require('../LeftNavLoading/index.js');
|
|
10
|
-
require('@elliemae/ds-icons
|
|
10
|
+
require('@elliemae/ds-icons');
|
|
11
11
|
require('react-desc');
|
|
12
12
|
require('@elliemae/ds-grid');
|
|
13
13
|
require('@elliemae/ds-truncated-tooltip-text');
|
|
14
14
|
require('../LeftNavFooterItem/styled.js');
|
|
15
15
|
require('styled-components');
|
|
16
|
-
require('@elliemae/ds-basic');
|
|
17
|
-
require('@elliemae/ds-icons');
|
|
18
16
|
require('../../common/getFocusedByKeyboardStyle.js');
|
|
19
17
|
require('../../common/getItemBackgroundStyle.js');
|
|
20
18
|
require('../../common/getLeftBorderStyle.js');
|
|
@@ -22,18 +20,11 @@ require('../../hooks/useKeyboardNavigation.js');
|
|
|
22
20
|
require('../../exported-related/constants.js');
|
|
23
21
|
require('@babel/runtime/helpers/defineProperty');
|
|
24
22
|
require('@babel/runtime/helpers/slicedToArray');
|
|
23
|
+
require('overlayscrollbars/css/OverlayScrollbars.css');
|
|
25
24
|
require('overlayscrollbars');
|
|
26
25
|
require('../../outOfTheBox/index.js');
|
|
27
26
|
require('@babel/runtime/helpers/extends');
|
|
28
|
-
require('@elliemae/ds-icons/ChevronSmallRight');
|
|
29
|
-
require('@elliemae/ds-icons/Notifications');
|
|
30
|
-
require('@elliemae/ds-icons/ExceptionsSmallFill');
|
|
31
|
-
require('@elliemae/ds-icons/AlertsSmallFill');
|
|
32
|
-
require('@elliemae/ds-icons/MessagesSmallFill');
|
|
33
|
-
require('@elliemae/ds-icons/OpenWindow');
|
|
34
27
|
require('../../outOfTheBox/ItemControlledDrilldown/index.js');
|
|
35
|
-
require('@elliemae/ds-icons/ArrowheadRight');
|
|
36
|
-
require('@elliemae/ds-icons/ArrowheadDown');
|
|
37
28
|
require('../../exported-related/ItemRenderer/index.js');
|
|
38
29
|
require('../../exported-related/ItemRenderer/styled.js');
|
|
39
30
|
require('../../exported-related/ItemRenderer/usePropsWithDefaults.js');
|
|
@@ -48,14 +39,13 @@ require('../../outOfTheBox/ItemTextLabel/index.js');
|
|
|
48
39
|
require('../../outOfTheBox/ItemTextLabel/styled.js');
|
|
49
40
|
require('../../outOfTheBox/ItemHeader/index.js');
|
|
50
41
|
require('../../outOfTheBox/ItemHeader/styled.js');
|
|
51
|
-
require('@elliemae/ds-icons/ChevronSmallLeft');
|
|
52
42
|
require('../../outOfTheBox/ItemLink/index.js');
|
|
53
43
|
require('../../outOfTheBox/ItemLink/styled.js');
|
|
54
44
|
require('../../outOfTheBox/ItemSection/index.js');
|
|
55
45
|
require('../../outOfTheBox/ItemSection/styled.js');
|
|
56
46
|
require('../../outOfTheBox/ItemSubmenu/index.js');
|
|
57
47
|
require('../../outOfTheBox/ItemSubmenu/styled.js');
|
|
58
|
-
require('@elliemae/ds-
|
|
48
|
+
require('@elliemae/ds-circular-progress-indicator');
|
|
59
49
|
|
|
60
50
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
61
51
|
|
|
@@ -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","StyledLeftNavHeaderArea","includes","dsId","OutOfTheBoxMapItem","StyledLeftNavBodyAreasContainer","StyledLeftNavBodyHeaderArea","StyledLeftNavBodyItemsArea","LeftNavContentWithScrollbar","map","item","LeftNavContent","expandedForAnimation","expanded","expandedWidth","footerLabel","onFooterExpand","onFooterClose","loading","StyledLeftNavExpandAnimationWrapper","StyledLeftNavAreasContainer","LeftNavLoading","StyledLeftNavFooterArea","LeftNavFooterItem"],"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","StyledLeftNavHeaderArea","includes","dsId","OutOfTheBoxMapItem","StyledLeftNavBodyAreasContainer","StyledLeftNavBodyHeaderArea","StyledLeftNavBodyItemsArea","LeftNavContentWithScrollbar","map","item","LeftNavContent","expandedForAnimation","expanded","expandedWidth","footerLabel","onFooterExpand","onFooterClose","loading","StyledLeftNavExpandAnimationWrapper","StyledLeftNavAreasContainer","LeftNavLoading","StyledLeftNavFooterArea","LeftNavFooterItem"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgBA,IAAMA,+BAA+B,GACnC,mFACA,mEADA,GAEA,yEAFA,GAGA,8EAJF;;AAMA,IAAMC,mBAAmB,GAAG,SAAtBA,mBAAsB,GAAM;AAChC,0BAGIC,yBAAK,CAACC,UAAN,CAAiBC,oCAAjB,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,sBACER,+FACEA,wCAACS,mDAAD;AACE,mBAAY,qBADd;AAEE,IAAA,QAAQ,EAAEL,eAAe,IAAI,CAACI,YAAD,EAAeF,UAAf,EAA2BI,QAA3B,CAAoCN,eAAe,CAACO,IAApD;AAF/B,KAIGP,eAAe,gBAAGJ,wCAACY,2CAAD;AAAoB,IAAA,IAAI,EAAER;AAA1B,IAAH,GAAmD,IAJrE,CADF,eAOEJ,wCAACa,2DAAD,qBACEb,wCAACc,uDAAD;AACE,mBAAY,0BADd;AAEE,IAAA,QAAQ,EAAET,mBAAmB,IAAI,CAACG,YAAD,EAAeF,UAAf,EAA2BI,QAA3B,CAAoCL,mBAAmB,CAACM,IAAxD;AAFnC,KAIGN,mBAAmB,gBAAGL,wCAACY,2CAAD;AAAoB,IAAA,IAAI,EAAEP;AAA1B,IAAH,GAAuD,IAJ7E,CADF,eAOEL,wCAACe,sDAAD;AAA4B,IAAA,QAAQ,EAAET,UAAU,KAAK,IAArD;AAA2D,mBAAY,yBAAvE;AAAiG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'__esModule', { value: true });
|
|
|
5
5
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
6
6
|
var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
|
|
7
7
|
var React = require('react');
|
|
8
|
+
require('overlayscrollbars/css/OverlayScrollbars.css');
|
|
8
9
|
var OverlayScrollbars = require('overlayscrollbars');
|
|
9
10
|
var styled = require('styled-components');
|
|
10
11
|
|
|
@@ -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","React","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","React","height"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAUA,IAAMA,YAAY,gBAAGC,0BAAM,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,cAAQ,EAA5C;AAAA;AAAA,MAAOC,UAAP;AAAA,MA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