@elliemae/ds-left-navigation 3.5.0-rc.8 → 3.5.1-rc.1

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
@@ -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 { 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 StyledLeftNavFooterArea,\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)}\n >\n {HeaderComponent ? <OutOfTheBoxMapItem item={HeaderComponent} /> : null}\n </StyledLeftNavHeaderArea>\n <StyledLeftNavBodyAreasContainer>\n <StyledLeftNavBodyHeaderArea\n data-testid=\"leftnav-body-header-area\"\n selected={BodyHeaderComponent && [selectedItem, openedItem].includes(BodyHeaderComponent.dsId)}\n >\n {BodyHeaderComponent ? <OutOfTheBoxMapItem item={BodyHeaderComponent} /> : null}\n </StyledLeftNavBodyHeaderArea>\n <StyledLeftNavBodyItemsArea\n selected={!withoutBodyShadow && openedItem !== null}\n data-testid=\"leftnav-body-items-area\"\n tabIndex={-1}\n >\n <StyledLeftNavContentWithScrollbar>\n {items.map((item) => (\n <OutOfTheBoxMapItem item={item} key={item.dsId} />\n ))}\n </StyledLeftNavContentWithScrollbar>\n </StyledLeftNavBodyItemsArea>\n </StyledLeftNavBodyAreasContainer>\n </>\n );\n};\n\nconst LeftNavContent: React.ComponentType = () => {\n const {\n expandedForAnimation,\n leftNavProps: { expanded, expandedWidth, footerLabel, onFooterExpand, onFooterClose, loading },\n } = React.useContext(LeftNavContext);\n\n return (\n <StyledLeftNavExpandAnimationWrapper\n expandedWidth={expandedWidth}\n expanded={expanded}\n data-testid=\"leftnav-component\"\n aria-label={leftNavScreenReaderInstructions}\n >\n <StyledLeftNavAreasContainer expandedWidth={expandedWidth} expanded={expandedForAnimation}>\n {loading && <LeftNavLoading expanded={expandedForAnimation} />}\n {!loading && <LeftNavInnerContent />}\n <StyledLeftNavFooterArea>\n <LeftNavFooterItem footerLabel={footerLabel} onFooterExpand={onFooterExpand} onFooterClose={onFooterClose} />\n </StyledLeftNavFooterArea>\n </StyledLeftNavAreasContainer>\n </StyledLeftNavExpandAnimationWrapper>\n );\n};\n\nexport default LeftNavContent;\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACAvB,OAAOA,YAAW;AAClB,SAAS,sBAAsB;AAC/B,SAAS,yBAAyB;AAClC,SAAS,0BAA0B;AACnC;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;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,gBAAAA,OAAA,cAAAA,OAAA,gBACE,gBAAAA,OAAA,cAAC;AAAA,IACC,eAAY;AAAA,IACZ,UAAU,mBAAmB,CAAC,cAAc,UAAU,EAAE,SAAS,gBAAgB,IAAI;AAAA,KAEpF,kBAAkB,gBAAAA,OAAA,cAAC;AAAA,IAAmB,MAAM;AAAA,GAAiB,IAAK,IACrE,GACA,gBAAAA,OAAA,cAAC,uCACC,gBAAAA,OAAA,cAAC;AAAA,IACC,eAAY;AAAA,IACZ,UAAU,uBAAuB,CAAC,cAAc,UAAU,EAAE,SAAS,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B;AAAA,YAA0B;AAAA,YAAgC;AAAA,WAA8B;AAAA,SAC7G;AAAA;AAAA,KACF;AAAA,GACF;AAEJ;AAEA,IAAO,yBAAQ;",
6
6
  "names": ["React"]
7
7
  }
@@ -1,5 +1,6 @@
1
1
  import * as React from "react";
2
- import React2, { useContext } from "react";
2
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
3
+ import { useContext } from "react";
3
4
  import { MenuExpand } from "@elliemae/ds-icons";
4
5
  import { PropTypes } from "@elliemae/ds-utilities";
5
6
  import Grid from "@elliemae/ds-grid";
@@ -37,58 +38,69 @@ const LeftNavFooterItem = (props) => {
37
38
  },
38
39
  onClick: handleOnClick
39
40
  });
