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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (146) hide show
  1. package/cjs/Accordion/Accordion.js +5 -5
  2. package/cjs/Accordion/index.js +5 -5
  3. package/cjs/CategoryBox/CategoryBox.js +14 -13
  4. package/cjs/CollectionBox/CollectionBox.js +15 -14
  5. package/cjs/FullPageContainer/FullPageContainer.js +7 -2
  6. package/cjs/FullPageContainer/FullPageContainerScroll.js +7 -2
  7. package/cjs/FullPageContainer/useMobileHeight.js +1 -0
  8. package/cjs/GlobalHeader/MobileGlobalHeader.js +29 -24
  9. package/cjs/GlobalHeader/styles.js +5 -11
  10. package/cjs/GroupBox/GroupBox.js +15 -14
  11. package/cjs/InfiniteLoader/Infiniteloader.js +11 -9
  12. package/cjs/InfiniteLoader/Loader.js +12 -9
  13. package/cjs/InfiniteLoader/VirtualizedInfiniteLoader.js +50 -22
  14. package/cjs/LoadingPage/Page.js +25 -12
  15. package/cjs/MobileActionToolbar/MobileActionToolbar.js +8 -7
  16. package/cjs/MobileActionToolbar/MobileActionToolbarItem.js +6 -1
  17. package/cjs/MobileBanner/MobileBanner.js +22 -16
  18. package/cjs/MobileBanner/styles.js +128 -59
  19. package/cjs/MobileBanner/utils/icons.js +5 -12
  20. package/cjs/MobileBanner/utils/styleHelpers.js +20 -47
  21. package/cjs/MobileCard/ActionAddon.js +16 -14
  22. package/cjs/MobileCard/Card.js +26 -22
  23. package/cjs/MobileCard/CardIcons.js +21 -16
  24. package/cjs/MobileCard/ExpandChevron.js +8 -10
  25. package/cjs/MobileCard/ExpandableRegion.js +7 -7
  26. package/cjs/MobileCard/Group.js +23 -17
  27. package/cjs/MobileCard/useHeight.js +1 -0
  28. package/cjs/MobileContextMenu/MobileContextMenu.js +37 -28
  29. package/cjs/MobileContextMenu/MobileContextMenuGroup.js +35 -25
  30. package/cjs/MobileContextMenu/MobileContextMenuItem.js +30 -36
  31. package/cjs/MobileDatePicker/Input.js +5 -0
  32. package/cjs/MobileDatePicker/MobileDatePicker.js +16 -17
  33. package/cjs/MobileDropdownMenu/MobileDropdownInput.js +27 -17
  34. package/cjs/MobileDropdownMenu/MobileDropdownMenu.js +21 -17
  35. package/cjs/MobileEmtpyState/MobileEmptyState.js +10 -8
  36. package/cjs/MobileFilterbar/Filterbar.js +13 -10
  37. package/cjs/MobileFilterbar/FilterbarItem.js +15 -12
  38. package/cjs/MobileFilterbar/FilterbarSort.js +17 -14
  39. package/cjs/MobileFooter/Action.js +27 -24
  40. package/cjs/MobileFooter/Footer.js +17 -10
  41. package/cjs/MobileFooter/Text.js +6 -3
  42. package/cjs/MobileListItem/MobileListItem.js +15 -14
  43. package/cjs/MobilePageHeader/MobilePageHeader.js +37 -36
  44. package/cjs/MobileSelectList/MobileSelectList.js +32 -24
  45. package/cjs/MobileSelectList/styled.js +9 -11
  46. package/cjs/MobileSeparator/Separator.js +30 -18
  47. package/cjs/MobileTimePicker/Input.js +5 -0
  48. package/cjs/MobileTimePicker/MobileTimePicker.js +16 -17
  49. package/cjs/MobileTimePicker/MobileTimePicker.stories.js +2 -2
  50. package/cjs/MobileTouchable/MobileTouchable.js +8 -2
  51. package/cjs/Modal/Modal.js +32 -27
  52. package/cjs/Modal/styled.js +11 -12
  53. package/cjs/PageFilter/PageFilter.js +20 -15
  54. package/cjs/PageForm/PageForm.js +22 -15
  55. package/cjs/PageList/PageList.js +12 -11
  56. package/cjs/PageSearch/PageSearch.js +14 -13
  57. package/cjs/PageSummary/PageSummary.js +34 -21
  58. package/cjs/PageSummary/Tags.js +12 -6
  59. package/cjs/SideNav/SideNav.js +43 -34
  60. package/cjs/SwipeToRefresh/ProgressIndicator.js +10 -9
  61. package/cjs/SwipeToRefresh/SwipeToRefresh.js +10 -9
  62. package/cjs/SwipeToRefresh/styled.js +4 -4
  63. package/cjs/SwipeToRefresh/useSwipe.js +6 -4
  64. package/cjs/Tabs/index.js +8 -3
  65. package/cjs/index.js +9 -5
  66. package/esm/Accordion/Accordion.js +1 -1
  67. package/esm/Accordion/index.js +1 -1
  68. package/esm/CategoryBox/CategoryBox.js +11 -10
  69. package/esm/CollectionBox/CollectionBox.js +10 -9
  70. package/esm/FullPageContainer/FullPageContainer.js +6 -1
  71. package/esm/FullPageContainer/FullPageContainerScroll.js +6 -1
  72. package/esm/FullPageContainer/useMobileHeight.js +1 -0
  73. package/esm/GlobalHeader/MobileGlobalHeader.js +21 -14
  74. package/esm/GlobalHeader/styles.js +4 -11
  75. package/esm/GroupBox/GroupBox.js +12 -11
  76. package/esm/InfiniteLoader/Infiniteloader.js +9 -7
  77. package/esm/InfiniteLoader/Loader.js +12 -9
  78. package/esm/InfiniteLoader/VirtualizedInfiniteLoader.js +51 -23
  79. package/esm/LoadingPage/Page.js +25 -12
  80. package/esm/MobileActionToolbar/MobileActionToolbar.js +7 -6
  81. package/esm/MobileActionToolbar/MobileActionToolbarItem.js +6 -1
  82. package/esm/MobileBanner/MobileBanner.js +21 -14
  83. package/esm/MobileBanner/styles.js +128 -59
  84. package/esm/MobileBanner/utils/icons.js +1 -4
  85. package/esm/MobileBanner/utils/styleHelpers.js +16 -47
  86. package/esm/MobileCard/ActionAddon.js +16 -13
  87. package/esm/MobileCard/Card.js +20 -16
  88. package/esm/MobileCard/CardIcons.js +20 -15
  89. package/esm/MobileCard/ExpandChevron.js +8 -8
  90. package/esm/MobileCard/ExpandableRegion.js +7 -7
  91. package/esm/MobileCard/Group.js +21 -15
  92. package/esm/MobileCard/useHeight.js +1 -0
  93. package/esm/MobileContextMenu/MobileContextMenu.js +30 -21
  94. package/esm/MobileContextMenu/MobileContextMenuGroup.js +35 -25
  95. package/esm/MobileContextMenu/MobileContextMenuItem.js +26 -30
  96. package/esm/MobileDatePicker/Input.js +5 -0
  97. package/esm/MobileDatePicker/MobileDatePicker.js +13 -12
  98. package/esm/MobileDropdownMenu/MobileDropdownInput.js +27 -16
  99. package/esm/MobileDropdownMenu/MobileDropdownMenu.js +21 -17
  100. package/esm/MobileEmtpyState/MobileEmptyState.js +10 -7
  101. package/esm/MobileFilterbar/Filterbar.js +13 -10
  102. package/esm/MobileFilterbar/FilterbarItem.js +15 -12
  103. package/esm/MobileFilterbar/FilterbarSort.js +17 -14
  104. package/esm/MobileFooter/Action.js +26 -23
  105. package/esm/MobileFooter/Footer.js +14 -7
  106. package/esm/MobileFooter/Text.js +6 -3
  107. package/esm/MobileListItem/MobileListItem.js +11 -10
  108. package/esm/MobilePageHeader/MobilePageHeader.js +19 -17
  109. package/esm/MobileSelectList/MobileSelectList.js +28 -19
  110. package/esm/MobileSelectList/styled.js +4 -4
  111. package/esm/MobileSeparator/Separator.js +28 -16
  112. package/esm/MobileTimePicker/Input.js +5 -0
  113. package/esm/MobileTimePicker/MobileTimePicker.js +13 -12
  114. package/esm/MobileTimePicker/MobileTimePicker.stories.js +1 -1
  115. package/esm/MobileTouchable/MobileTouchable.js +7 -1
  116. package/esm/Modal/Modal.js +27 -21
  117. package/esm/Modal/styled.js +4 -6
  118. package/esm/PageFilter/PageFilter.js +15 -10
  119. package/esm/PageForm/PageForm.js +18 -11
  120. package/esm/PageList/PageList.js +10 -9
  121. package/esm/PageSearch/PageSearch.js +10 -9
  122. package/esm/PageSummary/PageSummary.js +32 -19
  123. package/esm/PageSummary/Tags.js +12 -6
  124. package/esm/SideNav/SideNav.js +39 -29
  125. package/esm/SwipeToRefresh/ProgressIndicator.js +9 -8
  126. package/esm/SwipeToRefresh/SwipeToRefresh.js +9 -8
  127. package/esm/SwipeToRefresh/styled.js +1 -1
  128. package/esm/SwipeToRefresh/useSwipe.js +6 -4
  129. package/esm/Tabs/index.js +6 -1
  130. package/esm/index.js +4 -3
  131. package/package.json +15 -7
  132. package/types/Accordion/Accordion.d.ts +1 -1
  133. package/types/CategoryBox/CategoryBox.d.ts +1 -1
  134. package/types/CollectionBox/CollectionBox.d.ts +1 -1
  135. package/types/GroupBox/GroupBox.d.ts +1 -1
  136. package/types/InfiniteLoader/Infiniteloader.d.ts +1 -1
  137. package/types/MobileBanner/styles.d.ts +60 -1
  138. package/types/MobileDatePicker/MobileDatePicker.d.ts +1 -1
  139. package/types/MobileSelectList/styled.d.ts +4 -4
  140. package/types/MobileTimePicker/MobileTimePicker.d.ts +1 -1
  141. package/types/Modal/styled.d.ts +7 -6
  142. package/types/SideNav/SideNav.d.ts +1 -1
  143. package/types/SwipeToRefresh/styled.d.ts +4 -3
  144. package/types/index.d.ts +5 -1
  145. package/cjs/package.json +0 -7
  146. package/esm/package.json +0 -7
