@elliemae/ds-left-navigation 3.5.0-rc.7 → 3.5.1-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/dist/cjs/LeftNavigation.js +5 -4
  2. package/dist/cjs/LeftNavigation.js.map +2 -2
  3. package/dist/cjs/exported-related/ChevronItem/index.js +2 -2
  4. package/dist/cjs/exported-related/ChevronItem/index.js.map +2 -2
  5. package/dist/cjs/exported-related/Icon/index.js +2 -2
  6. package/dist/cjs/exported-related/Icon/index.js.map +2 -2
  7. package/dist/cjs/exported-related/ItemRenderer/index.js +56 -44
  8. package/dist/cjs/exported-related/ItemRenderer/index.js.map +2 -2
  9. package/dist/cjs/exported-related/Notifications/index.js +47 -34
  10. package/dist/cjs/exported-related/Notifications/index.js.map +2 -2
  11. package/dist/cjs/exported-related/OpenWindowItem/index.js +2 -2
  12. package/dist/cjs/exported-related/OpenWindowItem/index.js.map +2 -2
  13. package/dist/cjs/outOfTheBox/ItemControlledDrilldown/index.js +49 -36
  14. package/dist/cjs/outOfTheBox/ItemControlledDrilldown/index.js.map +2 -2
  15. package/dist/cjs/outOfTheBox/ItemHeader/index.js +75 -61
  16. package/dist/cjs/outOfTheBox/ItemHeader/index.js.map +2 -2
  17. package/dist/cjs/outOfTheBox/ItemLink/index.js +38 -29
  18. package/dist/cjs/outOfTheBox/ItemLink/index.js.map +2 -2
  19. package/dist/cjs/outOfTheBox/ItemSection/index.js +40 -26
  20. package/dist/cjs/outOfTheBox/ItemSection/index.js.map +2 -2
  21. package/dist/cjs/outOfTheBox/ItemSeparator/index.js +7 -6
  22. package/dist/cjs/outOfTheBox/ItemSeparator/index.js.map +2 -2
  23. package/dist/cjs/outOfTheBox/ItemSubmenu/index.js +77 -63
  24. package/dist/cjs/outOfTheBox/ItemSubmenu/index.js.map +2 -2
  25. package/dist/cjs/outOfTheBox/ItemTextLabel/index.js +21 -15
  26. package/dist/cjs/outOfTheBox/ItemTextLabel/index.js.map +2 -2
  27. package/dist/cjs/outOfTheBox/ItemUncontrolledDrilldown/index.js +48 -35
  28. package/dist/cjs/outOfTheBox/ItemUncontrolledDrilldown/index.js.map +2 -2
  29. package/dist/cjs/outOfTheBox/ItemWithDate/index.js +40 -27
  30. package/dist/cjs/outOfTheBox/ItemWithDate/index.js.map +2 -2
  31. package/dist/cjs/parts/LeftNavContent/index.js +53 -30
  32. package/dist/cjs/parts/LeftNavContent/index.js.map +1 -1
  33. package/dist/cjs/parts/LeftNavFooterItem/index.js +65 -53
  34. package/dist/cjs/parts/LeftNavFooterItem/index.js.map +2 -2
  35. package/dist/cjs/parts/LeftNavLoading/index.js +10 -8
  36. package/dist/cjs/parts/LeftNavLoading/index.js.map +2 -2
  37. package/dist/cjs/parts/OutOfTheBoxMapItem.js +3 -2
  38. package/dist/cjs/parts/OutOfTheBoxMapItem.js.map +1 -1
  39. package/dist/esm/LeftNavigation.js +5 -4
  40. package/dist/esm/LeftNavigation.js.map +2 -2
  41. package/dist/esm/exported-related/ChevronItem/index.js +2 -2
  42. package/dist/esm/exported-related/ChevronItem/index.js.map +2 -2
  43. package/dist/esm/exported-related/Icon/index.js +2 -2
  44. package/dist/esm/exported-related/Icon/index.js.map +2 -2
  45. package/dist/esm/exported-related/ItemRenderer/index.js +56 -44
  46. package/dist/esm/exported-related/ItemRenderer/index.js.map +2 -2
  47. package/dist/esm/exported-related/Notifications/index.js +47 -34
  48. package/dist/esm/exported-related/Notifications/index.js.map +2 -2
  49. package/dist/esm/exported-related/OpenWindowItem/index.js +2 -2
  50. package/dist/esm/exported-related/OpenWindowItem/index.js.map +2 -2
  51. package/dist/esm/outOfTheBox/ItemControlledDrilldown/index.js +49 -36
  52. package/dist/esm/outOfTheBox/ItemControlledDrilldown/index.js.map +2 -2
  53. package/dist/esm/outOfTheBox/ItemHeader/index.js +75 -61
  54. package/dist/esm/outOfTheBox/ItemHeader/index.js.map +2 -2
  55. package/dist/esm/outOfTheBox/ItemLink/index.js +38 -29
  56. package/dist/esm/outOfTheBox/ItemLink/index.js.map +2 -2
  57. package/dist/esm/outOfTheBox/ItemSection/index.js +40 -26
  58. package/dist/esm/outOfTheBox/ItemSection/index.js.map +2 -2
  59. package/dist/esm/outOfTheBox/ItemSeparator/index.js +7 -6
  60. package/dist/esm/outOfTheBox/ItemSeparator/index.js.map +2 -2
  61. package/dist/esm/outOfTheBox/ItemSubmenu/index.js +77 -63
  62. package/dist/esm/outOfTheBox/ItemSubmenu/index.js.map +2 -2
  63. package/dist/esm/outOfTheBox/ItemTextLabel/index.js +21 -15
  64. package/dist/esm/outOfTheBox/ItemTextLabel/index.js.map +2 -2
  65. package/dist/esm/outOfTheBox/ItemUncontrolledDrilldown/index.js +48 -35
  66. package/dist/esm/outOfTheBox/ItemUncontrolledDrilldown/index.js.map +2 -2
  67. package/dist/esm/outOfTheBox/ItemWithDate/index.js +40 -27
  68. package/dist/esm/outOfTheBox/ItemWithDate/index.js.map +2 -2
  69. package/dist/esm/parts/LeftNavContent/index.js +53 -30
  70. package/dist/esm/parts/LeftNavContent/index.js.map +1 -1
  71. package/dist/esm/parts/LeftNavFooterItem/index.js +65 -53
  72. package/dist/esm/parts/LeftNavFooterItem/index.js.map +2 -2
  73. package/dist/esm/parts/LeftNavLoading/index.js +10 -8
  74. package/dist/esm/parts/LeftNavLoading/index.js.map +2 -2
  75. package/dist/esm/parts/OutOfTheBoxMapItem.js +3 -2
  76. package/dist/esm/parts/OutOfTheBoxMapItem.js.map +1 -1
  77. package/package.json +8 -8
