@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
@@ -2,7 +2,7 @@ import _jsx from '@babel/runtime/helpers/esm/jsx';
2
2
  import 'react';
3
3
  import { PropTypes, describe } from 'react-desc';
4
4
  import styled from 'styled-components';
5
- import { Grid } from '@elliemae/ds-basic/Grid';
5
+ import { Grid } from '@elliemae/ds-grid';
6
6
  import MobileSeparator from '../MobileSeparator/Separator.js';
7
7
  import { jsxs, Fragment } from 'react/jsx-runtime';
8
8
 
@@ -10,19 +10,22 @@ const Separator = /*#__PURE__*/styled.div.withConfig({
10
10
  componentId: "sc-103uq0b-0"
11
11
  })(["& > *{margin-left:0;}"]);
12
12
 
13
- const DSMobileFilterbarSort = ({
14
- children
15
- }) => /*#__PURE__*/jsxs(Fragment, {
16
- children: [children, /*#__PURE__*/_jsx(Grid, {
17
- pb: "xxs",
18
- pt: "xxs",
19
- cols: ['min-content']
20
- }, void 0, /*#__PURE__*/_jsx(Separator, {}, void 0, /*#__PURE__*/_jsx(MobileSeparator, {
21
- margin: "xxs",
22
- direction: "vertical",
23
- color: ['neutral', '300']
24
- })))]
25
- });
13
+ const DSMobileFilterbarSort = _ref => {
14
+ let {
15
+ children
16
+ } = _ref;
17
+ return /*#__PURE__*/jsxs(Fragment, {
18
+ children: [children, /*#__PURE__*/_jsx(Grid, {
19
+ pb: "xxs",
20
+ pt: "xxs",
21
+ cols: ['min-content']
22
+ }, void 0, /*#__PURE__*/_jsx(Separator, {}, void 0, /*#__PURE__*/_jsx(MobileSeparator, {
23
+ margin: "xxs",
24
+ direction: "vertical",
25
+ color: ['neutral', '300']
26
+ })))]
27
+ });
28
+ };
26
29
 
27
30
  const filterbarSortProps = {
28
31
  children: PropTypes.element.description('FilterBar Sort Item').isRequired
@@ -3,34 +3,37 @@ import React from 'react';
3
3
  import styled from 'styled-components';
4
4
  import { typography } from 'styled-system';
5
5
  import { color, __UNSAFE_SPACE_TO_DIMSUM } from '@elliemae/ds-system';
6
- import { Grid } from '@elliemae/ds-basic/Grid';
6
+ import { Grid } from '@elliemae/ds-grid';
7
7
  import { PropTypes, describe } from 'react-desc';
8
8
 
9
9
  const Label = /*#__PURE__*/styled.span.withConfig({
10
10
  componentId: "sc-1op229o-0"
11
- })(["", " ", " padding-bottom:", ";padding-top:calc( ", " / 2 );"], typography, color('neutral', '800'), props => __UNSAFE_SPACE_TO_DIMSUM(props.theme.space.xxs), props => __UNSAFE_SPACE_TO_DIMSUM(props.theme.space.xxs));
11
+ })(["", " ", " padding-bottom:", ";padding-top:calc(", " / 2);"], typography, color('neutral', '800'), props => __UNSAFE_SPACE_TO_DIMSUM(props.theme.space.xxs), props => __UNSAFE_SPACE_TO_DIMSUM(props.theme.space.xxs));
12
12
 
