@elliemae/ds-mobile 2.0.0-alpha.10 → 2.0.0-alpha.14

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 (190) 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 +129 -60
  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 +35 -82
  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/props.js +62 -0
  28. package/cjs/MobileCard/useHeight.js +1 -0
  29. package/cjs/MobileContextMenu/MobileContextMenu.js +37 -28
  30. package/cjs/MobileContextMenu/MobileContextMenuGroup.js +35 -25
  31. package/cjs/MobileContextMenu/MobileContextMenuItem.js +30 -36
  32. package/cjs/MobileDatePicker/Input.js +5 -0
  33. package/cjs/MobileDatePicker/MobileDatePicker.js +16 -17
  34. package/cjs/MobileDropdownMenu/MobileDropdownInput.js +27 -17
  35. package/cjs/MobileDropdownMenu/MobileDropdownMenu.js +21 -17
  36. package/cjs/MobileEmtpyState/MobileEmptyState.js +10 -8
  37. package/cjs/MobileFilterbar/Filterbar.js +13 -10
  38. package/cjs/MobileFilterbar/FilterbarItem.js +15 -12
  39. package/cjs/MobileFilterbar/FilterbarSort.js +17 -14
  40. package/cjs/MobileFooter/Action.js +27 -24
  41. package/cjs/MobileFooter/Footer.js +17 -10
  42. package/cjs/MobileFooter/Text.js +6 -3
  43. package/cjs/MobileListItem/MobileListItem.js +15 -14
  44. package/cjs/MobilePageHeader/MobilePageHeader.js +37 -36
  45. package/cjs/MobileSelectList/MobileSelectList.js +32 -24
  46. package/cjs/MobileSelectList/styled.js +9 -11
  47. package/cjs/MobileSeparator/Separator.js +30 -18
  48. package/cjs/MobileTimePicker/Input.js +5 -0
  49. package/cjs/MobileTimePicker/MobileTimePicker.js +16 -17
  50. package/cjs/MobileTimePicker/MobileTimePicker.stories.js +2 -2
  51. package/cjs/MobileTouchable/MobileTouchable.js +8 -2
  52. package/cjs/Modal/Modal.js +32 -27
  53. package/cjs/Modal/styled.js +11 -12
  54. package/cjs/PageFilter/PageFilter.js +20 -15
  55. package/cjs/PageForm/PageForm.js +22 -15
  56. package/cjs/PageList/PageList.js +12 -11
  57. package/cjs/PageSearch/PageSearch.js +14 -13
  58. package/cjs/PageSummary/PageSummary.js +34 -21
  59. package/cjs/PageSummary/Tags.js +12 -6
  60. package/cjs/SideNav/SideNav.js +43 -34
  61. package/cjs/SwipeToRefresh/ProgressIndicator.js +10 -9
  62. package/cjs/SwipeToRefresh/SwipeToRefresh.js +10 -9
  63. package/cjs/SwipeToRefresh/styled.js +4 -4
  64. package/cjs/SwipeToRefresh/useSwipe.js +6 -4
  65. package/cjs/Tabs/index.js +16 -5
  66. package/cjs/Tabs/propTypes.js +28 -0
  67. package/cjs/index.js +11 -5
  68. package/esm/Accordion/Accordion.js +1 -1
  69. package/esm/Accordion/index.js +1 -1
  70. package/esm/CategoryBox/CategoryBox.js +11 -10
  71. package/esm/CollectionBox/CollectionBox.js +10 -9
  72. package/esm/FullPageContainer/FullPageContainer.js +6 -1
  73. package/esm/FullPageContainer/FullPageContainerScroll.js +6 -1
  74. package/esm/FullPageContainer/useMobileHeight.js +1 -0
  75. package/esm/GlobalHeader/MobileGlobalHeader.js +21 -14
  76. package/esm/GlobalHeader/styles.js +4 -11
  77. package/esm/GroupBox/GroupBox.js +12 -11
  78. package/esm/InfiniteLoader/Infiniteloader.js +9 -7
  79. package/esm/InfiniteLoader/Loader.js +12 -9
  80. package/esm/InfiniteLoader/VirtualizedInfiniteLoader.js +51 -23
  81. package/esm/LoadingPage/Page.js +25 -12
  82. package/esm/MobileActionToolbar/MobileActionToolbar.js +7 -6
  83. package/esm/MobileActionToolbar/MobileActionToolbarItem.js +6 -1
  84. package/esm/MobileBanner/MobileBanner.js +21 -14
  85. package/esm/MobileBanner/styles.js +129 -60
  86. package/esm/MobileBanner/utils/icons.js +1 -4
  87. package/esm/MobileBanner/utils/styleHelpers.js +16 -47
  88. package/esm/MobileCard/ActionAddon.js +16 -13
  89. package/esm/MobileCard/Card.js +29 -76
  90. package/esm/MobileCard/CardIcons.js +20 -15
  91. package/esm/MobileCard/ExpandChevron.js +8 -8
  92. package/esm/MobileCard/ExpandableRegion.js +7 -7
  93. package/esm/MobileCard/Group.js +21 -15
  94. package/esm/MobileCard/props.js +58 -0
  95. package/esm/MobileCard/useHeight.js +1 -0
  96. package/esm/MobileContextMenu/MobileContextMenu.js +30 -21
  97. package/esm/MobileContextMenu/MobileContextMenuGroup.js +35 -25
  98. package/esm/MobileContextMenu/MobileContextMenuItem.js +26 -30
  99. package/esm/MobileDatePicker/Input.js +5 -0
  100. package/esm/MobileDatePicker/MobileDatePicker.js +13 -12
  101. package/esm/MobileDropdownMenu/MobileDropdownInput.js +27 -16
  102. package/esm/MobileDropdownMenu/MobileDropdownMenu.js +21 -17
  103. package/esm/MobileEmtpyState/MobileEmptyState.js +10 -7
  104. package/esm/MobileFilterbar/Filterbar.js +13 -10
  105. package/esm/MobileFilterbar/FilterbarItem.js +15 -12
  106. package/esm/MobileFilterbar/FilterbarSort.js +17 -14
  107. package/esm/MobileFooter/Action.js +26 -23
  108. package/esm/MobileFooter/Footer.js +14 -7
  109. package/esm/MobileFooter/Text.js +6 -3
  110. package/esm/MobileListItem/MobileListItem.js +11 -10
  111. package/esm/MobilePageHeader/MobilePageHeader.js +19 -17
  112. package/esm/MobileSelectList/MobileSelectList.js +28 -19
  113. package/esm/MobileSelectList/styled.js +4 -4
  114. package/esm/MobileSeparator/Separator.js +28 -16
  115. package/esm/MobileTimePicker/Input.js +5 -0
  116. package/esm/MobileTimePicker/MobileTimePicker.js +13 -12
  117. package/esm/MobileTimePicker/MobileTimePicker.stories.js +1 -1
  118. package/esm/MobileTouchable/MobileTouchable.js +7 -1
  119. package/esm/Modal/Modal.js +27 -21
  120. package/esm/Modal/styled.js +4 -6
  121. package/esm/PageFilter/PageFilter.js +15 -10
  122. package/esm/PageForm/PageForm.js +18 -11
  123. package/esm/PageList/PageList.js +10 -9
  124. package/esm/PageSearch/PageSearch.js +10 -9
  125. package/esm/PageSummary/PageSummary.js +32 -19
  126. package/esm/PageSummary/Tags.js +12 -6
  127. package/esm/SideNav/SideNav.js +39 -29
  128. package/esm/SwipeToRefresh/ProgressIndicator.js +9 -8
  129. package/esm/SwipeToRefresh/SwipeToRefresh.js +9 -8
  130. package/esm/SwipeToRefresh/styled.js +1 -1
  131. package/esm/SwipeToRefresh/useSwipe.js +6 -4
  132. package/esm/Tabs/index.js +13 -4
  133. package/esm/Tabs/propTypes.js +23 -0
  134. package/esm/index.js +5 -4
  135. package/package.json +35 -7
  136. package/types/Accordion/Accordion.d.ts +1 -1
  137. package/types/CategoryBox/CategoryBox.d.ts +37 -6
  138. package/types/CollectionBox/CollectionBox.d.ts +37 -6
  139. package/types/GlobalHeader/MobileGlobalHeader.d.ts +43 -6
  140. package/types/GlobalHeader/styles.d.ts +6 -6
  141. package/types/GroupBox/GroupBox.d.ts +44 -7
  142. package/types/InfiniteLoader/Infiniteloader.d.ts +30 -5
  143. package/types/InfiniteLoader/VirtualizedInfiniteLoader.d.ts +56 -8
  144. package/types/InfiniteLoader/styled.d.ts +1 -1
  145. package/types/LoadingPage/Page.d.ts +1 -1
  146. package/types/MobileActionToolbar/MobileActionToolbar.d.ts +16 -4
  147. package/types/MobileActionToolbar/MobileActionToolbarItem.d.ts +15 -2
  148. package/types/MobileBanner/MobileBanner.d.ts +72 -12
  149. package/types/MobileBanner/propTypes.d.ts +67 -11
  150. package/types/MobileBanner/styles.d.ts +10 -10
  151. package/types/MobileCard/Card.d.ts +20 -13
  152. package/types/MobileCard/ExpandableRegion.d.ts +2 -2
  153. package/types/MobileCard/Group.d.ts +18 -8
  154. package/types/MobileCard/StyledCard.d.ts +3 -1
  155. package/types/MobileCard/index.d.ts +13 -12
  156. package/types/MobileCard/props.d.ts +118 -0
  157. package/types/MobileContextMenu/MobileContextMenu.d.ts +13 -2
  158. package/types/MobileContextMenu/MobileContextMenuGroup.d.ts +37 -5
  159. package/types/MobileContextMenu/MobileContextMenuItem.d.ts +54 -9
  160. package/types/MobileDatePicker/MobileDatePicker.d.ts +43 -7
  161. package/types/MobileDropdownMenu/MobileDropdownInput.d.ts +2 -2
  162. package/types/MobileDropdownMenu/MobileDropdownMenu.d.ts +24 -4
  163. package/types/MobileEmtpyState/MobileEmptyState.d.ts +14 -2
  164. package/types/MobileFilterbar/Filterbar.d.ts +9 -2
  165. package/types/MobileFilterbar/FilterbarItem.d.ts +15 -2
  166. package/types/MobileFilterbar/FilterbarSort.d.ts +9 -2
  167. package/types/MobileFooter/Action.d.ts +19 -3
  168. package/types/MobileFooter/Footer.d.ts +8 -1
  169. package/types/MobileFooter/Text.d.ts +8 -1
  170. package/types/MobileListItem/MobileListItem.d.ts +17 -7
  171. package/types/MobilePageHeader/MobilePageHeader.d.ts +21 -11
  172. package/types/MobileSelectList/MobileSelectList.d.ts +3 -3
  173. package/types/MobileSelectList/styled.d.ts +5 -5
  174. package/types/MobileSeparator/Separator.d.ts +23 -5
  175. package/types/MobileTimePicker/MobileTimePicker.d.ts +32 -6
  176. package/types/MobileTouchable/MobileTouchable.d.ts +1 -1
  177. package/types/Modal/Modal.d.ts +50 -9
  178. package/types/Modal/styled.d.ts +7 -6
  179. package/types/PageList/PageList.d.ts +2 -2
  180. package/types/PageSearch/PageSearch.d.ts +2 -2
  181. package/types/PageSummary/Tags.d.ts +4 -4
  182. package/types/SideNav/SideNav.d.ts +26 -5
  183. package/types/SideNav/styles.d.ts +8 -8
  184. package/types/SwipeToRefresh/SwipeToRefresh.d.ts +22 -3
  185. package/types/SwipeToRefresh/styled.d.ts +5 -4
  186. package/types/Tabs/index.d.ts +24 -9
  187. package/types/Tabs/propTypes.d.ts +42 -0
  188. package/types/index.d.ts +5 -1
  189. package/cjs/package.json +0 -7
  190. package/esm/package.json +0 -7
