@elliemae/ds-left-navigation 3.12.0-rc.2 → 3.12.0-rc.21

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 +1 -4
  2. package/dist/cjs/LeftNavigation.js.map +1 -1
  3. package/dist/cjs/exported-related/ChevronItem/index.js +1 -5
  4. package/dist/cjs/exported-related/ChevronItem/index.js.map +1 -1
  5. package/dist/cjs/exported-related/Icon/index.js +1 -5
  6. package/dist/cjs/exported-related/Icon/index.js.map +1 -1
  7. package/dist/cjs/exported-related/ItemRenderer/index.js +10 -19
  8. package/dist/cjs/exported-related/ItemRenderer/index.js.map +1 -1
  9. package/dist/cjs/exported-related/Notifications/index.js +8 -46
  10. package/dist/cjs/exported-related/Notifications/index.js.map +1 -1
  11. package/dist/cjs/exported-related/OpenWindowItem/index.js +1 -5
  12. package/dist/cjs/exported-related/OpenWindowItem/index.js.map +1 -1
  13. package/dist/cjs/outOfTheBox/ItemControlledDrilldown/index.js +50 -68
  14. package/dist/cjs/outOfTheBox/ItemControlledDrilldown/index.js.map +1 -1
  15. package/dist/cjs/outOfTheBox/ItemHeader/index.js +87 -81
  16. package/dist/cjs/outOfTheBox/ItemHeader/index.js.map +1 -1
  17. package/dist/cjs/outOfTheBox/ItemLink/index.js +30 -44
  18. package/dist/cjs/outOfTheBox/ItemLink/index.js.map +1 -1
  19. package/dist/cjs/outOfTheBox/ItemSection/index.js +34 -44
  20. package/dist/cjs/outOfTheBox/ItemSection/index.js.map +1 -1
  21. package/dist/cjs/outOfTheBox/ItemSeparator/index.js +16 -15
  22. package/dist/cjs/outOfTheBox/ItemSeparator/index.js.map +1 -1
  23. package/dist/cjs/outOfTheBox/ItemSubmenu/index.js +90 -84
  24. package/dist/cjs/outOfTheBox/ItemSubmenu/index.js.map +1 -1
  25. package/dist/cjs/outOfTheBox/ItemTextLabel/index.js +28 -25
  26. package/dist/cjs/outOfTheBox/ItemTextLabel/index.js.map +1 -1
  27. package/dist/cjs/outOfTheBox/ItemUncontrolledDrilldown/index.js +51 -69
  28. package/dist/cjs/outOfTheBox/ItemUncontrolledDrilldown/index.js.map +1 -1
  29. package/dist/cjs/outOfTheBox/ItemWithDate/index.js +41 -42
  30. package/dist/cjs/outOfTheBox/ItemWithDate/index.js.map +1 -1
  31. package/dist/cjs/parts/LeftNavContent/index.js +51 -54
  32. package/dist/cjs/parts/LeftNavContent/index.js.map +1 -1
  33. package/dist/cjs/parts/LeftNavFooterItem/index.js +19 -24
  34. package/dist/cjs/parts/LeftNavFooterItem/index.js.map +1 -1
  35. package/dist/cjs/parts/LeftNavLoading/index.js +5 -4
  36. package/dist/cjs/parts/LeftNavLoading/index.js.map +1 -1
  37. package/dist/cjs/parts/OutOfTheBoxMapItem.js +2 -8
  38. package/dist/cjs/parts/OutOfTheBoxMapItem.js.map +1 -1
  39. package/dist/esm/LeftNavigation.js +1 -4
  40. package/dist/esm/LeftNavigation.js.map +1 -1
  41. package/dist/esm/exported-related/ChevronItem/index.js +1 -5
  42. package/dist/esm/exported-related/ChevronItem/index.js.map +1 -1
  43. package/dist/esm/exported-related/Icon/index.js +1 -5
  44. package/dist/esm/exported-related/Icon/index.js.map +1 -1
  45. package/dist/esm/exported-related/ItemRenderer/index.js +10 -19
  46. package/dist/esm/exported-related/ItemRenderer/index.js.map +1 -1
  47. package/dist/esm/exported-related/Notifications/index.js +8 -46
  48. package/dist/esm/exported-related/Notifications/index.js.map +1 -1
  49. package/dist/esm/exported-related/OpenWindowItem/index.js +1 -5
  50. package/dist/esm/exported-related/OpenWindowItem/index.js.map +1 -1
  51. package/dist/esm/outOfTheBox/ItemControlledDrilldown/index.js +50 -68
  52. package/dist/esm/outOfTheBox/ItemControlledDrilldown/index.js.map +1 -1
  53. package/dist/esm/outOfTheBox/ItemHeader/index.js +87 -81
  54. package/dist/esm/outOfTheBox/ItemHeader/index.js.map +1 -1
  55. package/dist/esm/outOfTheBox/ItemLink/index.js +30 -44
  56. package/dist/esm/outOfTheBox/ItemLink/index.js.map +1 -1
  57. package/dist/esm/outOfTheBox/ItemSection/index.js +34 -44
  58. package/dist/esm/outOfTheBox/ItemSection/index.js.map +1 -1
  59. package/dist/esm/outOfTheBox/ItemSeparator/index.js +16 -15
  60. package/dist/esm/outOfTheBox/ItemSeparator/index.js.map +1 -1
  61. package/dist/esm/outOfTheBox/ItemSubmenu/index.js +90 -84
  62. package/dist/esm/outOfTheBox/ItemSubmenu/index.js.map +1 -1
  63. package/dist/esm/outOfTheBox/ItemTextLabel/index.js +28 -25
  64. package/dist/esm/outOfTheBox/ItemTextLabel/index.js.map +1 -1
  65. package/dist/esm/outOfTheBox/ItemUncontrolledDrilldown/index.js +51 -69
  66. package/dist/esm/outOfTheBox/ItemUncontrolledDrilldown/index.js.map +1 -1
  67. package/dist/esm/outOfTheBox/ItemWithDate/index.js +41 -42
  68. package/dist/esm/outOfTheBox/ItemWithDate/index.js.map +1 -1
  69. package/dist/esm/parts/LeftNavContent/index.js +51 -54
  70. package/dist/esm/parts/LeftNavContent/index.js.map +1 -1
  71. package/dist/esm/parts/LeftNavFooterItem/index.js +19 -24
  72. package/dist/esm/parts/LeftNavFooterItem/index.js.map +1 -1
  73. package/dist/esm/parts/LeftNavLoading/index.js +5 -4
  74. package/dist/esm/parts/LeftNavLoading/index.js.map +1 -1
  75. package/dist/esm/parts/OutOfTheBoxMapItem.js +2 -8
  76. package/dist/esm/parts/OutOfTheBoxMapItem.js.map +1 -1
  77. package/package.json +7 -7
