@elliemae/ds-mobile 2.0.0-next.9 → 2.0.0-rc.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 (174) 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 +26 -22
  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/MobileContextMenu/MobileContextMenu.js +33 -25
  26. package/cjs/MobileContextMenu/MobileContextMenuGroup.js +35 -25
  27. package/cjs/MobileContextMenu/MobileContextMenuItem.js +29 -25
  28. package/cjs/MobileDatePicker/Input.js +5 -0
  29. package/cjs/MobileDatePicker/MobileDatePicker.js +15 -16
  30. package/cjs/MobileDropdownMenu/MobileDropdownInput.js +27 -17
  31. package/cjs/MobileDropdownMenu/MobileDropdownMenu.js +19 -16
  32. package/cjs/MobileEmtpyState/MobileEmptyState.js +10 -8
  33. package/cjs/MobileFilterbar/Filterbar.js +13 -10
  34. package/cjs/MobileFilterbar/FilterbarItem.js +15 -12
  35. package/cjs/MobileFilterbar/FilterbarSort.js +17 -14
  36. package/cjs/MobileFooter/Action.js +27 -24
  37. package/cjs/MobileFooter/Footer.js +15 -8
  38. package/cjs/MobileFooter/Text.js +6 -3
  39. package/cjs/MobileListItem/MobileListItem.js +14 -13
  40. package/cjs/MobilePageHeader/MobilePageHeader.js +35 -35
  41. package/cjs/MobileSelectList/MobileSelectList.js +29 -22
  42. package/cjs/MobileSelectList/styled.js +9 -11
  43. package/cjs/MobileSeparator/Separator.js +30 -18
  44. package/cjs/MobileTimePicker/Input.js +5 -0
  45. package/cjs/MobileTimePicker/MobileTimePicker.js +15 -16
  46. package/cjs/MobileTimePicker/MobileTimePicker.stories.js +2 -2
  47. package/cjs/MobileTouchable/MobileTouchable.js +7 -2
  48. package/cjs/Modal/Modal.js +30 -25
  49. package/cjs/Modal/styled.js +7 -7
  50. package/cjs/PageFilter/PageFilter.js +20 -15
  51. package/cjs/PageForm/PageForm.js +22 -15
  52. package/cjs/PageList/PageList.js +12 -11
  53. package/cjs/PageSearch/PageSearch.js +14 -13
  54. package/cjs/PageSummary/PageSummary.js +34 -21
  55. package/cjs/PageSummary/Tags.js +12 -6
  56. package/cjs/SideNav/SideNav.js +42 -34
  57. package/cjs/SwipeToRefresh/ProgressIndicator.js +6 -5
  58. package/cjs/SwipeToRefresh/SwipeToRefresh.js +8 -7
  59. package/cjs/SwipeToRefresh/styled.js +4 -4
  60. package/cjs/SwipeToRefresh/useSwipe.js +5 -4
  61. package/cjs/Tabs/index.js +8 -3
  62. package/cjs/index.js +9 -5
  63. package/esm/Accordion/Accordion.js +1 -1
  64. package/esm/Accordion/index.js +1 -1
  65. package/esm/CategoryBox/CategoryBox.js +9 -8
  66. package/esm/CollectionBox/CollectionBox.js +9 -8
  67. package/esm/FullPageContainer/FullPageContainer.js +6 -1
  68. package/esm/FullPageContainer/FullPageContainerScroll.js +6 -1
  69. package/esm/GlobalHeader/MobileGlobalHeader.js +20 -14
  70. package/esm/GroupBox/GroupBox.js +10 -9
  71. package/esm/InfiniteLoader/Infiniteloader.js +9 -7
  72. package/esm/InfiniteLoader/Loader.js +12 -9
  73. package/esm/InfiniteLoader/VirtualizedInfiniteLoader.js +50 -23
  74. package/esm/LoadingPage/Page.js +24 -12
  75. package/esm/MobileActionToolbar/MobileActionToolbar.js +7 -6
  76. package/esm/MobileActionToolbar/MobileActionToolbarItem.js +6 -1
  77. package/esm/MobileBanner/MobileBanner.js +20 -14
  78. package/esm/MobileBanner/styles.js +128 -59
  79. package/esm/MobileBanner/utils/icons.js +1 -4
  80. package/esm/MobileBanner/utils/styleHelpers.js +8 -4
  81. package/esm/MobileCard/ActionAddon.js +16 -13
  82. package/esm/MobileCard/Card.js +20 -16
  83. package/esm/MobileCard/CardIcons.js +20 -15
  84. package/esm/MobileCard/ExpandChevron.js +8 -8
  85. package/esm/MobileCard/ExpandableRegion.js +5 -4
  86. package/esm/MobileCard/Group.js +20 -14
  87. package/esm/MobileContextMenu/MobileContextMenu.js +26 -18
  88. package/esm/MobileContextMenu/MobileContextMenuGroup.js +35 -25
  89. package/esm/MobileContextMenu/MobileContextMenuItem.js +25 -19
  90. package/esm/MobileDatePicker/Input.js +5 -0
  91. package/esm/MobileDatePicker/MobileDatePicker.js +12 -11
  92. package/esm/MobileDropdownMenu/MobileDropdownInput.js +27 -16
  93. package/esm/MobileDropdownMenu/MobileDropdownMenu.js +19 -16
  94. package/esm/MobileEmtpyState/MobileEmptyState.js +10 -7
  95. package/esm/MobileFilterbar/Filterbar.js +13 -10
  96. package/esm/MobileFilterbar/FilterbarItem.js +15 -12
  97. package/esm/MobileFilterbar/FilterbarSort.js +17 -14
  98. package/esm/MobileFooter/Action.js +26 -23
  99. package/esm/MobileFooter/Footer.js +12 -5
  100. package/esm/MobileFooter/Text.js +6 -3
  101. package/esm/MobileListItem/MobileListItem.js +10 -9
  102. package/esm/MobilePageHeader/MobilePageHeader.js +17 -16
  103. package/esm/MobileSelectList/MobileSelectList.js +25 -17
  104. package/esm/MobileSelectList/styled.js +4 -4
  105. package/esm/MobileSeparator/Separator.js +28 -16
  106. package/esm/MobileTimePicker/Input.js +5 -0
  107. package/esm/MobileTimePicker/MobileTimePicker.js +12 -11
  108. package/esm/MobileTimePicker/MobileTimePicker.stories.js +1 -1
  109. package/esm/MobileTouchable/MobileTouchable.js +6 -1
  110. package/esm/Modal/Modal.js +25 -19
  111. package/esm/Modal/styled.js +1 -1
  112. package/esm/PageFilter/PageFilter.js +15 -10
  113. package/esm/PageForm/PageForm.js +18 -11
  114. package/esm/PageList/PageList.js +10 -9
  115. package/esm/PageSearch/PageSearch.js +10 -9
  116. package/esm/PageSummary/PageSummary.js +32 -19
  117. package/esm/PageSummary/Tags.js +12 -6
  118. package/esm/SideNav/SideNav.js +38 -29
  119. package/esm/SwipeToRefresh/ProgressIndicator.js +5 -4
  120. package/esm/SwipeToRefresh/SwipeToRefresh.js +7 -6
  121. package/esm/SwipeToRefresh/styled.js +1 -1
  122. package/esm/SwipeToRefresh/useSwipe.js +5 -4
  123. package/esm/Tabs/index.js +6 -1
  124. package/esm/index.js +4 -3
  125. package/package.json +27 -7
  126. package/types/Accordion/Accordion.d.ts +1 -1
  127. package/types/CategoryBox/CategoryBox.d.ts +37 -6
  128. package/types/CollectionBox/CollectionBox.d.ts +37 -6
  129. package/types/GlobalHeader/MobileGlobalHeader.d.ts +43 -6
  130. package/types/GlobalHeader/styles.d.ts +6 -6
  131. package/types/GroupBox/GroupBox.d.ts +44 -7
  132. package/types/InfiniteLoader/Infiniteloader.d.ts +30 -5
  133. package/types/InfiniteLoader/VirtualizedInfiniteLoader.d.ts +56 -8
  134. package/types/InfiniteLoader/styled.d.ts +1 -1
  135. package/types/LoadingPage/Page.d.ts +1 -1
  136. package/types/MobileActionToolbar/MobileActionToolbar.d.ts +16 -4
  137. package/types/MobileActionToolbar/MobileActionToolbarItem.d.ts +15 -2
  138. package/types/MobileBanner/MobileBanner.d.ts +72 -12
  139. package/types/MobileBanner/propTypes.d.ts +67 -11
  140. package/types/MobileBanner/styles.d.ts +10 -10
  141. package/types/MobileCard/Card.d.ts +23 -13
  142. package/types/MobileCard/Group.d.ts +18 -8
  143. package/types/MobileCard/StyledCard.d.ts +1 -1
  144. package/types/MobileCard/index.d.ts +4 -12
  145. package/types/MobileContextMenu/MobileContextMenu.d.ts +13 -2
  146. package/types/MobileContextMenu/MobileContextMenuGroup.d.ts +37 -5
  147. package/types/MobileContextMenu/MobileContextMenuItem.d.ts +54 -9
  148. package/types/MobileDatePicker/MobileDatePicker.d.ts +43 -7
  149. package/types/MobileDropdownMenu/MobileDropdownInput.d.ts +2 -2
  150. package/types/MobileDropdownMenu/MobileDropdownMenu.d.ts +24 -4
  151. package/types/MobileEmtpyState/MobileEmptyState.d.ts +14 -2
  152. package/types/MobileFilterbar/Filterbar.d.ts +9 -2
  153. package/types/MobileFilterbar/FilterbarItem.d.ts +15 -2
  154. package/types/MobileFilterbar/FilterbarSort.d.ts +9 -2
  155. package/types/MobileFooter/Action.d.ts +19 -3
  156. package/types/MobileFooter/Footer.d.ts +8 -1
  157. package/types/MobileFooter/Text.d.ts +8 -1
  158. package/types/MobileListItem/MobileListItem.d.ts +17 -7
  159. package/types/MobilePageHeader/MobilePageHeader.d.ts +21 -11
  160. package/types/MobileSelectList/MobileSelectList.d.ts +3 -3
  161. package/types/MobileSelectList/styled.d.ts +5 -5
  162. package/types/MobileSeparator/Separator.d.ts +23 -5
  163. package/types/MobileTimePicker/MobileTimePicker.d.ts +32 -6
  164. package/types/MobileTouchable/MobileTouchable.d.ts +1 -1
  165. package/types/Modal/Modal.d.ts +50 -9
  166. package/types/Modal/styled.d.ts +7 -6
  167. package/types/PageList/PageList.d.ts +2 -2
  168. package/types/PageSearch/PageSearch.d.ts +2 -2
  169. package/types/PageSummary/Tags.d.ts +4 -4
  170. package/types/SideNav/SideNav.d.ts +26 -5
  171. package/types/SideNav/styles.d.ts +8 -8
  172. package/types/SwipeToRefresh/SwipeToRefresh.d.ts +22 -3
  173. package/types/SwipeToRefresh/styled.d.ts +5 -4
  174. package/types/index.d.ts +5 -1
