@elliemae/ds-mobile 2.0.0-alpha.11 → 2.0.0-alpha.12

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 (182) hide show
  1. package/cjs/Accordion/Accordion.js +5 -5
  2. package/cjs/Accordion/index.js +5 -5
  3. package/cjs/CategoryBox/CategoryBox.js +12 -11
  4. package/cjs/CollectionBox/CollectionBox.js +14 -13
  5. package/cjs/FullPageContainer/FullPageContainer.js +7 -2
  6. package/cjs/FullPageContainer/FullPageContainerScroll.js +7 -2
  7. package/cjs/GlobalHeader/MobileGlobalHeader.js +28 -24
  8. package/cjs/GroupBox/GroupBox.js +13 -12
  9. package/cjs/InfiniteLoader/Infiniteloader.js +11 -9
  10. package/cjs/InfiniteLoader/Loader.js +12 -9
  11. package/cjs/InfiniteLoader/VirtualizedInfiniteLoader.js +49 -22
  12. package/cjs/LoadingPage/Page.js +24 -12
  13. package/cjs/MobileActionToolbar/MobileActionToolbar.js +8 -7
  14. package/cjs/MobileActionToolbar/MobileActionToolbarItem.js +6 -1
  15. package/cjs/MobileBanner/MobileBanner.js +21 -16
  16. package/cjs/MobileBanner/styles.js +128 -59
  17. package/cjs/MobileBanner/utils/icons.js +5 -12
  18. package/cjs/MobileBanner/utils/styleHelpers.js +8 -4
  19. package/cjs/MobileCard/ActionAddon.js +16 -14
  20. package/cjs/MobileCard/Card.js +35 -82
  21. package/cjs/MobileCard/CardIcons.js +21 -16
  22. package/cjs/MobileCard/ExpandChevron.js +8 -10
  23. package/cjs/MobileCard/ExpandableRegion.js +5 -4
  24. package/cjs/MobileCard/Group.js +22 -16
  25. package/cjs/MobileCard/props.js +62 -0
  26. package/cjs/MobileContextMenu/MobileContextMenu.js +33 -25
  27. package/cjs/MobileContextMenu/MobileContextMenuGroup.js +35 -25
  28. package/cjs/MobileContextMenu/MobileContextMenuItem.js +29 -25
  29. package/cjs/MobileDatePicker/Input.js +5 -0
  30. package/cjs/MobileDatePicker/MobileDatePicker.js +15 -16
  31. package/cjs/MobileDropdownMenu/MobileDropdownInput.js +27 -17
  32. package/cjs/MobileDropdownMenu/MobileDropdownMenu.js +19 -16
  33. package/cjs/MobileEmtpyState/MobileEmptyState.js +10 -8
  34. package/cjs/MobileFilterbar/Filterbar.js +13 -10
  35. package/cjs/MobileFilterbar/FilterbarItem.js +15 -12
  36. package/cjs/MobileFilterbar/FilterbarSort.js +17 -14
  37. package/cjs/MobileFooter/Action.js +27 -24
  38. package/cjs/MobileFooter/Footer.js +15 -8
  39. package/cjs/MobileFooter/Text.js +6 -3
  40. package/cjs/MobileListItem/MobileListItem.js +14 -13
  41. package/cjs/MobilePageHeader/MobilePageHeader.js +35 -35
  42. package/cjs/MobileSelectList/MobileSelectList.js +29 -22
  43. package/cjs/MobileSelectList/styled.js +9 -11
  44. package/cjs/MobileSeparator/Separator.js +30 -18
  45. package/cjs/MobileTimePicker/Input.js +5 -0
  46. package/cjs/MobileTimePicker/MobileTimePicker.js +15 -16
  47. package/cjs/MobileTimePicker/MobileTimePicker.stories.js +2 -2
  48. package/cjs/MobileTouchable/MobileTouchable.js +7 -2
  49. package/cjs/Modal/Modal.js +30 -25
  50. package/cjs/Modal/styled.js +7 -7
  51. package/cjs/PageFilter/PageFilter.js +20 -15
  52. package/cjs/PageForm/PageForm.js +22 -15
  53. package/cjs/PageList/PageList.js +12 -11
  54. package/cjs/PageSearch/PageSearch.js +14 -13
  55. package/cjs/PageSummary/PageSummary.js +34 -21
  56. package/cjs/PageSummary/Tags.js +12 -6
  57. package/cjs/SideNav/SideNav.js +42 -34
  58. package/cjs/SwipeToRefresh/ProgressIndicator.js +6 -5
  59. package/cjs/SwipeToRefresh/SwipeToRefresh.js +8 -7
  60. package/cjs/SwipeToRefresh/styled.js +4 -4
  61. package/cjs/SwipeToRefresh/useSwipe.js +5 -4
  62. package/cjs/Tabs/index.js +16 -5
  63. package/cjs/Tabs/propTypes.js +28 -0
  64. package/cjs/index.js +11 -5
  65. package/esm/Accordion/Accordion.js +1 -1
  66. package/esm/Accordion/index.js +1 -1
  67. package/esm/CategoryBox/CategoryBox.js +9 -8
  68. package/esm/CollectionBox/CollectionBox.js +9 -8
  69. package/esm/FullPageContainer/FullPageContainer.js +6 -1
  70. package/esm/FullPageContainer/FullPageContainerScroll.js +6 -1
  71. package/esm/GlobalHeader/MobileGlobalHeader.js +20 -14
  72. package/esm/GroupBox/GroupBox.js +10 -9
  73. package/esm/InfiniteLoader/Infiniteloader.js +9 -7
  74. package/esm/InfiniteLoader/Loader.js +12 -9
  75. package/esm/InfiniteLoader/VirtualizedInfiniteLoader.js +50 -23
  76. package/esm/LoadingPage/Page.js +24 -12
  77. package/esm/MobileActionToolbar/MobileActionToolbar.js +7 -6
  78. package/esm/MobileActionToolbar/MobileActionToolbarItem.js +6 -1
  79. package/esm/MobileBanner/MobileBanner.js +20 -14
  80. package/esm/MobileBanner/styles.js +128 -59
  81. package/esm/MobileBanner/utils/icons.js +1 -4
  82. package/esm/MobileBanner/utils/styleHelpers.js +8 -4
  83. package/esm/MobileCard/ActionAddon.js +16 -13
  84. package/esm/MobileCard/Card.js +29 -76
  85. package/esm/MobileCard/CardIcons.js +20 -15
  86. package/esm/MobileCard/ExpandChevron.js +8 -8
  87. package/esm/MobileCard/ExpandableRegion.js +5 -4
  88. package/esm/MobileCard/Group.js +20 -14
  89. package/esm/MobileCard/props.js +58 -0
  90. package/esm/MobileContextMenu/MobileContextMenu.js +26 -18
  91. package/esm/MobileContextMenu/MobileContextMenuGroup.js +35 -25
  92. package/esm/MobileContextMenu/MobileContextMenuItem.js +25 -19
  93. package/esm/MobileDatePicker/Input.js +5 -0
  94. package/esm/MobileDatePicker/MobileDatePicker.js +12 -11
  95. package/esm/MobileDropdownMenu/MobileDropdownInput.js +27 -16
  96. package/esm/MobileDropdownMenu/MobileDropdownMenu.js +19 -16
  97. package/esm/MobileEmtpyState/MobileEmptyState.js +10 -7
  98. package/esm/MobileFilterbar/Filterbar.js +13 -10
  99. package/esm/MobileFilterbar/FilterbarItem.js +15 -12
  100. package/esm/MobileFilterbar/FilterbarSort.js +17 -14
  101. package/esm/MobileFooter/Action.js +26 -23
  102. package/esm/MobileFooter/Footer.js +12 -5
  103. package/esm/MobileFooter/Text.js +6 -3
  104. package/esm/MobileListItem/MobileListItem.js +10 -9
  105. package/esm/MobilePageHeader/MobilePageHeader.js +17 -16
  106. package/esm/MobileSelectList/MobileSelectList.js +25 -17
  107. package/esm/MobileSelectList/styled.js +4 -4
  108. package/esm/MobileSeparator/Separator.js +28 -16
  109. package/esm/MobileTimePicker/Input.js +5 -0
  110. package/esm/MobileTimePicker/MobileTimePicker.js +12 -11
  111. package/esm/MobileTimePicker/MobileTimePicker.stories.js +1 -1
  112. package/esm/MobileTouchable/MobileTouchable.js +6 -1
  113. package/esm/Modal/Modal.js +25 -19
  114. package/esm/Modal/styled.js +1 -1
  115. package/esm/PageFilter/PageFilter.js +15 -10
  116. package/esm/PageForm/PageForm.js +18 -11
  117. package/esm/PageList/PageList.js +10 -9
  118. package/esm/PageSearch/PageSearch.js +10 -9
  119. package/esm/PageSummary/PageSummary.js +32 -19
  120. package/esm/PageSummary/Tags.js +12 -6
  121. package/esm/SideNav/SideNav.js +38 -29
  122. package/esm/SwipeToRefresh/ProgressIndicator.js +5 -4
  123. package/esm/SwipeToRefresh/SwipeToRefresh.js +7 -6
  124. package/esm/SwipeToRefresh/styled.js +1 -1
  125. package/esm/SwipeToRefresh/useSwipe.js +5 -4
  126. package/esm/Tabs/index.js +13 -4
  127. package/esm/Tabs/propTypes.js +23 -0
  128. package/esm/index.js +5 -4
  129. package/package.json +35 -7
  130. package/types/Accordion/Accordion.d.ts +1 -1
  131. package/types/CategoryBox/CategoryBox.d.ts +37 -6
  132. package/types/CollectionBox/CollectionBox.d.ts +37 -6
  133. package/types/GlobalHeader/MobileGlobalHeader.d.ts +43 -6
  134. package/types/GlobalHeader/styles.d.ts +6 -6
  135. package/types/GroupBox/GroupBox.d.ts +44 -7
  136. package/types/InfiniteLoader/Infiniteloader.d.ts +30 -5
  137. package/types/InfiniteLoader/VirtualizedInfiniteLoader.d.ts +56 -8
  138. package/types/InfiniteLoader/styled.d.ts +1 -1
  139. package/types/LoadingPage/Page.d.ts +1 -1
  140. package/types/MobileActionToolbar/MobileActionToolbar.d.ts +16 -4
  141. package/types/MobileActionToolbar/MobileActionToolbarItem.d.ts +15 -2
  142. package/types/MobileBanner/MobileBanner.d.ts +72 -12
  143. package/types/MobileBanner/propTypes.d.ts +67 -11
  144. package/types/MobileBanner/styles.d.ts +10 -10
  145. package/types/MobileCard/Card.d.ts +20 -13
  146. package/types/MobileCard/ExpandableRegion.d.ts +2 -2
  147. package/types/MobileCard/Group.d.ts +18 -8
  148. package/types/MobileCard/StyledCard.d.ts +3 -1
  149. package/types/MobileCard/index.d.ts +13 -12
  150. package/types/MobileCard/props.d.ts +118 -0
  151. package/types/MobileContextMenu/MobileContextMenu.d.ts +13 -2
  152. package/types/MobileContextMenu/MobileContextMenuGroup.d.ts +37 -5
  153. package/types/MobileContextMenu/MobileContextMenuItem.d.ts +54 -9
  154. package/types/MobileDatePicker/MobileDatePicker.d.ts +43 -7
  155. package/types/MobileDropdownMenu/MobileDropdownInput.d.ts +2 -2
  156. package/types/MobileDropdownMenu/MobileDropdownMenu.d.ts +24 -4
  157. package/types/MobileEmtpyState/MobileEmptyState.d.ts +14 -2
  158. package/types/MobileFilterbar/Filterbar.d.ts +9 -2
  159. package/types/MobileFilterbar/FilterbarItem.d.ts +15 -2
  160. package/types/MobileFilterbar/FilterbarSort.d.ts +9 -2
  161. package/types/MobileFooter/Action.d.ts +19 -3
  162. package/types/MobileFooter/Footer.d.ts +8 -1
  163. package/types/MobileFooter/Text.d.ts +8 -1
  164. package/types/MobileListItem/MobileListItem.d.ts +17 -7
  165. package/types/MobilePageHeader/MobilePageHeader.d.ts +21 -11
  166. package/types/MobileSelectList/MobileSelectList.d.ts +3 -3
  167. package/types/MobileSelectList/styled.d.ts +5 -5
  168. package/types/MobileSeparator/Separator.d.ts +23 -5
  169. package/types/MobileTimePicker/MobileTimePicker.d.ts +32 -6
  170. package/types/MobileTouchable/MobileTouchable.d.ts +1 -1
  171. package/types/Modal/Modal.d.ts +50 -9
  172. package/types/Modal/styled.d.ts +7 -6
  173. package/types/PageList/PageList.d.ts +2 -2
  174. package/types/PageSearch/PageSearch.d.ts +2 -2
  175. package/types/PageSummary/Tags.d.ts +4 -4
  176. package/types/SideNav/SideNav.d.ts +26 -5
  177. package/types/SideNav/styles.d.ts +8 -8
  178. package/types/SwipeToRefresh/SwipeToRefresh.d.ts +22 -3
  179. package/types/SwipeToRefresh/styled.d.ts +5 -4
  180. package/types/Tabs/index.d.ts +24 -9
  181. package/types/Tabs/propTypes.d.ts +42 -0
  182. package/types/index.d.ts +5 -1