@@ -26,17 +26,11 @@ const OutOfTheBoxMapSubitem = (props) => {
26
26
  ...item,
27
27
  itemOpts: { ...item.itemOpts, indent: currentIndent + 44 }
28
28
  };
29
- return /* @__PURE__ */ jsx(OutOfTheBoxComponent, {
30
- item: newItem,
31
- ctx
32
- });
29
+ return /* @__PURE__ */ jsx(OutOfTheBoxComponent, { item: newItem, ctx });
33
30
  }
34
31
  if (!Component)
35
32
  return null;
36
- return /* @__PURE__ */ jsx(Component, {
37
- item,
38
- ctx
39
- });
33
+ return /* @__PURE__ */ jsx(Component, { item, ctx });
40
34
  };
41
35
  const ItemUncontrolledDrilldown = (props) => {
42
36
  const {
@@ -70,19 +64,12 @@ const ItemUncontrolledDrilldown = (props) => {
70
64
  const labelOverflow = itemLabelOverflow || leftNavLabelOverflow;
71
65
  const arrowIcon = useMemo(() => {
72
66
  const Component = opened ? ArrowheadDown : ArrowheadRight;
73
- return /* @__PURE__ */ jsx(Component, {
74
- width: "24px",
75
- height: "18px",
76
- color: ["brand-primary", "800"]
77
- });
67
+ return /* @__PURE__ */ jsx(Component, { width: "24px", height: "18px", color: ["brand-primary", "800"] });
78
68
  }, [opened]);
79
69
  const subitems = useMemo(() => {
80
70
  if (!opened || !items)
81
71
  return [];
82
- return items.map((subitem) => /* @__PURE__ */ jsx(OutOfTheBoxMapSubitem, {
83
- item: subitem,
84
- ctx
85
- }, subitem.dsId));
72
+ return items.map((subitem) => /* @__PURE__ */ jsx(OutOfTheBoxMapSubitem, { item: subitem, ctx }, subitem.dsId));
86
73
  }, [ctx, items, opened]);
87
74
  const handleOnClick = useCallback(() => {
88
75
  if (opened)
@@ -90,59 +77,54 @@ const ItemUncontrolledDrilldown = (props) => {
90
77
  else
91
78
  setOpenedDrilldowns([...openedDrilldowns, dsId]);
92
79
  }, [opened, setOpenedDrilldowns, openedDrilldowns, dsId]);
93
- return /* @__PURE__ */ jsxs(ItemRenderer, {
94
- item: {
95
- ...item,
96
- itemOpts: {
97
- ariaExpanded: opened,
98
- ariaRole: "menuitem",
99
- ...item.itemOpts,
100
- openable: !opened,
101
- closable: opened
80
+ return /* @__PURE__ */ jsxs(
81
+ ItemRenderer,
82
+ {
83
+ item: {
84
+ ...item,
85
+ itemOpts: {
86
+ ariaExpanded: opened,
87
+ ariaRole: "menuitem",
88
+ ...item.itemOpts,
89
+ openable: !opened,
90
+ closable: opened
91
+ },
92
+ CollapsedComponent: null
102
93
  },
103
- CollapsedComponent: null
104
- },
105
- subitems,
106
- minHeight: "32px",
107
- paddingTop: "8px",
108
- onClick: handleOnClick,
109
- children: [
110
- /* @__PURE__ */ jsx(StyledArrowContainer, {
111
- pl: "xxs",
112
- mt: "-2px",
113
- children: arrowIcon
114
- }),
115
- /* @__PURE__ */ jsx(StyledLabel, {
116
- pb: "xxxs",
117
- "data-testid": labelDataTestId || "leftnav-list-item-label",
118
- labelOverflow,
119
- labelBold,
120
- labelColor,
121
- children: labelOverflow === "truncate" ? /* @__PURE__ */ jsx(SimpleTruncatedTooltipText, {
122
- value: label,
123
- placement: "bottom-start"
124
- }) : label
125
- }),
126
- /* @__PURE__ */ jsxs(StyledRightContainer, {
127
- pr: "xxs2",
128
- cols: ["auto", "auto"],
129
- alignItems: "center",
130
- gutter: "xxs",
131
- "data-testid": "leftnav-right-component",
132
- children: [
133
- /* @__PURE__ */ jsx(StyledDate, {
134
- ml: "xxs",
135
- "data-testid": "leftnav-list-item-date",
136
- children: labelRightSection
137
- }),
138
- RightComponent && /* @__PURE__ */ jsx(RightComponent, {
139
- ctx,
140
- item
141
- })
142
- ]
143
- })
144
- ]
145
- });
94
+ subitems,
95
+ minHeight: "32px",
96
+ paddingTop: "8px",
97
+ onClick: handleOnClick,
98
+ children: [
99
+ /* @__PURE__ */ jsx(StyledArrowContainer, { pl: "xxs", mt: "-2px", children: arrowIcon }),
100
+ /* @__PURE__ */ jsx(
101
+ StyledLabel,
102
+ {
103
+ pb: "xxxs",
104
+ "data-testid": labelDataTestId || "leftnav-list-item-label",
105
+ labelOverflow,
106
+ labelBold,
107
+ labelColor,
108
+ children: labelOverflow === "truncate" ? /* @__PURE__ */ jsx(SimpleTruncatedTooltipText, { value: label, placement: "bottom-start" }) : label
109
+ }
110
+ ),
111
+ /* @__PURE__ */ jsxs(
112
+ StyledRightContainer,
113
+ {
114
+ pr: "xxs2",
115
+ cols: ["auto", "auto"],
116
+ alignItems: "center",
117
+ gutter: "xxs",
118
+ "data-testid": "leftnav-right-component",
119
+ children: [
120
+ /* @__PURE__ */ jsx(StyledDate, { ml: "xxs", "data-testid": "leftnav-list-item-date", children: labelRightSection }),
121
+ RightComponent && /* @__PURE__ */ jsx(RightComponent, { ctx, item })
122
+ ]
123
+ }
124
+ )
125
+ ]
126
+ }
127
+ );
146
128
  };
147
129
  export {
148
130
  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 { 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, StyledRightContainer, StyledArrowContainer } 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: React.ComponentType<ComponentProps> = (props) => {\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 if (!Component) return null;\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 as string]);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n const opened = openedDrilldowns.includes(dsId as string);\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 }, [ctx, items, opened]);\n\n const handleOnClick = useCallback(() => {\n if (opened) setOpenedDrilldowns(openedDrilldowns.filter((openedDrilldown) => openedDrilldown !== dsId));\n else setOpenedDrilldowns([...openedDrilldowns, dsId as string]);\n }, [opened, setOpenedDrilldowns, openedDrilldowns, dsId]);\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 <StyledArrowContainer pl=\"xxs\" mt=\"-2px\">\n {arrowIcon}\n </StyledArrowContainer>\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 <StyledRightContainer\n pr=\"xxs2\"\n cols={['auto', 'auto']}\n alignItems=\"center\"\n gutter=\"xxs\"\n data-testid=\"leftnav-right-component\"\n >\n <StyledDate ml=\"xxs\" data-testid=\"leftnav-list-item-date\">\n {labelRightSection}\n </StyledDate>\n {RightComponent && <RightComponent ctx={ctx} item={item} />}\n </StyledRightContainer>\n </ItemRenderer>\n );\n};\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACgCZ,cAwFL,YAxFK;AA/BX,SAAgB,SAAS,aAAa,iBAAiB;AACvD,SAAS,kCAAkC;AAC3C,SAAS,eAAe,sBAAsB;AAC9C,SAAS,cAAc,kBAAkB;AACzC,SAAS,aAAa,YAAY,sBAAsB,4BAA4B;AACpF,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,wBAA6D,CAAC,UAAU;AAC5E,QAAM;AAAA,IACJ;AAAA,IACA,MAAM,EAAE,MAAM,UAAU;AAAA,IACxB;AAAA,EACF,IAAI;AAEJ,MAAI,OAAO,SAAS,YAAY,CAAC,CAAC,8BAA8B,OAAO;AACrE,UAAM,uBAAuB,8BAA8B;AAC3D,UAAM,gBAAgB,KAAK,UAAU,UAAU;AAC/C,UAAM,UAAU;AAAA,MACd,GAAG;AAAA,MACH,UAAU,EAAE,GAAG,KAAK,UAAU,QAAQ,gBAAgB,GAAG;AAAA,IAC3D;AACA,WAAO,oBAAC;AAAA,MAA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,kCAAC,cAAW,IAAG,OAAM,eAAY,0BAC9B,6BACH;AAAA,cACC,kBAAkB,oBAAC,kBAAe,KAAU,MAAY;AAAA;AAAA;AAAA,QAC3D;AAAA;AAAA;AAAA,EACF;AAEJ;",
6
6
  "names": []
7
7
  }
@@ -23,48 +23,47 @@ const ItemWithDate = (props) => {
23
23
  }
24
24
  } = props;