@@ -1,13 +1,18 @@
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 _jsx from '@babel/runtime/helpers/esm/jsx';
2
7
  import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
3
8
  import 'react';
4
9
  import { PropTypes, describe } from 'react-desc';
5
- import { Grid } from '@elliemae/ds-basic/Grid';
10
+ import { Grid } from '@elliemae/ds-grid';
6
11
  import styled from 'styled-components';
7
12
  import { truncate } from '@elliemae/ds-system';
8
13
  import GroupItem from '@elliemae/ds-shared/GroupContext/GroupItem';
9
- import DSCheckbox from '@elliemae/ds-basic/form/Checkbox';
10
- import DSCheckmark from '@elliemae/ds-icons/Checkmark';
14
+ import { DSCheckbox } from '@elliemae/ds-form';
15
+ import { Checkmark } from '@elliemae/ds-icons';
11
16
  import { DSMobileTouchable } from '../MobileTouchable/MobileTouchable.js';
12
17
  import { jsx } from 'react/jsx-runtime';
13
18
 
@@ -23,17 +28,7 @@ const PropWrap = /*#__PURE__*/styled(props => /*#__PURE__*/jsx(Grid, _objectSpre
23
28
  componentId: "sc-20od94-1"
24
29
  })(["", ""], props => {
25
30
  if (!props.isMulti) {
26
- return `
27
- & > span {
28
- height: 18px;
29
- width: 18px;
30
- }
31
-
32
- & > span > svg {
33
- height: 18px;
34
- width: 18px;
35
- }
36
- `;
31
+ return "\n & > span {\n height: 18px;\n width: 18px;\n }\n\n & > span > svg {\n height: 18px;\n width: 18px;\n }\n ";
37
32
  }
38
33
 
39
34
  return '';
@@ -44,24 +39,25 @@ const Title = /*#__PURE__*/styled.span.withConfig({
44
39
  const Label = /*#__PURE__*/styled.span.withConfig({
45
40
  componentId: "sc-20od94-3"
46
41
  })(["font-size:13px;color:", ";"], props => props.theme.colors.neutral['600']);
47
- const CheckMark = /*#__PURE__*/styled(DSCheckmark).withConfig({
42
+ const CheckMark = /*#__PURE__*/styled(Checkmark).withConfig({
48
43
  componentId: "sc-20od94-4"
49
44
  })(["fill:", ";"], props => props.theme.colors.brand['600']);
50
45
 
51
- const DSMobileContextMenuItem = ({
52
- label,
53
- title,
54
- leftProp,
55
- isGroup,
56
- isMulti,
57
- singleSelect,
58
- isSelected,
59
- // eslint-disable-next-line @typescript-eslint/no-empty-function
60
- onClick = () => {},
61
- value
62
- }) => {
63
- var _Checkbox, _Grid, _Title;
64
-
46
+ const DSMobileContextMenuItem = _ref => {
47
+ var _DSCheckbox, _Grid, _Title;
48
+
49
+ let {
50
+ label,
51
+ title,
52
+ leftProp,
53
+ isGroup,
54
+ isMulti,
55
+ singleSelect,
56
+ isSelected,
57
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
58
+ onClick = () => {},
59
+ value
60
+ } = _ref;
65
61
  return /*#__PURE__*/_jsx(GroupItem, {
66
62
  render: context => {
67
63
  const {
@@ -72,7 +68,7 @@ const DSMobileContextMenuItem = ({
72
68
  let showLeftAddon = isSelected;
73
69
  if (isMulti || !singleSelect) showLeftAddon = true;
74
70
  let leftAddon = leftProp || null;
75
- if (isMulti) leftAddon = _Checkbox || (_Checkbox = /*#__PURE__*/_jsx(DSCheckbox, {
71
+ if (isMulti) leftAddon = _DSCheckbox || (_DSCheckbox = /*#__PURE__*/_jsx(DSCheckbox, {
76
72
  checked: isSelected,
77
73
  "data-testid": "leftAddon-checkbox"
78
74
  }));
@@ -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 } from 'react';
3
3
  import { PropTypes, describe } from 'react-desc';
4
- import { DSIconColors } from '@elliemae/ds-basic/Icon';
5
- import DatePicker from '@elliemae/ds-icons/DatePicker';
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 { DatePicker } 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 _DatePicker;
11
11
 
12
- const DSMobileDatePicker = ({
13
- disabled,
14
- value,
15
- tabIndex,
16
- placeholder,
17
- onChange
18
- }) => {
12
+ const DSMobileDatePicker = _ref => {
13
+ let {
14
+ disabled,
15
+ value,
16
+ tabIndex,
17
+ placeholder,
18
+ onChange
19
+ } = _ref;
19
20
  const inputRef = useRef(null);
20
21
  useEffect(() => {
21
22
  /*
@@ -28,7 +29,7 @@ const DSMobileDatePicker = ({
28
29
  }
29
30
  }, [inputRef.current]);
30
31
  const valueArr = value.split('-');
31
- const displayValue = value && `${valueArr[1]} / ${valueArr[2]} / ${valueArr[0]}`;
32
+ const displayValue = value && "".concat(valueArr[1], " / ").concat(valueArr[2], " / ").concat(valueArr[0]);
32
33
  return /*#__PURE__*/_jsx(DSInputGroup, {
33
34
  rightAddon: /*#__PURE__*/_jsx(DSButton, {
34
35
  "aria-label": "Date Picker Button",
@@ -1,9 +1,14 @@
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 styled from 'styled-components';
5
10
  import { focus } from '@elliemae/ds-system';
6
- import ChevronDownIcon from '@elliemae/ds-icons/ChevronDown';
11
+ import { ChevronDown } from '@elliemae/ds-icons';
7
12
  import { jsx } from 'react/jsx-runtime';
8
13
 
9
14
  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; }
@@ -18,20 +23,26 @@ const MobileDropdownInputWrap = /*#__PURE__*/styled.span.withConfig({
18
23
  const CaretWrap = /*#__PURE__*/styled.span.withConfig({
19
24
  componentId: "sc-1rsc1yn-2"
20
25
  })(["width:32px;height:32px;position:absolute;right:0;top:0;display:flex;justify-content:center;align-items:center;"]);
21
- const Caret = ({
22
- onClick
23
- }) => /*#__PURE__*/_jsx(CaretWrap, {
24
- onClick: onClick
25
- }, void 0, /*#__PURE__*/_jsx(ChevronDownIcon, {
26
- color: ['brand-primary', '600']
27
- }));
28
- const DSMobileDropdownTriggerInput = ({
29
- inputProps,
30
- caretProps
31
- }) => /*#__PURE__*/_jsx(MobileDropdownInputWrap, {
32
- "data-testid": "ds-mobile-ddwn-menu"
33
- }, void 0, /*#__PURE__*/jsx(MobileDropdownInput, _objectSpread(_objectSpread({}, inputProps), {}, {
34
- readOnly: true
35
- })), /*#__PURE__*/jsx(Caret, _objectSpread({}, caretProps)));
26
+ const Caret = _ref => {
27
+ let {
28
+ onClick
29
+ } = _ref;
30
+ return /*#__PURE__*/_jsx(CaretWrap, {
31
+ onClick: onClick
32
+ }, void 0, /*#__PURE__*/_jsx(ChevronDown, {
33
+ color: ['brand-primary', '600']
34
+ }));
35
+ };
36
+ const DSMobileDropdownTriggerInput = _ref2 => {
37
+ let {
38
+ inputProps,
39
+ caretProps
40
+ } = _ref2;
41
+ return /*#__PURE__*/_jsx(MobileDropdownInputWrap, {
42
+ "data-testid": "ds-mobile-ddwn-menu"
43
+ }, void 0, /*#__PURE__*/jsx(MobileDropdownInput, _objectSpread(_objectSpread({}, inputProps), {}, {
44
+ readOnly: true
45
+ })), /*#__PURE__*/jsx(Caret, _objectSpread({}, caretProps)));
46
+ };
36
47
 
37
48
  export { Caret, DSMobileDropdownTriggerInput, MobileDropdownInput, MobileDropdownInputWrap };
@@ -1,4 +1,7 @@
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 React, { useState, useRef } from 'react';
3
6
  import { PropTypes, describe } from 'react-desc';
4
7
  import { DSMobileContextMenu } from '../MobileContextMenu/MobileContextMenu.js';
@@ -7,22 +10,23 @@ import '../MobileContextMenu/MobileContextMenuGroup.js';
7
10
  import { DSMobileDropdownTriggerInput } from './MobileDropdownInput.js';
8
11
  import { jsxs, Fragment } from 'react/jsx-runtime';
9
12
 
10
- const DSMobileDropdownMenu = ({
11
- placeholder,
12
- options = [],
13
- title,
14
- value,
15
- itemsProps = {
16
- label: undefined,
17
- leftProp: undefined,
18
- isGroup: false,
19
- isMulti: false,
20
- singleSelect: false,
21
- isItemSelected: () => false,
22
- // eslint-disable-next-line @typescript-eslint/no-empty-function
23
- onClick: () => {}
24
- }
25
- }) => {
13
+ const DSMobileDropdownMenu = _ref => {
14
+ let {
15
+ placeholder,
16
+ options = [],
17
+ title,
18
+ value,
19
+ itemsProps = {
20
+ label: undefined,
21
+ leftProp: undefined,
22
+ isGroup: false,
23
+ isMulti: false,
24
+ singleSelect: false,
25
+ isItemSelected: () => false,
26
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
27
+ onClick: () => {}
28
+ }
29
+ } = _ref;
26
30
  const [menuOpen, setMenuOpen] = useState(false);
27
31
  const inputRef = useRef(null);
28
32
  const inputProps = React.useMemo(() => ({
@@ -62,7 +66,7 @@ const DSMobileDropdownMenu = ({
62
66
  isGroup: itemsProps.isGroup,
63
67
  isMulti: itemsProps.isMulti,
64
68
  singleSelect: itemsProps.singleSelect
65
- }, 'ddwn'.concat(`${i}`)))) : null]
69
+ }, 'ddwn'.concat("".concat(i))))) : null]
66
70
  });
67
71
  };
68
72
 
@@ -2,7 +2,7 @@ import _jsx from '@babel/runtime/helpers/esm/jsx';
2
2
  import 'react';
3
3
  import styled from 'styled-components';
4
4
  import { PropTypes, describe } from 'react-desc';
5
- import Search from '@elliemae/ds-icons/Search';
5
+ import { Search } from '@elliemae/ds-icons';
6
6
 
7
7
  const Wrapper = /*#__PURE__*/styled.div.withConfig({
8
8
  componentId: "sc-1v2x6kj-0"
@@ -11,12 +11,15 @@ const Label = /*#__PURE__*/styled.p.withConfig({
11
11
  componentId: "sc-1v2x6kj-1"
12
12
  })(["color:", ";font-size:", ";font-weight:", ";min-width:132px;"], props => props.theme.colors.neutral['600'], props => props.theme.space.xs, props => props.theme.fontWeights.semibold);
13
13
 
14
- const DSMobileEmptyState = ({
15
- label = 'No search results found.'
16
- }) => /*#__PURE__*/_jsx(Wrapper, {}, void 0, /*#__PURE__*/_jsx(Search, {
17
- size: "xxl",
18
- color: ['neutral', 400]
19
- }), /*#__PURE__*/_jsx(Label, {}, void 0, label));
14
+ const DSMobileEmptyState = _ref => {
15
+ let {
16
+ label = 'No search results found.'
17
+ } = _ref;
18
+ return /*#__PURE__*/_jsx(Wrapper, {}, void 0, /*#__PURE__*/_jsx(Search, {
19
+ size: "xxl",
20
+ color: ['neutral', 400]
21
+ }), /*#__PURE__*/_jsx(Label, {}, void 0, label));
22
+ };
20
23
 
21
24
  const props = {
22
25
  /** empty state label */
@@ -3,7 +3,7 @@ import 'react';
3
3
  import styled from 'styled-components';
4
4
  import { PropTypes, describe } from 'react-desc';
5
5
  import { __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 MobileSeparator from '../MobileSeparator/Separator.js';
8
8
 
9
9
  const Bar = /*#__PURE__*/styled.div.withConfig({
@@ -13,15 +13,18 @@ const Separator = /*#__PURE__*/styled.div.withConfig({
13
13
  componentId: "sc-14ysw84-1"
14
14
  })(["& > *{margin:0;}"]);
15
15
 
16
- const DSMobileFilterbar = ({
17
- children
18
- }) => /*#__PURE__*/_jsx(Grid, {
19
- rows: ['auto', 'auto'],
20
- "data-testid": "filter-bar-wrapper"
21
- }, void 0, /*#__PURE__*/_jsx(Bar, {}, void 0, children), /*#__PURE__*/_jsx(Separator, {}, void 0, /*#__PURE__*/_jsx(MobileSeparator, {
22
- margin: "xxs",
23
- color: ['neutral', '300']
24
- })));
16
+ const DSMobileFilterbar = _ref => {
17
+ let {
18
+ children
19
+ } = _ref;
20
+ return /*#__PURE__*/_jsx(Grid, {
21
+ rows: ['auto', 'auto'],
22
+ "data-testid": "filter-bar-wrapper"
23
+ }, void 0, /*#__PURE__*/_jsx(Bar, {}, void 0, children), /*#__PURE__*/_jsx(Separator, {}, void 0, /*#__PURE__*/_jsx(MobileSeparator, {
24
+ margin: "xxs",
25
+ color: ['neutral', '300']
26
+ })));
27
+ };
25
28
 
26
29
  const filterbarProps = {
27
30
  children: PropTypes.element.description('FilterBar Items').isRequired
@@ -1,19 +1,22 @@
1
1
  import _jsx from '@babel/runtime/helpers/esm/jsx';
2
2
  import 'react';
3
3
  import { PropTypes, describe } from 'react-desc';
4
- import { Grid } from '@elliemae/ds-basic/Grid';
4
+ import { Grid } from '@elliemae/ds-grid';
5
5
 
6
- const DSMobileFilterbarItem = ({
7
- children,
8
- onClick
9
- }) => /*#__PURE__*/_jsx(Grid, {
10
- "data-testid": "filter-bar-item-wrapper",
11
- cols: ['min-content'],
12
- pr: "xxs",
13
- pt: "xxs",
14
- role: "button",
15
- onClick: onClick
16
- }, void 0, children);
6
+ const DSMobileFilterbarItem = _ref => {
7
+ let {
8
+ children,
9
+ onClick
10
+ } = _ref;
11
+ return /*#__PURE__*/_jsx(Grid, {
12
+ "data-testid": "filter-bar-item-wrapper",
13
+ cols: ['min-content'],
14
+ pr: "xxs",
15
+ pt: "xxs",
16
+ role: "button",
17
+ onClick: onClick
18
+ }, void 0, children);
19
+ };
17
20
 
18
21
  const filterbarItemProps = {
19
22
  children: PropTypes.element.description('FilterBar Items').isRequired,
@@ -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;