@elliemae/ds-mobile 2.0.0-next.1 → 2.0.0-next.13

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 (146) hide show
  1. package/cjs/Accordion/Accordion.js +5 -5
  2. package/cjs/Accordion/index.js +5 -5
  3. package/cjs/CategoryBox/CategoryBox.js +14 -13
  4. package/cjs/CollectionBox/CollectionBox.js +15 -14
  5. package/cjs/FullPageContainer/FullPageContainer.js +7 -2
  6. package/cjs/FullPageContainer/FullPageContainerScroll.js +7 -2
  7. package/cjs/FullPageContainer/useMobileHeight.js +1 -0
  8. package/cjs/GlobalHeader/MobileGlobalHeader.js +29 -24
  9. package/cjs/GlobalHeader/styles.js +5 -11
  10. package/cjs/GroupBox/GroupBox.js +15 -14
  11. package/cjs/InfiniteLoader/Infiniteloader.js +11 -9
  12. package/cjs/InfiniteLoader/Loader.js +12 -9
  13. package/cjs/InfiniteLoader/VirtualizedInfiniteLoader.js +50 -22
  14. package/cjs/LoadingPage/Page.js +25 -12
  15. package/cjs/MobileActionToolbar/MobileActionToolbar.js +8 -7
  16. package/cjs/MobileActionToolbar/MobileActionToolbarItem.js +6 -1
  17. package/cjs/MobileBanner/MobileBanner.js +22 -16
  18. package/cjs/MobileBanner/styles.js +128 -59
  19. package/cjs/MobileBanner/utils/icons.js +5 -12
  20. package/cjs/MobileBanner/utils/styleHelpers.js +20 -47
  21. package/cjs/MobileCard/ActionAddon.js +16 -14
  22. package/cjs/MobileCard/Card.js +26 -22
  23. package/cjs/MobileCard/CardIcons.js +21 -16
  24. package/cjs/MobileCard/ExpandChevron.js +8 -10
  25. package/cjs/MobileCard/ExpandableRegion.js +7 -7
  26. package/cjs/MobileCard/Group.js +23 -17
  27. package/cjs/MobileCard/useHeight.js +1 -0
  28. package/cjs/MobileContextMenu/MobileContextMenu.js +37 -28
  29. package/cjs/MobileContextMenu/MobileContextMenuGroup.js +35 -25
  30. package/cjs/MobileContextMenu/MobileContextMenuItem.js +30 -36
  31. package/cjs/MobileDatePicker/Input.js +5 -0
  32. package/cjs/MobileDatePicker/MobileDatePicker.js +16 -17
  33. package/cjs/MobileDropdownMenu/MobileDropdownInput.js +27 -17
  34. package/cjs/MobileDropdownMenu/MobileDropdownMenu.js +21 -17
  35. package/cjs/MobileEmtpyState/MobileEmptyState.js +10 -8
  36. package/cjs/MobileFilterbar/Filterbar.js +13 -10
  37. package/cjs/MobileFilterbar/FilterbarItem.js +15 -12
  38. package/cjs/MobileFilterbar/FilterbarSort.js +17 -14
  39. package/cjs/MobileFooter/Action.js +27 -24
  40. package/cjs/MobileFooter/Footer.js +17 -10
  41. package/cjs/MobileFooter/Text.js +6 -3
  42. package/cjs/MobileListItem/MobileListItem.js +15 -14
  43. package/cjs/MobilePageHeader/MobilePageHeader.js +37 -36
  44. package/cjs/MobileSelectList/MobileSelectList.js +32 -24
  45. package/cjs/MobileSelectList/styled.js +9 -11
  46. package/cjs/MobileSeparator/Separator.js +30 -18
  47. package/cjs/MobileTimePicker/Input.js +5 -0
  48. package/cjs/MobileTimePicker/MobileTimePicker.js +16 -17
  49. package/cjs/MobileTimePicker/MobileTimePicker.stories.js +2 -2
  50. package/cjs/MobileTouchable/MobileTouchable.js +8 -2
  51. package/cjs/Modal/Modal.js +32 -27
  52. package/cjs/Modal/styled.js +11 -12
  53. package/cjs/PageFilter/PageFilter.js +20 -15
  54. package/cjs/PageForm/PageForm.js +22 -15
  55. package/cjs/PageList/PageList.js +12 -11
  56. package/cjs/PageSearch/PageSearch.js +14 -13
  57. package/cjs/PageSummary/PageSummary.js +34 -21
  58. package/cjs/PageSummary/Tags.js +12 -6
  59. package/cjs/SideNav/SideNav.js +43 -34
  60. package/cjs/SwipeToRefresh/ProgressIndicator.js +10 -9
  61. package/cjs/SwipeToRefresh/SwipeToRefresh.js +10 -9
  62. package/cjs/SwipeToRefresh/styled.js +4 -4
  63. package/cjs/SwipeToRefresh/useSwipe.js +6 -4
  64. package/cjs/Tabs/index.js +8 -3
  65. package/cjs/index.js +9 -5
  66. package/esm/Accordion/Accordion.js +1 -1
  67. package/esm/Accordion/index.js +1 -1
  68. package/esm/CategoryBox/CategoryBox.js +11 -10
  69. package/esm/CollectionBox/CollectionBox.js +10 -9
  70. package/esm/FullPageContainer/FullPageContainer.js +6 -1
  71. package/esm/FullPageContainer/FullPageContainerScroll.js +6 -1
  72. package/esm/FullPageContainer/useMobileHeight.js +1 -0
  73. package/esm/GlobalHeader/MobileGlobalHeader.js +21 -14
  74. package/esm/GlobalHeader/styles.js +4 -11
  75. package/esm/GroupBox/GroupBox.js +12 -11
  76. package/esm/InfiniteLoader/Infiniteloader.js +9 -7
  77. package/esm/InfiniteLoader/Loader.js +12 -9
  78. package/esm/InfiniteLoader/VirtualizedInfiniteLoader.js +51 -23
  79. package/esm/LoadingPage/Page.js +25 -12
  80. package/esm/MobileActionToolbar/MobileActionToolbar.js +7 -6
  81. package/esm/MobileActionToolbar/MobileActionToolbarItem.js +6 -1
  82. package/esm/MobileBanner/MobileBanner.js +21 -14
  83. package/esm/MobileBanner/styles.js +128 -59
  84. package/esm/MobileBanner/utils/icons.js +1 -4
  85. package/esm/MobileBanner/utils/styleHelpers.js +16 -47
  86. package/esm/MobileCard/ActionAddon.js +16 -13
  87. package/esm/MobileCard/Card.js +20 -16
  88. package/esm/MobileCard/CardIcons.js +20 -15
  89. package/esm/MobileCard/ExpandChevron.js +8 -8
  90. package/esm/MobileCard/ExpandableRegion.js +7 -7
  91. package/esm/MobileCard/Group.js +21 -15
  92. package/esm/MobileCard/useHeight.js +1 -0
  93. package/esm/MobileContextMenu/MobileContextMenu.js +30 -21
  94. package/esm/MobileContextMenu/MobileContextMenuGroup.js +35 -25
  95. package/esm/MobileContextMenu/MobileContextMenuItem.js +26 -30
  96. package/esm/MobileDatePicker/Input.js +5 -0
  97. package/esm/MobileDatePicker/MobileDatePicker.js +13 -12
  98. package/esm/MobileDropdownMenu/MobileDropdownInput.js +27 -16
  99. package/esm/MobileDropdownMenu/MobileDropdownMenu.js +21 -17
  100. package/esm/MobileEmtpyState/MobileEmptyState.js +10 -7
  101. package/esm/MobileFilterbar/Filterbar.js +13 -10
  102. package/esm/MobileFilterbar/FilterbarItem.js +15 -12
  103. package/esm/MobileFilterbar/FilterbarSort.js +17 -14
  104. package/esm/MobileFooter/Action.js +26 -23
  105. package/esm/MobileFooter/Footer.js +14 -7
  106. package/esm/MobileFooter/Text.js +6 -3
  107. package/esm/MobileListItem/MobileListItem.js +11 -10
  108. package/esm/MobilePageHeader/MobilePageHeader.js +19 -17
  109. package/esm/MobileSelectList/MobileSelectList.js +28 -19
  110. package/esm/MobileSelectList/styled.js +4 -4
  111. package/esm/MobileSeparator/Separator.js +28 -16
  112. package/esm/MobileTimePicker/Input.js +5 -0
  113. package/esm/MobileTimePicker/MobileTimePicker.js +13 -12
  114. package/esm/MobileTimePicker/MobileTimePicker.stories.js +1 -1
  115. package/esm/MobileTouchable/MobileTouchable.js +7 -1
  116. package/esm/Modal/Modal.js +27 -21
  117. package/esm/Modal/styled.js +4 -6
  118. package/esm/PageFilter/PageFilter.js +15 -10
  119. package/esm/PageForm/PageForm.js +18 -11
  120. package/esm/PageList/PageList.js +10 -9
  121. package/esm/PageSearch/PageSearch.js +10 -9
  122. package/esm/PageSummary/PageSummary.js +32 -19
  123. package/esm/PageSummary/Tags.js +12 -6
  124. package/esm/SideNav/SideNav.js +39 -29
  125. package/esm/SwipeToRefresh/ProgressIndicator.js +9 -8
  126. package/esm/SwipeToRefresh/SwipeToRefresh.js +9 -8
  127. package/esm/SwipeToRefresh/styled.js +1 -1
  128. package/esm/SwipeToRefresh/useSwipe.js +6 -4
  129. package/esm/Tabs/index.js +6 -1
  130. package/esm/index.js +4 -3
  131. package/package.json +15 -7
  132. package/types/Accordion/Accordion.d.ts +1 -1
  133. package/types/CategoryBox/CategoryBox.d.ts +1 -1
  134. package/types/CollectionBox/CollectionBox.d.ts +1 -1
  135. package/types/GroupBox/GroupBox.d.ts +1 -1
  136. package/types/InfiniteLoader/Infiniteloader.d.ts +1 -1
  137. package/types/MobileBanner/styles.d.ts +60 -1
  138. package/types/MobileDatePicker/MobileDatePicker.d.ts +1 -1
  139. package/types/MobileSelectList/styled.d.ts +4 -4
  140. package/types/MobileTimePicker/MobileTimePicker.d.ts +1 -1
  141. package/types/Modal/styled.d.ts +7 -6
  142. package/types/SideNav/SideNav.d.ts +1 -1
  143. package/types/SwipeToRefresh/styled.d.ts +4 -3
  144. package/types/index.d.ts +5 -1
  145. package/cjs/package.json +0 -7
  146. package/esm/package.json +0 -7