25
25
  const labelOverflow = itemLabelOverflow || leftNavLabelOverflow;
26
- return /* @__PURE__ */ jsxs(ItemRenderer, {
27
- item: {
28
- ...item,
29
- CollapsedComponent: null
30
- },
31
- minHeight: "32px",
32
- paddingTop: "8px",
33
- children: [
34
- " ",
35
- /* @__PURE__ */ jsx("div", {}),
36
- /* @__PURE__ */ jsx(StyledLabel, {
37
- pl: "xxs",
38
- pb: "xxxs",
39
- "data-testid": labelDataTestId || "leftnav-list-item-label",
40
- labelOverflow,
41
- labelBold,
42
- labelColor,
43
- children: labelOverflow === "truncate" ? /* @__PURE__ */ jsx(SimpleTruncatedTooltipText, {
44
- value: label,
45
- placement: "bottom-start"
46
- }) : label
47
- }),
48
- /* @__PURE__ */ jsxs(StyledRightContainer, {
49
- pr: "xxs2",
50
- cols: ["auto", "auto"],
51
- alignItems: "center",
52
- gutter: "xxs",
53
- "data-testid": "leftnav-right-component",
54
- children: [
55
- /* @__PURE__ */ jsx(StyledDate, {
56
- ml: "xxs",
57
- "data-testid": "leftnav-list-item-date",
58
- children: labelRightSection
59
- }),
60
- RightComponent && /* @__PURE__ */ jsx(RightComponent, {
61
- ctx,
62
- item
63
- })
64
- ]
65
- })
66
- ]
67
- });
26
+ return /* @__PURE__ */ jsxs(
27
+ ItemRenderer,
28
+ {
29
+ item: {
30
+ ...item,
31
+ CollapsedComponent: null
32
+ },
33
+ minHeight: "32px",
34
+ paddingTop: "8px",
35
+ children: [
36
+ " ",
37
+ /* @__PURE__ */ jsx("div", {}),
38
+ /* @__PURE__ */ jsx(
39
+ StyledLabel,
40
+ {
41
+ pl: "xxs",
42
+ pb: "xxxs",
43
+ "data-testid": labelDataTestId || "leftnav-list-item-label",
44
+ labelOverflow,
45
+ labelBold,
46
+ labelColor,
47
+ children: labelOverflow === "truncate" ? /* @__PURE__ */ jsx(SimpleTruncatedTooltipText, { value: label, placement: "bottom-start" }) : label
48
+ }
49
+ ),
50
+ /* @__PURE__ */ jsxs(
51
+ StyledRightContainer,
52
+ {
53
+ pr: "xxs2",
54
+ cols: ["auto", "auto"],
55
+ alignItems: "center",
56
+ gutter: "xxs",
57
+ "data-testid": "leftnav-right-component",
58
+ children: [
59
+ /* @__PURE__ */ jsx(StyledDate, { ml: "xxs", "data-testid": "leftnav-list-item-date", children: labelRightSection }),
60
+ RightComponent && /* @__PURE__ */ jsx(RightComponent, { ctx, item })
61
+ ]
62
+ }
63
+ )
64
+ ]
65
+ }
66
+ );
68
67
  };