13
- const DSMobileFooterAction = ({
14
- label,
15
- icon,
16
- onClick
17
- }) => /*#__PURE__*/_jsx(Grid, {
18
- "data-testid": "ds-mobile-footer-action",
19
- rows: ['auto'].concat(label ? 'min-content' : 'none'),
20
- justifyContent: "center",
21
- role: "button",
22
- onClick: onClick
23
- }, void 0, /*#__PURE__*/_jsx(Grid, {
24
- justifyContent: "center",
25
- alignItems: "center"
26
- }, void 0, /*#__PURE__*/React.cloneElement(icon, {
27
- 'data-testid': 'ds-mobile-footer-action-icon',
28
- size: !label ? 'l' : 'm'
29
- })), label && /*#__PURE__*/_jsx(Grid, {
30
- justifyContent: "center"
31
- }, void 0, /*#__PURE__*/_jsx(Label, {
32
- fontSize: "11px"
33
- }, void 0, label)));
13
+ const DSMobileFooterAction = _ref => {
14
+ let {
15
+ label,
16
+ icon,
17
+ onClick
18
+ } = _ref;
19
+ return /*#__PURE__*/_jsx(Grid, {
20
+ "data-testid": "ds-mobile-footer-action",
21
+ rows: ['auto'].concat(label ? 'min-content' : 'none'),
22
+ justifyContent: "center",
23
+ role: "button",
24
+ onClick: onClick
25
+ }, void 0, /*#__PURE__*/_jsx(Grid, {
26
+ justifyContent: "center",
27
+ alignItems: "center"
28
+ }, void 0, /*#__PURE__*/React.cloneElement(icon, {
29
+ 'data-testid': 'ds-mobile-footer-action-icon',
30
+ size: !label ? 'l' : 'm'
31
+ })), label && /*#__PURE__*/_jsx(Grid, {
32
+ justifyContent: "center"
33
+ }, void 0, /*#__PURE__*/_jsx(Label, {
34
+ fontSize: "11px"
35
+ }, void 0, label)));
36
+ };
34
37
 
35
38
  const actionProps = {
36
39
  /** Action label */
@@ -1,19 +1,26 @@
1
1
  import _jsx from '@babel/runtime/helpers/esm/jsx';
2
+ import 'core-js/modules/esnext.async-iterator.constructor.js';
3
+ import 'core-js/modules/esnext.async-iterator.to-array.js';
4
+ import 'core-js/modules/esnext.iterator.constructor.js';
5
+ import 'core-js/modules/esnext.iterator.to-array.js';
6
+ import 'core-js/modules/esnext.async-iterator.map.js';
7
+ import 'core-js/modules/esnext.iterator.map.js';
2
8
  import React from 'react';
3
9
  import styled from 'styled-components';
4
10
  import { border, __UNSAFE_SPACE_TO_DIMSUM } from '@elliemae/ds-system';
5
- import { Grid } from '@elliemae/ds-basic/Grid';
6
- import DSButton from '@elliemae/ds-basic/Button';
11
+ import { Grid } from '@elliemae/ds-grid';
12
+ import DSButton from '@elliemae/ds-button';
7
13
  import { PropTypes, describe } from 'react-desc';
8
14
  import { DSMobileFooterText } from './Text.js';
9
15
 
10
16
  const FooterWrap = /*#__PURE__*/styled(Grid).withConfig({
11
17
  componentId: "sc-ls5vfg-0"
12
- })(["background-color:", ";border-top:", ";height:", ";"], props => props.theme.colors.neutral['000'], props => border(props.theme.colors.neutral[100]), props => `calc(${__UNSAFE_SPACE_TO_DIMSUM(props.theme.space.xs)} * 7)`);
18
+ })(["background-color:", ";border-top:", ";height:", ";"], props => props.theme.colors.neutral['000'], props => border(props.theme.colors.neutral[100]), props => "calc(".concat(__UNSAFE_SPACE_TO_DIMSUM(props.theme.space.xs), " * 7)"));
13
19
 