@@ -1,4 +1,5 @@
1
1
  import _jsx from '@babel/runtime/helpers/esm/jsx';
2
+ import 'core-js/modules/web.dom-collections.iterator.js';
2
3
  import { useRef, useState, useEffect } from 'react';
3
4
  import styled from 'styled-components';
4
5
  import { truncate, border } from '@elliemae/ds-system';
@@ -9,15 +10,14 @@ const RegionWrapper = /*#__PURE__*/styled.div.withConfig({
9
10
  })(["width:100%;height:100%;"]);
10
11
  const Region = /*#__PURE__*/styled.div.withConfig({
11
12
  componentId: "sc-mduzz9-1"
12
- })(["display:flex;", " transition:max-height ", " linear;max-height:0;", " align-items:center;", ";border-top:", ";font-weight:", ";"], props => props.hide ? 'visibility: hidden;' : '', props => props.animate ? '0.25s' : '0.20s', props => props.animate ? `
13
- max-height: ${props.refHeight}px;
14
- ` : '', truncate(), props => border(props.theme.colors.neutral['300']), props => props.theme.fontWeights.regular);
15
- const ExpandableRegion = ({
16
- show,
17
- content
18
- }) => {
13
+ })(["display:flex;", " transition:max-height ", " linear;max-height:0;", " align-items:center;", ";border-top:", ";font-weight:", ";"], props => props.hide ? 'visibility: hidden;' : '', props => props.animate ? '0.25s' : '0.20s', props => props.animate ? "\n max-height: ".concat(props.refHeight, "px;\n ") : '', truncate(), props => border(props.theme.colors.neutral['300']), props => props.theme.fontWeights.regular);
14
+ const ExpandableRegion = _ref => {
19
15
  var _ref$current;
20
16
 
17
+ let {
18
+ show,
19
+ content
20
+ } = _ref;
21
21
  const ref = useRef(null); // triggers transition
22
22
 
23
23
  const [animate, setAnimate] = useState(show); // needed to properly handle the transition. Hide after transition ends
@@ -1,34 +1,40 @@
1
1
  import _jsx from '@babel/runtime/helpers/esm/jsx';
2
+ import 'core-js/modules/esnext.async-iterator.map.js';
3
+ import 'core-js/modules/esnext.iterator.map.js';
2
4
  import React from 'react';
3
5
  import { PropTypes, describe } from 'react-desc';
4
6
  import styled from 'styled-components';
5
7
  import Group from '@elliemae/ds-shared/GroupContext/Group';
6
- import { Grid } from '@elliemae/ds-basic/Grid';
8
+ import { Grid } from '@elliemae/ds-grid';
7
9
  import { truncate, __UNSAFE_SPACE_TO_DIMSUM, color, border, withTheme } from '@elliemae/ds-system';
8
10
  import { StyledCard } from './StyledCard.js';
9
11
 
10
12
  const GroupGrid = /*#__PURE__*/styled(Grid).withConfig({
11
13
  componentId: "sc-17xukaf-0"
12
- })(["", "{border-top:none;}", ""], StyledCard, ({
13
- theme,
14
- withTopBorder
15
- }) => withTopBorder ? `border-top: ${border(theme.colors.neutral['100'])}` : '');
14
+ })(["", "{border-top:none;}", ""], StyledCard, _ref => {
15
+ let {
16
+ theme,
17
+ withTopBorder
18
+ } = _ref;
19
+ return withTopBorder ? "border-top: ".concat(border(theme.colors.neutral['100'])) : '';
20
+ });
16
21
  const GroupTitle = /*#__PURE__*/styled.span.withConfig({
17
22
  componentId: "sc-17xukaf-1"
18
23
  })(["", ""], truncate());