@@ -1,12 +1,16 @@
1
1
  import _jsx from '@babel/runtime/helpers/esm/jsx';
2
2
  import 'react';
3
3
  import styled from 'styled-components';
4
- import { Grid } from '@elliemae/ds-basic/Grid';
4
+ import { Grid } from '@elliemae/ds-grid';
5
5
  import { useTheme, op, __UNSAFE_SPACE_TO_DIMSUM } from '@elliemae/ds-system';
6
6
  import { DSFullPageContainer } from '../FullPageContainer/FullPageContainer.js';
7
+ import 'core-js/modules/esnext.async-iterator.filter.js';
8
+ import 'core-js/modules/esnext.iterator.constructor.js';
9
+ import 'core-js/modules/esnext.iterator.filter.js';
10
+ import 'core-js/modules/esnext.async-iterator.for-each.js';
11
+ import 'core-js/modules/esnext.iterator.for-each.js';
7
12
  import '@babel/runtime/helpers/esm/defineProperty';
8
13
  import '@babel/runtime/helpers/esm/objectWithoutProperties';
9
- import '@elliemae/ds-basic';
10
14
  import 'react/jsx-runtime';
11
15
 
12
16
  const Header = /*#__PURE__*/styled(Grid).withConfig({
@@ -28,14 +32,15 @@ const Footer = /*#__PURE__*/styled(Grid).withConfig({
28
32
  componentId: "sc-15cmidp-5"
29
33
  })(["display:flex;justify-content:space-around;align-items:center;width:100%;padding:0.67rem;border-top:1px solid ", ";& > button{flex-grow:1;margin:0 0.33rem;}"], props => props.theme.colors.neutral[300]);
30
34
 
31
- const PageFilter = ({
32
- children = null,
33
- breadCrumb = null,
34
- pageTitle = null,
35
- leftProp = null,
36
- rightProp = null,
37
- footerButton = null
38
- }) => {
35
+ const PageFilter = _ref => {
36
+ let {
37
+ children = null,
38
+ breadCrumb = null,
39
+ pageTitle = null,
40
+ leftProp = null,
41
+ rightProp = null,
42
+ footerButton = null
43
+ } = _ref;
39
44
  const theme = useTheme();
40
45
  const headerDimension = theme.space.l;
41
46
  const rows = [headerDimension, 1];
@@ -1,6 +1,6 @@
1
1
  import _jsx from '@babel/runtime/helpers/esm/jsx';
2
2
  import 'react';
3
- import { Grid } from '@elliemae/ds-basic/Grid';
3
+ import { Grid } from '@elliemae/ds-grid';
4
4
  import styled from 'styled-components';
5
5
  import { useTheme, op, __UNSAFE_SPACE_TO_DIMSUM } from '@elliemae/ds-system';
6
6
  import { DSFullPageContainer } from '../FullPageContainer/FullPageContainer.js';
@@ -8,17 +8,24 @@ import { DSFullPageContainerScroll } from '../FullPageContainer/FullPageContaine
8
8
 
9
9
  const Body = /*#__PURE__*/styled(Grid).withConfig({
10
10
  componentId: "sc-1qg3tcm-0"
11
- })(["margin:0 auto;width:100%;@media (min-width:", "){", "}"], ({
12
- theme
13
- }) => theme.breakpoints.small, ({
14
- theme
15
- }) => `width: ${op('*', __UNSAFE_SPACE_TO_DIMSUM(theme.space.xxl), 6.25)};`);
11
+ })(["margin:0 auto;width:100%;@media (min-width:", "){", "}"], _ref => {
12
+ let {
13
+ theme
14
+ } = _ref;
15
+ return theme.breakpoints.small;
16
+ }, _ref2 => {
17
+ let {
18
+ theme
19
+ } = _ref2;
20
+ return "width: ".concat(op('*', __UNSAFE_SPACE_TO_DIMSUM(theme.space.xxl), 6.25), ";");
21
+ });
16
22
 
17
- const PageForm = ({
18
- header = null,
19
- body = null,
20
- footer = null
21
- }) => {
23
+ const PageForm = _ref3 => {
24
+ let {
25
+ header = null,
26
+ body = null,
27
+ footer = null
28
+ } = _ref3;
22
29
  const theme = useTheme();
23
30
  const rows = [1];
24
31
  if (header) rows.unshift(op('*', __UNSAFE_SPACE_TO_DIMSUM(theme.space.xxl), 1.125));
@@ -1,7 +1,7 @@
1
1
  import _jsx from '@babel/runtime/helpers/esm/jsx';
2
2
  import 'react';
3
3
  import styled from 'styled-components';
4
- import { Grid } from '@elliemae/ds-basic/Grid';
4
+ import { Grid } from '@elliemae/ds-grid';
5
5
  import { withTheme, op, __UNSAFE_SPACE_TO_DIMSUM } from '@elliemae/ds-system';
6
6
  import { DSFullPageContainer } from '../FullPageContainer/FullPageContainer.js';
7
7
  import { DSFullPageContainerScroll } from '../FullPageContainer/FullPageContainerScroll.js';
@@ -9,14 +9,15 @@ import { DSFullPageContainerScroll } from '../FullPageContainer/FullPageContaine
9
9
  const PageTitleWrapper = /*#__PURE__*/styled(Grid).withConfig({
10
10
  componentId: "sc-e4h57j-0"
11
11
  })(["min-height:44px;"]);
12
- const DSMobilePageList = withTheme(({
13
- header = null,
14
- pageTitle = null,
15
- filterBar = null,
16
- body = null,
17
- footer = null,
18
- theme
19
- }) => {
12
+ const DSMobilePageList = withTheme(_ref => {
13
+ let {
14
+ header = null,
15
+ pageTitle = null,
16
+ filterBar = null,
17
+ body = null,
18
+ footer = null,
19
+ theme
20
+ } = _ref;
20
21
  const rows = ['auto', op('*', __UNSAFE_SPACE_TO_DIMSUM(theme.space.xl), 0.83), 1];
21
22
  if (header) rows.unshift(__UNSAFE_SPACE_TO_DIMSUM(theme.space.xxl));
22
23
  if (footer) rows.push('56px');
@@ -1,20 +1,21 @@
1
1
  import _jsx from '@babel/runtime/helpers/esm/jsx';
2
2
  import 'react';
3
3
  import styled from 'styled-components';
4
- import { Grid } from '@elliemae/ds-basic/Grid';
4
+ import { Grid } from '@elliemae/ds-grid';
5
5
  import { withTheme, op, __UNSAFE_SPACE_TO_DIMSUM } from '@elliemae/ds-system';
6
6
 
7
7
  const Header = /*#__PURE__*/styled(Grid).withConfig({
8
8
  componentId: "sc-a8tzbi-0"
9
9
  })(["height:100%;background:", ";padding:", ";"], props => props.theme.colors.brand['600'], props => __UNSAFE_SPACE_TO_DIMSUM(props.theme.space.xxs));
10
- const DSMobilePageSearch = withTheme(({
11
- HeaderContainer = Header,
12
- SearchContainer = Header,
13
- searchHeader = null,
14
- pageTitle = 'Search',
15
- body = null,
16
- theme
17
- }) => {
10
+ const DSMobilePageSearch = withTheme(_ref => {
11
+ let {
12
+ HeaderContainer = Header,
13
+ SearchContainer = Header,
14
+ searchHeader = null,
15
+ pageTitle = 'Search',
16
+ body = null,
17
+ theme
18
+ } = _ref;
18
19
  const rows = [op('*', __UNSAFE_SPACE_TO_DIMSUM(theme.space.l), 0.81), op('*', __UNSAFE_SPACE_TO_DIMSUM(theme.space.l), 1.62), 1];
19
20
  return /*#__PURE__*/_jsx(Grid, {
20
21
  rows: rows,
@@ -1,35 +1,48 @@
1
1
  import _jsx from '@babel/runtime/helpers/esm/jsx';
2
2
  import 'react';
3
- import { Grid } from '@elliemae/ds-basic/Grid';
3
+ import { Grid } from '@elliemae/ds-grid';
4
4
  import styled from 'styled-components';
5
5
  import { op, __UNSAFE_SPACE_TO_DIMSUM } from '@elliemae/ds-system';
6
6
  import { DSFullPageContainer } from '../FullPageContainer/FullPageContainer.js';
7
+ import 'core-js/modules/esnext.async-iterator.filter.js';
8
+ import 'core-js/modules/esnext.iterator.constructor.js';
9
+ import 'core-js/modules/esnext.iterator.filter.js';
10
+ import 'core-js/modules/esnext.async-iterator.for-each.js';
11
+ import 'core-js/modules/esnext.iterator.for-each.js';
7
12
  import '@babel/runtime/helpers/esm/defineProperty';
8
13
  import '@babel/runtime/helpers/esm/objectWithoutProperties';
9
- import '@elliemae/ds-basic';
10
14
  import 'react/jsx-runtime';
11
15
  import { Header, Section, Toolbar, BodyWrapper } from './Tags.js';
12
16
 
13
17
  const Body = /*#__PURE__*/styled(Grid).withConfig({
14
18
  componentId: "sc-1jlvilw-0"
15
- })(["margin:0 auto;width:100%;@media (min-width:", "){", "}"], ({
16
- theme
17
- }) => theme.breakpoints.small, ({
18
- theme
19
- }) => `width: ${op('*', __UNSAFE_SPACE_TO_DIMSUM(theme.space.xxl), 6.25)};`);
19
+ })(["margin:0 auto;width:100%;@media (min-width:", "){", "}"], _ref => {
20
+ let {
21
+ theme
22
+ } = _ref;
23
+ return theme.breakpoints.small;
24
+ }, _ref2 => {
25
+ let {
26
+ theme
27
+ } = _ref2;
28
+ return "width: ".concat(op('*', __UNSAFE_SPACE_TO_DIMSUM(theme.space.xxl), 6.25), ";");
29
+ });
20
30
 
21
- const PageSummary = ({
22
- header = null,
23
- headerZIndex = 1,
24
- bodyPrimary = null,
25
- actions = null,
26
- actionsZIndex = 1,
27
- bodySecondary = null
28
- }) => /*#__PURE__*/_jsx(DSFullPageContainer, {}, void 0, header && /*#__PURE__*/_jsx(Header, {
29
- zIndex: headerZIndex
30
- }, void 0, header), /*#__PURE__*/_jsx(Section, {}, void 0, /*#__PURE__*/_jsx(Grid, {}, void 0, /*#__PURE__*/_jsx(Body, {}, void 0, bodyPrimary)), /*#__PURE__*/_jsx(Toolbar, {
31
- zIndex: actionsZIndex
32
- }, void 0, actions), /*#__PURE__*/_jsx(BodyWrapper, {}, void 0, /*#__PURE__*/_jsx(Body, {}, void 0, bodySecondary))));
31
+ const PageSummary = _ref3 => {
32
+ let {
33
+ header = null,
34
+ headerZIndex = 1,
35
+ bodyPrimary = null,
36
+ actions = null,
37
+ actionsZIndex = 1,
38
+ bodySecondary = null
39
+ } = _ref3;
40
+ return /*#__PURE__*/_jsx(DSFullPageContainer, {}, void 0, header && /*#__PURE__*/_jsx(Header, {
41
+ zIndex: headerZIndex
42
+ }, void 0, header), /*#__PURE__*/_jsx(Section, {}, void 0, /*#__PURE__*/_jsx(Grid, {}, void 0, /*#__PURE__*/_jsx(Body, {}, void 0, bodyPrimary)), /*#__PURE__*/_jsx(Toolbar, {
43
+ zIndex: actionsZIndex
44
+ }, void 0, actions), /*#__PURE__*/_jsx(BodyWrapper, {}, void 0, /*#__PURE__*/_jsx(Body, {}, void 0, bodySecondary))));
45
+ };
33
46
 
34
47
  const DSPageSummary = PageSummary;
35
48
 
@@ -2,14 +2,20 @@ import styled from 'styled-components';
2
2
 
3
3
  const Header = /*#__PURE__*/styled.div.withConfig({
4
4
  componentId: "sc-1bwtial-0"
5
- })(["position:fixed;display:grid;top:0;left:0;width:100%;height:64px;z-index:", ";"], ({
6
- zIndex
7
- }) => zIndex);
5
+ })(["position:fixed;display:grid;top:0;left:0;width:100%;height:64px;z-index:", ";"], _ref => {
6
+ let {
7
+ zIndex
8
+ } = _ref;
9
+ return zIndex;
10
+ });
8
11
  const Toolbar = /*#__PURE__*/styled.div.withConfig({
9
12
  componentId: "sc-1bwtial-1"
10
- })(["position:sticky;left:0;top:64px;background:", ";z-index:", ";"], props => props.theme.colors.neutral['000'], ({
11
- zIndex
12
- }) => zIndex);
13
+ })(["position:sticky;left:0;top:64px;background:", ";z-index:", ";"], props => props.theme.colors.neutral['000'], _ref2 => {
14
+ let {
15
+ zIndex
16
+ } = _ref2;
17
+ return zIndex;
18
+ });
13
19
  const BodyWrapper = /*#__PURE__*/styled.div.withConfig({
14
20
  componentId: "sc-1bwtial-2"
15
21
  })(["position:relative;display:grid;top:0;left:0;height:100%;"]);
@@ -1,8 +1,11 @@
1
1
  import _jsx from '@babel/runtime/helpers/esm/jsx';
2
+ import 'core-js/modules/web.dom-collections.iterator.js';
3
+ import 'core-js/modules/esnext.async-iterator.map.js';
4
+ import 'core-js/modules/esnext.iterator.map.js';
2
5
  import { useState } from 'react';
3
- import { DSBackdrop } from '@elliemae/ds-basic';
4
- import Close from '@elliemae/ds-icons/Close';
5
- import { DSIconSizes, DSIconColors } from '@elliemae/ds-basic/Icon';
6
+ import { DSBackdrop } from '@elliemae/ds-backdrop';
7
+ import { Close } from '@elliemae/ds-icons';
8
+ import { DSIconSizes, DSIconColors } from '@elliemae/ds-icon';
6
9
  import { PropTypes, describe } from 'react-desc';
7
10
  import { noop } from 'lodash';
8
11
  import SvgIcon from '../Icons/EM_logo.js';
@@ -11,13 +14,14 @@ import { jsx, Fragment } from 'react/jsx-runtime';
11
14
 
12
15
  var _span, _Hr, _hr;
13
16
 
14
- const DSSideNav = ({
15
- containerProps = {},
16
- title,
17
- onClose = noop,
18
- menuItems = [],
19
- bottomMenuItems = []
20
- }) => {
17
+ const DSSideNav = _ref => {
18
+ let {
19
+ containerProps = {},
20
+ title,
21
+ onClose = noop,
22
+ menuItems = [],
23
+ bottomMenuItems = []
24
+ } = _ref;
21
25
  const [selectedMenuItemIdx, setSelectedMenuItem] = useState(-1);
22
26
 
23
27
  const menuItemClick = (idx, text, cb) => {
@@ -29,32 +33,38 @@ const DSSideNav = ({
29
33
  };
30
34
 
31
35
  const renderMenuList = () => /*#__PURE__*/jsx(Fragment, {
32
- children: menuItems.length > 0 ? /*#__PURE__*/_jsx(MenuList, {}, void 0, menuItems.map(({
36
+ children: menuItems.length > 0 ? /*#__PURE__*/_jsx(MenuList, {}, void 0, menuItems.map((_ref2, idx) => {
37
+ let {
38
+ icon,
39
+ text,
40
+ onClick
41
+ } = _ref2;
42
+ return /*#__PURE__*/_jsx("div", {
43
+ className: "menuitem",
44
+ onClick: menuItemClick.bind(null, idx, text, onClick)
45
+ }, idx, /*#__PURE__*/_jsx("div", {
46
+ className: "icon"
47
+ }, void 0, icon), /*#__PURE__*/_jsx("div", {
48
+ className: "text ".concat(idx === selectedMenuItemIdx ? 'active' : '')
49
+ }, void 0, text));
50
+ })) : null
51
+ });
52
+
53
+ const renderBottomMenu = () => /*#__PURE__*/_jsx(MenuList, {}, void 0, bottomMenuItems.map((_ref3, idx) => {
54
+ let {
33
55
  icon,
34
56
  text,
35
57
  onClick
36
- }, idx) => /*#__PURE__*/_jsx("div", {
58
+ } = _ref3;
59
+ return /*#__PURE__*/_jsx("div", {
37
60
  className: "menuitem",
38
- onClick: menuItemClick.bind(null, idx, text, onClick)
61
+ onClick: () => onClick(idx, text)
39
62
  }, idx, /*#__PURE__*/_jsx("div", {
40
63
  className: "icon"
41
64
  }, void 0, icon), /*#__PURE__*/_jsx("div", {
42
- className: `text ${idx === selectedMenuItemIdx ? 'active' : ''}`
43
- }, void 0, text)))) : null
44
- });
45
-
46
- const renderBottomMenu = () => /*#__PURE__*/_jsx(MenuList, {}, void 0, bottomMenuItems.map(({
47
- icon,
48
- text,
49
- onClick
50
- }, idx) => /*#__PURE__*/_jsx("div", {
51
- className: "menuitem",
52
- onClick: () => onClick(idx, text)
53
- }, idx, /*#__PURE__*/_jsx("div", {
54
- className: "icon"
55
- }, void 0, icon), /*#__PURE__*/_jsx("div", {
56
- className: "text"
57
- }, void 0, text))));
65
+ className: "text"
66
+ }, void 0, text));
67
+ }));
58
68
 
59
69
  return /*#__PURE__*/_jsx(Container, {
60
70
  "data-testid": containerProps['data-testid'] || 'global-header-menu'
@@ -1,13 +1,14 @@
1
1
  import _jsx from '@babel/runtime/helpers/esm/jsx';
2
2
  import 'react';
3
3
  import { useTheme } from '@elliemae/ds-system';
4
- import { Grid } from '@elliemae/ds-basic/Grid';
4
+ import { Grid } from '@elliemae/ds-grid';
5
5
 
6
6
  const rad = 54;
7
7
  const cir = 2 * Math.PI * rad;
8
- const ProgressIndicator = ({
9
- progress = 0
10
- }) => {
8
+ const ProgressIndicator = _ref => {
9
+ let {
10
+ progress = 0
11
+ } = _ref;
11
12
  const factor = progress / 100;
12
13
  const theme = useTheme();
13
14
  const dashoffset = cir * (1 - factor);
@@ -27,16 +28,16 @@ const ProgressIndicator = ({
27
28
  r: "54",
28
29
  fill: "none",
29
30
  strokeWidth: "12",
30
- stroke: `${theme.colors.neutral[100]}`
31
+ stroke: "".concat(theme.colors.neutral[100])
31
32
  }), /*#__PURE__*/_jsx("circle", {
32
33
  cx: "60",
33
34
  cy: "60",
34
35
  r: "54",
35
36
  strokeWidth: "12",
36
37
  fill: "none",
37
- strokeDasharray: `${cir}px`,
38
- strokeDashoffset: `${dashoffset}px`,
39
- stroke: `${theme.colors.brand[600]}`,
38
+ strokeDasharray: "".concat(cir, "px"),
39
+ strokeDashoffset: "".concat(dashoffset, "px"),
40
+ stroke: "".concat(theme.colors.brand[600]),
40
41
  strokeLinecap: "round"
41
42
  })));
42
43
  };
@@ -1,7 +1,7 @@
1
1
  import _jsx from '@babel/runtime/helpers/esm/jsx';
2
2
  import 'react';
3
3
  import { PropTypes, describe } from 'react-desc';
4
- import { DSCircularProgressIndicator } from '@elliemae/ds-basic/CircularProgressIndicator';
4
+ import { DSCircularProgressIndicator } from '@elliemae/ds-circular-progress-indicator';
5
5
  import { useTheme } from '@elliemae/ds-system';
6
6
  import { useSwipe } from './useSwipe.js';
7
7
  import { SwipeContainer, SwipeDrag, LoaderBox, PositionLoader } from './styled.js';
@@ -10,11 +10,12 @@ import { jsxs, jsx } from 'react/jsx-runtime';
10
10
 
11
11
  var _DSCircularProgressIn;
12
12
 
13
- const SwipeToRefresh = ({
14
- children,
15
- loading,
16
- onRefresh
17
- }) => {
13
+ const SwipeToRefresh = _ref => {
14
+ let {
15
+ children,
16
+ loading,
17
+ onRefresh
18
+ } = _ref;
18
19
  const breakpoint = 60;
19
20
  const theme = useTheme();
20
21
  const swipe = useSwipe({
@@ -29,14 +30,14 @@ const SwipeToRefresh = ({
29
30
  onTouchMove: swipe.touchMove,
30
31
  ref: swipe.ref,
31
32
  children: [/*#__PURE__*/_jsx(LoaderBox, {
32
- height: loading ? theme.space.m : `${swipe.height}px`,
33
+ height: loading ? theme.space.m : "".concat(swipe.height, "px"),
33
34
  alignItems: "flex-start",
34
35
  "data-testid": "loader-box"
35
36
  }, void 0, /*#__PURE__*/_jsx(PositionLoader, {
36
37
  height: theme.space.m,
37
38
  justifyContent: "center",
38
39
  alignItems: "center",
39
- mt: swipe.height > 40 || loading ? 0 : `${swipe.height - 40}px`
40
+ mt: swipe.height > 40 || loading ? 0 : "".concat(swipe.height - 40, "px")
40
41
  }, void 0, loading ? _DSCircularProgressIn || (_DSCircularProgressIn = /*#__PURE__*/_jsx(DSCircularProgressIndicator, {})) : /*#__PURE__*/_jsx(ProgressIndicator, {
41
42
  progress: progress
42
43
  }))), /*#__PURE__*/jsx("div", {
@@ -1,4 +1,4 @@
1
- import { Grid } from '@elliemae/ds-basic/Grid';
1
+ import { Grid } from '@elliemae/ds-grid';
2
2
  import styled from 'styled-components';
3
3
 
4
4
  const SwipeContainer = /*#__PURE__*/styled(Grid).withConfig({
@@ -1,9 +1,11 @@
1
+ import 'core-js/modules/web.dom-collections.iterator.js';
1
2
  import { useState, useRef } from 'react';
2
3
 
3
- const useSwipe = ({
4
- onRefresh,
5
- breakpoint
6
- }) => {
4
+ const useSwipe = _ref => {
5
+ let {
6
+ onRefresh,
7
+ breakpoint
8
+ } = _ref;
7
9
  const [startingPoint, setStartingPoint] = useState(0);
8
10
  const [movingPoint, setMovingPoint] = useState(0);
9
11
  const ref = useRef();
package/esm/Tabs/index.js CHANGED
@@ -1,7 +1,12 @@
1
+ import 'core-js/modules/esnext.async-iterator.filter.js';
2
+ import 'core-js/modules/esnext.iterator.constructor.js';
3
+ import 'core-js/modules/esnext.iterator.filter.js';
4
+ import 'core-js/modules/esnext.async-iterator.for-each.js';
5
+ import 'core-js/modules/esnext.iterator.for-each.js';
1
6
  import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
2
7
  import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
3
8
  import 'react';
4
- import { DSTabs, DSTab } from '@elliemae/ds-basic';
9
+ import { DSTabs, DSTab } from '@elliemae/ds-tabs';
5
10
  import { jsx } from 'react/jsx-runtime';
6
11
 
7
12
  const _excluded = ["children"],
package/esm/index.js CHANGED
@@ -4,8 +4,8 @@ export { DSMobilePageForm, DSPageForm } from './PageForm/PageForm.js';
4
4
  export { DSPageSummary } from './PageSummary/PageSummary.js';
5
5
  export { DSMobileLoadingPage } from './LoadingPage/Page.js';
6
6
  export { DSMobilePageSearch, DSPageSearch } from './PageSearch/PageSearch.js';
7
- export { DSAccordion as DSMobileAccordion, DSAccordionItem as DSMobileAccordionItem, DSAccordionItemWithSchema as DSMobileAccordionItemWithSchema, DSAccordionWithSchema as DSMobileAccordionWithSchema } from '@elliemae/ds-basic/Accordion';
8
- export { MobileSeparatorWithSchema } from './MobileSeparator/Separator.js';
7
+ export { DSAccordion as DSMobileAccordion, DSAccordionItem as DSMobileAccordionItem, DSAccordionItemWithSchema as DSMobileAccordionItemWithSchema, DSAccordionWithSchema as DSMobileAccordionWithSchema } from '@elliemae/ds-accordion';
8
+ export { default as DSMobileSeparator, MobileSeparatorWithSchema } from './MobileSeparator/Separator.js';
9
9
  export { DSMobileListItem, ListItemWithSchema } from './MobileListItem/MobileListItem.js';
10
10
  export { DSMobileTouchable } from './MobileTouchable/MobileTouchable.js';
11
11
  export { DSMobileContextMenu, DSMobileContextMenuWithSchema } from './MobileContextMenu/MobileContextMenu.js';
@@ -14,7 +14,7 @@ export { DSMobileContextMenuGroup, DSMobileContextMenuGroupWithSchema } from './
14
14
  export { DSMobileFilterbar, FilterbarWithSchema } from './MobileFilterbar/Filterbar.js';
15
15
  export { DSMobileFilterbarSort, FilterbarSortWithSchema } from './MobileFilterbar/FilterbarSort.js';
16
16
  export { DSMobileFilterbarItem, FilterbarItemWithSchema } from './MobileFilterbar/FilterbarItem.js';
17
- export { DSMobileActionToolbarWithSchema } from './MobileActionToolbar/MobileActionToolbar.js';
17
+ export { default as DSMobileActionToolbar, DSMobileActionToolbarWithSchema } from './MobileActionToolbar/MobileActionToolbar.js';
18
18
  export { DSToolbarItemWithSchema, default as ToolbarItem } from './MobileActionToolbar/MobileActionToolbarItem.js';
19
19
  export { default as DSMobileFooter, MobileFooterWithSchema } from './MobileFooter/Footer.js';
20
20
  export { DSMobileFooterText, DSMobileFooterTextWithSchema } from './MobileFooter/Text.js';
@@ -41,3 +41,4 @@ export { DSMobileBanner, DSMobileBannerWithSchema } from './MobileBanner/MobileB
41
41
  export { MOBILE_BANNER_TYPES } from './MobileBanner/utils/bannerTypes.js';
42
42
  export { DSMobileCardWithSchema } from './MobileCard/Card.js';
43
43
  export { DSMobileCardGroupWithSchema } from './MobileCard/Group.js';
44
+ export { SubIcons } from './MobileCard/CardIcons.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-mobile",
3
- "version": "2.0.0-next.1",
3
+ "version": "2.0.0-next.13",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - System",
6
6
  "module": "./esm/index.js",
@@ -421,20 +421,28 @@
421
421
  "generateSubmodules": true
422
422
  },
423
423
  "dependencies": {
424
+ "@elliemae/ds-basic": "2.0.0-next.13",
425
+ "@elliemae/ds-devutils": "2.0.0-next.13",
426
+ "@elliemae/ds-icons": "2.0.0-next.13",
427
+ "@elliemae/ds-shared": "2.0.0-next.13",
428
+ "@elliemae/ds-system": "2.0.0-next.13",
424
429
  "polished": "~3.6.7",
430
+ "prop-types": "~15.7.2",
431
+ "react-desc": "~4.1.3",
425
432
  "react-window": "~1.8.6",
426
- "react-window-infinite-loader": "~1.0.7",
427
- "styled-system": "~5.1.5"
433
+ "react-window-infinite-loader": "~1.0.5"
428
434
  },
429
435
  "devDependencies": {
430
- "@elliemae/pui-theme": "~2.2.4",
431
- "styled-components": "~5.3.1"
436
+ "@elliemae/pui-theme": "~2.2.5",
437
+ "styled-components": "~5.3.3",
438
+ "styled-system": "~5.1.5"
432
439
  },
433
440
  "peerDependencies": {
434
- "@elliemae/pui-theme": "^2.2.4",
441
+ "@elliemae/pui-theme": "^2.2.5",
435
442
  "lodash": "^4.17.21",
436
443
  "react": "~17.0.2",
437
444
  "react-dom": "^17.0.2",
438
- "styled-components": "^5.3.1"
445
+ "styled-components": "^5.3.3",
446
+ "styled-system": "^5.1.5"
439
447
  }
440
448
  }
@@ -1 +1 @@
1
- export { DSAccordion as DSMobileAccordion, DSAccordionItem as DSMobileAccordionItem, DSAccordionWithSchema as DSMobileAccordionWithSchema, DSAccordionItemWithSchema as DSMobileAccordionItemWithSchema, } from '@elliemae/ds-basic/Accordion';
1
+ export { DSAccordion as DSMobileAccordion, DSAccordionItem as DSMobileAccordionItem, DSAccordionWithSchema as DSMobileAccordionWithSchema, DSAccordionItemWithSchema as DSMobileAccordionItemWithSchema, } from '@elliemae/ds-accordion';
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  declare const DSCategoryBox: {
3
- ({ borderTop, actionsRight, title, headerLevel, children, }: {
3
+ ({ borderTop, actionsRight, title, headerLevel, children }: {
4
4
  borderTop?: boolean | undefined;
5
5
  actionsRight?: never[] | undefined;
6
6
  title: any;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  declare const DSCollectionBox: {
3
- ({ body, title, headerAction, footerAction, headerLevel, }: {
3
+ ({ body, title, headerAction, footerAction, headerLevel }: {
4
4
  body: any;
5
5
  title: any;
6
6
  headerAction: any;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  declare const DSGroupBox: {
3
- ({ children, title, background, headerLevel, actionsRight, borderTop, }: {
3
+ ({ children, title, background, headerLevel, actionsRight, borderTop }: {
4
4
  children: any;
5
5
  title: any;
6
6
  background?: string | undefined;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  declare const InfiniteLoader: {
3
- ({ isFetching, fetchData, children, height, }: {
3
+ ({ isFetching, fetchData, children, height }: {
4
4
  isFetching: any;
5
5
  fetchData: any;
6
6
  children: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { StyledBannerContainerT, StyledContentT, StyledInnerContainerT } from './index.d';
2
3
  export declare const StyledInnerContainer: import("styled-components").StyledComponent<"div", any, StyledInnerContainerT, never>;
3
4
  export declare const StyledTextContent: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -6,6 +7,64 @@ export declare const StyledSubTitle: import("styled-components").StyledComponent
6
7
  export declare const StyledIconContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
7
8
  export declare const StyledContent: import("styled-components").StyledComponent<"div", any, StyledContentT, never>;
8
9
  export declare const StyledCloseButtonContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
9
- export declare const StyledCloseButton: import("styled-components").StyledComponent<any, any, object, string | number | symbol>;
10
+ export declare const StyledCloseButton: import("styled-components").StyledComponent<{
11
+ ({ innerRef, disabled, buttonType, fluidWidth, size, labelText, icon, onBlur, onClick, onKeyPress, leftIcon, tabIndex, variant, intent, containerProps, className, as: Component, type, ...rest }: {
12
+ [x: string]: any;
13
+ innerRef: any;
14
+ disabled: any;
15
+ buttonType: any;
16
+ fluidWidth: any;
17
+ size: any;
18
+ labelText: any;
19
+ icon: any;
20
+ onBlur: any;
21
+ onClick: any;
22
+ onKeyPress: any;
23
+ leftIcon: any;
24
+ tabIndex: any;
25
+ variant: any;
26
+ intent: any;
27
+ containerProps: any;
28
+ className: any;
29
+ as: any;
30
+ type: any;
31
+ }): JSX.Element;
32
+ defaultProps: {
33
+ disabled: boolean;
34
+ fluidWidth: boolean;
35
+ labelText: string;
36
+ icon: null;
37
+ onBlur: () => null;
38
+ onClick: () => null;
39
+ onKeyPress: () => null;
40
+ leftIcon: null;
41
+ tabIndex: number;
42
+ variant: string;
43
+ containerProps: {};
44
+ as: string;
45
+ type: string;
46
+ };
47
+ propTypes: {
48
+ tabIndex: any;
49
+ className: any;
50
+ 'aria-disabled': any;
51
+ as: any;
52
+ disabled: any;
53
+ fluidWidth: any;
54
+ labelText: any;
55
+ icon: any;
56
+ leftIcon: any;
57
+ buttonType: any;
58
+ size: any;
59
+ type: any;
60
+ variant: any;
61
+ innerRef: any;
62
+ onBlur: any;
63
+ intent: any;
64
+ containerProps: any;
65
+ onClick: any;
66
+ onKeyPress: any;
67
+ };
68
+ }, any, {}, never>;
10
69
  export declare const StyledActionLink: import("styled-components").StyledComponent<"a", any, {}, never>;
11
70
  export declare const StyledBannerContainer: import("styled-components").StyledComponent<"div", any, StyledBannerContainerT, never>;