@@ -1,5 +1,6 @@
1
1
  import * as React from "react";
2
- import React2, { useCallback } from "react";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ import { useCallback } from "react";
3
4
  import Grid from "@elliemae/ds-grid";
4
5
  import { SimpleTruncatedTooltipText } from "@elliemae/ds-truncated-tooltip-text";
5
6
  import { ItemRenderer } from "../../exported-related/index";
@@ -41,7 +42,7 @@ const ItemSubmenu = (props) => {
41
42
  [dsId, isSelected, openedItem, selectedParent]
42
43
  );
43
44
  const ariaLabel = item.itemOpts.ariaLabel ?? (typeof label === "string" ? label : "menuitem");
44
- return /* @__PURE__ */ React2.createElement(ItemRenderer, {
45
+ return /* @__PURE__ */ jsxs(ItemRenderer, {
45
46
  item: {
46
47
  ...item,
47
48
  itemOpts: {
@@ -55,67 +56,80 @@ const ItemSubmenu = (props) => {
55
56
  },
56
57
  shadowStyle,
57
58
  hasBorderBottom: opened,
58
- borderBottomMr: "12px"
59
- }, /* @__PURE__ */ React2.createElement(Grid, {
60
- cols: opened ? ["auto", "auto"] : ["38px"],
61
- gutter: "1px",
62
- pl: opened ? "xxs" : 0,
63
- justifyItems: "center",
64
- "data-testid": "leftnav-leftcomponent"
65
- }, opened && /* @__PURE__ */ React2.createElement(StyledChevronLeft, {
66
- size: "m",
67
- color: ["brand-primary", 800],
68
- onClick: (e) => {
69
- onItemClick(item, e);
70
- },
71
- "data-testid": "leftnav-leftcomponent-chevron",
72
- tabIndex: 0,
73
- onFocus: (e) => {
74
- e.stopPropagation();
75
- setFocusedItem(CHEVRON_BACK_DS_ID);
76
- },
77
- role: "button",
78
- "aria-label": `Close ${ariaLabel}`
79
- }), /* @__PURE__ */ React2.createElement(CollapsedComponent, {
80
- item,
81
- ctx
82
- })), /* @__PURE__ */ React2.createElement(StyledLabel, {
83
- ml: opened ? "xxs" : "1px",
84
- mt: "xxxs",
85
- mb: "15px",
86
- "data-testid": labelDataTestId || "leftnav-itemlabel",
87
- labelOverflow
88
- }, labelOverflow === "truncate" ? /* @__PURE__ */ React2.createElement(SimpleTruncatedTooltipText, {
89
- value: label,
90
- placement: "bottom-start"
91
- }) : label), /* @__PURE__ */ React2.createElement(Grid, {
92
- pl: "xs",
93
- pr: opened ? "xxs2" : "xxs",
94
- onFocus: (e) => {
95
- e.stopPropagation();
96
- setFocusedItem(null);
97
- },
98
- onKeyDown: (e) => e.stopPropagation(),
99
- onClick: (e) => openedItem === dsId && e.stopPropagation(),
100
- "data-testid": "leftnav-right-component"
101
- }, RightComponent && /* @__PURE__ */ React2.createElement(RightComponent, {
102
- ctx,
103
- item
104
- })), BottomComponent && /* @__PURE__ */ React2.createElement(Grid, {
105
- style: { gridColumn: "span 3" },
106
- pb: "xxxs",
107
- pl: "xxs",
108
- pr: "xxs",
109
- onFocus: (e) => {
110
- e.stopPropagation();
111
- setFocusedItem(null);
112
- },
113
- onKeyDown: (e) => e.stopPropagation(),
114
- onClick: (e) => openedItem && e.stopPropagation()
115
- }, /* @__PURE__ */ React2.createElement(BottomComponent, {
116
- ctx,
117
- item
118
- })));
59
+ borderBottomMr: "12px",
60
+ children: [
61
+ /* @__PURE__ */ jsxs(Grid, {
62
+ cols: opened ? ["auto", "auto"] : ["38px"],
63
+ gutter: "1px",
64
+ pl: opened ? "xxs" : 0,
65
+ justifyItems: "center",
66
+ "data-testid": "leftnav-leftcomponent",
67
+ children: [
68
+ opened && /* @__PURE__ */ jsx(StyledChevronLeft, {
69
+ size: "m",
70
+ color: ["brand-primary", 800],
71
+ onClick: (e) => {
72
+ onItemClick(item, e);
73
+ },
74
+ "data-testid": "leftnav-leftcomponent-chevron",
75
+ tabIndex: 0,
76
+ onFocus: (e) => {
77
+ e.stopPropagation();
78
+ setFocusedItem(CHEVRON_BACK_DS_ID);
79
+ },
80
+ role: "button",
81
+ "aria-label": `Close ${ariaLabel}`
82
+ }),
83
+ /* @__PURE__ */ jsx(CollapsedComponent, {
84
+ item,
85
+ ctx
86
+ })
87
+ ]
88
+ }),
89
+ /* @__PURE__ */ jsx(StyledLabel, {
90
+ ml: opened ? "xxs" : "1px",
91
+ mt: "xxxs",
92
+ mb: "15px",
93
+ "data-testid": labelDataTestId || "leftnav-itemlabel",
94
+ labelOverflow,
95
+ children: labelOverflow === "truncate" ? /* @__PURE__ */ jsx(SimpleTruncatedTooltipText, {
96
+ value: label,
97
+ placement: "bottom-start"
98
+ }) : label
99
+ }),
100
+ /* @__PURE__ */ jsx(Grid, {
101
+ pl: "xs",
102
+ pr: opened ? "xxs2" : "xxs",
103
+ onFocus: (e) => {
104
+ e.stopPropagation();
105
+ setFocusedItem(null);
106
+ },
107
+ onKeyDown: (e) => e.stopPropagation(),
108
+ onClick: (e) => openedItem === dsId && e.stopPropagation(),
109
+ "data-testid": "leftnav-right-component",
110
+ children: RightComponent && /* @__PURE__ */ jsx(RightComponent, {
111
+ ctx,
112
+ item
113
+ })
114
+ }),
115
+ BottomComponent && /* @__PURE__ */ jsx(Grid, {
116
+ style: { gridColumn: "span 3" },
117
+ pb: "xxxs",
118
+ pl: "xxs",
119
+ pr: "xxs",
120
+ onFocus: (e) => {
121
+ e.stopPropagation();
122
+ setFocusedItem(null);
123
+ },
124
+ onKeyDown: (e) => e.stopPropagation(),
125
+ onClick: (e) => openedItem && e.stopPropagation(),
126
+ children: /* @__PURE__ */ jsx(BottomComponent, {
127
+ ctx,
128
+ item
129
+ })
130
+ })
131
+ ]
132
+ });
119
133
  };
120
134
  export {
121
135
  ItemSubmenu
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/outOfTheBox/ItemSubmenu/index.tsx"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* 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 ${isSelected ? theme.colors.brand[400] : 'transparent'};\n\n :hover {\n box-shadow: inset 4px 0 0 0 ${isSelected ? theme.colors.brand[400] : theme.colors.brand[300]};\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, labelDataTestId, labelOverflow: itemLabelOverflow },\n CollapsedComponent = () => null,\n },\n ctx,\n ctx: {\n leftNavProps: { openedItem, labelOverflow: leftNavLabelOverflow, onItemClick },\n expandedForAnimation,\n selectedItem,\n selectedParent,\n setFocusedItem,\n },\n } = props;\n\n const labelOverflow = itemLabelOverflow || leftNavLabelOverflow;\n\n const opened = openedItem === dsId;\n\n const isSelected = selectedItem === dsId;\n\n const shadowStyle = useCallback(\n (opened) => (theme: any) =>\n !opened ? notOpenedShadowStyle(isSelected || selectedParent === dsId)(theme) : `box-shadow: inset 4px 0 0 0 #52A6EC`,\n [dsId, isSelected, openedItem, selectedParent],\n );\n\n const ariaLabel = 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 }}\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={labelDataTestId || 'leftnav-itemlabel'}\n labelOverflow={labelOverflow}\n >\n {labelOverflow === 'truncate' ? <SimpleTruncatedTooltipText value={label} placement=\"bottom-start\" /> : label}\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 === dsId) && 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"],
5
- "mappings": "AAAA,YAAY,WAAW;ACGvB,OAAOA,UAAS,mBAAmB;AACnC,OAAO,UAAU;AACjB,SAAS,kCAAkC;AAC3C,SAAS,oBAAoB;AAE7B,SAAS,aAAa,yBAAyB;AAC/C,SAAS,0BAA0B;AAGnC,MAAM,uBAAuB,CAAC,eAAwB,CAAC,UACrD;AAAA,gCAC8B,aAAa,MAAM,OAAO,MAAM,OAAO;AAAA;AAAA;AAAA,kCAGrC,aAAa,MAAM,OAAO,MAAM,OAAO,MAAM,OAAO,MAAM;AAAA;AAAA;AAAA;AAAA,kCAI1D,MAAM,OAAO,MAAM;AAAA;AAAA;AAI9C,MAAM,cAAc,CAAC,UAAuC;AACjE,QAAM;AAAA,IACJ;AAAA,IACA,MAAM;AAAA,MACJ;AAAA,MACA,UAAU,EAAE,OAAO,gBAAgB,iBAAiB,iBAAiB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AAAA,QACH,IAAG;AAAA,QACH,SAAS,CAAC,MAAM;AACd,YAAE,gBAAgB;AAClB,yBAAe,IAAI;AAAA,QACrB;AAAA,QACA,WAAW,CAAC,MAAM,EAAE,gBAAgB;AAAA,QACpC,SAAS,CAAC,MAAM,cAAc,EAAE,gBAAgB;AAAA,QAEhD,8BAAC;AAAA,UAAgB;AAAA,UAAU;AAAA,SAAY;AAAA,OACzC;AAAA;AAAA,GAEJ;AAEJ;",
6
+ "names": ["opened"]
7
7
  }
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- import React2 from "react";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import { SimpleTruncatedTooltipText } from "@elliemae/ds-truncated-tooltip-text";
4
4
  import { ItemRenderer } from "../../exported-related/index";
