@elliemae/ds-left-navigation 2.0.0-alpha.10 → 2.0.0-alpha.14
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/LeftNavigationContext.js +0 -4
- package/cjs/common/getItemBackgroundStyle.js +1 -12
- package/cjs/common/getLeftBorderStyle.js +3 -17
- package/cjs/common/getScrollbarStyle.js +1 -24
- package/cjs/common/index.js +0 -2
- package/cjs/configs/useLeftNavConfig.js +14 -21
- package/cjs/configs/useLeftNavItems.js +11 -11
- package/cjs/exported-related/ChevronItem/index.js +7 -3
- package/cjs/exported-related/Icon/index.js +5 -0
- package/cjs/exported-related/ItemRenderer/index.js +11 -10
- package/cjs/exported-related/ItemRenderer/styled.js +27 -27
- package/cjs/exported-related/ItemRenderer/usePropsWithDefaults.js +10 -3
- package/cjs/exported-related/Notifications/index.js +41 -41
- package/cjs/exported-related/OpenWindowItem/index.js +7 -3
- package/cjs/hooks/useExpandableOnClickHandler.js +7 -6
- package/cjs/hooks/useKeyboardNavigation.js +7 -7
- package/cjs/hooks/useOpenableOnClickHandler.js +8 -7
- package/cjs/hooks/useSelectFirstBodyItem.js +14 -4
- package/cjs/index.js +0 -1
- package/cjs/outOfTheBox/ItemControlledDrilldown/index.js +19 -18
- package/cjs/outOfTheBox/ItemControlledDrilldown/styled.js +7 -4
- package/cjs/outOfTheBox/ItemHeader/index.js +24 -15
- package/cjs/outOfTheBox/ItemHeader/styled.js +3 -4
- package/cjs/outOfTheBox/ItemLink/index.js +18 -24
- package/cjs/outOfTheBox/ItemSection/index.js +12 -10
- package/cjs/outOfTheBox/ItemSeparator/index.js +6 -6
- package/cjs/outOfTheBox/ItemSubmenu/index.js +17 -25
- package/cjs/outOfTheBox/ItemSubmenu/styled.js +3 -4
- package/cjs/outOfTheBox/ItemTextLabel/index.js +11 -9
- package/cjs/outOfTheBox/ItemTextLabel/styled.js +7 -4
- package/cjs/outOfTheBox/ItemUncontrolledDrilldown/index.js +15 -15
- package/cjs/outOfTheBox/ItemUncontrolledDrilldown/styled.js +7 -4
- package/cjs/outOfTheBox/ItemWithDate/index.js +9 -8
- package/cjs/outOfTheBox/ItemWithDate/styled.js +7 -4
- package/cjs/outOfTheBox/index.js +6 -6
- package/cjs/parts/LeftNavContent/index.js +5 -2
- package/cjs/parts/LeftNavContent/styled.js +11 -16
- package/cjs/parts/LeftNavContentWithScrollbar/index.js +7 -0
- package/cjs/parts/LeftNavFooterItem/index.js +3 -12
- package/cjs/parts/LeftNavFooterItem/styled.js +8 -9
- package/cjs/parts/LeftNavLoading/index.js +13 -10
- package/cjs/parts/OutOfTheBoxMapItem.js +5 -0
- package/cjs/prop-types.js +2 -1
- package/esm/LeftNavigationContext.js +0 -4
- package/esm/common/getItemBackgroundStyle.js +1 -12
- package/esm/common/getLeftBorderStyle.js +3 -17
- package/esm/common/getScrollbarStyle.js +1 -24
- package/esm/common/index.js +0 -1
- package/esm/configs/useLeftNavConfig.js +14 -21
- package/esm/configs/useLeftNavItems.js +11 -11
- package/esm/exported-related/ChevronItem/index.js +7 -2
- package/esm/exported-related/Icon/index.js +5 -0
- package/esm/exported-related/ItemRenderer/index.js +11 -10
- package/esm/exported-related/ItemRenderer/styled.js +27 -28
- package/esm/exported-related/ItemRenderer/usePropsWithDefaults.js +10 -3
- package/esm/exported-related/Notifications/index.js +41 -37
- package/esm/exported-related/OpenWindowItem/index.js +7 -2
- package/esm/hooks/useExpandableOnClickHandler.js +7 -6
- package/esm/hooks/useKeyboardNavigation.js +7 -7
- package/esm/hooks/useOpenableOnClickHandler.js +8 -7
- package/esm/hooks/useSelectFirstBodyItem.js +14 -4
- package/esm/index.js +0 -1
- package/esm/outOfTheBox/ItemControlledDrilldown/index.js +16 -13
- package/esm/outOfTheBox/ItemControlledDrilldown/styled.js +7 -4
- package/esm/outOfTheBox/ItemHeader/index.js +24 -15
- package/esm/outOfTheBox/ItemHeader/styled.js +3 -3
- package/esm/outOfTheBox/ItemLink/index.js +18 -24
- package/esm/outOfTheBox/ItemSection/index.js +12 -10
- package/esm/outOfTheBox/ItemSeparator/index.js +6 -6
- package/esm/outOfTheBox/ItemSubmenu/index.js +17 -25
- package/esm/outOfTheBox/ItemSubmenu/styled.js +3 -3
- package/esm/outOfTheBox/ItemTextLabel/index.js +11 -9
- package/esm/outOfTheBox/ItemTextLabel/styled.js +7 -4
- package/esm/outOfTheBox/ItemUncontrolledDrilldown/index.js +14 -12
- package/esm/outOfTheBox/ItemUncontrolledDrilldown/styled.js +7 -4
- package/esm/outOfTheBox/ItemWithDate/index.js +9 -8
- package/esm/outOfTheBox/ItemWithDate/styled.js +7 -4
- package/esm/outOfTheBox/index.js +6 -6
- package/esm/parts/LeftNavContent/index.js +5 -2
- package/esm/parts/LeftNavContent/styled.js +11 -16
- package/esm/parts/LeftNavContentWithScrollbar/index.js +7 -0
- package/esm/parts/LeftNavFooterItem/index.js +2 -10
- package/esm/parts/LeftNavFooterItem/styled.js +3 -4
- package/esm/parts/LeftNavLoading/index.js +13 -10
- package/esm/parts/OutOfTheBoxMapItem.js +5 -0
- package/esm/prop-types.js +2 -1
- package/package.json +12 -16
- package/types/LeftNavigation.d.ts +46 -11
- package/types/LeftNavigationContext.d.ts +0 -4
- package/types/common/index.d.ts +0 -1
- package/types/exported-related/ItemRenderer/styled.d.ts +3 -2
- package/types/hooks/useKeyboardNavigation.d.ts +1 -1
- package/types/hooks/useSelectFirstBodyItem.d.ts +1 -1
- package/types/index.d.d.ts +8 -2
- package/types/index.d.ts +1 -2
- package/types/outOfTheBox/ItemControlledDrilldown/styled.d.ts +2 -2
- package/types/outOfTheBox/ItemHeader/styled.d.ts +2 -2
- package/types/outOfTheBox/ItemLink/styled.d.ts +1 -1
- package/types/outOfTheBox/ItemSection/styled.d.ts +3 -3
- package/types/outOfTheBox/ItemSubmenu/styled.d.ts +2 -2
- package/types/outOfTheBox/ItemTextLabel/styled.d.ts +1 -1
- package/types/outOfTheBox/ItemUncontrolledDrilldown/styled.d.ts +2 -2
- package/types/outOfTheBox/ItemWithDate/styled.d.ts +2 -2
- package/types/parts/LeftNavContent/styled.d.ts +7 -11
- package/types/parts/LeftNavContentWithScrollbar/index.d.ts +1 -0
- package/types/parts/LeftNavFooterItem/styled.d.ts +10 -6
- package/types/prop-types.d.ts +87 -18
- package/cjs/common/getFocusedByKeyboardStyle.js +0 -23
- package/cjs/configs/useGlobalKeyListeners.js +0 -31
- package/cjs/package.json +0 -4
- package/esm/common/getFocusedByKeyboardStyle.js +0 -19
- package/esm/configs/useGlobalKeyListeners.js +0 -22
- package/esm/package.json +0 -4
- package/types/common/getFocusedByKeyboardStyle.d.ts +0 -4
- package/types/configs/useGlobalKeyListeners.d.ts +0 -6
|
@@ -3,10 +3,13 @@ import Grid from '@elliemae/ds-grid';
|
|
|
3
3
|
|
|
4
4
|
const StyledLabel = /*#__PURE__*/styled(Grid).withConfig({
|
|
5
5
|
componentId: "sc-17rk89j-0"
|
|
6
|
-
})(["font-size:13px;font-weight:", ";color:", ";line-height:14px;word-break:", ";"], props => props.labelBold ? props.theme.fontWeights.semibold : props.theme.fontWeights.regular,
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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');
|
|
10
13
|
const StyledDate = /*#__PURE__*/styled(Grid).withConfig({
|
|
11
14
|
componentId: "sc-17rk89j-1"
|
|
12
15
|
})(["font-size:12px;color:", ";line-height:14px;"], props => props.theme.colors.neutral[600]);
|
|
@@ -1,17 +1,17 @@
|
|
|
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';
|
|
1
6
|
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
2
7
|
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
3
8
|
import 'react';
|
|
4
9
|
import Grid from '@elliemae/ds-grid';
|
|
5
10
|
import { SimpleTruncatedTooltipText } from '@elliemae/ds-truncated-tooltip-text';
|
|
6
11
|
import { ItemRenderer } from '../../exported-related/ItemRenderer/index.js';
|
|
7
|
-
import '@elliemae/ds-icons
|
|
12
|
+
import '@elliemae/ds-icons';
|
|
8
13
|
import 'react/jsx-runtime';
|
|
9
|
-
import '@elliemae/ds-icons/Notifications';
|
|
10
|
-
import '@elliemae/ds-icons/ExceptionsSmallFill';
|
|
11
|
-
import '@elliemae/ds-icons/AlertsSmallFill';
|
|
12
|
-
import '@elliemae/ds-icons/MessagesSmallFill';
|
|
13
14
|
import 'styled-components';
|
|
14
|
-
import '@elliemae/ds-icons/OpenWindow';
|
|
15
15
|
import { StyledLabel, StyledDate } from './styled.js';
|
|
16
16
|
|
|
17
17
|
var _div;
|
|
@@ -29,7 +29,8 @@ const ItemWithDate = props => {
|
|
|
29
29
|
labelRightSection,
|
|
30
30
|
labelOverflow: itemLabelOverflow,
|
|
31
31
|
labelBold,
|
|
32
|
-
labelColor
|
|
32
|
+
labelColor,
|
|
33
|
+
labelDataTestId
|
|
33
34
|
}
|
|
34
35
|
},
|
|
35
36
|
ctx,
|
|
@@ -49,7 +50,7 @@ const ItemWithDate = props => {
|
|
|
49
50
|
}, void 0, " ", _div || (_div = /*#__PURE__*/_jsx("div", {})), /*#__PURE__*/_jsx(StyledLabel, {
|
|
50
51
|
pl: "xxs",
|
|
51
52
|
pb: "xxxs",
|
|
52
|
-
"data-testid":
|
|
53
|
+
"data-testid": labelDataTestId || 'leftnav-list-item-label',
|
|
53
54
|
labelOverflow: labelOverflow,
|
|
54
55
|
labelBold: labelBold,
|
|
55
56
|
labelColor: labelColor
|
|
@@ -3,10 +3,13 @@ import Grid from '@elliemae/ds-grid';
|
|
|
3
3
|
|
|
4
4
|
const StyledLabel = /*#__PURE__*/styled(Grid).withConfig({
|
|
5
5
|
componentId: "sc-govmsc-0"
|
|
6
|
-
})(["font-size:13px;font-weight:", ";color:", ";line-height:14px;word-break:", ";"], props => props.labelBold ? props.theme.fontWeights.semibold : props.theme.fontWeights.regular,
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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');
|
|
10
13
|
const StyledDate = /*#__PURE__*/styled(Grid).withConfig({
|
|
11
14
|
componentId: "sc-govmsc-1"
|
|
12
15
|
})(["font-size:12px;color:", ";line-height:14px;"], props => props.theme.colors.neutral[600]);
|
package/esm/outOfTheBox/index.js
CHANGED
|
@@ -3,14 +3,14 @@ import '@babel/runtime/helpers/esm/jsx';
|
|
|
3
3
|
import 'react';
|
|
4
4
|
import '@elliemae/ds-grid';
|
|
5
5
|
import 'styled-components';
|
|
6
|
+
import 'core-js/modules/esnext.async-iterator.filter.js';
|
|
7
|
+
import 'core-js/modules/esnext.iterator.constructor.js';
|
|
8
|
+
import 'core-js/modules/esnext.iterator.filter.js';
|
|
9
|
+
import 'core-js/modules/esnext.async-iterator.for-each.js';
|
|
10
|
+
import 'core-js/modules/esnext.iterator.for-each.js';
|
|
6
11
|
import '@babel/runtime/helpers/esm/defineProperty';
|
|
7
12
|
import 'react/jsx-runtime';
|
|
8
|
-
import '@elliemae/ds-icons
|
|
9
|
-
import '@elliemae/ds-icons/Notifications';
|
|
10
|
-
import '@elliemae/ds-icons/ExceptionsSmallFill';
|
|
11
|
-
import '@elliemae/ds-icons/AlertsSmallFill';
|
|
12
|
-
import '@elliemae/ds-icons/MessagesSmallFill';
|
|
13
|
-
import '@elliemae/ds-icons/OpenWindow';
|
|
13
|
+
import '@elliemae/ds-icons';
|
|
14
14
|
import { ItemControlledDrilldown } from './ItemControlledDrilldown/index.js';
|
|
15
15
|
export { ItemControlledDrilldown } from './ItemControlledDrilldown/index.js';
|
|
16
16
|
import { ItemUncontrolledDrilldown } from './ItemUncontrolledDrilldown/index.js';
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
2
|
+
import 'core-js/modules/esnext.async-iterator.map.js';
|
|
3
|
+
import 'core-js/modules/esnext.iterator.map.js';
|
|
2
4
|
import React from 'react';
|
|
3
5
|
import { LeftNavContext } from '../../LeftNavigationContext.js';
|
|
4
6
|
import { LeftNavFooterItem } from '../LeftNavFooterItem/index.js';
|
|
@@ -17,7 +19,8 @@ const LeftNavInnerContent = () => {
|
|
|
17
19
|
HeaderComponent,
|
|
18
20
|
BodyHeaderComponent,
|
|
19
21
|
openedItem,
|
|
20
|
-
items
|
|
22
|
+
items,
|
|
23
|
+
withoutBodyShadow
|
|
21
24
|
},
|
|
22
25
|
selectedItem
|
|
23
26
|
} = React.useContext(LeftNavContext);
|
|
@@ -33,7 +36,7 @@ const LeftNavInnerContent = () => {
|
|
|
33
36
|
}, void 0, BodyHeaderComponent ? /*#__PURE__*/_jsx(OutOfTheBoxMapItem, {
|
|
34
37
|
item: BodyHeaderComponent
|
|
35
38
|
}) : null), /*#__PURE__*/_jsx(StyledLeftNavBodyItemsArea, {
|
|
36
|
-
selected: openedItem !== null,
|
|
39
|
+
selected: !withoutBodyShadow && openedItem !== null,
|
|
37
40
|
"data-testid": "leftnav-body-items-area",
|
|
38
41
|
tabIndex: -1
|
|
39
42
|
}, void 0, /*#__PURE__*/_jsx(LeftNavContentWithScrollbar, {}, void 0, items.map(item => /*#__PURE__*/_jsx(OutOfTheBoxMapItem, {
|
|
@@ -1,22 +1,17 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
2
|
|
|
3
|
-
const getLeftShadowStyles =
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
box-shadow: inset 4px 0 0 0
|
|
12
|
-
}
|
|
13
|
-
:active {
|
|
14
|
-
box-shadow: inset 4px 0 0 0 ${theme.colors.brand[400]};
|
|
15
|
-
}
|
|
16
|
-
`;
|
|
3
|
+
const getLeftShadowStyles = _ref => {
|
|
4
|
+
let {
|
|
5
|
+
selected,
|
|
6
|
+
selectedParent,
|
|
7
|
+
theme
|
|
8
|
+
} = _ref;
|
|
9
|
+
|
|
10
|
+
if (!selected && !selectedParent) {
|
|
11
|
+
return "\n box-shadow: inset 4px 0 0 0 transparent;\n :hover {\n box-shadow: inset 4px 0 0 0 ".concat(theme.colors.brand[300], ";\n }\n :active {\n box-shadow: inset 4px 0 0 0 ").concat(theme.colors.brand[400], ";\n }\n ");
|
|
17
12
|
}
|
|
18
13
|
|
|
19
|
-
return
|
|
14
|
+
return "box-shadow: inset 4px 0 0 0 ".concat(theme.colors.brand[400], ";");
|
|
20
15
|
};
|
|
21
16
|
|
|
22
17
|
const StyledLeftNavExpandAnimationWrapper = /*#__PURE__*/styled.nav.withConfig({
|
|
@@ -24,7 +19,7 @@ const StyledLeftNavExpandAnimationWrapper = /*#__PURE__*/styled.nav.withConfig({
|
|
|
24
19
|
})(["width:", ";transition:width ", " 350ms;box-shadow:-1px 0 0 0 ", ";border:1px solid ", ";overflow:hidden;height:100%;position:relative;"], props => props.expanded ? props.expandedWidth : '48px', props => props.expanded ? 'ease-out' : 'ease-in', props => props.theme.colors.neutral[100], props => props.theme.colors.neutral[100]);
|
|
25
20
|
const StyledLeftNavAreasContainer = /*#__PURE__*/styled.div.withConfig({
|
|
26
21
|
componentId: "sc-1hvvtkb-1"
|
|
27
|
-
})(["position:absolute;width:", ";height:100%;display:grid;grid-template-columns:1fr;grid-template-rows:auto 1fr auto;grid-template-areas:'left-nav-header' 'left-nav-body' 'left-nav-footer';"], props => props.expanded ?
|
|
22
|
+
})(["position:absolute;width:", ";height:100%;display:grid;grid-template-columns:1fr;grid-template-rows:auto 1fr auto;grid-template-areas:'left-nav-header' 'left-nav-body' 'left-nav-footer';"], props => props.expanded ? "calc(".concat(props.expandedWidth, " - 2px)") : '46px');
|
|
28
23
|
const StyledLeftNavHeaderArea = /*#__PURE__*/styled.div.withConfig({
|
|
29
24
|
componentId: "sc-1hvvtkb-2"
|
|
30
25
|
})(["grid-area:left-nav-header;", ""], getLeftShadowStyles);
|
|
@@ -1,6 +1,13 @@
|
|
|
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';
|
|
1
6
|
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
2
7
|
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
8
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
3
9
|
import { useState, useRef, useEffect } from 'react';
|
|
10
|
+
import 'overlayscrollbars/css/OverlayScrollbars.css';
|
|
4
11
|
import OverlayScrollbars from 'overlayscrollbars';
|
|
5
12
|
import styled from 'styled-components';
|
|
6
13
|
import { jsxs } from 'react/jsx-runtime';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
2
2
|
import { useContext } from 'react';
|
|
3
|
-
import MenuExpand from '@elliemae/ds-icons
|
|
3
|
+
import { MenuExpand } from '@elliemae/ds-icons';
|
|
4
4
|
import Grid from '@elliemae/ds-grid';
|
|
5
5
|
import { SimpleTruncatedTooltipText } from '@elliemae/ds-truncated-tooltip-text';
|
|
6
6
|
import { StyledFooterMenu, StyledItemWrapper, StyledItem, StyledLabel, StyledSeparator, StyledMenuCollapse } from './styled.js';
|
|
@@ -23,9 +23,7 @@ const LeftNavFooterItem = props => {
|
|
|
23
23
|
},
|
|
24
24
|
expandedForAnimation,
|
|
25
25
|
setSelectedItem,
|
|
26
|
-
focusedItem,
|
|
27
26
|
setFocusedItem,
|
|
28
|
-
focusedByKey,
|
|
29
27
|
visibleItemsRefs
|
|
30
28
|
} = useContext(LeftNavContext);
|
|
31
29
|
const id = FOOTER_DS_ID;
|
|
@@ -54,12 +52,10 @@ const LeftNavFooterItem = props => {
|
|
|
54
52
|
cols: expandedForAnimation ? ['auto', '1fr', 'auto'] : ['38px'],
|
|
55
53
|
onClick: expandedForAnimation ? () => null : handleOnClick,
|
|
56
54
|
onKeyDown: onKeyDown,
|
|
57
|
-
focused: focusedItem === id,
|
|
58
|
-
focusedByKey: focusedByKey,
|
|
59
55
|
onFocus: () => setFocusedItem(id),
|
|
60
56
|
"data-testid": "leftnav-item-container",
|
|
61
57
|
role: "menuitem",
|
|
62
|
-
"aria-label": expandedForAnimation ?
|
|
58
|
+
"aria-label": expandedForAnimation ? "Footer, ".concat(footerLabel) : "Expand left navigation",
|
|
63
59
|
children: !expandedForAnimation ? /*#__PURE__*/_jsx(MenuExpand, {
|
|
64
60
|
size: "m",
|
|
65
61
|
color: ['brand-primary', 800],
|
|
@@ -83,13 +79,9 @@ const LeftNavFooterItem = props => {
|
|
|
83
79
|
size: "m",
|
|
84
80
|
color: ['brand-primary', 800],
|
|
85
81
|
onClick: e => {
|
|
86
|
-
if (openedItem) setSelectedItem(openedItem);
|
|
87
82
|
e.stopPropagation();
|
|
88
83
|
handleOnClick(e);
|
|
89
84
|
},
|
|
90
|
-
onKeyDown: e => {
|
|
91
|
-
if (['Space', 'Enter'].includes(e.code) && openedItem) setSelectedItem(openedItem);
|
|
92
|
-
},
|
|
93
85
|
"data-testid": "leftnav-footer-btn",
|
|
94
86
|
tabIndex: 0,
|
|
95
87
|
onFocus: e => {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
|
-
import { Grid } from '@elliemae/ds-
|
|
2
|
+
import { Grid } from '@elliemae/ds-grid';
|
|
3
3
|
import { MenuCollapse } from '@elliemae/ds-icons';
|
|
4
|
-
import { getFocusedByKeyboardBorderStyle } from '../../common/getFocusedByKeyboardStyle.js';
|
|
5
4
|
import { getItemBackgroundStyle } from '../../common/getItemBackgroundStyle.js';
|
|
6
5
|
import { getLeftBorderStyle } from '../../common/getLeftBorderStyle.js';
|
|
7
6
|
|
|
@@ -13,7 +12,7 @@ const StyledItemWrapper = /*#__PURE__*/styled(Grid).withConfig({
|
|
|
13
12
|
})(["position:relative;padding-left:", ";"], props => props.theme.space.xxxs);
|
|
14
13
|
const StyledItem = /*#__PURE__*/styled(Grid).withConfig({
|
|
15
14
|
componentId: "sc-1mcbjxr-2"
|
|
16
|
-
})(["min-height:48px;cursor:", ";", " outline:none;", ""], props => props.expanded ? 'auto' : 'pointer', getItemBackgroundStyle,
|
|
15
|
+
})(["min-height:48px;cursor:", ";", " outline:none;:focus{&:before{content:'';position:absolute;height:100%;width:100%;top:0;left:0px;border:2px solid ", ";pointer-events:none;}}"], props => props.expanded ? 'auto' : 'pointer', getItemBackgroundStyle, props => props.theme.colors.brand[600]);
|
|
17
16
|
const StyledLabel = /*#__PURE__*/styled(Grid).withConfig({
|
|
18
17
|
componentId: "sc-1mcbjxr-3"
|
|
19
18
|
})(["font-size:11px;color:", ";line-height:14px;word-break:", ";"], props => props.theme.colors.neutral[500], props => props.labelOverflow === 'wrapAll' ? 'break-all' : 'normal');
|
|
@@ -22,6 +21,6 @@ const StyledSeparator = /*#__PURE__*/styled(Grid).withConfig({
|
|
|
22
21
|
})(["height:16px;width:1px;background-color:", ";"], props => props.theme.colors.neutral[100]);
|
|
23
22
|
const StyledMenuCollapse = /*#__PURE__*/styled(MenuCollapse).withConfig({
|
|
24
23
|
componentId: "sc-1mcbjxr-5"
|
|
25
|
-
})(["cursor:pointer;:focus{outline:
|
|
24
|
+
})(["cursor:pointer;:focus{outline:2px solid ", ";}"], props => props.theme.colors.brand[700]);
|
|
26
25
|
|
|
27
26
|
export { StyledFooterMenu, StyledItem, StyledItemWrapper, StyledLabel, StyledMenuCollapse, StyledSeparator };
|
|
@@ -1,20 +1,23 @@
|
|
|
1
1
|
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
2
2
|
import 'react';
|
|
3
|
-
import DSCircularProgressIndicator from '@elliemae/ds-
|
|
3
|
+
import DSCircularProgressIndicator from '@elliemae/ds-circular-progress-indicator';
|
|
4
4
|
import Grid from '@elliemae/ds-grid';
|
|
5
5
|
import styled from 'styled-components';
|
|
6
6
|
|
|
7
7
|
const StyledLoaderWrapper = /*#__PURE__*/styled(Grid).withConfig({
|
|
8
8
|
componentId: "sc-mqgtxd-0"
|
|
9
9
|
})(["grid-area:left-nav-body;height:100%;place-items:center;z-index:0;background-color:white;"]);
|
|
10
|
-
const LeftNavLoading =
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
10
|
+
const LeftNavLoading = _ref => {
|
|
11
|
+
let {
|
|
12
|
+
expanded
|
|
13
|
+
} = _ref;
|
|
14
|
+
return /*#__PURE__*/_jsx(StyledLoaderWrapper, {}, void 0, /*#__PURE__*/_jsx(DSCircularProgressIndicator, {
|
|
15
|
+
size: expanded ? 'xl' : 'm',
|
|
16
|
+
loading: true,
|
|
17
|
+
showLabel: expanded,
|
|
18
|
+
waiting: false,
|
|
19
|
+
showTooltip: !expanded
|
|
20
|
+
}));
|
|
21
|
+
};
|
|
19
22
|
|
|
20
23
|
export { LeftNavLoading };
|
|
@@ -1,3 +1,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';
|
|
1
6
|
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
2
7
|
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
3
8
|
import React from 'react';
|
package/esm/prop-types.js
CHANGED
|
@@ -23,7 +23,8 @@ const leftNavigationProps = {
|
|
|
23
23
|
onFooterClose: PropTypes.func.description('The function to call when the left-nav is closed via the footer'),
|
|
24
24
|
onSelectedChange: PropTypes.func.description('A callback which triggers when the selected item changes').defaultValue(() => null),
|
|
25
25
|
onFocusChange: PropTypes.func.description('A callback which triggers when the focused item changes').defaultValue(() => null),
|
|
26
|
-
items: PropTypes.arrayOf(PropTypes.object).description('The array of items you want to render inside the left nav').defaultValue([])
|
|
26
|
+
items: PropTypes.arrayOf(PropTypes.object).description('The array of items you want to render inside the left nav').defaultValue([]),
|
|
27
|
+
disableDefaultSelection: PropTypes.bool.description('Whether you do not want to automatically select the first body item').defaultValue(false)
|
|
27
28
|
};
|
|
28
29
|
|
|
29
30
|
const LeftNavItemProps = () => null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-left-navigation",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.14",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Left Navigation",
|
|
6
6
|
"module": "./esm/index.js",
|
|
@@ -191,10 +191,6 @@
|
|
|
191
191
|
"import": "./esm/configs/useLeftNavConfig.js",
|
|
192
192
|
"require": "./cjs/configs/useLeftNavConfig.js"
|
|
193
193
|
},
|
|
194
|
-
"./configs/useGlobalKeyListeners": {
|
|
195
|
-
"import": "./esm/configs/useGlobalKeyListeners.js",
|
|
196
|
-
"require": "./cjs/configs/useGlobalKeyListeners.js"
|
|
197
|
-
},
|
|
198
194
|
"./configs": {
|
|
199
195
|
"import": "./esm/configs/index.js",
|
|
200
196
|
"require": "./cjs/configs/index.js"
|
|
@@ -214,10 +210,6 @@
|
|
|
214
210
|
"./common/getItemBackgroundStyle": {
|
|
215
211
|
"import": "./esm/common/getItemBackgroundStyle.js",
|
|
216
212
|
"require": "./cjs/common/getItemBackgroundStyle.js"
|
|
217
|
-
},
|
|
218
|
-
"./common/getFocusedByKeyboardStyle": {
|
|
219
|
-
"import": "./esm/common/getFocusedByKeyboardStyle.js",
|
|
220
|
-
"require": "./cjs/common/getFocusedByKeyboardStyle.js"
|
|
221
213
|
}
|
|
222
214
|
},
|
|
223
215
|
"repository": {
|
|
@@ -241,20 +233,24 @@
|
|
|
241
233
|
"generateSubmodules": true
|
|
242
234
|
},
|
|
243
235
|
"dependencies": {
|
|
244
|
-
"@elliemae/ds-
|
|
245
|
-
"@elliemae/ds-
|
|
246
|
-
"@elliemae/ds-
|
|
236
|
+
"@elliemae/ds-circular-progress-indicator": "2.0.0-alpha.14",
|
|
237
|
+
"@elliemae/ds-grid": "2.0.0-alpha.14",
|
|
238
|
+
"@elliemae/ds-icons": "2.0.0-alpha.14",
|
|
239
|
+
"@elliemae/ds-system": "2.0.0-alpha.14",
|
|
240
|
+
"@elliemae/ds-truncated-tooltip-text": "2.0.0-alpha.14",
|
|
241
|
+
"overlayscrollbars": "1.13.1",
|
|
247
242
|
"prop-types": "~15.7.2",
|
|
248
|
-
"react-
|
|
249
|
-
"tree-model": "~1.0.7"
|
|
243
|
+
"react-desc": "~4.1.3"
|
|
250
244
|
},
|
|
251
245
|
"devDependencies": {
|
|
252
|
-
"
|
|
246
|
+
"@testing-library/react": "~12.1.2",
|
|
247
|
+
"@testing-library/user-event": "~13.5.0",
|
|
248
|
+
"styled-components": "~5.3.3"
|
|
253
249
|
},
|
|
254
250
|
"peerDependencies": {
|
|
255
251
|
"lodash": "^4.17.21",
|
|
256
252
|
"react": "~17.0.2",
|
|
257
253
|
"react-dom": "^17.0.2",
|
|
258
|
-
"styled-components": "^5.3.
|
|
254
|
+
"styled-components": "^5.3.3"
|
|
259
255
|
}
|
|
260
256
|
}
|
|
@@ -1,19 +1,54 @@
|
|
|
1
|
+
/// <reference path="../../../../shared/typings/react-desc.d.ts" />
|
|
1
2
|
/// <reference types="react" />
|
|
2
3
|
import type { LeftNavProps } from './index.d';
|
|
3
4
|
export declare const LeftNavigation: {
|
|
4
5
|
(props: LeftNavProps): JSX.Element;
|
|
5
6
|
propTypes: {
|
|
6
|
-
containerProps:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
7
|
+
containerProps: {
|
|
8
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
9
|
+
};
|
|
10
|
+
expanded: {
|
|
11
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
12
|
+
};
|
|
13
|
+
loading: {
|
|
14
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
15
|
+
};
|
|
16
|
+
tabIndex: {
|
|
17
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
18
|
+
};
|
|
19
|
+
openedItem: {
|
|
20
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
21
|
+
};
|
|
22
|
+
footerLabel: {
|
|
23
|
+
defaultValue<T = unknown>(arg: T): {
|
|
24
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
25
|
+
};
|
|
26
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
27
|
+
};
|
|
28
|
+
onFooterExpand: {
|
|
29
|
+
defaultValue<T = unknown>(arg: T): {
|
|
30
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
31
|
+
};
|
|
32
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
33
|
+
};
|
|
34
|
+
onFooterClose: {
|
|
35
|
+
defaultValue<T = unknown>(arg: T): {
|
|
36
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
37
|
+
};
|
|
38
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
39
|
+
};
|
|
40
|
+
onSelectedChange: {
|
|
41
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
42
|
+
};
|
|
43
|
+
onFocusChange: {
|
|
44
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
45
|
+
};
|
|
46
|
+
items: {
|
|
47
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
48
|
+
};
|
|
49
|
+
disableDefaultSelection: {
|
|
50
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
51
|
+
};
|
|
17
52
|
};
|
|
18
53
|
defaultProps: LeftNavProps;
|
|
19
54
|
};
|
|
@@ -3,12 +3,8 @@ import type { LeftNavProps } from './index.d';
|
|
|
3
3
|
export declare type ContextProps = {
|
|
4
4
|
selectedItem: string;
|
|
5
5
|
setSelectedItem: React.Dispatch<React.SetStateAction<string>>;
|
|
6
|
-
selectedSubitem: string;
|
|
7
|
-
setSelectedSubitem: React.Dispatch<React.SetStateAction<string>>;
|
|
8
6
|
focusedItem: string;
|
|
9
7
|
setFocusedItem: React.Dispatch<React.SetStateAction<string>>;
|
|
10
|
-
focusedByKey: boolean;
|
|
11
|
-
setFocusedByKey: React.Dispatch<React.SetStateAction<boolean>>;
|
|
12
8
|
openedDrilldowns: string[];
|
|
13
9
|
setOpenedDrilldowns: React.Dispatch<React.SetStateAction<string[]>>;
|
|
14
10
|
visibleItems: string[];
|
package/types/common/index.d.ts
CHANGED
|
@@ -6,10 +6,11 @@ interface ItemProps {
|
|
|
6
6
|
theme: any;
|
|
7
7
|
shadowStyle: (theme: any) => string;
|
|
8
8
|
}
|
|
9
|
-
export declare const
|
|
9
|
+
export declare const borderOutside: (color: any, weight?: number) => string;
|
|
10
|
+
export declare const StyledItemWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {
|
|
10
11
|
shadowStyle: (theme: any) => string;
|
|
11
12
|
}, never>;
|
|
12
|
-
export declare const StyledItem: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").RefAttributes<
|
|
13
|
+
export declare const StyledItem: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {
|
|
13
14
|
minHeight: string;
|
|
14
15
|
} & ItemProps, never>;
|
|
15
16
|
export {};
|
|
@@ -4,5 +4,5 @@ declare type useKeyboardNavigationProps = {
|
|
|
4
4
|
item: GenericItemItemProps;
|
|
5
5
|
onClick: (e: any) => void;
|
|
6
6
|
};
|
|
7
|
-
export declare const useKeyboardNavigation: ({ item, onClick
|
|
7
|
+
export declare const useKeyboardNavigation: ({ item, onClick }: useKeyboardNavigationProps) => React.KeyboardEventHandler;
|
|
8
8
|
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { GenericItemItemProps } from '../index.d';
|
|
3
|
-
export declare const useSelectFirstBodyItem: (items: GenericItemItemProps[], openedItem: string, setSelectedItem: React.Dispatch<React.SetStateAction<string
|
|
3
|
+
export declare const useSelectFirstBodyItem: (items: GenericItemItemProps[], openedItem: string, selectedItem: string, setSelectedItem: React.Dispatch<React.SetStateAction<string>>, disableDefaultSelection: boolean) => void;
|
package/types/index.d.d.ts
CHANGED
|
@@ -8,8 +8,8 @@ export interface LeftNavProps {
|
|
|
8
8
|
items: GenericItemItemProps[];
|
|
9
9
|
footerLabel: string;
|
|
10
10
|
labelOverflow: LabelOveflowT;
|
|
11
|
-
onSelectedChange: (item:
|
|
12
|
-
onFocusChange: (item:
|
|
11
|
+
onSelectedChange: (item: string) => void;
|
|
12
|
+
onFocusChange: (item: string) => void;
|
|
13
13
|
onFooterExpand: () => void;
|
|
14
14
|
onFooterClose: () => void;
|
|
15
15
|
onItemClick: (item: GenericItemItemProps, e: React.MouseEvent<HTMLElement>) => void;
|
|
@@ -17,6 +17,10 @@ export interface LeftNavProps {
|
|
|
17
17
|
BodyHeaderComponent?: GenericItemItemProps;
|
|
18
18
|
tabIndex: number;
|
|
19
19
|
loading: boolean;
|
|
20
|
+
selectedItem?: string;
|
|
21
|
+
selectedParent?: string;
|
|
22
|
+
disableDefaultSelection?: boolean;
|
|
23
|
+
withoutBodyShadow?: boolean;
|
|
20
24
|
}
|
|
21
25
|
export declare type OutOfTheBoxT = 'ds-left-nav-item-header' | 'ds-left-nav-item-link' | 'ds-left-nav-item-submenu' | 'ds-left-nav-item-controlled-drilldown' | 'ds-left-nav-item-uncontrolled-drilldown' | 'ds-left-nav-item-section' | 'ds-left-nav-item-separator' | 'ds-left-nav-item-text-label' | 'ds-left-nav-item-with-date';
|
|
22
26
|
export interface itemOptsT {
|
|
@@ -39,7 +43,9 @@ export interface itemOptsT {
|
|
|
39
43
|
ariaRole?: string;
|
|
40
44
|
ariaLive?: string;
|
|
41
45
|
ariaExpanded?: boolean;
|
|
46
|
+
ariaDescribedBy?: string;
|
|
42
47
|
items?: GenericItemItemProps[];
|
|
48
|
+
labelDataTestId?: string;
|
|
43
49
|
}
|
|
44
50
|
export interface ComponentProps {
|
|
45
51
|
item: GenericItemItemProps;
|
package/types/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import 'overlayscrollbars/css/OverlayScrollbars.css';
|
|
2
1
|
export { LeftNavItemPropsSchema, LeftNavItemOptionsSchema } from './prop-types';
|
|
3
|
-
export { LeftNavigation, LeftNavigationWithSchema, LeftNavigation as default
|
|
2
|
+
export { LeftNavigation, LeftNavigationWithSchema, LeftNavigation as default } from './LeftNavigation';
|
|
4
3
|
export * from './exported-related';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const StyledLabel: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").RefAttributes<
|
|
2
|
+
export declare const StyledLabel: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {
|
|
3
3
|
labelBold: boolean;
|
|
4
4
|
}, never>;
|
|
5
|
-
export declare const StyledDate: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").RefAttributes<
|
|
5
|
+
export declare const StyledDate: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const StyledLabel: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").RefAttributes<
|
|
3
|
-
export declare const StyledChevronLeft: import("styled-components").StyledComponent<any,
|
|
2
|
+
export declare const StyledLabel: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
|
|
3
|
+
export declare const StyledChevronLeft: import("styled-components").StyledComponent<(rest: any) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const StyledLabel: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").RefAttributes<
|
|
2
|
+
export declare const StyledLabel: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const StyledLabel: import("styled-components").StyledComponent<"span",
|
|
2
|
-
export declare const StyledVerticalSeparator: import("styled-components").StyledComponent<"div",
|
|
3
|
-
export declare const StyledRightLabel: import("styled-components").StyledComponent<"span",
|
|
1
|
+
export declare const StyledLabel: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
|
|
2
|
+
export declare const StyledVerticalSeparator: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
3
|
+
export declare const StyledRightLabel: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const StyledLabel: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").RefAttributes<
|
|
3
|
-
export declare const StyledChevronLeft: import("styled-components").StyledComponent<any,
|
|
2
|
+
export declare const StyledLabel: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
|
|
3
|
+
export declare const StyledChevronLeft: import("styled-components").StyledComponent<(rest: any) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const StyledLabel: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").RefAttributes<
|
|
2
|
+
export declare const StyledLabel: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const StyledLabel: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").RefAttributes<
|
|
2
|
+
export declare const StyledLabel: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {
|
|
3
3
|
labelBold: boolean;
|
|
4
4
|
}, never>;
|
|
5
|
-
export declare const StyledDate: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").RefAttributes<
|
|
5
|
+
export declare const StyledDate: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const StyledLabel: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").RefAttributes<
|
|
2
|
+
export declare const StyledLabel: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {
|
|
3
3
|
labelBold: boolean;
|
|
4
4
|
}, never>;
|
|
5
|
-
export declare const StyledDate: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").RefAttributes<
|
|
5
|
+
export declare const StyledDate: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
|