69
68
  export {
70
69
  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 { SimpleTruncatedTooltipText } from '@elliemae/ds-truncated-tooltip-text';\nimport { ItemRenderer } from '../../exported-related/index';\nimport type { ComponentProps } from '../../index.d';\nimport { StyledRightContainer, 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 <StyledRightContainer\n pr=\"xxs2\"\n cols={['auto', 'auto']}\n alignItems=\"center\"\n gutter=\"xxs\"\n data-testid=\"leftnav-right-component\"\n >\n <StyledDate ml=\"xxs\" data-testid=\"leftnav-list-item-date\">\n {labelRightSection}\n </StyledDate>\n {RightComponent && <RightComponent ctx={ctx} item={item} />}\n </StyledRightContainer>\n </ItemRenderer>\n );\n};\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACqCW,cAW5B,YAX4B;AApClC,SAAS,kCAAkC;AAC3C,SAAS,oBAAoB;AAE7B,SAAS,sBAAsB,aAAa,kBAAkB;AAEvD,MAAM,eAAe,CAAC,UAAuC;AAClE,QAAM;AAAA,IACJ;AAAA,IACA,MAAM;AAAA,MACJ,UAAU;AAAA,QACR;AAAA,QACA;AAAA,QACA;AAAA,QACA,eAAe;AAAA,QACf;AAAA,QACA;AAAA,QACA;AAAA,MACF;AAAA,IACF;AAAA,IACA;AAAA,IACA,KAAK;AAAA,MACH,cAAc,EAAE,eAAe,qBAAqB;AAAA,IACtD;AAAA,EACF,IAAI;AAEJ,QAAM,gBAAgB,qBAAqB;AAE3C,SACE,qBAAC;AAAA,IACC,MAAM;AAAA,MACJ,GAAG;AAAA,MACH,oBAAoB;AAAA,IACtB;AAAA,IACA,WAAU;AAAA,IACV,YAAW;AAAA,IAEgB;AAAA;AAAA,MAAC,oBAAC,SAAI;AAAA,MACjC,oBAAC;AAAA,QACC,IAAG;AAAA,QACH,IAAG;AAAA,QACH,eAAa,mBAAmB;AAAA,QAChC;AAAA,QACA;AAAA,QACA;AAAA,QAEC,4BAAkB,aAAa,oBAAC;AAAA,UAA2B,OAAO;AAAA,UAAO,WAAU;AAAA,SA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ACH,MAAM,CAAC,QAAQ,MAAM;AAAA,YACrB,YAAW;AAAA,YACX,QAAO;AAAA,YACP,eAAY;AAAA,YAEZ;AAAA,kCAAC,cAAW,IAAG,OAAM,eAAY,0BAC9B,6BACH;AAAA,cACC,kBAAkB,oBAAC,kBAAe,KAAU,MAAY;AAAA;AAAA;AAAA,QAC3D;AAAA;AAAA;AAAA,EACF;AAEJ;",
6
6
  "names": []
7
7
  }
@@ -20,38 +20,35 @@ const LeftNavInnerContent = () => {
20
20
  leftNavProps: { HeaderComponent, BodyHeaderComponent, openedItem, items, withoutBodyShadow },
21
21
  selectedItem
22
22
  } = React2.useContext(LeftNavContext);
23
- return /* @__PURE__ */ jsxs(Fragment, {
24
- children: [
25
- /* @__PURE__ */ jsx(StyledLeftNavHeaderArea, {
23
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
24
+ /* @__PURE__ */ jsx(
25
+ StyledLeftNavHeaderArea,
26
+ {
26
27
  "data-testid": "leftnav-header-area",
27
28
  selected: !!HeaderComponent && [selectedItem, openedItem].includes(HeaderComponent.dsId),
28
- children: HeaderComponent ? /* @__PURE__ */ jsx(OutOfTheBoxMapItem, {
29
- item: HeaderComponent
30
- }) : null
31
- }),
32
- /* @__PURE__ */ jsxs(StyledLeftNavBodyAreasContainer, {
33
- cols: ["1fr"],
34
- rows: ["auto", "1fr"],
35
- children: [
36
- /* @__PURE__ */ jsx(StyledLeftNavBodyHeaderArea, {
37
- "data-testid": "leftnav-body-header-area",
38
- selected: !!BodyHeaderComponent && [selectedItem, openedItem].includes(BodyHeaderComponent.dsId),
39
- children: BodyHeaderComponent ? /* @__PURE__ */ jsx(OutOfTheBoxMapItem, {
40
- item: BodyHeaderComponent
41
- }) : null
42
- }),
43
- /* @__PURE__ */ jsx(StyledLeftNavBodyItemsArea, {
44
- selected: !withoutBodyShadow && openedItem !== null,
45
- "data-testid": "leftnav-body-items-area",
46
- tabIndex: -1,
47
- children: items.map((item) => /* @__PURE__ */ jsx(OutOfTheBoxMapItem, {
48
- item
49
- }, item.dsId))
50
- })
51
- ]
52
- })
53
- ]
54
- });
29
+ children: HeaderComponent ? /* @__PURE__ */ jsx(OutOfTheBoxMapItem, { item: HeaderComponent }) : null
30
+ }
31
+ ),
32
+ /* @__PURE__ */ jsxs(StyledLeftNavBodyAreasContainer, { cols: ["1fr"], rows: ["auto", "1fr"], children: [
33
+ /* @__PURE__ */ jsx(
34
+ StyledLeftNavBodyHeaderArea,
35
+ {
36
+ "data-testid": "leftnav-body-header-area",
37
+ selected: !!BodyHeaderComponent && [selectedItem, openedItem].includes(BodyHeaderComponent.dsId),
38
+ children: BodyHeaderComponent ? /* @__PURE__ */ jsx(OutOfTheBoxMapItem, { item: BodyHeaderComponent }) : null
39
+ }
40
+ ),
41
+ /* @__PURE__ */ jsx(
42
+ StyledLeftNavBodyItemsArea,
43
+ {
44
+ selected: !withoutBodyShadow && openedItem !== null,
45
+ "data-testid": "leftnav-body-items-area",
46
+ tabIndex: -1,
47
+ children: items.map((item) => /* @__PURE__ */ jsx(OutOfTheBoxMapItem, { item }, item.dsId))
48
+ }
49
+ )
50
+ ] })
51
+ ] });
55
52
  };