5
5
  import { StyledLabel } from "./styled";
@@ -14,25 +14,31 @@ const ItemTextLabel = (props) => {
14
14
  }
15
15
  } = props;
16
16
  const labelOverflow = itemLabelOverflow || leftNavLabelOverflow;
17
- return /* @__PURE__ */ React2.createElement(ItemRenderer, {
17
+ return /* @__PURE__ */ jsxs(ItemRenderer, {
18
18
  item: {
19
19
  ...item,
20
20
  CollapsedComponent: null
21
21
  },
22
22
  minHeight: "32px",
23
- paddingTop: "8px"
24
- }, " ", /* @__PURE__ */ React2.createElement("div", null), /* @__PURE__ */ React2.createElement(StyledLabel, {
25
- "data-testid": labelDataTestId || "leftnav-list-item-label",
26
- pl: "24px",
27
- labelOverflow,
28
- labelBold,
29
- labelColor,
30
- mr: "xxs2",
31
- pb: "xxxs"
32
- }, labelOverflow === "truncate" ? /* @__PURE__ */ React2.createElement(SimpleTruncatedTooltipText, {
33
- value: label,
34
- placement: "bottom-start"
35
- }) : label));
23
+ paddingTop: "8px",
24
+ children: [
25
+ " ",
26
+ /* @__PURE__ */ jsx("div", {}),
27
+ /* @__PURE__ */ jsx(StyledLabel, {
28
+ "data-testid": labelDataTestId || "leftnav-list-item-label",
29
+ pl: "24px",
30
+ labelOverflow,
31
+ labelBold,
32
+ labelColor,
33
+ mr: "xxs2",
34
+ pb: "xxxs",
35
+ children: labelOverflow === "truncate" ? /* @__PURE__ */ jsx(SimpleTruncatedTooltipText, {
36
+ value: label,
37
+ placement: "bottom-start"
38
+ }) : label
39
+ })
40
+ ]
41
+ });
36
42
  };