40
- return /* @__PURE__ */ React2.createElement(StyledFooterMenu, {
41
- key: id,
42
- "data-testid": "leftnav-container"
43
- }, /* @__PURE__ */ React2.createElement(StyledItemWrapper, null, /* @__PURE__ */ React2.createElement(StyledItem, {
44
- ref: visibleItemsRefs.current[id],
45
- tabIndex: expandedForAnimation ? -1 : 0,
46
- expanded: expandedForAnimation,
47
- pt: "xxs2",
48
- height: expandedForAnimation ? "auto" : "48px",
49
- alignItems: "flex-start",
50
- pl: "xxs",
51
- cols: expandedForAnimation ? ["auto", "1fr", "auto"] : ["38px"],
52
- onClick: expandedForAnimation ? () => null : handleOnClick,
53
- onKeyDown,
54
- onFocus: () => setFocusedItem(id),
55
- "data-testid": "leftnav-item-container",
56
- role: "menuitem",
57
- "aria-label": expandedForAnimation ? `Footer, ${footerLabel}` : `Expand left navigation`
58
- }, !expandedForAnimation ? /* @__PURE__ */ React2.createElement(MenuExpand, {
59
- size: "m",
60
- color: ["brand-primary", 800],
61
- "data-testid": "leftnav-footer-btn"
62
- }) : /* @__PURE__ */ React2.createElement(React2.Fragment, null, /* @__PURE__ */ React2.createElement(StyledLabel, {
63
- mt: "5px",
64
- mr: "12px",
65
- mb: "16px",
66
- "data-testid": "leftnav-itemlabel",
67
- labelOverflow,
68
- "aria-live": "polite"
69
- }, labelOverflow === "truncate" ? /* @__PURE__ */ React2.createElement(SimpleTruncatedTooltipText, {
70
- value: footerLabel,
71
- placement: "bottom-start"
72
- }) : footerLabel), /* @__PURE__ */ React2.createElement(StyledSeparator, {
73
- mt: "xxxs"
74
- }), /* @__PURE__ */ React2.createElement(Grid, {
75
- m: "0 12px"
76
- }, /* @__PURE__ */ React2.createElement(StyledMenuCollapse, {
77
- size: "m",
78
- color: ["brand-primary", 800],
79
- onClick: (e) => {
80
- e.stopPropagation();
81
- handleOnClick(e);
82
- },
83
- "data-testid": "leftnav-footer-btn",
84
- tabIndex: 0,
85
- onFocus: (e) => {
86
- e.stopPropagation();
87
- setFocusedItem(FOOTER_MENU_CLOSE_DS_ID);
88
- },
89
- role: "button",
90
- "aria-label": "Collapse left navigation"
91
- }))))));
41
+ return /* @__PURE__ */ jsx(StyledFooterMenu, {
42
+ "data-testid": "leftnav-container",
43
+ children: /* @__PURE__ */ jsx(StyledItemWrapper, {
44
+ children: /* @__PURE__ */ jsx(StyledItem, {
45
+ ref: visibleItemsRefs.current[id],
46
+ tabIndex: expandedForAnimation ? -1 : 0,
47
+ expanded: expandedForAnimation,
48
+ pt: "xxs2",
49
+ height: expandedForAnimation ? "auto" : "48px",
50
+ alignItems: "flex-start",
51
+ pl: "xxs",
52
+ cols: expandedForAnimation ? ["auto", "1fr", "auto"] : ["38px"],
53
+ onClick: expandedForAnimation ? () => null : handleOnClick,
54
+ onKeyDown,
55
+ onFocus: () => setFocusedItem(id),
56
+ "data-testid": "leftnav-item-container",
57
+ role: "menuitem",
58
+ "aria-label": expandedForAnimation ? `Footer, ${footerLabel}` : `Expand left navigation`,
59
+ children: !expandedForAnimation ? /* @__PURE__ */ jsx(MenuExpand, {
60
+ size: "m",
61
+ color: ["brand-primary", 800],
62
+ "data-testid": "leftnav-footer-btn"
63
+ }) : /* @__PURE__ */ jsxs(Fragment, {
64
+ children: [
65
+ /* @__PURE__ */ jsx(StyledLabel, {
66
+ mt: "5px",
67
+ mr: "12px",
68
+ mb: "16px",
69
+ "data-testid": "leftnav-itemlabel",
70
+ labelOverflow,
71
+ "aria-live": "polite",
72
+ children: labelOverflow === "truncate" ? /* @__PURE__ */ jsx(SimpleTruncatedTooltipText, {
73
+ value: footerLabel,
74
+ placement: "bottom-start"
75
+ }) : footerLabel
76
+ }),
77
+ /* @__PURE__ */ jsx(StyledSeparator, {
78
+ mt: "xxxs"
79
+ }),
80
+ /* @__PURE__ */ jsx(Grid, {
81
+ m: "0 12px",
82
+ children: /* @__PURE__ */ jsx(StyledMenuCollapse, {
83
+ size: "m",
84
+ color: ["brand-primary", 800],
85
+ onClick: (e) => {
86
+ e.stopPropagation();
87
+ handleOnClick(e);
88
+ },
89
+ "data-testid": "leftnav-footer-btn",
90
+ tabIndex: 0,
91
+ onFocus: (e) => {
92
+ e.stopPropagation();
93
+ setFocusedItem(FOOTER_MENU_CLOSE_DS_ID);
94
+ },
95
+ role: "button",
96
+ "aria-label": "Collapse left navigation"
97
+ })
98
+ })
99
+ ]
100
+ })
101
+ })
102
+ })
103
+ }, id);
92
104
  };