@@ -0,0 +1,58 @@
1
+ import { PropTypes } from 'react-desc';
2
+
3
+ const cardPropsTypes = {
4
+ /**
5
+ * card height
6
+ */
7
+ height: PropTypes.oneOf(['s', 'm']).description('card height'),
8
+
9
+ /**
10
+ * Defines mobile card title
11
+ */
12
+ children: PropTypes.string.description('Defines mobile card title').isRequired,
13
+
14
+ /**
15
+ * Wheter if the card is expandable or not
16
+ */
17
+ expandable: PropTypes.bool.description('Wheter if the card is expandable or not'),
18
+
19
+ /**
20
+ * content to display in expand card section
21
+ */
22
+ expandedContent: PropTypes.element.description('content to display in expand card section'),
23
+
24
+ /**
25
+ * Icon to the left of the card. Size is adjusted automatically.
26
+ */
27
+ leftAddOn: PropTypes.element.description('Icon to the left of the card. Size is adjusted automatically.'),
28
+
29
+ /**
30
+ * Pass an element to render left. For example a Button with an icon
31
+ */
32
+ leftProp: PropTypes.element.description('Pass an element to render left. For example a Button with an icon'),
33
+
34
+ /**
35
+ * Pass an array of 1 or 2 elements to render right. For example a Button with an icon
36
+ */
37
+ rightProp: PropTypes.arrayOf(PropTypes.element).description('Pass an array of 1 or 2 elements to render right. For example a Button with an icon'),
38
+
39
+ /**
40
+ * Pass an array of 1 or 2 strings
41
+ */
42
+ subText: PropTypes.arrayOf(PropTypes.string).description('Pass an array of 1 or 2 strings'),
43
+
44
+ /**
45
+ * SubIcons component
46
+ */
47
+ subIcons: PropTypes.element.description('SubIcons component'),
48
+
49
+ /**
50
+ * Pass an array of 1, 2 or 3 strings
51
+ */
52
+ details: PropTypes.arrayOf(PropTypes.string).description('Pass an array of 1, 2 or 3 strings'),
53
+ theme: PropTypes.object.description('').isRequired,
54
+ value: PropTypes.number.description(''),
55
+ cardContent: PropTypes.node.description('JSX content for the card')
56
+ };
57
+
58
+ export { cardPropsTypes };
@@ -1,12 +1,19 @@
1
1
  import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