56
53
  const LeftNavContent = () => {
57
54
  const {
@@ -60,31 +57,31 @@ const LeftNavContent = () => {
60
57
  leftNavProps
61
58
  } = React2.useContext(LeftNavContext);
62
59
  const globalProps = useGetGlobalAttributes(leftNavProps);
63
- return /* @__PURE__ */ jsx(StyledLeftNavExpandAnimationWrapper, {
64
- expandedWidth,
65
- expanded,
66
- "data-testid": "leftnav-component",
67
- "aria-label": leftNavScreenReaderInstructions,
68
- role: "menu",
69
- ...globalProps,
70
- children: /* @__PURE__ */ jsxs(StyledLeftNavAreasContainer, {
60
+ return /* @__PURE__ */ jsx(
61
+ StyledLeftNavExpandAnimationWrapper,
62
+ {
71
63
  expandedWidth,
72
- expanded: expandedForAnimation,
73
- rows: ["auto", "1fr", "auto"],
74
- cols: ["1fr"],
75
- children: [
76
- loading && /* @__PURE__ */ jsx(LeftNavLoading, {
77
- expanded: expandedForAnimation
78
- }),
79
- !loading && /* @__PURE__ */ jsx(LeftNavInnerContent, {}),
80
- /* @__PURE__ */ jsx(LeftNavFooterItem, {
81
- footerLabel,
82
- onFooterExpand,
83
- onFooterClose
84
- })
85
- ]
86
- })
87
- });
64
+ expanded,
65
+ "data-testid": "leftnav-component",
66
+ "aria-label": leftNavScreenReaderInstructions,
67
+ role: "menu",
68
+ ...globalProps,
69
+ children: /* @__PURE__ */ jsxs(
70
+ StyledLeftNavAreasContainer,
71
+ {
72
+ expandedWidth,
73
+ expanded: expandedForAnimation,
74
+ rows: ["auto", "1fr", "auto"],
75
+ cols: ["1fr"],
76
+ children: [
77
+ loading && /* @__PURE__ */ jsx(LeftNavLoading, { expanded: expandedForAnimation }),
78
+ !loading && /* @__PURE__ */ jsx(LeftNavInnerContent, {}),
79
+ /* @__PURE__ */ jsx(LeftNavFooterItem, { footerLabel, onFooterExpand, onFooterClose })
80
+ ]
81
+ }
82
+ )
83
+ }
84
+ );
88
85
  };
89
86
  var LeftNavContent_default = LeftNavContent;
90
87
  export {
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/parts/LeftNavContent/index.tsx"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { useGetGlobalAttributes } from '@elliemae/ds-utilities';\nimport { LeftNavContext } from '../../LeftNavigationContext';\nimport { LeftNavFooterItem } from '../LeftNavFooterItem';\nimport { OutOfTheBoxMapItem } from '../OutOfTheBoxMapItem';\nimport {\n StyledLeftNavExpandAnimationWrapper,\n StyledLeftNavAreasContainer,\n StyledLeftNavHeaderArea,\n StyledLeftNavBodyAreasContainer,\n StyledLeftNavBodyHeaderArea,\n StyledLeftNavBodyItemsArea,\n StyledLeftNavContentWithScrollbar,\n} from './styled';\nimport { LeftNavLoading } from '../LeftNavLoading';\n\nconst leftNavScreenReaderInstructions =\n 'Left Navigation. You can navigate through the items using the Up/Down arrows. ' +\n 'To expand or select an item, use the Enter/Return or Space keys. ' +\n 'Expandable items can also be opened/closed with the Right/Left arrows. ' +\n 'The Home and End keys will take you to the first and last item respectively.';\n\nconst LeftNavInnerContent = () => {\n const {\n leftNavProps: { HeaderComponent, BodyHeaderComponent, openedItem, items, withoutBodyShadow },\n selectedItem,\n } = React.useContext(LeftNavContext);\n return (\n <>\n <StyledLeftNavHeaderArea\n data-testid=\"leftnav-header-area\"\n selected={!!HeaderComponent && [selectedItem, openedItem].includes(HeaderComponent.dsId as string)}\n >\n {HeaderComponent ? <OutOfTheBoxMapItem item={HeaderComponent} /> : null}\n </StyledLeftNavHeaderArea>\n <StyledLeftNavBodyAreasContainer cols={['1fr']} rows={['auto', '1fr']}>\n <StyledLeftNavBodyHeaderArea\n data-testid=\"leftnav-body-header-area\"\n selected={!!BodyHeaderComponent && [selectedItem, openedItem].includes(BodyHeaderComponent.dsId as string)}\n >\n {BodyHeaderComponent ? <OutOfTheBoxMapItem item={BodyHeaderComponent} /> : null}\n </StyledLeftNavBodyHeaderArea>\n <StyledLeftNavBodyItemsArea\n selected={!withoutBodyShadow && openedItem !== null}\n data-testid=\"leftnav-body-items-area\"\n tabIndex={-1}\n >\n {items.map((item) => (\n <OutOfTheBoxMapItem item={item} key={item.dsId} />\n ))}\n </StyledLeftNavBodyItemsArea>\n </StyledLeftNavBodyAreasContainer>\n </>\n );\n};\n\nconst LeftNavContent: React.ComponentType = () => {\n const {\n expandedForAnimation,\n leftNavProps: { expanded, expandedWidth, footerLabel, onFooterExpand, onFooterClose, loading },\n leftNavProps,\n } = React.useContext(LeftNavContext);\n\n const globalProps = useGetGlobalAttributes(leftNavProps);\n\n return (\n <StyledLeftNavExpandAnimationWrapper\n expandedWidth={expandedWidth}\n expanded={expanded}\n data-testid=\"leftnav-component\"\n aria-label={leftNavScreenReaderInstructions}\n role=\"menu\"\n {...globalProps}\n >\n <StyledLeftNavAreasContainer\n expandedWidth={expandedWidth}\n expanded={expandedForAnimation}\n rows={['auto', '1fr', 'auto']}\n cols={['1fr']}\n >\n {loading && <LeftNavLoading expanded={expandedForAnimation} />}\n {!loading && <LeftNavInnerContent />}\n <LeftNavFooterItem footerLabel={footerLabel} onFooterExpand={onFooterExpand} onFooterClose={onFooterClose} />\n </StyledLeftNavAreasContainer>\n </StyledLeftNavExpandAnimationWrapper>\n );\n};\n\nexport default LeftNavContent;\n"],
5
- "mappings": "AAAA,YAAY,WAAW;AC4BnB,mBAKuB,KAErB,YAPF;AA5BJ,OAAOA,YAAW;AAClB,SAAS,8BAA8B;AACvC,SAAS,sBAAsB;AAC/B,SAAS,yBAAyB;AAClC,SAAS,0BAA0B;AACnC;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAEK;AACP,SAAS,sBAAsB;AAE/B,MAAM,kCACJ;AAKF,MAAM,sBAAsB,MAAM;AAChC,QAAM;AAAA,IACJ,cAAc,EAAE,iBAAiB,qBAAqB,YAAY,OAAO,kBAAkB;AAAA,IAC3F;AAAA,EACF,IAAIA,OAAM,WAAW,cAAc;AACnC,SACE;AAAA,IACE;AAAA,0BAAC;AAAA,QACC,eAAY;AAAA,QACZ,UAAU,CAAC,CAAC,mBAAmB,CAAC,cAAc,UAAU,EAAE,SAAS,gBAAgB,IAAc;AAAA,QAEhG,4BAAkB,oBAAC;AAAA,UAAmB,MAAM;AAAA,SAAiB,IAAK;AAAA,OACrE;AAAA,MACA,qBAAC;AAAA,QAAgC,MAAM,CAAC,KAAK;AAAA,QAAG,MAAM,CAAC,QAAQ,KAAK;AAAA,QAClE;AAAA,8BAAC;AAAA,YACC,eAAY;AAAA,YACZ,UAAU,CAAC,CAAC,uBAAuB,CAAC,cAAc,UAAU,EAAE,SAAS,oBAAoB,IAAc;AAAA,YAExG,gCAAsB,oBAAC;AAAA,cAAmB,MAAM;AAAA,aAAqB,IAAK;AAAA,WAC7E;AAAA,UACA,oBAAC;AAAA,YAC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AAM,CAAC,KAAK;AAAA,UAEX;AAAA,uBAAW,oBAAC,kBAAe,UAAU,sBAAsB;AAAA,YAC3D,CAAC,WAAW,oBAAC,uBAAoB;AAAA,YAClC,oBAAC,qBAAkB,aAA0B,gBAAgC,eAA8B;AAAA;AAAA;AAAA,MAC7G;AAAA;AAAA,EACF;AAEJ;AAEA,IAAO,yBAAQ;",
6
6
  "names": ["React"]
7
7
  }