93
105
  LeftNavFooterItem.propTypes = {
94
106
  footerLabel: PropTypes.any,
@@ -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 { PropTypes } from '@elliemae/ds-utilities';\nimport Grid from '@elliemae/ds-grid';\nimport { SimpleTruncatedTooltipText } from '@elliemae/ds-truncated-tooltip-text';\nimport {\n StyledFooterMenu,\n StyledItem,\n StyledItemWrapper,\n StyledLabel,\n StyledSeparator,\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, openedItem },\n expandedForAnimation,\n setSelectedItem,\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 <StyledItemWrapper>\n <StyledItem\n ref={visibleItemsRefs.current[id]}\n tabIndex={expandedForAnimation ? -1 : 0}\n expanded={expandedForAnimation}\n pt=\"xxs2\"\n height={expandedForAnimation ? 'auto' : '48px'}\n alignItems=\"flex-start\"\n pl=\"xxs\"\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={expandedForAnimation ? `Footer, ${footerLabel}` : `Expand left navigation`}\n >\n {!expandedForAnimation ? (\n <MenuExpand size=\"m\" color={['brand-primary', 800]} data-testid=\"leftnav-footer-btn\" />\n ) : (\n <>\n <StyledLabel\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 </StyledLabel>\n <StyledSeparator mt=\"xxxs\" />\n <Grid m=\"0 12px\">\n <StyledMenuCollapse\n size=\"m\"\n color={['brand-primary', 800]}\n onClick={(e) => {\n e.stopPropagation();\n handleOnClick(e);\n }}\n data-testid=\"leftnav-footer-btn\"\n tabIndex={0}\n onFocus={(e) => {\n e.stopPropagation();\n setFocusedItem(FOOTER_MENU_CLOSE_DS_ID);\n }}\n role=\"button\"\n aria-label=\"Collapse left navigation\"\n />\n </Grid>\n </>\n )}\n </StyledItem>\n </StyledItemWrapper>\n </StyledFooterMenu>\n );\n};\n\nLeftNavFooterItem.propTypes = {\n footerLabel: PropTypes.any,\n onFooterExpand: PropTypes.func,\n onFooterClose: PropTypes.func,\n};\n\nexport default LeftNavFooterItem;\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACCvB,OAAOA,UAAS,kBAAkB;AAClC,SAAS,kBAAkB;AAC3B,SAAS,iBAAiB;AAC1B,OAAO,UAAU;AACjB,SAAS,kCAAkC;AAC3C;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;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,eAAe,WAAW;AAAA,IAC1C;AAAA,IACA;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,MAC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AAAA,EAC5B,aAAa,UAAU;AAAA,EACvB,gBAAgB,UAAU;AAAA,EAC1B,eAAe,UAAU;AAC3B;AAEA,IAAO,4BAAQ;",
6
+ "names": []
7
7
  }
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- import React2 from "react";
2
+ import { jsx } from "react/jsx-runtime";
3
3
  import DSCircularProgressIndicator from "@elliemae/ds-circular-progress-indicator";
4
4
  import Grid from "@elliemae/ds-grid";
5
5
  import { styled } from "@elliemae/ds-system";
@@ -10,13 +10,15 @@ const StyledLoaderWrapper = styled(Grid)`
10
10
  z-index: 0;
11
11
  background-color: white;
12
12
  `;
13
- const LeftNavLoading = ({ expanded }) => /* @__PURE__ */ React2.createElement(StyledLoaderWrapper, null, /* @__PURE__ */ React2.createElement(DSCircularProgressIndicator, {
14
- size: expanded ? "xl" : "m",
15
- loading: true,
16
- showLabel: expanded,
17
- waiting: false,
18
- showTooltip: !expanded
19
- }));
13
+ const LeftNavLoading = ({ expanded }) => /* @__PURE__ */ jsx(StyledLoaderWrapper, {
14
+ children: /* @__PURE__ */ jsx(DSCircularProgressIndicator, {
15
+ size: expanded ? "xl" : "m",
16
+ loading: true,
17
+ showLabel: expanded,
18
+ waiting: false,
19
+ showTooltip: !expanded
20
+ })
21
+ });
20
22
  export {
21
23
  LeftNavLoading
22
24
  };
