@elliemae/ds-left-navigation 2.2.0-alpha.4 → 3.0.0-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/LeftNavigation.js +27 -49
- package/cjs/LeftNavigationContext.js +18 -44
- package/cjs/common/getItemBackgroundStyle.js +8 -47
- package/cjs/common/getLeftBorderStyle.js +8 -50
- package/cjs/common/getScrollbarStyle.js +4 -55
- package/cjs/common/index.js +13 -30
- package/cjs/configs/index.js +10 -38
- package/cjs/configs/useLeftNavConfig.js +76 -76
- package/cjs/configs/useLeftNavItems.js +64 -66
- package/cjs/configs/useLeftNavSmoothExpand.js +25 -43
- package/cjs/exported-related/ChevronItem/index.js +27 -42
- package/cjs/exported-related/Icon/index.js +34 -51
- package/cjs/exported-related/ItemRenderer/index.js +94 -99
- package/cjs/exported-related/ItemRenderer/styled.js +51 -83
- package/cjs/exported-related/ItemRenderer/usePropsWithDefaults.js +45 -57
- package/cjs/exported-related/Notifications/index.js +61 -81
- package/cjs/exported-related/OpenWindowItem/index.js +32 -49
- package/cjs/exported-related/constants.js +25 -53
- package/cjs/exported-related/index.js +23 -33
- package/cjs/hooks/index.js +13 -30
- package/cjs/hooks/useExpandableOnClickHandler.js +26 -55
- package/cjs/hooks/useKeyboardNavigation.js +54 -62
- package/cjs/hooks/useOpenableOnClickHandler.js +26 -55
- package/cjs/hooks/useSelectFirstBodyItem.js +34 -47
- package/cjs/index.d.js +2 -27
- package/cjs/index.js +30 -41
- package/cjs/outOfTheBox/ItemControlledDrilldown/index.js +103 -97
- package/cjs/outOfTheBox/ItemControlledDrilldown/styled.js +27 -49
- package/cjs/outOfTheBox/ItemHeader/index.js +93 -95
- package/cjs/outOfTheBox/ItemHeader/styled.js +22 -49
- package/cjs/outOfTheBox/ItemLink/index.js +67 -75
- package/cjs/outOfTheBox/ItemLink/styled.js +17 -41
- package/cjs/outOfTheBox/ItemSection/index.js +63 -59
- package/cjs/outOfTheBox/ItemSection/styled.js +23 -53
- package/cjs/outOfTheBox/ItemSeparator/index.js +45 -56
- package/cjs/outOfTheBox/ItemSubmenu/index.js +92 -95
- package/cjs/outOfTheBox/ItemSubmenu/styled.js +22 -49
- package/cjs/outOfTheBox/ItemTextLabel/index.js +52 -51
- package/cjs/outOfTheBox/ItemTextLabel/styled.js +23 -43
- package/cjs/outOfTheBox/ItemUncontrolledDrilldown/index.js +113 -107
- package/cjs/outOfTheBox/ItemUncontrolledDrilldown/styled.js +27 -49
- package/cjs/outOfTheBox/ItemWithDate/index.js +54 -59
- package/cjs/outOfTheBox/ItemWithDate/styled.js +27 -49
- package/cjs/outOfTheBox/index.js +50 -65
- package/cjs/parts/LeftNavContent/index.js +71 -75
- package/cjs/parts/LeftNavContent/styled.js +50 -110
- package/cjs/parts/LeftNavContentWithScrollbar/index.js +79 -89
- package/cjs/parts/LeftNavFooterItem/index.js +80 -97
- package/cjs/parts/LeftNavFooterItem/styled.js +34 -89
- package/cjs/parts/LeftNavLoading/index.js +33 -51
- package/cjs/parts/OutOfTheBoxMapItem.js +46 -49
- package/cjs/prop-types.js +39 -58
- package/esm/LeftNavigation.js +15 -17
- package/esm/LeftNavigationContext.js +11 -15
- package/esm/common/getItemBackgroundStyle.js +6 -20
- package/esm/common/getLeftBorderStyle.js +6 -23
- package/esm/common/getScrollbarStyle.js +2 -28
- package/esm/common/index.js +3 -5
- package/esm/configs/index.js +2 -9
- package/esm/configs/useLeftNavConfig.js +67 -47
- package/esm/configs/useLeftNavItems.js +55 -33
- package/esm/configs/useLeftNavSmoothExpand.js +16 -14
- package/esm/exported-related/ChevronItem/index.js +18 -13
- package/esm/exported-related/Icon/index.js +24 -21
- package/esm/exported-related/ItemRenderer/index.js +80 -65
- package/esm/exported-related/ItemRenderer/styled.js +42 -56
- package/esm/exported-related/ItemRenderer/usePropsWithDefaults.js +36 -27
- package/esm/exported-related/Notifications/index.js +50 -57
- package/esm/exported-related/OpenWindowItem/index.js +22 -20
- package/esm/exported-related/constants.js +17 -24
- package/esm/exported-related/index.js +6 -8
- package/esm/hooks/index.js +3 -5
- package/esm/hooks/useExpandableOnClickHandler.js +22 -26
- package/esm/hooks/useKeyboardNavigation.js +47 -30
- package/esm/hooks/useOpenableOnClickHandler.js +22 -26
- package/esm/hooks/useSelectFirstBodyItem.js +30 -18
- package/esm/index.d.js +1 -2
- package/esm/index.js +8 -12
- package/esm/outOfTheBox/ItemControlledDrilldown/index.js +87 -62
- package/esm/outOfTheBox/ItemControlledDrilldown/styled.js +17 -20
- package/esm/outOfTheBox/ItemHeader/index.js +82 -65
- package/esm/outOfTheBox/ItemHeader/styled.js +12 -20
- package/esm/outOfTheBox/ItemLink/index.js +57 -46
- package/esm/outOfTheBox/ItemLink/styled.js +8 -12
- package/esm/outOfTheBox/ItemSection/index.js +53 -30
- package/esm/outOfTheBox/ItemSection/styled.js +13 -24
- package/esm/outOfTheBox/ItemSeparator/index.js +35 -27
- package/esm/outOfTheBox/ItemSubmenu/index.js +81 -65
- package/esm/outOfTheBox/ItemSubmenu/styled.js +12 -20
- package/esm/outOfTheBox/ItemTextLabel/index.js +43 -22
- package/esm/outOfTheBox/ItemTextLabel/styled.js +14 -14
- package/esm/outOfTheBox/ItemUncontrolledDrilldown/index.js +95 -70
- package/esm/outOfTheBox/ItemUncontrolledDrilldown/styled.js +17 -20
- package/esm/outOfTheBox/ItemWithDate/index.js +44 -30
- package/esm/outOfTheBox/ItemWithDate/styled.js +17 -20
- package/esm/outOfTheBox/index.js +34 -25
- package/esm/parts/LeftNavContent/index.js +64 -54
- package/esm/parts/LeftNavContent/styled.js +36 -81
- package/esm/parts/LeftNavContentWithScrollbar/index.js +64 -56
- package/esm/parts/LeftNavFooterItem/index.js +68 -73
- package/esm/parts/LeftNavFooterItem/styled.js +24 -63
- package/esm/parts/LeftNavLoading/index.js +22 -22
- package/esm/parts/OutOfTheBoxMapItem.js +35 -19
- package/esm/prop-types.js +29 -26
- package/package.json +6 -6
- package/types/LeftNavigationContext.d.ts +4 -4
- package/types/configs/useLeftNavSmoothExpand.d.ts +3 -3
- package/types/hooks/useSelectFirstBodyItem.d.ts +1 -1
- package/types/index.d.d.ts +5 -2
- package/cjs/LeftNavigation.js.map +0 -7
- package/cjs/LeftNavigationContext.js.map +0 -7
- package/cjs/common/getItemBackgroundStyle.js.map +0 -7
- package/cjs/common/getLeftBorderStyle.js.map +0 -7
- package/cjs/common/getScrollbarStyle.js.map +0 -7
- package/cjs/common/index.js.map +0 -7
- package/cjs/configs/index.js.map +0 -7
- package/cjs/configs/useLeftNavConfig.js.map +0 -7
- package/cjs/configs/useLeftNavItems.js.map +0 -7
- package/cjs/configs/useLeftNavSmoothExpand.js.map +0 -7
- package/cjs/exported-related/ChevronItem/index.js.map +0 -7
- package/cjs/exported-related/Icon/index.js.map +0 -7
- package/cjs/exported-related/ItemRenderer/index.js.map +0 -7
- package/cjs/exported-related/ItemRenderer/styled.js.map +0 -7
- package/cjs/exported-related/ItemRenderer/usePropsWithDefaults.js.map +0 -7
- package/cjs/exported-related/Notifications/index.js.map +0 -7
- package/cjs/exported-related/OpenWindowItem/index.js.map +0 -7
- package/cjs/exported-related/constants.js.map +0 -7
- package/cjs/exported-related/index.js.map +0 -7
- package/cjs/hooks/index.js.map +0 -7
- package/cjs/hooks/useExpandableOnClickHandler.js.map +0 -7
- package/cjs/hooks/useKeyboardNavigation.js.map +0 -7
- package/cjs/hooks/useOpenableOnClickHandler.js.map +0 -7
- package/cjs/hooks/useSelectFirstBodyItem.js.map +0 -7
- package/cjs/index.d.js.map +0 -7
- package/cjs/index.js.map +0 -7
- package/cjs/outOfTheBox/ItemControlledDrilldown/index.js.map +0 -7
- package/cjs/outOfTheBox/ItemControlledDrilldown/styled.js.map +0 -7
- package/cjs/outOfTheBox/ItemHeader/index.js.map +0 -7
- package/cjs/outOfTheBox/ItemHeader/styled.js.map +0 -7
- package/cjs/outOfTheBox/ItemLink/index.js.map +0 -7
- package/cjs/outOfTheBox/ItemLink/styled.js.map +0 -7
- package/cjs/outOfTheBox/ItemSection/index.js.map +0 -7
- package/cjs/outOfTheBox/ItemSection/styled.js.map +0 -7
- package/cjs/outOfTheBox/ItemSeparator/index.js.map +0 -7
- package/cjs/outOfTheBox/ItemSubmenu/index.js.map +0 -7
- package/cjs/outOfTheBox/ItemSubmenu/styled.js.map +0 -7
- package/cjs/outOfTheBox/ItemTextLabel/index.js.map +0 -7
- package/cjs/outOfTheBox/ItemTextLabel/styled.js.map +0 -7
- package/cjs/outOfTheBox/ItemUncontrolledDrilldown/index.js.map +0 -7
- package/cjs/outOfTheBox/ItemUncontrolledDrilldown/styled.js.map +0 -7
- package/cjs/outOfTheBox/ItemWithDate/index.js.map +0 -7
- package/cjs/outOfTheBox/ItemWithDate/styled.js.map +0 -7
- package/cjs/outOfTheBox/index.js.map +0 -7
- package/cjs/parts/LeftNavContent/index.js.map +0 -7
- package/cjs/parts/LeftNavContent/styled.js.map +0 -7
- package/cjs/parts/LeftNavContentWithScrollbar/index.js.map +0 -7
- package/cjs/parts/LeftNavFooterItem/index.js.map +0 -7
- package/cjs/parts/LeftNavFooterItem/styled.js.map +0 -7
- package/cjs/parts/LeftNavLoading/index.js.map +0 -7
- package/cjs/parts/OutOfTheBoxMapItem.js.map +0 -7
- package/cjs/prop-types.js.map +0 -7
- package/esm/LeftNavigation.js.map +0 -7
- package/esm/LeftNavigationContext.js.map +0 -7
- package/esm/common/getItemBackgroundStyle.js.map +0 -7
- package/esm/common/getLeftBorderStyle.js.map +0 -7
- package/esm/common/getScrollbarStyle.js.map +0 -7
- package/esm/common/index.js.map +0 -7
- package/esm/configs/index.js.map +0 -7
- package/esm/configs/useLeftNavConfig.js.map +0 -7
- package/esm/configs/useLeftNavItems.js.map +0 -7
- package/esm/configs/useLeftNavSmoothExpand.js.map +0 -7
- package/esm/exported-related/ChevronItem/index.js.map +0 -7
- package/esm/exported-related/Icon/index.js.map +0 -7
- package/esm/exported-related/ItemRenderer/index.js.map +0 -7
- package/esm/exported-related/ItemRenderer/styled.js.map +0 -7
- package/esm/exported-related/ItemRenderer/usePropsWithDefaults.js.map +0 -7
- package/esm/exported-related/Notifications/index.js.map +0 -7
- package/esm/exported-related/OpenWindowItem/index.js.map +0 -7
- package/esm/exported-related/constants.js.map +0 -7
- package/esm/exported-related/index.js.map +0 -7
- package/esm/hooks/index.js.map +0 -7
- package/esm/hooks/useExpandableOnClickHandler.js.map +0 -7
- package/esm/hooks/useKeyboardNavigation.js.map +0 -7
- package/esm/hooks/useOpenableOnClickHandler.js.map +0 -7
- package/esm/hooks/useSelectFirstBodyItem.js.map +0 -7
- package/esm/index.d.js.map +0 -7
- package/esm/index.js.map +0 -7
- package/esm/outOfTheBox/ItemControlledDrilldown/index.js.map +0 -7
- package/esm/outOfTheBox/ItemControlledDrilldown/styled.js.map +0 -7
- package/esm/outOfTheBox/ItemHeader/index.js.map +0 -7
- package/esm/outOfTheBox/ItemHeader/styled.js.map +0 -7
- package/esm/outOfTheBox/ItemLink/index.js.map +0 -7
- package/esm/outOfTheBox/ItemLink/styled.js.map +0 -7
- package/esm/outOfTheBox/ItemSection/index.js.map +0 -7
- package/esm/outOfTheBox/ItemSection/styled.js.map +0 -7
- package/esm/outOfTheBox/ItemSeparator/index.js.map +0 -7
- package/esm/outOfTheBox/ItemSubmenu/index.js.map +0 -7
- package/esm/outOfTheBox/ItemSubmenu/styled.js.map +0 -7
- package/esm/outOfTheBox/ItemTextLabel/index.js.map +0 -7
- package/esm/outOfTheBox/ItemTextLabel/styled.js.map +0 -7
- package/esm/outOfTheBox/ItemUncontrolledDrilldown/index.js.map +0 -7
- package/esm/outOfTheBox/ItemUncontrolledDrilldown/styled.js.map +0 -7
- package/esm/outOfTheBox/ItemWithDate/index.js.map +0 -7
- package/esm/outOfTheBox/ItemWithDate/styled.js.map +0 -7
- package/esm/outOfTheBox/index.js.map +0 -7
- package/esm/parts/LeftNavContent/index.js.map +0 -7
- package/esm/parts/LeftNavContent/styled.js.map +0 -7
- package/esm/parts/LeftNavContentWithScrollbar/index.js.map +0 -7
- package/esm/parts/LeftNavFooterItem/index.js.map +0 -7
- package/esm/parts/LeftNavFooterItem/styled.js.map +0 -7
- package/esm/parts/LeftNavLoading/index.js.map +0 -7
- package/esm/parts/OutOfTheBoxMapItem.js.map +0 -7
- package/esm/prop-types.js.map +0 -7
|
@@ -1,42 +1,70 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
1
|
+
import 'core-js/modules/esnext.async-iterator.filter.js';
|
|
2
|
+
import 'core-js/modules/esnext.iterator.constructor.js';
|
|
3
|
+
import 'core-js/modules/esnext.iterator.filter.js';
|
|
4
|
+
import 'core-js/modules/esnext.async-iterator.for-each.js';
|
|
5
|
+
import 'core-js/modules/esnext.iterator.for-each.js';
|
|
6
|
+
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
7
|
+
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
8
|
+
import 'core-js/modules/esnext.async-iterator.map.js';
|
|
9
|
+
import 'core-js/modules/esnext.iterator.map.js';
|
|
10
|
+
import { useMemo } from 'react';
|
|
11
|
+
import Grid from '@elliemae/ds-grid';
|
|
12
|
+
import { SimpleTruncatedTooltipText } from '@elliemae/ds-truncated-tooltip-text';
|
|
13
|
+
import { ArrowheadDown, ArrowheadRight } from '@elliemae/ds-icons';
|
|
14
|
+
import { ITEM_TYPES } from '../../exported-related/constants.js';
|
|
15
|
+
import { ItemRenderer } from '../../exported-related/ItemRenderer/index.js';
|
|
16
|
+
import 'react/jsx-runtime';
|
|
17
|
+
import 'styled-components';
|
|
18
|
+
import { StyledLabel, StyledDate } from './styled.js';
|
|
19
|
+
import { ItemSeparator } from '../ItemSeparator/index.js';
|
|
20
|
+
import { ItemWithDate } from '../ItemWithDate/index.js';
|
|
21
|
+
import { ItemTextLabel } from '../ItemTextLabel/index.js';
|
|
22
|
+
|
|
23
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
24
|
+
|
|
25
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
11
26
|
const outOfTheBoxSubitemsComponents = {
|
|
12
27
|
[ITEM_TYPES.LEFT_NAV_ITEM_SEPARATOR]: ItemSeparator,
|
|
13
28
|
[ITEM_TYPES.LEFT_NAV_ITEM_WITH_DATE]: ItemWithDate,
|
|
14
29
|
[ITEM_TYPES.LEFT_NAV_ITEM_TEXT_LABEL]: ItemTextLabel
|
|
15
30
|
};
|
|
16
|
-
|
|
31
|
+
|
|
32
|
+
const OutOfTheBoxMapSubitem = props => {
|
|
17
33
|
const {
|
|
18
34
|
item,
|
|
19
|
-
item: {
|
|
35
|
+
item: {
|
|
36
|
+
type,
|
|
37
|
+
Component
|
|
38
|
+
},
|
|
20
39
|
ctx
|
|
21
40
|
} = props;
|
|
22
|
-
|
|
41
|
+
|
|
42
|
+
if (typeof type === 'string' && !!outOfTheBoxSubitemsComponents[type]) {
|
|
43
|
+
var _item$itemOpts$indent, _item$itemOpts;
|
|
44
|
+
|
|
23
45
|
const OutOfTheBoxComponent = outOfTheBoxSubitemsComponents[type];
|
|
24
|
-
const currentIndent = item.itemOpts
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
itemOpts: {
|
|
28
|
-
|
|
29
|
-
|
|
46
|
+
const currentIndent = (_item$itemOpts$indent = (_item$itemOpts = item.itemOpts) === null || _item$itemOpts === void 0 ? void 0 : _item$itemOpts.indent) !== null && _item$itemOpts$indent !== void 0 ? _item$itemOpts$indent : 0;
|
|
47
|
+
|
|
48
|
+
const newItem = _objectSpread(_objectSpread({}, item), {}, {
|
|
49
|
+
itemOpts: _objectSpread(_objectSpread({}, item.itemOpts), {}, {
|
|
50
|
+
indent: currentIndent + 44
|
|
51
|
+
})
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
return /*#__PURE__*/_jsx(OutOfTheBoxComponent, {
|
|
30
55
|
item: newItem,
|
|
31
|
-
ctx
|
|
56
|
+
ctx: ctx
|
|
32
57
|
});
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
58
|
+
} // we expect an error to be threw if Component is not defined and type is not a valid out-of-the-box...
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
return /*#__PURE__*/_jsx(Component, {
|
|
62
|
+
item: item,
|
|
63
|
+
ctx: ctx
|
|
37
64
|
});
|
|
38
65
|
};
|
|
39
|
-
|
|
66
|
+
|
|
67
|
+
const ItemControlledDrilldown = props => {
|
|
40
68
|
const {
|
|
41
69
|
item,
|
|
42
70
|
item: {
|
|
@@ -54,70 +82,67 @@ const ItemControlledDrilldown = (props) => {
|
|
|
54
82
|
},
|
|
55
83
|
ctx,
|
|
56
84
|
ctx: {
|
|
57
|
-
leftNavProps: {
|
|
85
|
+
leftNavProps: {
|
|
86
|
+
labelOverflow: leftNavLabelOverflow
|
|
87
|
+
}
|
|
58
88
|
}
|
|
59
89
|
} = props;
|
|
60
90
|
const labelOverflow = itemLabelOverflow || leftNavLabelOverflow;
|
|
61
91
|
const arrowIcon = useMemo(() => {
|
|
62
92
|
const Component = isOpened ? ArrowheadDown : ArrowheadRight;
|
|
63
|
-
return
|
|
93
|
+
return /*#__PURE__*/_jsx(Component, {
|
|
64
94
|
width: "24px",
|
|
65
95
|
height: "18px",
|
|
66
|
-
color: [
|
|
96
|
+
color: ['brand-primary', '800']
|
|
67
97
|
});
|
|
68
98
|
}, [isOpened]);
|
|
69
99
|
const subitems = useMemo(() => {
|
|
70
|
-
if (!isOpened || !items)
|
|
71
|
-
|
|
72
|
-
return items.map((subitem) => /* @__PURE__ */ React2.createElement(OutOfTheBoxMapSubitem, {
|
|
100
|
+
if (!isOpened || !items) return [];
|
|
101
|
+
return items.map(subitem => /*#__PURE__*/_jsx(OutOfTheBoxMapSubitem, {
|
|
73
102
|
item: subitem,
|
|
74
|
-
ctx
|
|
75
|
-
|
|
76
|
-
}));
|
|
103
|
+
ctx: ctx
|
|
104
|
+
}, subitem.dsId));
|
|
77
105
|
}, [items, isOpened]);
|
|
78
|
-
return
|
|
79
|
-
item: {
|
|
80
|
-
|
|
81
|
-
itemOpts: {
|
|
106
|
+
return /*#__PURE__*/_jsx(ItemRenderer, {
|
|
107
|
+
item: _objectSpread(_objectSpread({}, item), {}, {
|
|
108
|
+
itemOpts: _objectSpread(_objectSpread({
|
|
82
109
|
ariaExpanded: isOpened,
|
|
83
|
-
ariaRole:
|
|
84
|
-
|
|
110
|
+
ariaRole: 'menuitem'
|
|
111
|
+
}, item.itemOpts), {}, {
|
|
85
112
|
openable: !isOpened,
|
|
86
113
|
closable: isOpened
|
|
87
|
-
},
|
|
114
|
+
}),
|
|
88
115
|
CollapsedComponent: null
|
|
89
|
-
},
|
|
90
|
-
subitems,
|
|
116
|
+
}),
|
|
117
|
+
subitems: subitems,
|
|
91
118
|
minHeight: "32px",
|
|
92
119
|
paddingTop: "8px"
|
|
93
|
-
},
|
|
120
|
+
}, void 0, /*#__PURE__*/_jsx(Grid, {
|
|
94
121
|
pl: "xxs",
|
|
95
122
|
mt: "-2px"
|
|
96
|
-
}, arrowIcon),
|
|
123
|
+
}, void 0, arrowIcon), /*#__PURE__*/_jsx(StyledLabel, {
|
|
97
124
|
pb: "xxxs",
|
|
98
|
-
"data-testid": labelDataTestId ||
|
|
99
|
-
labelOverflow,
|
|
100
|
-
labelBold,
|
|
101
|
-
labelColor
|
|
102
|
-
}, labelOverflow ===
|
|
125
|
+
"data-testid": labelDataTestId || 'leftnav-list-item-label',
|
|
126
|
+
labelOverflow: labelOverflow,
|
|
127
|
+
labelBold: labelBold,
|
|
128
|
+
labelColor: labelColor
|
|
129
|
+
}, void 0, labelOverflow === 'truncate' ? /*#__PURE__*/_jsx(SimpleTruncatedTooltipText, {
|
|
103
130
|
value: label,
|
|
104
131
|
placement: "bottom-start"
|
|
105
|
-
}) : label),
|
|
132
|
+
}) : label), /*#__PURE__*/_jsx(Grid, {
|
|
106
133
|
pr: "xxs2",
|
|
107
|
-
cols: [
|
|
134
|
+
cols: ['auto', 'auto'],
|
|
108
135
|
alignItems: "center"
|
|
109
|
-
},
|
|
136
|
+
}, void 0, /*#__PURE__*/_jsx(StyledDate, {
|
|
110
137
|
ml: "xxs",
|
|
111
138
|
"data-testid": "leftnav-list-item-date"
|
|
112
|
-
}, labelRightSection),
|
|
113
|
-
pl: RightComponent ?
|
|
139
|
+
}, void 0, labelRightSection), /*#__PURE__*/_jsx(Grid, {
|
|
140
|
+
pl: RightComponent ? 'xxs' : '0px',
|
|
114
141
|
"data-testid": "leftnav-right-component"
|
|
115
|
-
}, RightComponent &&
|
|
116
|
-
ctx,
|
|
117
|
-
item
|
|
142
|
+
}, void 0, RightComponent && /*#__PURE__*/_jsx(RightComponent, {
|
|
143
|
+
ctx: ctx,
|
|
144
|
+
item: item
|
|
118
145
|
}))));
|
|
119
146
|
};
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
};
|
|
123
|
-
//# sourceMappingURL=index.js.map
|
|
147
|
+
|
|
148
|
+
export { ItemControlledDrilldown };
|
|
@@ -1,20 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
const StyledLabel = styled(Grid)
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
StyledLabel
|
|
19
|
-
};
|
|
20
|
-
//# sourceMappingURL=styled.js.map
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
import Grid from '@elliemae/ds-grid';
|
|
3
|
+
|
|
4
|
+
const StyledLabel = /*#__PURE__*/styled(Grid).withConfig({
|
|
5
|
+
componentId: "sc-1tjij7e-0"
|
|
6
|
+
})(["font-size:13px;font-weight:", ";color:", ";line-height:14px;word-break:", ";"], props => props.labelBold ? props.theme.fontWeights.semibold : props.theme.fontWeights.regular, _ref => {
|
|
7
|
+
let {
|
|
8
|
+
labelColor,
|
|
9
|
+
theme
|
|
10
|
+
} = _ref;
|
|
11
|
+
return labelColor ? theme.colors[labelColor[0]][labelColor[1]] : theme.colors.neutral[800];
|
|
12
|
+
}, props => props.labelOverflow === 'wrapAll' ? 'break-all' : 'normal');
|
|
13
|
+
const StyledDate = /*#__PURE__*/styled(Grid).withConfig({
|
|
14
|
+
componentId: "sc-1tjij7e-1"
|
|
15
|
+
})(["font-size:12px;color:", ";line-height:14px;"], props => props.theme.colors.neutral[600]);
|
|
16
|
+
|
|
17
|
+
export { StyledDate, StyledLabel };
|
|
@@ -1,117 +1,134 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import 'core-js/modules/esnext.async-iterator.filter.js';
|
|
2
|
+
import 'core-js/modules/esnext.iterator.constructor.js';
|
|
3
|
+
import 'core-js/modules/esnext.iterator.filter.js';
|
|
4
|
+
import 'core-js/modules/esnext.async-iterator.for-each.js';
|
|
5
|
+
import 'core-js/modules/esnext.iterator.for-each.js';
|
|
6
|
+
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
7
|
+
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
8
|
+
import { useCallback } from 'react';
|
|
9
|
+
import Grid from '@elliemae/ds-grid';
|
|
10
|
+
import { SimpleTruncatedTooltipText } from '@elliemae/ds-truncated-tooltip-text';
|
|
11
|
+
import { CHEVRON_BACK_DS_ID } from '../../exported-related/constants.js';
|
|
12
|
+
import { ItemRenderer } from '../../exported-related/ItemRenderer/index.js';
|
|
13
|
+
import '@elliemae/ds-icons';
|
|
14
|
+
import 'react/jsx-runtime';
|
|
15
|
+
import 'styled-components';
|
|
16
|
+
import { StyledChevronLeft, StyledLabel } from './styled.js';
|
|
10
17
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
18
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
19
|
+
|
|
20
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
21
|
+
|
|
22
|
+
const notOpenedShadowStyle = isSelected => theme => "\n box-shadow: inset 4px 0 0 0 ".concat(isSelected ? theme.colors.brand[400] : 'transparent', ";\n\n :hover {\n box-shadow: inset 4px 0 0 0 ").concat(isSelected ? theme.colors.brand[400] : theme.colors.brand[300], ";\n }\n\n :active {\n box-shadow: inset 4px 0 0 0 ").concat(theme.colors.brand[400], ";\n }\n");
|
|
23
|
+
|
|
24
|
+
const ItemHeader = props => {
|
|
25
|
+
var _item$itemOpts$ariaLa;
|
|
14
26
|
|
|
15
|
-
:active {
|
|
16
|
-
box-shadow: inset 4px 0 0 0 ${theme.colors.brand[400]};
|
|
17
|
-
}
|
|
18
|
-
`;
|
|
19
|
-
const ItemHeader = (props) => {
|
|
20
27
|
const {
|
|
21
28
|
item,
|
|
22
29
|
item: {
|
|
23
30
|
dsId,
|
|
24
|
-
itemOpts: {
|
|
31
|
+
itemOpts: {
|
|
32
|
+
label,
|
|
33
|
+
RightComponent,
|
|
34
|
+
BottomComponent,
|
|
35
|
+
labelDataTestId,
|
|
36
|
+
labelOverflow: itemLabelOverflow
|
|
37
|
+
},
|
|
25
38
|
CollapsedComponent = () => null
|
|
26
39
|
},
|
|
27
40
|
ctx,
|
|
28
41
|
ctx: {
|
|
29
|
-
leftNavProps: {
|
|
42
|
+
leftNavProps: {
|
|
43
|
+
openedItem,
|
|
44
|
+
labelOverflow: leftNavLabelOverflow,
|
|
45
|
+
onItemClick
|
|
46
|
+
},
|
|
30
47
|
expandedForAnimation,
|
|
31
48
|
setFocusedItem,
|
|
32
49
|
selectedItem,
|
|
33
50
|
selectedParent
|
|
34
51
|
}
|
|
35
52
|
} = props;
|
|
53
|
+
const labelOverflow = itemLabelOverflow || leftNavLabelOverflow;
|
|
36
54
|
const opened = openedItem === dsId;
|
|
37
|
-
const ariaLabel = item.itemOpts.ariaLabel
|
|
55
|
+
const ariaLabel = (_item$itemOpts$ariaLa = item.itemOpts.ariaLabel) !== null && _item$itemOpts$ariaLa !== void 0 ? _item$itemOpts$ariaLa : typeof label === 'string' ? label : 'menuitem';
|
|
38
56
|
const isSelected = selectedItem === dsId || selectedParent === dsId;
|
|
39
|
-
const shadowStyle = useCallback(
|
|
40
|
-
return
|
|
41
|
-
item: {
|
|
42
|
-
|
|
43
|
-
itemOpts: {
|
|
57
|
+
const shadowStyle = useCallback(opened => theme => !opened ? notOpenedShadowStyle(isSelected)(theme) : "box-shadow: inset 4px 0 0 0 #52A6EC", [isSelected, openedItem]);
|
|
58
|
+
return /*#__PURE__*/_jsx(ItemRenderer, {
|
|
59
|
+
item: _objectSpread(_objectSpread({}, item), {}, {
|
|
60
|
+
itemOpts: _objectSpread(_objectSpread({
|
|
44
61
|
ariaLabel,
|
|
45
|
-
ariaExpanded: opened
|
|
46
|
-
|
|
62
|
+
ariaExpanded: opened
|
|
63
|
+
}, item.itemOpts), {}, {
|
|
47
64
|
openable: expandedForAnimation && !opened,
|
|
48
65
|
closable: expandedForAnimation && opened,
|
|
49
66
|
selectable: !opened
|
|
50
|
-
}
|
|
51
|
-
},
|
|
67
|
+
})
|
|
68
|
+
}),
|
|
52
69
|
hasBorderBottom: true,
|
|
53
|
-
borderBottomMr: opened ?
|
|
54
|
-
shadowStyle
|
|
55
|
-
},
|
|
56
|
-
cols: opened ? [
|
|
70
|
+
borderBottomMr: opened ? '12px' : '0px',
|
|
71
|
+
shadowStyle: shadowStyle
|
|
72
|
+
}, void 0, /*#__PURE__*/_jsx(Grid, {
|
|
73
|
+
cols: opened ? ['auto', 'auto'] : ['38px'],
|
|
57
74
|
gutter: "1px",
|
|
58
|
-
pl: opened ?
|
|
75
|
+
pl: opened ? 'xxs' : 0,
|
|
59
76
|
justifyItems: "center",
|
|
60
77
|
"data-testid": "leftnav-leftcomponent"
|
|
61
|
-
}, opened &&
|
|
78
|
+
}, void 0, opened && /*#__PURE__*/_jsx(StyledChevronLeft, {
|
|
62
79
|
size: "m",
|
|
63
|
-
color: [
|
|
64
|
-
onClick:
|
|
80
|
+
color: ['brand-primary', 800],
|
|
81
|
+
onClick: e => {
|
|
65
82
|
onItemClick(item, e);
|
|
66
83
|
},
|
|
67
84
|
"data-testid": "leftnav-leftcomponent-chevron",
|
|
68
85
|
tabIndex: 0,
|
|
69
|
-
onFocus:
|
|
86
|
+
onFocus: e => {
|
|
70
87
|
e.stopPropagation();
|
|
71
88
|
setFocusedItem(CHEVRON_BACK_DS_ID);
|
|
72
89
|
},
|
|
73
90
|
role: "button",
|
|
74
|
-
"aria-label":
|
|
75
|
-
}),
|
|
76
|
-
item,
|
|
77
|
-
ctx
|
|
78
|
-
})),
|
|
79
|
-
ml: opened ?
|
|
91
|
+
"aria-label": "Close ".concat(ariaLabel)
|
|
92
|
+
}), /*#__PURE__*/_jsx(CollapsedComponent, {
|
|
93
|
+
item: item,
|
|
94
|
+
ctx: ctx
|
|
95
|
+
})), /*#__PURE__*/_jsx(StyledLabel, {
|
|
96
|
+
ml: opened ? 'xxs' : '1px',
|
|
80
97
|
mt: "xxxs",
|
|
81
98
|
mb: "15px",
|
|
82
|
-
"data-testid": labelDataTestId ||
|
|
83
|
-
labelOverflow
|
|
84
|
-
}, labelOverflow ===
|
|
99
|
+
"data-testid": labelDataTestId || 'leftnav-itemlabel',
|
|
100
|
+
labelOverflow: labelOverflow
|
|
101
|
+
}, void 0, labelOverflow === 'truncate' ? /*#__PURE__*/_jsx(SimpleTruncatedTooltipText, {
|
|
85
102
|
value: label,
|
|
86
103
|
placement: "bottom-start"
|
|
87
|
-
}) : label),
|
|
104
|
+
}) : label), /*#__PURE__*/_jsx(Grid, {
|
|
88
105
|
pl: "xs",
|
|
89
|
-
pr: opened ?
|
|
90
|
-
onFocus:
|
|
106
|
+
pr: opened ? 'xxs2' : 'xxs',
|
|
107
|
+
onFocus: e => {
|
|
91
108
|
setFocusedItem(null);
|
|
92
109
|
e.stopPropagation();
|
|
93
110
|
},
|
|
94
|
-
onKeyDown:
|
|
111
|
+
onKeyDown: e => e.stopPropagation(),
|
|
95
112
|
"data-testid": "leftnav-right-component"
|
|
96
|
-
}, RightComponent &&
|
|
97
|
-
ctx,
|
|
98
|
-
item
|
|
99
|
-
})), BottomComponent &&
|
|
100
|
-
style: {
|
|
113
|
+
}, void 0, RightComponent && /*#__PURE__*/_jsx(RightComponent, {
|
|
114
|
+
ctx: ctx,
|
|
115
|
+
item: item
|
|
116
|
+
})), BottomComponent && /*#__PURE__*/_jsx(Grid, {
|
|
117
|
+
style: {
|
|
118
|
+
gridColumn: 'span 3'
|
|
119
|
+
},
|
|
101
120
|
pb: "xxxs",
|
|
102
121
|
pl: "xxs",
|
|
103
122
|
pr: "xxs",
|
|
104
|
-
onFocus:
|
|
123
|
+
onFocus: e => {
|
|
105
124
|
setFocusedItem(null);
|
|
106
125
|
e.stopPropagation();
|
|
107
126
|
},
|
|
108
|
-
onKeyDown:
|
|
109
|
-
},
|
|
110
|
-
ctx,
|
|
111
|
-
item
|
|
127
|
+
onKeyDown: e => e.stopPropagation()
|
|
128
|
+
}, void 0, /*#__PURE__*/_jsx(BottomComponent, {
|
|
129
|
+
ctx: ctx,
|
|
130
|
+
item: item
|
|
112
131
|
})));
|
|
113
132
|
};
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
};
|
|
117
|
-
//# sourceMappingURL=index.js.map
|
|
133
|
+
|
|
134
|
+
export { ItemHeader };
|
|
@@ -1,20 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
const StyledLabel = styled(Grid)
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
outline: 2px solid ${(props) => props.theme.colors.brand[800]};
|
|
14
|
-
}
|
|
15
|
-
`;
|
|
16
|
-
export {
|
|
17
|
-
StyledChevronLeft,
|
|
18
|
-
StyledLabel
|
|
19
|
-
};
|
|
20
|
-
//# sourceMappingURL=styled.js.map
|
|
1
|
+
import Grid from '@elliemae/ds-grid';
|
|
2
|
+
import { ChevronSmallLeft } from '@elliemae/ds-icons';
|
|
3
|
+
import styled from 'styled-components';
|
|
4
|
+
|
|
5
|
+
const StyledLabel = /*#__PURE__*/styled(Grid).withConfig({
|
|
6
|
+
componentId: "sc-m5k4h8-0"
|
|
7
|
+
})(["font-size:14px;color:", ";word-break:", ";"], props => props.theme.colors.neutral[800], props => props.labelOverflow === 'wrapAll' ? 'break-all' : 'normal');
|
|
8
|
+
const StyledChevronLeft = /*#__PURE__*/styled(ChevronSmallLeft).withConfig({
|
|
9
|
+
componentId: "sc-m5k4h8-1"
|
|
10
|
+
})(["cursor:pointer;:focus{outline:2px solid ", ";}"], props => props.theme.colors.brand[800]);
|
|
11
|
+
|
|
12
|
+
export { StyledChevronLeft, StyledLabel };
|
|
@@ -1,76 +1,87 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import 'core-js/modules/esnext.async-iterator.filter.js';
|
|
2
|
+
import 'core-js/modules/esnext.iterator.constructor.js';
|
|
3
|
+
import 'core-js/modules/esnext.iterator.filter.js';
|
|
4
|
+
import 'core-js/modules/esnext.async-iterator.for-each.js';
|
|
5
|
+
import 'core-js/modules/esnext.iterator.for-each.js';
|
|
6
|
+
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
7
|
+
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
8
|
+
import { useCallback } from 'react';
|
|
9
|
+
import Grid from '@elliemae/ds-grid';
|
|
10
|
+
import { SimpleTruncatedTooltipText } from '@elliemae/ds-truncated-tooltip-text';
|
|
11
|
+
import { ItemRenderer } from '../../exported-related/ItemRenderer/index.js';
|
|
12
|
+
import '@elliemae/ds-icons';
|
|
13
|
+
import 'react/jsx-runtime';
|
|
14
|
+
import 'styled-components';
|
|
15
|
+
import { StyledLabel } from './styled.js';
|
|
9
16
|
|
|
10
|
-
|
|
11
|
-
box-shadow: inset 4px 0 0 0 ${isSelected ? theme.colors.brand[400] : theme.colors.brand[300]};
|
|
12
|
-
}
|
|
17
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
13
18
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
const ItemLink =
|
|
19
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
20
|
+
|
|
21
|
+
const notOpenedShadowStyle = isSelected => theme => "\n box-shadow: inset 4px 0 0 0 ".concat(isSelected ? theme.colors.brand[400] : 'transparent', ";\n\n :hover {\n box-shadow: inset 4px 0 0 0 ").concat(isSelected ? theme.colors.brand[400] : theme.colors.brand[300], ";\n }\n\n :active {\n box-shadow: inset 4px 0 0 0 ").concat(theme.colors.brand[400], ";\n }\n");
|
|
22
|
+
|
|
23
|
+
const ItemLink = props => {
|
|
19
24
|
const {
|
|
20
25
|
item,
|
|
21
26
|
item: {
|
|
22
27
|
dsId,
|
|
23
|
-
itemOpts: {
|
|
28
|
+
itemOpts: {
|
|
29
|
+
label,
|
|
30
|
+
RightComponent,
|
|
31
|
+
labelDataTestId,
|
|
32
|
+
labelOverflow: itemLabelOverflow
|
|
33
|
+
},
|
|
24
34
|
CollapsedComponent = () => null
|
|
25
35
|
},
|
|
26
36
|
ctx,
|
|
27
37
|
ctx: {
|
|
28
|
-
leftNavProps: {
|
|
38
|
+
leftNavProps: {
|
|
39
|
+
labelOverflow: leftNavLabelOverflow,
|
|
40
|
+
openedItem
|
|
41
|
+
},
|
|
29
42
|
selectedItem,
|
|
30
43
|
selectedParent
|
|
31
44
|
}
|
|
32
45
|
} = props;
|
|
46
|
+
const labelOverflow = itemLabelOverflow || leftNavLabelOverflow;
|
|
33
47
|
const isSelected = selectedItem === dsId || selectedParent === dsId;
|
|
34
|
-
const shadowStyle = useCallback(
|
|
35
|
-
return
|
|
36
|
-
item: {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
...item.itemOpts,
|
|
48
|
+
const shadowStyle = useCallback(opened => theme => !opened ? notOpenedShadowStyle(isSelected)(theme) : "box-shadow: inset 4px 0 0 0 #52A6EC", [isSelected, openedItem]);
|
|
49
|
+
return /*#__PURE__*/_jsx(ItemRenderer, {
|
|
50
|
+
item: _objectSpread(_objectSpread({}, item), {}, {
|
|
51
|
+
itemOpts: _objectSpread(_objectSpread({
|
|
52
|
+
ariaLabel: typeof label === 'string' ? label : '',
|
|
53
|
+
ariaRole: 'link'
|
|
54
|
+
}, item.itemOpts), {}, {
|
|
42
55
|
selectable: true
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
shadowStyle
|
|
46
|
-
},
|
|
47
|
-
cols: [
|
|
56
|
+
})
|
|
57
|
+
}),
|
|
58
|
+
shadowStyle: shadowStyle
|
|
59
|
+
}, void 0, /*#__PURE__*/_jsx(Grid, {
|
|
60
|
+
cols: ['38px'],
|
|
48
61
|
gutter: "1px",
|
|
49
62
|
pl: 0,
|
|
50
63
|
justifyItems: "center",
|
|
51
64
|
"data-testid": "leftnav-leftcomponent"
|
|
52
|
-
},
|
|
53
|
-
item,
|
|
54
|
-
ctx
|
|
55
|
-
})),
|
|
65
|
+
}, void 0, /*#__PURE__*/_jsx(CollapsedComponent, {
|
|
66
|
+
item: item,
|
|
67
|
+
ctx: ctx
|
|
68
|
+
})), /*#__PURE__*/_jsx(StyledLabel, {
|
|
56
69
|
ml: "1px",
|
|
57
70
|
mt: "xxxs",
|
|
58
71
|
mb: "15px",
|
|
59
|
-
"data-testid": labelDataTestId ||
|
|
60
|
-
labelOverflow
|
|
61
|
-
}, labelOverflow ===
|
|
72
|
+
"data-testid": labelDataTestId || 'leftnav-itemlabel',
|
|
73
|
+
labelOverflow: labelOverflow
|
|
74
|
+
}, void 0, labelOverflow === 'truncate' ? /*#__PURE__*/_jsx(SimpleTruncatedTooltipText, {
|
|
62
75
|
value: label,
|
|
63
76
|
placement: "bottom-start"
|
|
64
|
-
}) : label),
|
|
77
|
+
}) : label), /*#__PURE__*/_jsx(Grid, {
|
|
65
78
|
mt: "xxxs",
|
|
66
79
|
pr: "xxs2",
|
|
67
80
|
"data-testid": "leftnav-right-component"
|
|
68
|
-
}, RightComponent &&
|
|
69
|
-
ctx,
|
|
70
|
-
item
|
|
81
|
+
}, void 0, RightComponent && /*#__PURE__*/_jsx(RightComponent, {
|
|
82
|
+
ctx: ctx,
|
|
83
|
+
item: item
|
|
71
84
|
})));
|
|
72
85
|
};
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
};
|
|
76
|
-
//# sourceMappingURL=index.js.map
|
|
86
|
+
|
|
87
|
+
export { ItemLink };
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
const StyledLabel = styled(Grid)
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export {
|
|
10
|
-
StyledLabel
|
|
11
|
-
};
|
|
12
|
-
//# sourceMappingURL=styled.js.map
|
|
1
|
+
import Grid from '@elliemae/ds-grid';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
|
|
4
|
+
const StyledLabel = /*#__PURE__*/styled(Grid).withConfig({
|
|
5
|
+
componentId: "sc-16fwr4f-0"
|
|
6
|
+
})(["font-size:14px;color:", ";word-break:", ";"], props => props.theme.colors.neutral[800], props => props.labelOverflow === 'wrapAll' ? 'break-all' : 'normal');
|
|
7
|
+
|
|
8
|
+
export { StyledLabel };
|