@@ -34,9 +34,9 @@ const LeftNavFooterItem = (props) => {
34
34
  },
35
35
  onClick: handleOnClick
36
36
  });
37
- return /* @__PURE__ */ jsx(StyledFooterMenu, {
38
- "data-testid": "leftnav-container",
39
- children: /* @__PURE__ */ jsx(StyledFooterItem, {
37
+ return /* @__PURE__ */ jsx(StyledFooterMenu, { "data-testid": "leftnav-container", children: /* @__PURE__ */ jsx(
38
+ StyledFooterItem,
39
+ {
40
40
  ref: visibleItemsRefs.current[id],
41
41
  tabIndex: expandedForAnimation ? -1 : 0,
42
42
  expanded: expandedForAnimation,
@@ -51,28 +51,23 @@ const LeftNavFooterItem = (props) => {
51
51
  "data-testid": "leftnav-item-container",
52
52
  role: "menuitem",
53
53
  "aria-label": expandedForAnimation ? `Footer, ${typeof footerLabel === "string" ? footerLabel : ""}` : `Expand left navigation`,
54
- children: !expandedForAnimation ? /* @__PURE__ */ jsx(MenuExpand, {
55
- size: "m",
56
- color: ["brand-primary", 800],
57
- "data-testid": "leftnav-footer-btn"
58
- }) : /* @__PURE__ */ jsxs(Fragment, {
59
- children: [
60
- /* @__PURE__ */ jsx(StyledFooterLabel, {
54
+ children: !expandedForAnimation ? /* @__PURE__ */ jsx(MenuExpand, { size: "m", color: ["brand-primary", 800], "data-testid": "leftnav-footer-btn" }) : /* @__PURE__ */ jsxs(Fragment, { children: [
55
+ /* @__PURE__ */ jsx(
56
+ StyledFooterLabel,
57
+ {
61
58
  mt: "5px",
62
59
  mr: "12px",
63
60
  mb: "16px",
64
61
  "data-testid": "leftnav-itemlabel",
65
62
  labelOverflow,
66
63
  "aria-live": "polite",
67
- children: labelOverflow === "truncate" ? /* @__PURE__ */ jsx(SimpleTruncatedTooltipText, {
68
- value: footerLabel,
69
- placement: "bottom-start"
70
- }) : footerLabel
71
- }),
72
- /* @__PURE__ */ jsx(StyledFooterSeparator, {
73
- mt: "xxxs"
74
- }),
75
- /* @__PURE__ */ jsx(StyledMenuCollapse, {
64
+ children: labelOverflow === "truncate" ? /* @__PURE__ */ jsx(SimpleTruncatedTooltipText, { value: footerLabel, placement: "bottom-start" }) : footerLabel
65
+ }
66
+ ),
67
+ /* @__PURE__ */ jsx(StyledFooterSeparator, { mt: "xxxs" }),
68
+ /* @__PURE__ */ jsx(
69
+ StyledMenuCollapse,
70
+ {
76
71
  size: "m",
77
72
  color: ["brand-primary", 800],
78
73
  onClick: (e) => {
@@ -87,11 +82,11 @@ const LeftNavFooterItem = (props) => {
87
82
  },
88
83
  role: "button",
89
84
  "aria-label": "Collapse left navigation"
90
- })
91
- ]
92
- })
93
- })
94
- }, id);
85
+ }
86
+ )
87
+ ] })
88
+ }
89
+ ) }, id);
95
90
  };
96
91
  var LeftNavFooterItem_default = LeftNavFooterItem;
97
92
  export {
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/parts/LeftNavFooterItem/index.tsx"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable max-lines */\nimport React, { useContext } from 'react';\nimport { MenuExpand } from '@elliemae/ds-icons';\nimport { SimpleTruncatedTooltipText } from '@elliemae/ds-truncated-tooltip-text';\nimport {\n StyledFooterMenu,\n StyledFooterItem,\n StyledFooterWrapper,\n StyledFooterLabel,\n StyledFooterSeparator,\n StyledMenuCollapse,\n} from './styled';\nimport { useKeyboardNavigation } from '../../hooks';\nimport LeftNavigationContext from '../../LeftNavigationContext';\nimport { FOOTER_DS_ID, FOOTER_MENU_CLOSE_DS_ID } from '../../exported-related/constants';\n\ntype LeftNavFooterItemProps = {\n footerLabel: string | JSX.Element;\n onFooterExpand: React.MouseEventHandler & React.KeyboardEventHandler;\n onFooterClose: React.MouseEventHandler & React.KeyboardEventHandler;\n};\n\nexport const LeftNavFooterItem: React.ComponentType<LeftNavFooterItemProps> = (props) => {\n const { footerLabel, onFooterExpand = () => null, onFooterClose = () => null } = props;\n const {\n leftNavProps: { labelOverflow },\n expandedForAnimation,\n setFocusedItem,\n visibleItemsRefs,\n } = useContext(LeftNavigationContext);\n\n const id = FOOTER_DS_ID;\n\n const handleOnClick = expandedForAnimation ? onFooterClose : onFooterExpand;\n\n const onKeyDown = useKeyboardNavigation({\n item: {\n dsId: id,\n itemOpts: {\n selectable: !expandedForAnimation,\n openable: false,\n closable: false,\n },\n },\n onClick: handleOnClick,\n });\n\n return (\n <StyledFooterMenu key={id} data-testid=\"leftnav-container\">\n <StyledFooterItem\n ref={visibleItemsRefs.current[id] as React.RefObject<HTMLDivElement>}\n tabIndex={expandedForAnimation ? -1 : 0}\n expanded={expandedForAnimation}\n pt=\"xxs2\"\n height={expandedForAnimation ? 'auto' : '48px'}\n alignItems=\"flex-start\"\n pl=\"xxs2\"\n cols={expandedForAnimation ? ['auto', '1fr', 'auto'] : ['38px']}\n onClick={expandedForAnimation ? () => null : handleOnClick}\n onKeyDown={onKeyDown}\n onFocus={() => setFocusedItem(id)}\n data-testid=\"leftnav-item-container\"\n role=\"menuitem\"\n aria-label={\n expandedForAnimation\n ? `Footer, ${typeof footerLabel === 'string' ? footerLabel : ''}`\n : `Expand left navigation`\n }\n >\n {!expandedForAnimation ? (\n <MenuExpand size=\"m\" color={['brand-primary', 800]} data-testid=\"leftnav-footer-btn\" />\n ) : (\n <>\n <StyledFooterLabel\n mt=\"5px\"\n mr=\"12px\"\n mb=\"16px\"\n data-testid=\"leftnav-itemlabel\"\n labelOverflow={labelOverflow}\n aria-live=\"polite\"\n >\n {labelOverflow === 'truncate' ? (\n <SimpleTruncatedTooltipText value={footerLabel} placement=\"bottom-start\" />\n ) : (\n footerLabel\n )}\n </StyledFooterLabel>\n <StyledFooterSeparator mt=\"xxxs\" />\n <StyledMenuCollapse\n size=\"m\"\n color={['brand-primary', 800]}\n onClick={(e: React.MouseEvent) => {\n e.stopPropagation();\n handleOnClick(e);\n }}\n data-testid=\"leftnav-footer-btn\"\n tabIndex={0}\n onFocus={(e: React.FocusEvent) => {\n e.stopPropagation();\n setFocusedItem(FOOTER_MENU_CLOSE_DS_ID);\n }}\n role=\"button\"\n aria-label=\"Collapse left navigation\"\n />\n </>\n )}\n </StyledFooterItem>\n </StyledFooterMenu>\n );\n};\n\nexport default LeftNavFooterItem;\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACsEb,SAEA,UAFA,KAEA,YAFA;AArEV,SAAgB,kBAAkB;AAClC,SAAS,kBAAkB;AAC3B,SAAS,kCAAkC;AAC3C;AAAA,EACE;AAAA,EACA;AAAA,EAEA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,6BAA6B;AACtC,OAAO,2BAA2B;AAClC,SAAS,cAAc,+BAA+B;AAQ/C,MAAM,oBAAiE,CAAC,UAAU;AACvF,QAAM,EAAE,aAAa,iBAAiB,MAAM,MAAM,gBAAgB,MAAM,KAAK,IAAI;AACjF,QAAM;AAAA,IACJ,cAAc,EAAE,cAAc;AAAA,IAC9B;AAAA,IACA;AAAA,IACA;AAAA,EACF,IAAI,WAAW,qBAAqB;AAEpC,QAAM,KAAK;AAEX,QAAM,gBAAgB,uBAAuB,gBAAgB;AAE7D,QAAM,YAAY,sBAAsB;AAAA,IACtC,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,UAAU;AAAA,QACR,YAAY,CAAC;AAAA,QACb,UAAU;AAAA,QACV,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,SAAS;AAAA,EACX,CAAC;AAED,SACE,oBAAC;AAAA,IAA0B,eAAY;AAAA,IACrC,8BAAC;AAAA,MACC,KAAK,iBAAiB,QAAQ;AAAA,MAC9B,UAAU,u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AAY,sBAAqB,IAErF,iCACE;AAAA;AAAA,UAAC;AAAA;AAAA,YACC,IAAG;AAAA,YACH,IAAG;AAAA,YACH,IAAG;AAAA,YACH,eAAY;AAAA,YACZ;AAAA,YACA,aAAU;AAAA,YAET,4BAAkB,aACjB,oBAAC,8BAA2B,OAAO,aAAa,WAAU,gBAAe,IAEzE;AAAA;AAAA,QAEJ;AAAA,QACA,oBAAC,yBAAsB,IAAG,QAAO;AAAA,QACjC;AAAA,UAAC;AAAA;AAAA,YACC,MAAK;AAAA,YACL,OAAO,CAAC,iBAAiB,GAAG;AAAA,YAC5B,SAAS,CAAC,MAAwB;AAChC,gBAAE,gBAAgB;AAClB,4BAAc,CAAC;AAAA,YACjB;AAAA,YACA,eAAY;AAAA,YACZ,UAAU;AAAA,YACV,SAAS,CAAC,MAAwB;AAChC,gBAAE,gBAAgB;AAClB,6BAAe,uBAAuB;AAAA,YACxC;AAAA,YACA,MAAK;AAAA,YACL,cAAW;AAAA;AAAA,QACb;AAAA,SACF;AAAA;AAAA,EAEJ,KA1DqB,EA2DvB;AAEJ;AAEA,IAAO,4BAAQ;",
6
6
  "names": []
7
7
  }
@@ -11,15 +11,16 @@ const StyledLoaderWrapper = styled(Grid, { name: DSLeftNavigationName, slot: DSL
11
11
  z-index: 0;
12
12
  background-color: white;
13
13
  `;
14
- const LeftNavLoading = ({ expanded }) => /* @__PURE__ */ jsx(StyledLoaderWrapper, {
15
- children: /* @__PURE__ */ jsx(DSCircularProgressIndicator, {
14
+ const LeftNavLoading = ({ expanded }) => /* @__PURE__ */ jsx(StyledLoaderWrapper, { children: /* @__PURE__ */ jsx(
15
+ DSCircularProgressIndicator,
16
+ {
16
17
  size: expanded ? "xl" : "m",
17
18
  loading: true,
18
19
  showLabel: expanded,
19
20
  waiting: false,
20
21
  showTooltip: !expanded
21
- })
22
- });
22
+ }
23
+ ) });
23
24
  export {
24
25
  LeftNavLoading
25
26
  };
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/parts/LeftNavLoading/index.tsx"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport DSCircularProgressIndicator from '@elliemae/ds-circular-progress-indicator';\nimport Grid from '@elliemae/ds-grid';\nimport { styled } from '@elliemae/ds-system';\nimport { DSLeftNavigationName, DSLeftNavigationSlots } from '../../constants';\n\nconst StyledLoaderWrapper = styled(Grid, { name: DSLeftNavigationName, slot: DSLeftNavigationSlots.LOADER_WRAPPER })`\n grid-area: left-nav-body;\n height: 100%;\n place-items: center;\n z-index: 0;\n background-color: white;\n`;\n\nexport const LeftNavLoading: React.ComponentType<{ expanded: boolean }> = ({ expanded }) => (\n <StyledLoaderWrapper>\n <DSCircularProgressIndicator\n size={expanded ? 'xl' : 'm'}\n loading\n showLabel={expanded}\n waiting={false}\n showTooltip={!expanded}\n />\n </StyledLoaderWrapper>\n);\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACgBnB;AAfJ,OAAO,iCAAiC;AACxC,OAAO,UAAU;AACjB,SAAS,cAAc;AACvB,SAAS,sBAAsB,6BAA6B;AAE5D,MAAM,sBAAsB,OAAO,MAAM,EAAE,MAAM,sBAAsB,MAAM,sBAAsB,eAAe,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQ5G,MAAM,iBAA6D,CAAC,EAAE,SAAS,MACpF,oBAAC;AAAA,EACC,8BAAC;AAAA,IACC,MAAM,WAAW,OAAO;AAAA,IACxB,SAAO;AAAA,IACP,WAAW;AAAA,IACX,SAAS;AAAA,IACT,aAAa,CAAC;AAAA,GAChB;AAAA,CACF;",
5
+ "mappings": "AAAA,YAAY,WAAW;ACgBnB;AAfJ,OAAO,iCAAiC;AACxC,OAAO,UAAU;AACjB,SAAS,cAAc;AACvB,SAAS,sBAAsB,6BAA6B;AAE5D,MAAM,sBAAsB,OAAO,MAAM,EAAE,MAAM,sBAAsB,MAAM,sBAAsB,eAAe,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQ5G,MAAM,iBAA6D,CAAC,EAAE,SAAS,MACpF,oBAAC,uBACC;AAAA,EAAC;AAAA;AAAA,IACC,MAAM,WAAW,OAAO;AAAA,IACxB,SAAO;AAAA,IACP,WAAW;AAAA,IACX,SAAS;AAAA,IACT,aAAa,CAAC;AAAA;AAChB,GACF;",
6
6
  "names": []
7
7
  }
@@ -11,17 +11,11 @@ const OutOfTheBoxMapItem = (props) => {
11
11
  const ctx = React2.useContext(LeftNavContext);
12
12
  if (typeof type === "string" && !!outOfTheBoxComponents[type]) {
13
13
  const OutOfTheBoxComponent = outOfTheBoxComponents[type];
14
- return /* @__PURE__ */ jsx(OutOfTheBoxComponent, {
15
- item: { itemOpts: {}, ...item },
16
- ctx
17
- });
14
+ return /* @__PURE__ */ jsx(OutOfTheBoxComponent, { item: { itemOpts: {}, ...item }, ctx });
18
15
  }
19
16
  if (!Component)
20
17
  return null;
21
- return /* @__PURE__ */ jsx(Component, {
22
- item,
23
- ctx
24
- });
18
+ return /* @__PURE__ */ jsx(Component, { item, ctx });
25
19
  };
26
20
  export {
27
21
  OutOfTheBoxMapItem
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/parts/OutOfTheBoxMapItem.tsx"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { outOfTheBoxComponents } from '../outOfTheBox';\nimport type { OutOfTheBoxMapItemT } from '../index.d';\nimport { LeftNavContext } from '../LeftNavigationContext';\n\nexport const OutOfTheBoxMapItem: React.ComponentType<OutOfTheBoxMapItemT> = (props) => {\n const {\n item,\n item: { type, Component },\n } = props;\n const ctx = React.useContext(LeftNavContext);\n\n if (typeof type === 'string' && !!outOfTheBoxComponents[type]) {\n const OutOfTheBoxComponent = outOfTheBoxComponents[type];\n return <OutOfTheBoxComponent item={{ itemOpts: {}, ...item }} ctx={ctx} />;\n }\n if (!Component) return null;\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"],
5
- "mappings": "AAAA,YAAY,WAAW;ACcZ;AAdX,OAAOA,YAAW;AAClB,SAAS,6BAA6B;AAEtC,SAAS,sBAAsB;AAExB,MAAM,qBAA+D,CAAC,UAAU;AACrF,QAAM;AAAA,IACJ;AAAA,IACA,MAAM,EAAE,MAAM,UAAU;AAAA,EAC1B,IAAI;AACJ,QAAM,MAAMA,OAAM,WAAW,cAAc;AAE3C,MAAI,OAAO,SAAS,YAAY,CAAC,CAAC,sBAAsB,OAAO;AAC7D,UAAM,uBAAuB,sBAAsB;AACnD,WAAO,oBAAC;AAAA,MAAqB,MAAM,EAAE,UAAU,CAAC,GAAG,GAAG,KAAK;AAAA,MAAG;AAAA,KAAU;AAAA,EAC1E;AACA,MAAI,CAAC;AAAW,WAAO;AAEvB,SAAO,oBAAC;AAAA,IAAU;AAAA,IAAY;AAAA,GAAU;AAC1C;",
5
+ "mappings": "AAAA,YAAY,WAAW;ACcZ;AAdX,OAAOA,YAAW;AAClB,SAAS,6BAA6B;AAEtC,SAAS,sBAAsB;AAExB,MAAM,qBAA+D,CAAC,UAAU;AACrF,QAAM;AAAA,IACJ;AAAA,IACA,MAAM,EAAE,MAAM,UAAU;AAAA,EAC1B,IAAI;AACJ,QAAM,MAAMA,OAAM,WAAW,cAAc;AAE3C,MAAI,OAAO,SAAS,YAAY,CAAC,CAAC,sBAAsB,OAAO;AAC7D,UAAM,uBAAuB,sBAAsB;AACnD,WAAO,oBAAC,wBAAqB,MAAM,EAAE,UAAU,CAAC,GAAG,GAAG,KAAK,GAAG,KAAU;AAAA,EAC1E;AACA,MAAI,CAAC;AAAW,WAAO;AAEvB,SAAO,oBAAC,aAAU,MAAY,KAAU;AAC1C;",
6
6
  "names": ["React"]
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-left-navigation",
3
- "version": "3.12.0-rc.2",
3
+ "version": "3.12.0-rc.21",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Left Navigation",
6
6
  "files": [
@@ -235,12 +235,12 @@
235
235
  "typeSafety": false
236
236
  },
237
237
  "dependencies": {
238
- "@elliemae/ds-circular-progress-indicator": "3.12.0-rc.2",
239
- "@elliemae/ds-grid": "3.12.0-rc.2",
240
- "@elliemae/ds-icons": "3.12.0-rc.2",
241
- "@elliemae/ds-system": "3.12.0-rc.2",
242
- "@elliemae/ds-truncated-tooltip-text": "3.12.0-rc.2",
243
- "@elliemae/ds-utilities": "3.12.0-rc.2"
238
+ "@elliemae/ds-circular-progress-indicator": "3.12.0-rc.21",
239
+ "@elliemae/ds-grid": "3.12.0-rc.21",
240
+ "@elliemae/ds-truncated-tooltip-text": "3.12.0-rc.21",
241
+ "@elliemae/ds-system": "3.12.0-rc.21",
242
+ "@elliemae/ds-icons": "3.12.0-rc.21",
243
+ "@elliemae/ds-utilities": "3.12.0-rc.21"
244
244
  },
245
245
  "devDependencies": {
246
246
  "@testing-library/react": "~12.1.3",