@@ -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';\n\nconst StyledLoaderWrapper = styled(Grid)`\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;ACAvB,OAAOA,YAAW;AAClB,OAAO,iCAAiC;AACxC,OAAO,UAAU;AACjB,SAAS,cAAc;AAEvB,MAAM,sBAAsB,OAAO,IAAI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQhC,MAAM,iBAA6D,CAAC,EAAE,SAAS,MACpF,gBAAAA,OAAA,cAAC,2BACC,gBAAAA,OAAA,cAAC;AAAA,EACC,MAAM,WAAW,OAAO;AAAA,EACxB,SAAO;AAAA,EACP,WAAW;AAAA,EACX,SAAS;AAAA,EACT,aAAa,CAAC;AAAA,CAChB,CACF;",
6
- "names": ["React"]
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB;AACA,OAAO,iCAAiC;AACxC,OAAO,UAAU;AACjB,SAAS,cAAc;AAEvB,MAAM,sBAAsB,OAAO,IAAI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQhC,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;",
6
+ "names": []
7
7
  }
@@ -1,4 +1,5 @@
1
1
  import * as React from "react";
2
+ import { jsx } from "react/jsx-runtime";
2
3
  import React2 from "react";
3
4
  import { outOfTheBoxComponents } from "../outOfTheBox";
4
5
  import { LeftNavContext } from "../LeftNavigationContext";
@@ -10,12 +11,12 @@ const OutOfTheBoxMapItem = (props) => {
10
11
  const ctx = React2.useContext(LeftNavContext);
11
12
  if (typeof type === "string" && !!outOfTheBoxComponents[type]) {
12
13
  const OutOfTheBoxComponent = outOfTheBoxComponents[type];
13
- return /* @__PURE__ */ React2.createElement(OutOfTheBoxComponent, {
14
+ return /* @__PURE__ */ jsx(OutOfTheBoxComponent, {
14
15
  item: { itemOpts: {}, ...item },
15
16
  ctx
16
17
  });
17
18
  }
18
- return /* @__PURE__ */ React2.createElement(Component, {
19
+ return /* @__PURE__ */ jsx(Component, {
19
20
  item,
20
21
  ctx
21
22
  });
@@ -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 { OutOfTheBoxMapItemT } from '../index.d';\nimport { LeftNavContext } from '../LeftNavigationContext';\n\nexport const OutOfTheBoxMapItem = (props: OutOfTheBoxMapItemT): JSX.Element => {\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 // 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;ACAvB,OAAOA,YAAW;AAClB,SAAS,6BAA6B;AAEtC,SAAS,sBAAsB;AAExB,MAAM,qBAAqB,CAAC,UAA4C;AAC7E,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,gBAAAA,OAAA,cAAC;AAAA,MAAqB,MAAM,EAAE,UAAU,CAAC,GAAG,GAAG,KAAK;AAAA,MAAG;AAAA,KAAU;AAAA,EAC1E;AAEA,SAAO,gBAAAA,OAAA,cAAC;AAAA,IAAU;AAAA,IAAY;AAAA,GAAU;AAC1C;",
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB;AAAA,OAAOA,YAAW;AAClB,SAAS,6BAA6B;AAEtC,SAAS,sBAAsB;AAExB,MAAM,qBAAqB,CAAC,UAA4C;AAC7E,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;AAEA,SAAO,oBAAC;AAAA,IAAU;AAAA,IAAY;AAAA,GAAU;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.5.0-rc.8",
3
+ "version": "3.5.1-rc.1",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Left Navigation",
6
6
  "files": [
@@ -235,13 +235,13 @@
235
235
  "typeSafety": false
236
236
  },
237
237
  "dependencies": {
238
- "@elliemae/ds-circular-progress-indicator": "3.5.0-rc.8",
239
- "@elliemae/ds-grid": "3.5.0-rc.8",
240
- "@elliemae/ds-icons": "3.5.0-rc.8",
241
- "@elliemae/ds-scrollable-container": "3.5.0-rc.8",
242
- "@elliemae/ds-system": "3.5.0-rc.8",
243
- "@elliemae/ds-truncated-tooltip-text": "3.5.0-rc.8",
244
- "@elliemae/ds-utilities": "3.5.0-rc.8",
238
+ "@elliemae/ds-circular-progress-indicator": "3.5.1-rc.1",
239
+ "@elliemae/ds-grid": "3.5.1-rc.1",
240
+ "@elliemae/ds-icons": "3.5.1-rc.1",
241
+ "@elliemae/ds-scrollable-container": "3.5.1-rc.1",
242
+ "@elliemae/ds-system": "3.5.1-rc.1",
243
+ "@elliemae/ds-truncated-tooltip-text": "3.5.1-rc.1",
244
+ "@elliemae/ds-utilities": "3.5.1-rc.1",
245
245
  "overlayscrollbars": "1.13.1"
246
246
  },
247
247
  "devDependencies": {