37
43
  export {
38
44
  ItemTextLabel
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/outOfTheBox/ItemTextLabel/index.tsx"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "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: { label, labelOverflow: itemLabelOverflow, labelBold, labelColor, labelDataTestId },\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={labelDataTestId || 'leftnav-list-item-label'}\n pl=\"24px\"\n labelOverflow={labelOverflow}\n labelBold={labelBold}\n labelColor={labelColor}\n mr=\"xxs2\"\n pb=\"xxxs\"\n >\n {labelOverflow === 'truncate' ? <SimpleTruncatedTooltipText value={label} placement=\"bottom-start\" /> : label}\n </StyledLabel>\n </ItemRenderer>\n );\n};\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACAvB,OAAOA,YAAW;AAClB,SAAS,kCAAkC;AAC3C,SAAS,oBAAoB;AAE7B,SAAS,mBAAmB;AAErB,MAAM,gBAAgB,CAAC,UAAuC;AACnE,QAAM;AAA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a,mBAAmB;AAAA,QAChC,IAAG;AAAA,QACH;AAAA,QACA;AAAA,QACA;AAAA,QACA,IAAG;AAAA,QACH,IAAG;AAAA,QAEF,4BAAkB,aAAa,oBAAC;AAAA,UAA2B,OAAO;AAAA,UAAO,WAAU;AAAA,SAAe,IAAK;AAAA,OAC1G;AAAA;AAAA,GACF;AAEJ;",
6
+ "names": []
7
7
  }