@@ -1,24 +1,29 @@
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';
3
5
  import styled from 'styled-components';
4
- import { Grid } from '@elliemae/ds-basic/Grid';
6
+ import { Grid } from '@elliemae/ds-grid';
5
7
 
6
8
  const CardIconsWrapper = /*#__PURE__*/styled(Grid).withConfig({
7
9
  componentId: "sc-1vqygz1-0"
8
10
  })(["align-items:center;span,svg{width:12px !important;height:12px !important;}span.icon-color-muted svg,svg:not([fill]){fill:", ";height:12px !important;width:12px !important;& *{fill:", ";}}span.icon-color-warn svg,svg:not([fill]){fill:", ";height:12px !important;width:12px !important;& *{fill:", ";}}span.icon-color-error svg,svg:not([fill]){fill:", ";height:12px !important;width:12px !important;& *{fill:", ";}}span.icon-color-success svg,svg:not([fill]){fill:", ";height:12px !important;width:12px !important;& *{fill:", ";}}span.icon-color-primary svg,svg:not([fill]){fill:", ";}span.icon-color-primary svg,svg:not([fill]){fill:", ";}"], props => props.theme.colors.neutral['600'], props => props.theme.colors.neutral['600'], props => props.theme.colors.warning['600'], props => props.theme.colors.warning['600'], props => props.theme.colors.danger['900'], props => props.theme.colors.danger['900'], props => props.theme.colors.success['900'], props => props.theme.colors.success['900'], props => props.theme.colors.brand[600], props => props.theme.colors.brand[600]);