19
24
  const GroupTitleGrid = /*#__PURE__*/styled.div.withConfig({
20
25
  componentId: "sc-17xukaf-2"
21
- })(["display:flex;justify-content:space-between;padding:0 ", ";font-size:", ";", " font-weight:", ";background-color:", ";border-top:", ";line-height:", ";@media (min-width:1024px){background-color:", ";border-top:", ";}"], props => props.theme.space.xs, props => `calc(${__UNSAFE_SPACE_TO_DIMSUM(props.theme.space.m)} / 2)`, color('neutral', '700'), props => props.theme.fontWeights.semibold, props => props.theme.colors.brand['200'], props => border(props.theme.colors.brand['300']), props => __UNSAFE_SPACE_TO_DIMSUM(props.theme.space.m), props => props.theme.colors.neutral['080'], props => border(props.theme.colors.neutral['080']));
26
+ })(["display:flex;justify-content:space-between;padding:0 ", ";font-size:", ";", " font-weight:", ";background-color:", ";border-top:", ";line-height:", ";@media (min-width:1024px){background-color:", ";border-top:", ";}"], props => props.theme.space.xs, props => "calc(".concat(__UNSAFE_SPACE_TO_DIMSUM(props.theme.space.m), " / 2)"), color('neutral', '700'), props => props.theme.fontWeights.semibold, props => props.theme.colors.brand['200'], props => border(props.theme.colors.brand['300']), props => __UNSAFE_SPACE_TO_DIMSUM(props.theme.space.m), props => props.theme.colors.neutral['080'], props => border(props.theme.colors.neutral['080']));
22
27
 