@@ -1,5 +1,6 @@
1
1
  import * as React from "react";
2
- import React2, { useMemo, useCallback, useEffect } from "react";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ import { useMemo, useCallback, useEffect } from "react";
3
4
  import Grid from "@elliemae/ds-grid";
4
5
  import { SimpleTruncatedTooltipText } from "@elliemae/ds-truncated-tooltip-text";
5
6
  import { ArrowheadDown, ArrowheadRight } from "@elliemae/ds-icons";
@@ -26,12 +27,12 @@ const OutOfTheBoxMapSubitem = (props) => {
26
27
  ...item,
27
28
  itemOpts: { ...item.itemOpts, indent: currentIndent + 44 }
28
29
  };
29
- return /* @__PURE__ */ React2.createElement(OutOfTheBoxComponent, {
30
+ return /* @__PURE__ */ jsx(OutOfTheBoxComponent, {
30
31
  item: newItem,
31
32
  ctx
32
33
  });
33
34
  }
34
- return /* @__PURE__ */ React2.createElement(Component, {
35
+ return /* @__PURE__ */ jsx(Component, {
35
36
  item,
36
37
  ctx
37
38
  });
@@ -68,7 +69,7 @@ const ItemUncontrolledDrilldown = (props) => {
68
69
  const labelOverflow = itemLabelOverflow || leftNavLabelOverflow;
69
70
  const arrowIcon = useMemo(() => {
70
71
  const Component = opened ? ArrowheadDown : ArrowheadRight;
71
- return /* @__PURE__ */ React2.createElement(Component, {
72
+ return /* @__PURE__ */ jsx(Component, {
72
73
  width: "24px",
73
74
  height: "18px",
74
75
  color: ["brand-primary", "800"]
@@ -77,11 +78,10 @@ const ItemUncontrolledDrilldown = (props) => {
77
78
  const subitems = useMemo(() => {
78
79
  if (!opened || !items)
79
80
  return [];
80
- return items.map((subitem) => /* @__PURE__ */ React2.createElement(OutOfTheBoxMapSubitem, {
81
+ return items.map((subitem) => /* @__PURE__ */ jsx(OutOfTheBoxMapSubitem, {
81
82
  item: subitem,
82
- ctx,
83
- key: subitem.dsId
84
- }));
83
+ ctx
84
+ }, subitem.dsId));
85
85
  }, [items, opened]);
86
86
  const handleOnClick = useCallback(() => {
87
87
  if (opened)
@@ -89,7 +89,7 @@ const ItemUncontrolledDrilldown = (props) => {
89
89
  else
90
90
  setOpenedDrilldowns([...openedDrilldowns, dsId]);
91
91
  }, [opened, setOpenedDrilldowns, openedDrilldowns]);
92
- return /* @__PURE__ */ React2.createElement(ItemRenderer, {
92
+ return /* @__PURE__ */ jsxs(ItemRenderer, {
93
93
  item: {
94
94
  ...item,
95
95
  itemOpts: {
@@ -104,32 +104,45 @@ const ItemUncontrolledDrilldown = (props) => {
104
104
  subitems,
105
105
  minHeight: "32px",
106
106
  paddingTop: "8px",
107
- onClick: handleOnClick
108
- }, /* @__PURE__ */ React2.createElement(Grid, {
109
- pl: "xxs",
110
- mt: "-2px"
111
- }, arrowIcon), /* @__PURE__ */ React2.createElement(StyledLabel, {
112
- pb: "xxxs",
113
- "data-testid": labelDataTestId || "leftnav-list-item-label",
114
- labelOverflow,
115
- labelBold,
116
- labelColor
117
- }, labelOverflow === "truncate" ? /* @__PURE__ */ React2.createElement(SimpleTruncatedTooltipText, {
118
- value: label,
119
- placement: "bottom-start"
120
- }) : label), /* @__PURE__ */ React2.createElement(Grid, {
121
- pr: "xxs2",
122
- cols: ["auto", "auto"],
123
- alignItems: "center"
124
- }, /* @__PURE__ */ React2.createElement(StyledDate, {
125
- ml: "xxs",
126
- "data-testid": "leftnav-list-item-date"
127
- }, labelRightSection), /* @__PURE__ */ React2.createElement(Grid, {
128
- pl: RightComponent ? "xxs" : "0px"
129
- }, RightComponent && /* @__PURE__ */ React2.createElement(RightComponent, {
130
- ctx,
131
- item
132
- }))));
107
+ onClick: handleOnClick,
108
+ children: [
109
+ /* @__PURE__ */ jsx(Grid, {
110
+ pl: "xxs",
111
+ mt: "-2px",
112
+ children: arrowIcon
113
+ }),
114
+ /* @__PURE__ */ jsx(StyledLabel, {
115
+ pb: "xxxs",
116
+ "data-testid": labelDataTestId || "leftnav-list-item-label",
117
+ labelOverflow,
118
+ labelBold,
119
+ labelColor,
120
+ children: labelOverflow === "truncate" ? /* @__PURE__ */ jsx(SimpleTruncatedTooltipText, {
121
+ value: label,
122
+ placement: "bottom-start"
123
+ }) : label
124
+ }),
125
+ /* @__PURE__ */ jsxs(Grid, {
126
+ pr: "xxs2",
127
+ cols: ["auto", "auto"],
128
+ alignItems: "center",
129
+ children: [
130
+ /* @__PURE__ */ jsx(StyledDate, {
131
+ ml: "xxs",
132
+ "data-testid": "leftnav-list-item-date",
133
+ children: labelRightSection
134
+ }),
135
+ /* @__PURE__ */ jsx(Grid, {
136
+ pl: RightComponent ? "xxs" : "0px",
137
+ children: RightComponent && /* @__PURE__ */ jsx(RightComponent, {
138
+ ctx,
139
+ item
140
+ })
141
+ })
142
+ ]
143
+ })
144
+ ]
145
+ });
133
146
  };
134
147
  export {
135
148
  ItemUncontrolledDrilldown
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/outOfTheBox/ItemUncontrolledDrilldown/index.tsx"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* 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 labelDataTestId,\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={labelDataTestId || '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"],
5
- "mappings": "AAAA,YAAY,WAAW;ACCvB,OAAOA,UAAS,SAAS,aAAa,iBAAiB;AACvD,OAAO,UAAU;AACjB,SAAS,kCAAkC;AAC3C,SAAS,eAAe,sBAAsB;AAC9C,SAAS,cAAc,kBAAkB;AACzC,SAAS,aAAa,kBAAkB;AACxC,SAAS,qBAAqB;AAC9B,SAAS,oBAAoB;AAC7B,SAAS,qBAAqB;AAI9B,MAAM,gCAAqF;AAAA,EACzF,CAAC,WAAW,0BAA0B;AAAA,EACtC,CAAC,WAAW,0BAA0B;AAAA,EACtC,CAAC,WAAW,2BAA2B;AACzC;AAEA,MAAM,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AAAA,IACA;AAAA,IACA,WAAU;AAAA,IACV,YAAW;AAAA,IACX,SAAS;AAAA,IAET;AAAA,0BAAC;AAAA,QAAK,IAAG;AAAA,QAAM,IAAG;AAAA,QACf;AAAA,OACH;AAAA,MACA,oBAAC;AAAA,QACC,IAAG;AAAA,QACH,eAAa,mBAAmB;AAAA,QAChC;AAAA,QACA;AAAA,QACA;AAAA,QAEC,4BAAkB,aAAa,oBAAC;AAAA,UAA2B,OAAO;AAAA,UAAO,WAAU;AAAA,SAAe,IAAK;AAAA,OAC1G;AAAA,MACA,qBAAC;AAAA,QAAK,IAAG;AAAA,QAAO,MAAM,CAAC,QAAQ,MAAM;AAAA,QAAG,YAAW;AAAA,QACjD;AAAA,8BAAC;AAAA,YAAW,IAAG;AAAA,YAAM,eAAY;AAAA,YAC9B;AAAA,WACH;AAAA,UACA,oBAAC;AAAA,YAAK,IAAI,iBAAiB,QAAQ;AAAA,YAAQ,4BAAkB,oBAAC;AAAA,cAAe;AAAA,cAAU;AAAA,aAAY;AAAA,WAAG;AAAA;AAAA,OACxG;AAAA;AAAA,GACF;AAEJ;",
6
+ "names": []
7
7
  }
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- import React2 from "react";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import Grid from "@elliemae/ds-grid";
4
4
  import { SimpleTruncatedTooltipText } from "@elliemae/ds-truncated-tooltip-text";
5
5
  import { ItemRenderer } from "../../exported-related/index";
@@ -24,37 +24,50 @@ const ItemWithDate = (props) => {
24
24
  }
25
25
  } = props;
26
26
  const labelOverflow = itemLabelOverflow || leftNavLabelOverflow;
27
- return /* @__PURE__ */ React2.createElement(ItemRenderer, {
27
+ return /* @__PURE__ */ jsxs(ItemRenderer, {
28
28
  item: {
29
29
  ...item,
30
30
  CollapsedComponent: null
31
31
  },
32
32
  minHeight: "32px",
33
- paddingTop: "8px"
34
- }, " ", /* @__PURE__ */ React2.createElement("div", null), /* @__PURE__ */ React2.createElement(StyledLabel, {
35
- pl: "xxs",
36
- pb: "xxxs",
37
- "data-testid": labelDataTestId || "leftnav-list-item-label",
38
- labelOverflow,
39
- labelBold,
40
- labelColor
41
- }, labelOverflow === "truncate" ? /* @__PURE__ */ React2.createElement(SimpleTruncatedTooltipText, {
42
- value: label,
43
- placement: "bottom-start"
44
- }) : label), /* @__PURE__ */ React2.createElement(Grid, {
45
- pr: "xxs2",
46
- cols: ["auto", "auto"],
47
- alignItems: "center"
48
- }, /* @__PURE__ */ React2.createElement(StyledDate, {
49
- ml: "xxs",
50
- "data-testid": "leftnav-list-item-date"
51
- }, labelRightSection), /* @__PURE__ */ React2.createElement(Grid, {
52
- pl: RightComponent ? "xxs" : "0px",
53
- "data-testid": "leftnav-right-component"
54
- }, RightComponent && /* @__PURE__ */ React2.createElement(RightComponent, {
55
- ctx,
56
- item
57
- }))));
33
+ paddingTop: "8px",
34
+ children: [
35
+ " ",
36
+ /* @__PURE__ */ jsx("div", {}),
37
+ /* @__PURE__ */ jsx(StyledLabel, {
38
+ pl: "xxs",
39
+ pb: "xxxs",
40
+ "data-testid": labelDataTestId || "leftnav-list-item-label",
41
+ labelOverflow,
42
+ labelBold,
43
+ labelColor,
44
+ children: labelOverflow === "truncate" ? /* @__PURE__ */ jsx(SimpleTruncatedTooltipText, {
45
+ value: label,
46
+ placement: "bottom-start"
47
+ }) : label
48
+ }),
49
+ /* @__PURE__ */ jsxs(Grid, {
50
+ pr: "xxs2",
51
+ cols: ["auto", "auto"],
52
+ alignItems: "center",
53
+ children: [
54
+ /* @__PURE__ */ jsx(StyledDate, {
55
+ ml: "xxs",
56
+ "data-testid": "leftnav-list-item-date",
57
+ children: labelRightSection
58
+ }),
59
+ /* @__PURE__ */ jsx(Grid, {
60
+ pl: RightComponent ? "xxs" : "0px",
61
+ "data-testid": "leftnav-right-component",
62
+ children: RightComponent && /* @__PURE__ */ jsx(RightComponent, {
63
+ ctx,
64
+ item
65
+ })
66
+ })
67
+ ]
68
+ })
69
+ ]
70
+ });
58
71
  };
59
72
  export {
60
73
  ItemWithDate
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/outOfTheBox/ItemWithDate/index.tsx"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "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 labelDataTestId,\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={labelDataTestId || 'leftnav-list-item-label'}\n labelOverflow={labelOverflow}\n labelBold={labelBold}\n labelColor={labelColor}\n >\n {labelOverflow === 'truncate' ? <SimpleTruncatedTooltipText value={label} placement=\"bottom-start\" /> : label}\n </StyledLabel>\n <Grid pr=\"xxs2\" cols={['auto', 'auto']} alignItems=\"center\">\n <StyledDate ml=\"xxs\" data-testid=\"leftnav-list-item-date\">\n {labelRightSection}\n </StyledDate>\n <Grid pl={RightComponent ? 'xxs' : '0px'} data-testid=\"leftnav-right-component\">\n {RightComponent && <RightComponent ctx={ctx} item={item} />}\n </Grid>\n </Grid>\n </ItemRenderer>\n );\n};\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACAvB,OAAOA,YAAW;AAClB,O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runtime";
2
3
  import React2 from "react";
3
4
  import { LeftNavContext } from "../../LeftNavigationContext";
4
5
  import { LeftNavFooterItem } from "../LeftNavFooterItem";
@@ -20,45 +21,67 @@ const LeftNavInnerContent = () => {
20
21
  leftNavProps: { HeaderComponent, BodyHeaderComponent, openedItem, items, withoutBodyShadow },
21
22
  selectedItem
22
23
  } = React2.useContext(LeftNavContext);
23
- return /* @__PURE__ */ React2.createElement(React2.Fragment, null, /* @__PURE__ */ React2.createElement(StyledLeftNavHeaderArea, {
24
- "data-testid": "leftnav-header-area",
25
- selected: HeaderComponent && [selectedItem, openedItem].includes(HeaderComponent.dsId)
26
- }, HeaderComponent ? /* @__PURE__ */ React2.createElement(OutOfTheBoxMapItem, {
27
- item: HeaderComponent
28
- }) : null), /* @__PURE__ */ React2.createElement(StyledLeftNavBodyAreasContainer, null, /* @__PURE__ */ React2.createElement(StyledLeftNavBodyHeaderArea, {
29
- "data-testid": "leftnav-body-header-area",
30
- selected: BodyHeaderComponent && [selectedItem, openedItem].includes(BodyHeaderComponent.dsId)
31
- }, BodyHeaderComponent ? /* @__PURE__ */ React2.createElement(OutOfTheBoxMapItem, {
32
- item: BodyHeaderComponent
33
- }) : null), /* @__PURE__ */ React2.createElement(StyledLeftNavBodyItemsArea, {
34
- selected: !withoutBodyShadow && openedItem !== null,
35
- "data-testid": "leftnav-body-items-area",
36
- tabIndex: -1
37
- }, /* @__PURE__ */ React2.createElement(StyledLeftNavContentWithScrollbar, null, items.map((item) => /* @__PURE__ */ React2.createElement(OutOfTheBoxMapItem, {
38
- item,
39
- key: item.dsId
40
- }))))));
24
+ return /* @__PURE__ */ jsxs(Fragment, {
25
+ children: [
26
+ /* @__PURE__ */ jsx(StyledLeftNavHeaderArea, {
27
+ "data-testid": "leftnav-header-area",
28
+ selected: HeaderComponent && [selectedItem, openedItem].includes(HeaderComponent.dsId),
29
+ children: HeaderComponent ? /* @__PURE__ */ jsx(OutOfTheBoxMapItem, {
30
+ item: HeaderComponent
31
+ }) : null
32
+ }),
33
+ /* @__PURE__ */ jsxs(StyledLeftNavBodyAreasContainer, {
34
+ children: [
35
+ /* @__PURE__ */ jsx(StyledLeftNavBodyHeaderArea, {
36
+ "data-testid": "leftnav-body-header-area",
37
+ selected: BodyHeaderComponent && [selectedItem, openedItem].includes(BodyHeaderComponent.dsId),
38
+ children: BodyHeaderComponent ? /* @__PURE__ */ jsx(OutOfTheBoxMapItem, {
39
+ item: BodyHeaderComponent
40
+ }) : null
41
+ }),
42
+ /* @__PURE__ */ jsx(StyledLeftNavBodyItemsArea, {
43
+ selected: !withoutBodyShadow && openedItem !== null,
44
+ "data-testid": "leftnav-body-items-area",
45
+ tabIndex: -1,
46
+ children: /* @__PURE__ */ jsx(StyledLeftNavContentWithScrollbar, {
47
+ children: items.map((item) => /* @__PURE__ */ jsx(OutOfTheBoxMapItem, {
48
+ item
49
+ }, item.dsId))
50
+ })
51
+ })
52
+ ]
53
+ })
54
+ ]
55
+ });
41
56
  };
42
57
  const LeftNavContent = () => {
43
58
  const {
44
59
  expandedForAnimation,
45
60
  leftNavProps: { expanded, expandedWidth, footerLabel, onFooterExpand, onFooterClose, loading }
46
61
  } = React2.useContext(LeftNavContext);
47
- return /* @__PURE__ */ React2.createElement(StyledLeftNavExpandAnimationWrapper, {
62
+ return /* @__PURE__ */ jsx(StyledLeftNavExpandAnimationWrapper, {
48
63
  expandedWidth,
49
64
  expanded,
50
65
  "data-testid": "leftnav-component",
51
- "aria-label": leftNavScreenReaderInstructions
52
- }, /* @__PURE__ */ React2.createElement(StyledLeftNavAreasContainer, {
53
- expandedWidth,
54
- expanded: expandedForAnimation
55
- }, loading && /* @__PURE__ */ React2.createElement(LeftNavLoading, {
56
- expanded: expandedForAnimation
57
- }), !loading && /* @__PURE__ */ React2.createElement(LeftNavInnerContent, null), /* @__PURE__ */ React2.createElement(StyledLeftNavFooterArea, null, /* @__PURE__ */ React2.createElement(LeftNavFooterItem, {
58
- footerLabel,
59
- onFooterExpand,
60
- onFooterClose
61
- }))));
66
+ "aria-label": leftNavScreenReaderInstructions,
67
+ children: /* @__PURE__ */ jsxs(StyledLeftNavAreasContainer, {
68
+ expandedWidth,
69
+ expanded: expandedForAnimation,
70
+ children: [
71
+ loading && /* @__PURE__ */ jsx(LeftNavLoading, {
72
+ expanded: expandedForAnimation
73
+ }),
74
+ !loading && /* @__PURE__ */ jsx(LeftNavInnerContent, {}),
75
+ /* @__PURE__ */ jsx(StyledLeftNavFooterArea, {
76
+ children: /* @__PURE__ */ jsx(LeftNavFooterItem, {
77
+ footerLabel,
78
+ onFooterExpand,
79
+ onFooterClose
80
+ })
81
+ })
82
+ ]
83
+ })
84
+ });
62
85
  };
63
86
  var LeftNavContent_default = LeftNavContent;
64
87
  export {