2
2
  import _jsx from '@babel/runtime/helpers/esm/jsx';
3
3
  import 'core-js/modules/web.dom-collections.iterator.js';
4
+ import 'core-js/modules/esnext.async-iterator.map.js';
5
+ import 'core-js/modules/esnext.iterator.map.js';
6
+ import 'core-js/modules/esnext.async-iterator.filter.js';
7
+ import 'core-js/modules/esnext.iterator.constructor.js';
8
+ import 'core-js/modules/esnext.iterator.filter.js';
9
+ import 'core-js/modules/esnext.async-iterator.for-each.js';
10
+ import 'core-js/modules/esnext.iterator.for-each.js';
4
11
  import React, { useState, useMemo, useRef } from 'react';
5
12
  import { noop } from 'lodash';
6
13
  import { PropTypes, describe } from 'react-desc';
7
14
  import styled from 'styled-components';
8
- import { Grid } from '@elliemae/ds-basic/Grid';
9
- import { DSBackdrop } from '@elliemae/ds-basic';
15
+ import { Grid } from '@elliemae/ds-grid';
16
+ import { DSBackdrop } from '@elliemae/ds-backdrop';
10
17
  import { truncate, withTheme } from '@elliemae/ds-system';
11
18
  import Group from '@elliemae/ds-shared/GroupContext/Group';