23
- const MobileCardGroup = ({
24
- children,
25
- theme,
26
- title,
27
- action,
28
- activeValue,
29
- allowMultipleOpen = false,
30
- onChange = () => null
31
- }) => {
28
+ const MobileCardGroup = _ref2 => {
29
+ let {
30
+ children,
31
+ theme,
32
+ title,
33
+ action,
34
+ activeValue,
35
+ allowMultipleOpen = false,
36
+ onChange = () => null
37
+ } = _ref2;
32
38
  const rows = !title ? ['auto'] : [__UNSAFE_SPACE_TO_DIMSUM(theme.space.m), 'auto'];
33
39
  return /*#__PURE__*/_jsx(Group, {
34
40
  activeValue: activeValue,
@@ -1,3 +1,4 @@
1
+ import 'core-js/modules/web.dom-collections.iterator.js';
1
2
  import { useState, useEffect } from 'react';
2
3
  import { rem } from 'polished';
3
4
 
@@ -1,11 +1,19 @@
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.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';
3
11
  import React, { useState, useMemo, useRef } from 'react';
4
12
  import { noop } from 'lodash';
5
13
  import { PropTypes, describe } from 'react-desc';
6
14
  import styled from 'styled-components';
7
- import { Grid } from '@elliemae/ds-basic/Grid';
8
- import { DSBackdrop } from '@elliemae/ds-basic';
15
+ import { Grid } from '@elliemae/ds-grid';
16
+ import { DSBackdrop } from '@elliemae/ds-backdrop';
9
17
  import { truncate, withTheme } from '@elliemae/ds-system';
10
18
  import Group from '@elliemae/ds-shared/GroupContext/Group';
11
19
  import { DSMobileContextMenuGroup } from './MobileContextMenuGroup.js';
@@ -18,7 +26,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
18
26
  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; }
19
27
  const StyledContainer = /*#__PURE__*/styled(Grid).withConfig({
20
28
  componentId: "sc-15ys5tq-0"
21
- })(["background:", ";z-index:", ";width:", ";position:fixed;bottom:0;left:", ";max-height:90vh;border-top-left-radius:5px;border-top-right-radius:5px;box-shadow:0 0px 24px 0 rgba(0,0,0,0.5),0 0px 11px 0 rgba(0,0,0,0.5);"], props => props.theme.colors.neutral['000'], props => props.zIndex, props => `calc(100% - ${props.theme.space.xs})`, props => props.theme.space.xxs);
29
+ })(["background:", ";z-index:", ";width:", ";position:fixed;bottom:0;left:", ";max-height:90vh;border-top-left-radius:5px;border-top-right-radius:5px;box-shadow:0 0px 24px 0 rgba(0,0,0,0.5),0 0px 11px 0 rgba(0,0,0,0.5);"], props => props.theme.colors.neutral['000'], props => props.zIndex, props => "calc(100% - ".concat(props.theme.space.xs, ")"), props => props.theme.space.xxs);
22
30
  const StyledTitle = /*#__PURE__*/styled(Grid).withConfig({
23
31
  componentId: "sc-15ys5tq-1"
24
32
  })(["font-size:16px;font-weight:", ";color:", ";", " & > span{height:20px;width:20px;}& > span > svg,svg:not([fill]){height:20px;width:20px;fill:", ";}"], props => props.theme.fontWeights.semibold, props => props.theme.colors.neutral['000'], truncate(), props => props.theme.colors.neutral['000']);
@@ -28,22 +36,23 @@ const HeaderContainer = /*#__PURE__*/styled(Grid).withConfig({
28
36
 
29
37
  const isArr = prop => Array.isArray(prop);
30
38
 
31
- const DSMobileContextMenu = withTheme(({
32
- open = false,
33
- title = '',
34
- multiple = false,
35
- singleSelect = false,
36
- onChange = noop,
37
- onClickOutside = noop,
38
- children,
39
- theme,
40
- backdropZIndex,
41
- zIndex = 1,
42
- dataTestid = 'mobile-context-menu',
43
- buttonFooter = null,
44
- onApply = noop,
45
- selecteds: initSelecteds
46
- }) => {
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;
47
56
  const [selectedItems, setSelectedItems] = useState([]);
48
57
  const trueSelected = useMemo(() => initSelecteds !== undefined ? initSelecteds : [...selectedItems], [initSelecteds, selectedItems]);
49
58
  const containerRef = useRef(null);
@@ -111,7 +120,7 @@ const DSMobileContextMenu = withTheme(({
111
120
  if (singleSelect) isSelected = trueSelected === value;else if (multiple) isSelected = trueSelected.includes(value);
112
121
  return /*#__PURE__*/React.cloneElement(child, {
113
122
  value,
114
- key: `cm.${ii}`,
123
+ key: "cm.".concat(ii),
115
124
  isMulti: multiple,
116
125
  singleSelect,
117
126
  isSelected,
@@ -124,7 +133,7 @@ const DSMobileContextMenu = withTheme(({
124
133
  alignItems: "center"
125
134
  }, void 0, /*#__PURE__*/React.cloneElement(buttonFooter, _objectSpread(_objectSpread({}, buttonFooter.props), {}, {
126
135
  containerProps: {
127
- 'data-testid': `${dataTestid}--btn`
136
+ 'data-testid': "".concat(dataTestid, "--btn")
128
137
  },
129
138
  buttonType: 'primary',
130
139
  size: 'l',
@@ -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 = `${groupValue}:${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
 
@@ -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,