9
- const SubIcons = ({
10
- icons = [],
11
- colors = []
12
- }) => /*#__PURE__*/_jsx(CardIconsWrapper, {
13
- cols: icons.map(() => '12px'),
14
- gutter: "6px",
15
- height: "14px",
16
- "data-testid": "card-subIcons"
17
- }, void 0, icons.map((Icon, i) =>
18
- /*#__PURE__*/
19
- // eslint-disable-next-line react/no-array-index-key
20
- _jsx(Icon, {
21
- className: "icon-color-".concat(colors[i] || 'muted')
22
- }, i)));
11
+ const SubIcons = _ref => {
12
+ let {
13
+ icons = [],
14
+ colors = []
15
+ } = _ref;
16
+ return /*#__PURE__*/_jsx(CardIconsWrapper, {
17
+ cols: icons.map(() => '12px'),
18
+ gutter: "6px",
19
+ height: "14px",
20
+ "data-testid": "card-subIcons"
21
+ }, void 0, icons.map((Icon, i) =>
22
+ /*#__PURE__*/
23
+ // eslint-disable-next-line react/no-array-index-key
24
+ _jsx(Icon, {
25
+ className: "icon-color-".concat(colors[i] || 'muted')
26
+ }, i)));
27
+ };
23
28
 
24
29
  export { SubIcons };