12
19
  import { DSMobileContextMenuGroup } from './MobileContextMenuGroup.js';
@@ -29,22 +36,23 @@ const HeaderContainer = /*#__PURE__*/styled(Grid).withConfig({
29
36
 
30
37
  const isArr = prop => Array.isArray(prop);
31
38
 
32
- const DSMobileContextMenu = withTheme(({
33
- open = false,
34
- title = '',
35
- multiple = false,
36
- singleSelect = false,
37
- onChange = noop,
38
- onClickOutside = noop,
39
- children,
40
- theme,
41
- backdropZIndex,
42
- zIndex = 1,
43
- dataTestid = 'mobile-context-menu',
44
- buttonFooter = null,
45
- onApply = noop,
46
- selecteds: initSelecteds
47
- }) => {
39
+ const DSMobileContextMenu = withTheme(_ref => {
40
+ let {
41
+ open = false,
42
+ title = '',
43
+ multiple = false,
44
+ singleSelect = false,
45
+ onChange = noop,
46
+ onClickOutside = noop,
47
+ children,
48
+ theme,
49
+ backdropZIndex,
50
+ zIndex = 1,
51
+ dataTestid = 'mobile-context-menu',
52
+ buttonFooter = null,
53
+ onApply = noop,
54
+ selecteds: initSelecteds
55
+ } = _ref;
48
56
  const [selectedItems, setSelectedItems] = useState([]);
49
57
  const trueSelected = useMemo(() => initSelecteds !== undefined ? initSelecteds : [...selectedItems], [initSelecteds, selectedItems]);
50
58
  const containerRef = useRef(null);
@@ -1,8 +1,15 @@
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/esnext.async-iterator.map.js';
4
+ import 'core-js/modules/esnext.iterator.map.js';
5
+ import 'core-js/modules/esnext.async-iterator.filter.js';
6
+ import 'core-js/modules/esnext.iterator.constructor.js';
7
+ import 'core-js/modules/esnext.iterator.filter.js';
8
+ import 'core-js/modules/esnext.async-iterator.for-each.js';
9
+ import 'core-js/modules/esnext.iterator.for-each.js';
3
10
  import React from 'react';
4
11
  import styled from 'styled-components';
5
- import { Grid } from '@elliemae/ds-basic';
12
+ import { Grid } from '@elliemae/ds-grid';
6
13
  import { noop } from 'lodash';
7
14
  import { PropTypes, describe } from 'react-desc';
8
15
 
@@ -13,32 +20,35 @@ const Title = /*#__PURE__*/styled.div.withConfig({
13
20
  componentId: "sc-atfpfh-0"
14
21
  })(["height:24px;line-height:24px;font-size:12px;border-top:1px solid ", ";background:", ";padding:0 ", ";color:", ";font-weight:", ";"], props => props.theme.colors.brand['300'], props => props.theme.colors.brand['200'], props => props.theme.space.xs, props => props.theme.colors.neutral['700'], props => props.theme.fontWeights.semibold);
15
22
 
16
- const DSMobileContextMenuGroup = ({
17
- title,
18
- isMulti,
19
- singleSelect,
20
- children,
21
- value: groupValue,
22
- selectedItems
23
- }) => /*#__PURE__*/_jsx(Grid, {}, void 0, /*#__PURE__*/_jsx(Grid, {}, void 0, /*#__PURE__*/_jsx(Title, {}, void 0, title)), /*#__PURE__*/_jsx(Grid, {}, void 0, React.Children.map(children, (child, index) => {
24
- const {
25
- onClick = noop
26
- } = child.props;
27
- const value = "".concat(groupValue, ":").concat(index);
28
- let isSelected;
29
- if (singleSelect) isSelected = selectedItems === value;else if (isMulti) isSelected = selectedItems.includes(value);
30
- return /*#__PURE__*/React.cloneElement(child, {
31
- value,
32
- key: 'group.'.concat(index),
33
- isGroup: true,
23
+ const DSMobileContextMenuGroup = _ref => {
24
+ let {
25
+ title,
34
26
  isMulti,
35
27
  singleSelect,
36
- isSelected,
37
- onClick: e => onClick(e, _objectSpread({
38
- value
39
- }, child.props))
40
- });
41
- })));
28
+ children,
29
+ value: groupValue,
30
+ selectedItems
31
+ } = _ref;
32
+ return /*#__PURE__*/_jsx(Grid, {}, void 0, /*#__PURE__*/_jsx(Grid, {}, void 0, /*#__PURE__*/_jsx(Title, {}, void 0, title)), /*#__PURE__*/_jsx(Grid, {}, void 0, React.Children.map(children, (child, index) => {
33
+ const {
34
+ onClick = noop
35
+ } = child.props;
36
+ const value = "".concat(groupValue, ":").concat(index);
37
+ let isSelected;
38
+ if (singleSelect) isSelected = selectedItems === value;else if (isMulti) isSelected = selectedItems.includes(value);
39
+ return /*#__PURE__*/React.cloneElement(child, {
40
+ value,
41
+ key: 'group.'.concat(index),
42
+ isGroup: true,
43
+ isMulti,
44
+ singleSelect,
45
+ isSelected,
46
+ onClick: e => onClick(e, _objectSpread({
47
+ value
48
+ }, child.props))
49
+ });
50
+ })));
51
+ };
42
52
 
43
53
  const props = {
44
54
  /**
@@ -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
 
@@ -34,24 +39,25 @@ const Title = /*#__PURE__*/styled.span.withConfig({
34
39
  const Label = /*#__PURE__*/styled.span.withConfig({
35
40
  componentId: "sc-20od94-3"
36
41
  })(["font-size:13px;color:", ";"], props => props.theme.colors.neutral['600']);
37
- const CheckMark = /*#__PURE__*/styled(DSCheckmark).withConfig({
42
+ const CheckMark = /*#__PURE__*/styled(Checkmark).withConfig({
38
43
  componentId: "sc-20od94-4"
39
44
  })(["fill:", ";"], props => props.theme.colors.brand['600']);
40
45
 
41
- const DSMobileContextMenuItem = ({
42
- label,
43
- title,
44
- leftProp,
45
- isGroup,
46
- isMulti,
47
- singleSelect,
48
- isSelected,
49
- // eslint-disable-next-line @typescript-eslint/no-empty-function
50
- onClick = () => {},
51
- value
52
- }) => {
53
- var _Checkbox, _Grid, _Title;
54
-
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;
55
61
  return /*#__PURE__*/_jsx(GroupItem, {
56
62
  render: context => {
57
63
  const {
@@ -62,7 +68,7 @@ const DSMobileContextMenuItem = ({
62
68
  let showLeftAddon = isSelected;
63
69
  if (isMulti || !singleSelect) showLeftAddon = true;
64
70
  let leftAddon = leftProp || null;
65
- if (isMulti) leftAddon = _Checkbox || (_Checkbox = /*#__PURE__*/_jsx(DSCheckbox, {
71
+ if (isMulti) leftAddon = _DSCheckbox || (_DSCheckbox = /*#__PURE__*/_jsx(DSCheckbox, {
66
72
  checked: isSelected,
67
73
  "data-testid": "leftAddon-checkbox"
68
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
  /*
@@ -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,5 +1,7 @@
1
1
  import _jsx from '@babel/runtime/helpers/esm/jsx';
2
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';
3
5
  import React, { useState, useRef } from 'react';
4
6
  import { PropTypes, describe } from 'react-desc';
5
7
  import { DSMobileContextMenu } from '../MobileContextMenu/MobileContextMenu.js';
@@ -8,22 +10,23 @@ import '../MobileContextMenu/MobileContextMenuGroup.js';
8
10
  import { DSMobileDropdownTriggerInput } from './MobileDropdownInput.js';
9
11
  import { jsxs, Fragment } from 'react/jsx-runtime';
10
12
 
11
- const DSMobileDropdownMenu = ({
12
- placeholder,
13
- options = [],
14
- title,
15
- value,
16
- itemsProps = {
17
- label: undefined,
18
- leftProp: undefined,
19
- isGroup: false,
20
- isMulti: false,
21
- singleSelect: false,
22
- isItemSelected: () => false,
23
- // eslint-disable-next-line @typescript-eslint/no-empty-function
24
- onClick: () => {}
25
- }
26
- }) => {
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;
27
30
  const [menuOpen, setMenuOpen] = useState(false);
28
31
  const inputRef = useRef(null);
29
32
  const inputProps = React.useMemo(() => ({
@@ -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 */