14
- const MobileFooter = ({
15
- children
16
- }) => {
20
+ const MobileFooter = _ref => {
21
+ let {
22
+ children
23
+ } = _ref;
17
24
  const childArr = React.Children.toArray(children);
18
25
  const isButtonType = childArr[0].type === DSMobileFooterText || childArr[0].type === DSButton;
19
26
 
@@ -22,7 +29,7 @@ const MobileFooter = ({
22
29
  return childArr.length === 1 ? ['90%'] : ['45%', '45%'];
23
30
  }
24
31
 
25
- return childArr.map(() => `${100 / childArr.length}%`);
32
+ return childArr.map(() => "".concat(100 / childArr.length, "%"));
26
33
  };
27
34
 
28
35
  return /*#__PURE__*/_jsx(FooterWrap, {}, void 0, /*#__PURE__*/_jsx(Grid, {
@@ -8,9 +8,12 @@ const Text = /*#__PURE__*/styled.p.withConfig({
8
8
  componentId: "sc-1v0cqsw-0"
9
9
  })(["margin:auto 0;", " ", " ", ""], truncate(), textStyle('body'), color('neutral', '800'));
10
10
 
11
- const DSMobileFooterText = ({
12
- children
13
- }) => /*#__PURE__*/_jsx(Text, {}, void 0, children);
11
+ const DSMobileFooterText = _ref => {
12
+ let {
13
+ children
14
+ } = _ref;
15
+ return /*#__PURE__*/_jsx(Text, {}, void 0, children);
16
+ };
14
17
 
15
18
  const props = {
16
19
  children: PropTypes.string.isRequired.description('Children')
@@ -2,7 +2,7 @@ import _jsx from '@babel/runtime/helpers/esm/jsx';
2
2
  import 'react';
3
3
  import { PropTypes, describe } from 'react-desc';
4
4
  import styled from 'styled-components';
5
- import { Grid } from '@elliemae/ds-basic/Grid';
5
+ import { Grid } from '@elliemae/ds-grid';
6
6
  import { truncate, withTheme, __UNSAFE_SPACE_TO_DIMSUM, border } from '@elliemae/ds-system';
7
7
 
8
8
  const StyledContainer = /*#__PURE__*/styled(Grid).withConfig({
@@ -12,14 +12,15 @@ const StyledTitle = /*#__PURE__*/styled.div.withConfig({
12
12
  componentId: "sc-n7r3qn-1"
13
13
  })(["font-weight:", ";font-size:13px;color:", ";", ""], props => props.theme.fontWeights.semibold, props => props.theme.colors.neutral['800'], truncate());
14
14
 
15
- const MobileListItem = ({
16
- leftAddon = null,
17
- rightAddon = null,
18
- title = '',
19
- value = '',
20
- dataTestid = 'mobile-list-item',
21
- theme
22
- }) => {
15
+ const MobileListItem = _ref => {
16
+ let {
17
+ leftAddon = null,
18
+ rightAddon = null,
19
+ title = '',
20
+ value = '',
21
+ dataTestid = 'mobile-list-item',
22
+ theme
23
+ } = _ref;
23
24
  const cols = [1];
24
25
  if (leftAddon) cols.unshift(__UNSAFE_SPACE_TO_DIMSUM(theme.space.m));
25
26
  if (rightAddon) cols.push(__UNSAFE_SPACE_TO_DIMSUM(theme.space.m));
@@ -30,7 +31,7 @@ const MobileListItem = ({
30
31
  pl: __UNSAFE_SPACE_TO_DIMSUM(theme.space.s),
31
32
  pr: __UNSAFE_SPACE_TO_DIMSUM(theme.space.s),
32
33
  gutter: "xs",
33
- "data-testid": `${dataTestid}--${value}`
34
+ "data-testid": "".concat(dataTestid, "--").concat(value)
34
35
  }, void 0, leftAddon && /*#__PURE__*/_jsx(Grid, {
35
36
  alignItems: "center",
36
37
  justifyContent: "center"
@@ -1,12 +1,13 @@
1
1
  import _jsx from '@babel/runtime/helpers/esm/jsx';
2
+ import 'core-js/modules/web.dom-collections.iterator.js';
2
3
  import React, { useMemo, useState, useCallback } from 'react';
3
4
  import { PropTypes, describe } from 'react-desc';
4
5
  import styled from 'styled-components';
5
- import { TruncatedExpandableText } from '@elliemae/ds-basic/TruncatedExpandableText';
6
- import { Grid } from '@elliemae/ds-basic/Grid';
6
+ import { TruncatedExpandableText } from '@elliemae/ds-truncated-expandable-text';
7
+ import { Grid } from '@elliemae/ds-grid';
7
8
  import { truncate, withTheme, __UNSAFE_SPACE_TO_DIMSUM, border } from '@elliemae/ds-system';
8
- import ChevronSmallDown from '@elliemae/ds-icons/ChevronSmallDown';
9
- import DSButton from '@elliemae/ds-basic/Button';
9
+ import { ChevronSmallDown } from '@elliemae/ds-icons';
10
+ import DSButton from '@elliemae/ds-button';
10
11
  import MobileSeparator from '../MobileSeparator/Separator.js';
11
12
 
12
13
  var _ChevronSmallDown;
@@ -21,23 +22,24 @@ const Label = /*#__PURE__*/styled.div.withConfig({
21
22
  })(["color:", ";", ""], props => props.theme.colors.neutral['500'], truncate());
22
23
  const Value = /*#__PURE__*/styled.div.withConfig({
23
24
  componentId: "sc-1tfu1y9-3"
24
- })(["", " color:", ";", " margin-top:", ";"], truncate(), props => props.theme.colors.neutral['600'], props => props.withMarginRight ? `margin-right: 4px;` : '', props => props.withBreadcrumb ? '12px' : '0');
25
+ })(["", " color:", ";", " margin-top:", ";"], truncate(), props => props.theme.colors.neutral['600'], props => props.withMarginRight ? "margin-right: 4px;" : '', props => props.withBreadcrumb ? '12px' : '0');
25
26
  const Wrapper = /*#__PURE__*/styled(Grid).withConfig({
26
27
  componentId: "sc-1tfu1y9-4"
27
28
  })(["border-bottom:", ";"], props => border(props.theme.colors.neutral['300']));
28
29
 
29
- const MobilePageHeader = ({
30
- pageTitle = null,
31
- contextMenu = null,
32
- firstAction = null,
33
- secondAction = null,
34
- backArrow = null,
35
- breadCrumb = null,
36
- onOpenContextMenu = () => null,
37
- value,
38
- label,
39
- theme
40
- }) => {
30
+ const MobilePageHeader = _ref => {
31
+ let {
32
+ pageTitle = null,
33
+ contextMenu = null,
34
+ firstAction = null,
35
+ secondAction = null,
36
+ backArrow = null,
37
+ breadCrumb = null,
38
+ onOpenContextMenu = () => null,
39
+ value,
40
+ label,
41
+ theme
42
+ } = _ref;
41
43
  const hasValue = value === 0 || value;
42
44
  const countActions = useMemo(() => {
43
45
  let count = 0;
@@ -1,9 +1,17 @@
1
1
  import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
2
2
  import _jsx from '@babel/runtime/helpers/esm/jsx';
3
+ import 'core-js/modules/web.dom-collections.iterator.js';
4
+ import 'core-js/modules/esnext.async-iterator.filter.js';
5
+ import 'core-js/modules/esnext.iterator.constructor.js';
6
+ import 'core-js/modules/esnext.iterator.filter.js';
7
+ import 'core-js/modules/esnext.async-iterator.map.js';
8
+ import 'core-js/modules/esnext.iterator.map.js';
9
+ import 'core-js/modules/esnext.async-iterator.for-each.js';
10
+ import 'core-js/modules/esnext.iterator.for-each.js';
3
11
  import React, { useState, useEffect } from 'react';
4
12
  import { noop } from 'lodash';
5
- import { Grid } from '@elliemae/ds-basic/Grid';
6
- import DSTextBox from '@elliemae/ds-basic/form/TextBox';
13
+ import { Grid } from '@elliemae/ds-grid';
14
+ import { DSTextBox } from '@elliemae/ds-form';
7
15
  import { withTheme, op, __UNSAFE_SPACE_TO_DIMSUM } from '@elliemae/ds-system';
8
16
  import { DSMobileTouchable } from '../MobileTouchable/MobileTouchable.js';
9
17
  import { StyledContainer, HeaderContainer, ListContainer, Footer, checked, checkbox, selectedMark } from './styled.js';
@@ -13,21 +21,22 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
13
21
 
14
22
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
15
23
 
16
- const MobileSelectList = ({
17
- open = false,
18
- header = null,
19
- multiple = false,
20
- onChange = noop,
21
- children,
22
- theme,
23
- zIndex = 1,
24
- useSearch,
25
- onSearch = noop,
26
- dataTestid = 'mobile-select-list',
27
- buttonFooter = null,
28
- onApply = noop,
29
- selecteds: initSelecteds = []
30
- }) => {
24
+ const MobileSelectList = _ref => {
25
+ let {
26
+ open = false,
27
+ header = null,
28
+ multiple = false,
29
+ onChange = noop,
30
+ children,
31
+ theme,
32
+ zIndex = 1,
33
+ useSearch,
34
+ onSearch = noop,
35
+ dataTestid = 'mobile-select-list',
36
+ buttonFooter = null,
37
+ onApply = noop,
38
+ selecteds: initSelecteds = []
39
+ } = _ref;
31
40
  const rows = ['auto', 1];
32
41
  const [selecteds, setSelected] = useState(initSelecteds);
33
42
  const [filter, setFilter] = useState('');
@@ -82,7 +91,7 @@ const MobileSelectList = ({
82
91
  overflow: 'auto'
83
92
  }
84
93
  }, void 0, /*#__PURE__*/_jsx(ListContainer, {
85
- "data-testid": `${dataTestid}--list-container`
94
+ "data-testid": "".concat(dataTestid, "--list-container")
86
95
  }, void 0, React.Children.map(children, child => {
87
96
  let leftAddon = null;
88
97
  let rightAddon = null;
@@ -112,7 +121,7 @@ const MobileSelectList = ({
112
121
  pr: __UNSAFE_SPACE_TO_DIMSUM(theme.space.s)
113
122
  }, void 0, /*#__PURE__*/React.cloneElement(buttonFooter, _objectSpread(_objectSpread({}, buttonFooter.props), {}, {
114
123
  containerProps: {
115
- 'data-testid': `${dataTestid}--btn`
124
+ 'data-testid': "".concat(dataTestid, "--btn")
116
125
  },
117
126
  buttonType: 'primary',
118
127
  size: 'l',
@@ -2,9 +2,9 @@ import _jsx from '@babel/runtime/helpers/esm/jsx';
2
2
  import 'react';
3
3
  import { noop } from 'lodash';
4
4
  import styled from 'styled-components';
5
- import { Grid } from '@elliemae/ds-basic/Grid';
6
- import DSCheckbox from '@elliemae/ds-basic/form/Checkbox';
7
- import DSCheckmark from '@elliemae/ds-icons/Checkmark';
5
+ import { Grid } from '@elliemae/ds-grid';
6
+ import { DSCheckbox } from '@elliemae/ds-form';
7
+ import { Checkmark } from '@elliemae/ds-icons';
8
8
  import { border } from '@elliemae/ds-system';
9
9
  import { DSMobileTouchable } from '../MobileTouchable/MobileTouchable.js';
10
10
  import { DSMobileListItem } from '../MobileListItem/MobileListItem.js';
@@ -35,7 +35,7 @@ const checked = /*#__PURE__*/_jsx(DSCheckbox, {
35
35
  pointerEvents: 'none'
36
36
  }
37
37
  });
38
- const selectedMark = /*#__PURE__*/_jsx(DSCheckmark, {
38
+ const selectedMark = /*#__PURE__*/_jsx(Checkmark, {
39
39
  color: ['brand-primary', 600]
40
40
  });
41
41
 
@@ -1,8 +1,13 @@
1
+ import 'core-js/modules/esnext.async-iterator.filter.js';
2
+ import 'core-js/modules/esnext.iterator.constructor.js';
3
+ import 'core-js/modules/esnext.iterator.filter.js';
4
+ import 'core-js/modules/esnext.async-iterator.for-each.js';
5
+ import 'core-js/modules/esnext.iterator.for-each.js';
1
6
  import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
2
7
  import 'react';
3
8
  import { PropTypes, describe } from 'react-desc';
4
9
  import styled from 'styled-components';
5
- import { Grid } from '@elliemae/ds-basic/Grid';
10
+ import { Grid } from '@elliemae/ds-grid';
6
11
  import { jsx } from 'react/jsx-runtime';
7
12
 
8
13
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
@@ -10,22 +15,29 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
10
15
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
11
16
  const Separator = /*#__PURE__*/styled(Grid).withConfig({
12
17
  componentId: "sc-lje3kq-0"
13
- })(["border-top:", ";border-left:", ";"], ({
14
- theme,
15
- color,
16
- borderType
17
- }) => `${theme.colors[color[0]][color[1]]} 1px ${borderType}`, ({
18
- theme,
19
- color,
20
- borderType
21
- }) => `${theme.colors[color[0]][color[1]]} 1px ${borderType}`);
18
+ })(["border-top:", ";border-left:", ";"], _ref => {
19
+ let {
20
+ theme,
21
+ color,
22
+ borderType
23
+ } = _ref;
24
+ return "".concat(theme.colors[color[0]][color[1]], " 1px ").concat(borderType);
25
+ }, _ref2 => {
26
+ let {
27
+ theme,
28
+ color,
29
+ borderType
30
+ } = _ref2;
31
+ return "".concat(theme.colors[color[0]][color[1]], " 1px ").concat(borderType);
32
+ });
22
33
 
23
- const MobileSeparator = ({
24
- color = ['neutral', '800'],
25
- direction = 'horizontal',
26
- type = 'solid',
27
- margin = 'xs'
28
- }) => {
34
+ const MobileSeparator = _ref3 => {
35
+ let {
36
+ color = ['neutral', '800'],
37
+ direction = 'horizontal',
38
+ type = 'solid',
39
+ margin = 'xs'
40
+ } = _ref3;
29
41
  const orientation = direction === 'vertical' ? 'height' : 'width';
30
42
  const xORy = direction === 'vertical' ? 'mx' : 'my';
31
43
  const styles = {
@@ -1,3 +1,8 @@
1
+ import 'core-js/modules/esnext.async-iterator.filter.js';
2
+ import 'core-js/modules/esnext.iterator.constructor.js';
3
+ import 'core-js/modules/esnext.iterator.filter.js';
4
+ import 'core-js/modules/esnext.async-iterator.for-each.js';
5
+ import 'core-js/modules/esnext.iterator.for-each.js';
1
6
  import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
2
7
  import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
3
8
  import 'react';
@@ -1,21 +1,22 @@
1
1
  import _jsx from '@babel/runtime/helpers/esm/jsx';
2
2
  import { useRef, useEffect, useMemo } from 'react';
3
3
  import { PropTypes, describe } from 'react-desc';
4
- import { DSIconColors } from '@elliemae/ds-basic/Icon';
5
- import RecentDocuments from '@elliemae/ds-icons/RecentDocuments';
6
- import DSButton from '@elliemae/ds-basic/Button';
7
- import DSInputGroup from '@elliemae/ds-basic/form/InputGroup';
4
+ import { DSIconColors } from '@elliemae/ds-icon';
5
+ import { RecentDocuments } from '@elliemae/ds-icons';
6
+ import DSButton from '@elliemae/ds-button';
7
+ import { DSInputGroup } from '@elliemae/ds-form';
8
8
  import { Input } from './Input.js';
9
9
 
10
10
  var _RecentDocuments;
11
11
 
12
- const DSMobileTimePicker = ({
13
- disabled,
14
- value,
15
- tabIndex,
16
- placeholder,
17
- onChange
18
- }) => {
12
+ const DSMobileTimePicker = _ref => {
13
+ let {
14
+ disabled,
15
+ value,
16
+ tabIndex,
17
+ placeholder,
18
+ onChange
19
+ } = _ref;
19
20
  const inputRef = useRef(null);
20
21
  const valueArr = value.split(':');
21
22
  useEffect(() => {
@@ -32,7 +33,7 @@ const DSMobileTimePicker = ({
32
33
  if (!value || !valueArr[0] || !valueArr[1]) return '';
33
34
  const ampm = valueArr[0] >= 12 ? 'pm' : 'am';
34
35
  const h = valueArr[0] > 12 ? valueArr[0] - 12 : valueArr[0];
35
- return `${h} : ${valueArr[1]} ${ampm}`;
36
+ return "".concat(h, " : ").concat(valueArr[1], " ").concat(ampm);
36
37
  }, [value]);
37
38
  return /*#__PURE__*/_jsx(DSInputGroup, {
38
39
  rightAddon: /*#__PURE__*/_jsx(DSButton, {
@@ -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 { addDefaultMobileView, PATH_MOBILE_TIME_PICKER, useMobileTimePicker } from '@elliemae/ds-devutils';
5
5
  import { DSMobileTimePicker } from './MobileTimePicker.js';
6
6
 
@@ -1,9 +1,15 @@
1
1
  import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
2
2
  import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
3
+ import 'core-js/modules/web.dom-collections.iterator.js';
4
+ import 'core-js/modules/esnext.async-iterator.filter.js';
5
+ import 'core-js/modules/esnext.iterator.constructor.js';
6
+ import 'core-js/modules/esnext.iterator.filter.js';
7
+ import 'core-js/modules/esnext.async-iterator.for-each.js';
8
+ import 'core-js/modules/esnext.iterator.for-each.js';
3
9
  import { useState, useCallback } from 'react';
4
10
  import { noop } from 'lodash';
5
11
  import styled from 'styled-components';
6
- import { Grid } from '@elliemae/ds-basic/Grid';
12
+ import { Grid } from '@elliemae/ds-grid';
7
13
  import { withTheme } from '@elliemae/ds-system';
8
14
  import { jsx } from 'react/jsx-runtime';
9
15
 
@@ -1,11 +1,16 @@
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 _jsx from '@babel/runtime/helpers/esm/jsx';
3
8
  import 'react';
4
9
  import { PropTypes, describe } from 'react-desc';
5
10
  import { noop } from 'lodash';
6
- import { Grid } from '@elliemae/ds-basic/Grid';
7
- import WarningTriangle from '@elliemae/ds-icons/WarningTriangle';
8
- import DSButton from '@elliemae/ds-basic/Button';
11
+ import { Grid } from '@elliemae/ds-grid';
12
+ import { WarningTriangle } from '@elliemae/ds-icons';
13
+ import DSButton from '@elliemae/ds-button';
9
14
  import { useTheme } from '@elliemae/ds-system';
10
15
  import { BodyFix, BackShadow, ModalPosition, ModalBox, ModalIcon, ModalTitle, ModalDescription } from './styled.js';
11
16
  import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
@@ -16,22 +21,23 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
16
21
 
17
22
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
18
23
 
19
- const Modal = ({
20
- zIndex = 1,
21
- title = '',
22
- description = '',
23
- onClose = noop,
24
- showSecondaryAction = true,
25
- secondaryActionProps = {
26
- onClick: noop,
27
- labelText: 'Cancel'
28
- },
29
- primaryActionProps = {
30
- onClick: noop,
31
- labelText: 'Accept'
32
- },
33
- isOpen = false
34
- }) => {
24
+ const Modal = _ref => {
25
+ let {
26
+ zIndex = 1,
27
+ title = '',
28
+ description = '',
29
+ onClose = noop,
30
+ showSecondaryAction = true,
31
+ secondaryActionProps = {
32
+ onClick: noop,
33
+ labelText: 'Cancel'
34
+ },
35
+ primaryActionProps = {
36
+ onClick: noop,
37
+ labelText: 'Accept'
38
+ },
39
+ isOpen = false
40
+ } = _ref;
35
41
  const theme = useTheme();
36
42
  if (!isOpen) return null;
37
43
  return /*#__PURE__*/jsxs(Fragment, {
@@ -44,7 +50,7 @@ const Modal = ({
44
50
  zIndex: zIndex,
45
51
  cols: ['auto']
46
52
  }, void 0, /*#__PURE__*/_jsx(ModalBox, {
47
- maxHeight: `${window.innerHeight * 0.75}px`,
53
+ maxHeight: "".concat(window.innerHeight * 0.75, "px"),
48
54
  rows: [1, '80px'],
49
55
  style: {
50
56
  overflow: 'hidden'
@@ -79,7 +85,7 @@ const Modal = ({
79
85
  justifyContent: "center",
80
86
  alignItems: "center",
81
87
  style: {
82
- borderTop: `1px solid ${theme.colors.neutral[100]}`
88
+ borderTop: "1px solid ".concat(theme.colors.neutral[100])
83
89
  }
84
90
  }, void 0, showSecondaryAction && /*#__PURE__*/jsx(DSButton, _objectSpread(_objectSpread({}, secondaryActionProps), {}, {
85
91
  labelText: secondaryActionProps.labelText || ' Cancel',
@@ -1,12 +1,10 @@
1
- import { Grid } from '@elliemae/ds-basic/Grid';
1
+ import _taggedTemplateLiteral from '@babel/runtime/helpers/esm/taggedTemplateLiteral';
2
+ import { Grid } from '@elliemae/ds-grid';
2
3
  import styled from 'styled-components';
3
4
  import { createGlobalStyle } from '@elliemae/ds-system';
4
5
 
5
- const BodyFix = createGlobalStyle`
6
- body{
7
- ${props => props.isOpen ? 'overflow: hidden;' : ''};
8
- }
9
- `;
6
+ var _templateObject;
7
+ const BodyFix = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n body{\n ", ";\n }\n"])), props => props.isOpen ? 'overflow: hidden;' : '');
10
8
  const ModalBox = /*#__PURE__*/styled(Grid).withConfig({
11
9
  componentId: "sc-cke90o-0"
12
10
  })(["width:100%;background:", ";max-height:", ";box-shadow:0 2px 4px 0 rgba(0,0,0,0.5);"], props => props.theme.colors.neutral['000'], props => props.maxHeight);