@@ -1,18 +1,18 @@
1
1
  import _jsx from '@babel/runtime/helpers/esm/jsx';
2
2
  import 'react';
3
3
  import styled from 'styled-components';
4
- import ChevronDownIcon from '@elliemae/ds-icons/ChevronDown';
5
- import ChevronRight from '@elliemae/ds-icons/ChevronRight';
4
+ import { ChevronDown, ChevronRight } from '@elliemae/ds-icons';
6
5
 
7
6
  const ChevronWrap = /*#__PURE__*/styled.div.withConfig({
8
7
  componentId: "sc-1l0ask2-0"
9
8
  })(["margin-top:", ";align-self:", ";margin-left:", ";"], props => props.align === 'top' ? '18px' : '0', props => props.align === 'top' ? 'flex-start' : 'center', props => props.theme.space.xs);
10
- const ExpandChevron = ({
11
- isExpanded,
12
- onClick,
13
- align
14
- }) => {
15
- const Chevron = isExpanded ? ChevronDownIcon : ChevronRight;
9
+ const ExpandChevron = _ref => {
10
+ let {
11
+ isExpanded,
12
+ onClick,
13
+ align
14
+ } = _ref;
15
+ const Chevron = isExpanded ? ChevronDown : ChevronRight;
16
16
  return /*#__PURE__*/_jsx(ChevronWrap, {
17
17
  "data-testid": "ds-card-expand-chevron",
18
18
  align: align
@@ -11,12 +11,13 @@ const RegionWrapper = /*#__PURE__*/styled.div.withConfig({
11
11
  const Region = /*#__PURE__*/styled.div.withConfig({
12
12
  componentId: "sc-mduzz9-1"
13
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 = ({
15
- show,
16
- content
17
- }) => {
14
+ const ExpandableRegion = _ref => {
18
15
  var _ref$current;
19
16
 
17
+ let {
18
+ show,
19
+ content
20
+ } = _ref;
20
21
  const ref = useRef(null); // triggers transition
21
22
 
22
23
  const [animate, setAnimate] = useState(show); // needed to properly handle the transition. Hide after transition ends
@@ -1,18 +1,23 @@
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: ".concat(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());
@@ -20,15 +25,16 @@ const GroupTitleGrid = /*#__PURE__*/styled.div.withConfig({
20
25
  componentId: "sc-17xukaf-2"
21
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,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,