@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,10 +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.constructor.js';
5
+ import 'core-js/modules/esnext.async-iterator.to-array.js';
6
+ import 'core-js/modules/esnext.iterator.constructor.js';
7
+ import 'core-js/modules/esnext.iterator.to-array.js';
8
+ import 'core-js/modules/esnext.async-iterator.filter.js';
9
+ import 'core-js/modules/esnext.iterator.filter.js';
10
+ import 'core-js/modules/esnext.async-iterator.for-each.js';
11
+ import 'core-js/modules/esnext.iterator.for-each.js';
3
12
  import React, { useState, useRef, useEffect } from 'react';
4
13
  import { withTheme } from '@elliemae/ds-system';
5
14
  import { get } from 'lodash';
6
15
  import styled from 'styled-components';
7
- import Backdrop from '@elliemae/ds-basic/Backdrop';
16
+ import Backdrop from '@elliemae/ds-backdrop';
8
17
  import { jsxs, Fragment } from 'react/jsx-runtime';
9
18
 
10
19
  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; }
@@ -12,18 +21,22 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
12
21
  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; }
13
22
  const LoadingPageLoader = /*#__PURE__*/styled.div.withConfig({
14
23
  componentId: "sc-wx0z8k-0"
15
- })(["", ";z-index:", ";top:25%;left:15%;width:70%;height:75%;display:flex;flex-direction:column;align-items:center;"], ({
16
- type
17
- }) => type === 'cover' ? 'position: fixed' : 'position: absolute', props => props.zIndex);
24
+ })(["", ";z-index:", ";top:25%;left:15%;width:70%;height:75%;display:flex;flex-direction:column;align-items:center;"], _ref => {
25
+ let {
26
+ type
27
+ } = _ref;
28
+ return type === 'cover' ? 'position: fixed' : 'position: absolute';
29
+ }, props => props.zIndex);
18
30
 
19
- const LoadingPage = ({
20
- backdropZIndex,
21
- children,
22
- loader,
23
- loading,
24
- type = 'fill',
25
- zIndex = 1
26
- }) => {
31
+ const LoadingPage = _ref2 => {
32
+ let {
33
+ backdropZIndex,
34
+ children,
35
+ loader,
36
+ loading,
37
+ type = 'fill',
38
+ zIndex = 1
39
+ } = _ref2;
27
40
  const [position, setPosition] = useState(null);
28
41
  const childRef = useRef(null);
29
42
  useEffect(() => {
@@ -1,7 +1,7 @@
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
  import styled from 'styled-components';
6
6
  import { withTheme } from '@elliemae/ds-system';
7
7
  export { default as ToolbarItem } from './MobileActionToolbarItem.js';
@@ -10,11 +10,12 @@ const ToolStrip = /*#__PURE__*/styled(Grid).withConfig({
10
10
  componentId: "sc-162vd15-0"
11
11
  })(["display:flex;justify-content:space-around;align-items:center;background-color:", ";"], props => props.theme.colors.neutral['000']);
12
12
 
13
- const Toolbar = ({
14
- withDepth = true,
15
- buttons = [],
16
- theme
17
- }) => {
13
+ const Toolbar = _ref => {
14
+ let {
15
+ withDepth = true,
16
+ buttons = [],
17
+ theme
18
+ } = _ref;
18
19
  const rows = [1];
19
20
  const toolbarHeight = theme.space.m;
20
21
  const borderStyle = withDepth ? {
@@ -1,8 +1,13 @@
1
+ import 'core-js/modules/esnext.async-iterator.filter.js';
2
+ import 'core-js/modules/esnext.iterator.constructor.js';
3
+ import 'core-js/modules/esnext.iterator.filter.js';
4
+ import 'core-js/modules/esnext.async-iterator.for-each.js';
5
+ import 'core-js/modules/esnext.iterator.for-each.js';
1
6
  import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
2
7
  import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
3
8
  import React from 'react';
4
9
  import { PropTypes, describe } from 'react-desc';
5
- import DSButton from '@elliemae/ds-basic/Button';
10
+ import DSButton from '@elliemae/ds-button';
6
11
  import { jsx } from 'react/jsx-runtime';
7
12
 
8
13
  const _excluded = ["icon"];
@@ -1,7 +1,13 @@
1
+ import 'core-js/modules/esnext.async-iterator.filter.js';
2
+ import 'core-js/modules/esnext.iterator.constructor.js';
3
+ import 'core-js/modules/esnext.iterator.filter.js';
4
+ import 'core-js/modules/esnext.async-iterator.for-each.js';
5
+ import 'core-js/modules/esnext.iterator.for-each.js';
1
6
  import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
2
7
  import _jsx from '@babel/runtime/helpers/esm/jsx';
8
+ import 'core-js/modules/web.dom-collections.iterator.js';
3
9
  import { useRef, useState, useEffect, useLayoutEffect } from 'react';
4
- import CloseX from '@elliemae/ds-icons/CloseX';
10
+ import { CloseX } from '@elliemae/ds-icons';
5
11
  import { describe } from 'react-desc';
6
12
  import { icons } from './utils/icons.js';
7
13
  import { propTypes } from './propTypes.js';
@@ -15,19 +21,20 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
15
21
 
16
22
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
17
23
 
18
- const DSMobileBanner = ({
19
- type,
20
- isOpen,
21
- closeButtonOnClick,
22
- label,
23
- body,
24
- actionLinkLabel,
25
- actionLinkHref,
26
- actionLinkOnClick,
27
- showCloseButton,
28
- containerProps,
29
- focusOnOpen
30
- }) => {
24
+ const DSMobileBanner = _ref => {
25
+ let {
26
+ type,
27
+ isOpen,
28
+ closeButtonOnClick,
29
+ label,
30
+ body,
31
+ actionLinkLabel,
32
+ actionLinkHref,
33
+ actionLinkOnClick,
34
+ showCloseButton,
35
+ containerProps,
36
+ focusOnOpen
37
+ } = _ref;
31
38
  const innerContainerRef = useRef(null);
32
39
  const closeRef = useRef(null);
33
40
  const [current, setCurrent] = useState(isOpen);
@@ -1,87 +1,156 @@
1
1
  import styled from 'styled-components';
2
2
  import { toMobile } from '@elliemae/ds-system';
3
- import DSButton from '@elliemae/ds-basic/Button';
3
+ import DSButton from '@elliemae/ds-button';
4
4
  import { handleBorderColor, handleAnimation } from './utils/styleHelpers.js';
5
5
 
6
6
  const StyledInnerContainer = /*#__PURE__*/styled.div.withConfig({
7
7
  componentId: "sc-4jnp92-0"
8
- })(["display:flex;min-height:68px;width:100%;background-color:", ";border-bottom:4px solid ", ";transform:translateY(", ");", ";"], ({
9
- theme
10
- }) => theme.colors.neutral['000'], ({
11
- type,
12
- theme
13
- }) => handleBorderColor(type, theme), ({
14
- isOpen
15
- }) => isOpen ? '0' : '-100%', ({
16
- isAnimating,
17
- isOpen
18
- }) => handleAnimation(isAnimating, isOpen));
8
+ })(["display:flex;min-height:68px;width:100%;background-color:", ";border-bottom:4px solid ", ";transform:translateY(", ");", ";"], _ref => {
9
+ let {
10
+ theme
11
+ } = _ref;
12
+ return theme.colors.neutral['000'];
13
+ }, _ref2 => {
14
+ let {
15
+ type,
16
+ theme
17
+ } = _ref2;
18
+ return handleBorderColor(type, theme);
19
+ }, _ref3 => {
20
+ let {
21
+ isOpen
22
+ } = _ref3;
23
+ return isOpen ? '0' : '-100%';
24
+ }, _ref4 => {
25
+ let {
26
+ isAnimating,
27
+ isOpen
28
+ } = _ref4;
29
+ return handleAnimation(isAnimating, isOpen);
30
+ });
19
31
  const StyledTextContent = /*#__PURE__*/styled.div.withConfig({
20
32
  componentId: "sc-4jnp92-1"
21
33
  })(["width:100%;"]);
22
34
  const StyledTitle = /*#__PURE__*/styled.div.withConfig({
23
35
  componentId: "sc-4jnp92-2"
24
- })(["color:", ";font-size:", ";font-weight:", ";margin-bottom:", ";@media not all and (min-resolution:0.001dpcm){@media{-webkit-font-smoothing:subpixel-antialiased;-webkit-text-stroke:0.4px ", ";}}@media screen and (min--moz-device-pixel-ratio:0){-webkit-font-smoothing:subpixel-antialiased;-webkit-text-stroke:0.4px ", ";}"], ({
25
- theme
26
- }) => theme.colors.neutral[700], ({
27
- theme
28
- }) => toMobile(theme.fontSizes.title[700]), ({
29
- theme
30
- }) => theme.fontWeights.semibold, ({
31
- theme
32
- }) => theme.space.xxs, ({
33
- theme
34
- }) => theme.colors.neutral[700], ({
35
- theme
36
- }) => theme.colors.neutral[700]);
36
+ })(["color:", ";font-size:", ";font-weight:", ";margin-bottom:", ";@media not all and (min-resolution:0.001dpcm){@media{-webkit-font-smoothing:subpixel-antialiased;-webkit-text-stroke:0.4px ", ";}}@media screen and (min--moz-device-pixel-ratio:0){-webkit-font-smoothing:subpixel-antialiased;-webkit-text-stroke:0.4px ", ";}"], _ref5 => {
37
+ let {
38
+ theme
39
+ } = _ref5;
40
+ return theme.colors.neutral[700];
41
+ }, _ref6 => {
42
+ let {
43
+ theme
44
+ } = _ref6;
45
+ return toMobile(theme.fontSizes.title[700]);
46
+ }, _ref7 => {
47
+ let {
48
+ theme
49
+ } = _ref7;
50
+ return theme.fontWeights.semibold;
51
+ }, _ref8 => {
52
+ let {
53
+ theme
54
+ } = _ref8;
55
+ return theme.space.xxs;
56
+ }, _ref9 => {
57
+ let {
58
+ theme
59
+ } = _ref9;
60
+ return theme.colors.neutral[700];
61
+ }, _ref10 => {
62
+ let {
63
+ theme
64
+ } = _ref10;
65
+ return theme.colors.neutral[700];
66
+ });
37
67
  const StyledSubTitle = /*#__PURE__*/styled.div.withConfig({
38
68
  componentId: "sc-4jnp92-3"
39
- })(["font-size:", ";font-weight:", ";"], ({
40
- theme
41
- }) => toMobile(theme.fontSizes.title[600]), ({
42
- theme
43
- }) => theme.fontWeights.regular);
69
+ })(["font-size:", ";font-weight:", ";"], _ref11 => {
70
+ let {
71
+ theme
72
+ } = _ref11;
73
+ return toMobile(theme.fontSizes.title[600]);
74
+ }, _ref12 => {
75
+ let {
76
+ theme
77
+ } = _ref12;
78
+ return theme.fontWeights.regular;
79
+ });
44
80
  const StyledIconContainer = /*#__PURE__*/styled.div.withConfig({
45
81
  componentId: "sc-4jnp92-4"
46
- })(["margin-top:10px;margin-right:", ";margin-left:", ";"], ({
47
- theme
48
- }) => theme.space.xxs, ({
49
- theme
50
- }) => theme.space.xs);
82
+ })(["margin-top:10px;margin-right:", ";margin-left:", ";"], _ref13 => {
83
+ let {
84
+ theme
85
+ } = _ref13;
86
+ return theme.space.xxs;
87
+ }, _ref14 => {
88
+ let {
89
+ theme
90
+ } = _ref14;
91
+ return theme.space.xs;
92
+ });
51
93
  const StyledContent = /*#__PURE__*/styled.div.withConfig({
52
94
  componentId: "sc-4jnp92-5"
53
- })(["width:100%;display:flex;flex-direction:column;margin:", " 0;margin-right:", ";"], ({
54
- theme
55
- }) => theme.space.xxs2, ({
56
- showCloseButton
57
- }) => !showCloseButton ? '28px' : '0');
95
+ })(["width:100%;display:flex;flex-direction:column;margin:", " 0;margin-right:", ";"], _ref15 => {
96
+ let {
97
+ theme
98
+ } = _ref15;
99
+ return theme.space.xxs2;
100
+ }, _ref16 => {
101
+ let {
102
+ showCloseButton
103
+ } = _ref16;
104
+ return !showCloseButton ? '28px' : '0';
105
+ });
58
106
  const StyledCloseButtonContainer = /*#__PURE__*/styled.div.withConfig({
59
107
  componentId: "sc-4jnp92-6"
60
108
  })(["display:flex;align-items:flex-start;margin-top:6px;margin-right:6px;"]);
61
109
  const StyledCloseButton = /*#__PURE__*/styled(DSButton).withConfig({
62
110
  componentId: "sc-4jnp92-7"
63
- })(["position:relative;&:focus{&:after{display:block;content:' ';position:absolute;top:0;left:0;width:100%;height:100%;border:2px solid ", ";border-radius:2px;pointer-events:none;}}"], ({
64
- theme
65
- }) => theme.colors.brand[700]);
111
+ })(["position:relative;&:focus{&:after{display:block;content:' ';position:absolute;top:0;left:0;width:100%;height:100%;border:2px solid ", ";border-radius:2px;pointer-events:none;}}"], _ref17 => {
112
+ let {
113
+ theme
114
+ } = _ref17;
115
+ return theme.colors.brand[700];
116
+ });
66
117
  const StyledActionLink = /*#__PURE__*/styled.a.withConfig({
67
118
  componentId: "sc-4jnp92-8"
68
- })(["text-decoration:none;float:right;margin-left:", ";line-height:1.1;font-size:", ";font-weight:", ";color:", ";"], ({
69
- theme
70
- }) => theme.space.xs, ({
71
- theme
72
- }) => toMobile(theme.fontSizes.title[600]), ({
73
- theme
74
- }) => theme.fontWeights.regular, ({
75
- theme
76
- }) => theme.colors.brand[600]);
119
+ })(["text-decoration:none;float:right;margin-left:", ";line-height:1.1;font-size:", ";font-weight:", ";color:", ";"], _ref18 => {
120
+ let {
121
+ theme
122
+ } = _ref18;
123
+ return theme.space.xs;
124
+ }, _ref19 => {
125
+ let {
126
+ theme
127
+ } = _ref19;
128
+ return toMobile(theme.fontSizes.title[600]);
129
+ }, _ref20 => {
130
+ let {
131
+ theme
132
+ } = _ref20;
133
+ return theme.fontWeights.regular;
134
+ }, _ref21 => {
135
+ let {
136
+ theme
137
+ } = _ref21;
138
+ return theme.colors.brand[600];
139
+ });
77
140
  const StyledBannerContainer = /*#__PURE__*/styled.div.withConfig({
78
141
  componentId: "sc-4jnp92-9"
79
- })(["overflow:hidden;height:", ";", ";"], ({
80
- isOpen
81
- }) => isOpen ? 'auto' : '0px', ({
82
- isAnimating,
83
- isOpen,
84
- height
85
- }) => handleAnimation(isAnimating, isOpen, height));
142
+ })(["overflow:hidden;height:", ";", ";"], _ref22 => {
143
+ let {
144
+ isOpen
145
+ } = _ref22;
146
+ return isOpen ? 'auto' : '0px';
147
+ }, _ref23 => {
148
+ let {
149
+ isAnimating,
150
+ isOpen,
151
+ height
152
+ } = _ref23;
153
+ return handleAnimation(isAnimating, isOpen, height);
154
+ });
86
155
 
87
156
  export { StyledActionLink, StyledBannerContainer, StyledCloseButton, StyledCloseButtonContainer, StyledContent, StyledIconContainer, StyledInnerContainer, StyledSubTitle, StyledTextContent, StyledTitle };
@@ -1,9 +1,6 @@
1
1
  import _jsx from '@babel/runtime/helpers/esm/jsx';
2
2
  import 'react';
3
- import SuccessFill from '@elliemae/ds-icons/SuccessFill';
4
- import InfoFill from '@elliemae/ds-icons/InfoFill';
5
- import AlertsDetailFill from '@elliemae/ds-icons/AlertsDetailFill';
6
- import WarningSquare from '@elliemae/ds-icons/WarningSquare';
3
+ import { SuccessFill, InfoFill, AlertsDetailFill, WarningSquare } from '@elliemae/ds-icons';
7
4
 
8
5
  const icons = {
9
6
  success: /*#__PURE__*/_jsx(SuccessFill, {
@@ -1,46 +1,17 @@
1
+ import _taggedTemplateLiteral from '@babel/runtime/helpers/esm/taggedTemplateLiteral';
1
2
  import { kfrm, css } from '@elliemae/ds-system';
2
3
  import { MOBILE_BANNER_TYPES } from './bannerTypes.js';
3
4
 
4
- const slideIn = kfrm`
5
- 0% {
6
- transform: translate3d(0, -100%, 0);
7
- }
8
- 100% {
9
- transform: translate3d(0, 0, 0);
10
- }
11
- `;
12
- const slideOut = kfrm`
13
- 0% {
14
- transform: translate3d(0, 0, 0);
15
- opacity: 1;
16
- }
17
- 60% {
18
- opacity: 0;
19
- }
20
- 100% {
21
- opacity: 0;
22
- transform: translate3d(0, -100%, 0);
23
- }
24
- `;
25
- const spanContainer = height => kfrm`
26
- 0% {
27
- height: 0px;
28
- }
29
- 100% {
30
- height: ${height}px;
31
- }
32
- `;
33
- const shrinkContainer = height => kfrm`
34
- 0% {
35
- height: ${height}px;
36
- }
37
- 100% {
38
- height: 0px;
39
- }
40
- `;
41
- const handleBorderColor = (type, {
42
- colors
43
- }) => {
5
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6;
6
+ const slideIn = kfrm(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n 0% {\n transform: translate3d(0, -100%, 0);\n }\n 100% {\n transform: translate3d(0, 0, 0);\n }\n"])));
7
+ const slideOut = kfrm(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n 0% {\n transform: translate3d(0, 0, 0);\n opacity: 1;\n }\n 60% {\n opacity: 0;\n }\n 100% {\n opacity: 0;\n transform: translate3d(0, -100%, 0);\n }\n"])));
8
+ const spanContainer = height => kfrm(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n 0% {\n height: 0px;\n }\n 100% {\n height: ", "px;\n }\n"])), height);
9
+ const shrinkContainer = height => kfrm(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n 0% {\n height: ", "px;\n }\n 100% {\n height: 0px;\n }\n"])), height);
10
+ const handleBorderColor = (type, _ref) => {
11
+ let {
12
+ colors
13
+ } = _ref;
14
+
44
15
  switch (type) {
45
16
  case MOBILE_BANNER_TYPES.SUCCESS:
46
17
  return colors.success[900];
@@ -55,16 +26,14 @@ const handleBorderColor = (type, {
55
26
  return colors.danger[900];
56
27
  }
57
28
  };
58
- const handleAnimation = (isAnimating, isOpen, height = null) => {
29
+ const handleAnimation = function (isAnimating, isOpen) {
30
+ let height = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
31
+
59
32
  if (isAnimating) {
60
33
  if (isOpen) {
61
- return css`
62
- animation: ${height ? spanContainer(height) : slideIn} 0.5s ease-in;
63
- `;
34
+ return css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n animation: ", " 0.5s ease-in;\n "])), height ? spanContainer(height) : slideIn);
64
35
  } else {
65
- return css`
66
- animation: ${height ? shrinkContainer(height) : slideOut} 0.5s ease-in;
67
- `;
36
+ return css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n animation: ", " 0.5s ease-in;\n "])), height ? shrinkContainer(height) : slideOut);
68
37
  }
69
38
  }
70
39
  };
@@ -1,22 +1,25 @@
1
1
  import _jsx from '@babel/runtime/helpers/esm/jsx';
2
2
  import 'react';
3
3
  import styled from 'styled-components';
4
- import ChevronSmallDown from '@elliemae/ds-icons/ChevronSmallDown';
5
- import DSButton from '@elliemae/ds-basic/Button';
4
+ import { ChevronSmallDown } from '@elliemae/ds-icons';
5
+ import DSButton from '@elliemae/ds-button';
6
6
 
7
7
  const Addon = /*#__PURE__*/styled(DSButton).withConfig({
8
8
  componentId: "sc-afblfw-0"
9
9
  })(["background-color:transparent;padding-right:4px;height:100%;border:none;font-size:12px;font-weight:", ";color:", ";cursor:pointer;&:focus,&::after{background-color:transparent;box-shadow:none !important;border:none !important;}"], props => props.theme.fontWeights.semibold, props => props.theme.colors.brand['700']);
10
- const ActionAddon = ({
11
- label,
12
- onClick,
13
- icon
14
- }) => /*#__PURE__*/_jsx(Addon, {
15
- onClick: onClick,
16
- labelText: label,
17
- icon: icon || /*#__PURE__*/_jsx(ChevronSmallDown, {
18
- color: ['brand-primary', 700]
19
- })
20
- });
10
+ const ActionAddon = _ref => {
11
+ let {
12
+ label,
13
+ onClick,
14
+ icon
15
+ } = _ref;
16
+ return /*#__PURE__*/_jsx(Addon, {
17
+ onClick: onClick,
18
+ labelText: label,
19
+ icon: icon || /*#__PURE__*/_jsx(ChevronSmallDown, {
20
+ color: ['brand-primary', 700]
21
+ })
22
+ });
23
+ };
21
24
 
22
25
  export { ActionAddon };
@@ -1,11 +1,13 @@
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 { useRef } from 'react';
3
5
  import { PropTypes, describe } from 'react-desc';
4
6
  import styled from 'styled-components';
5
7
  import { padding } from 'styled-system';
6
8
  import { truncate, toMobile, color, __UNSAFE_SPACE_TO_DIMSUM, border, withTheme, op } from '@elliemae/ds-system';
7
9
  import GroupItem from '@elliemae/ds-shared/GroupContext/GroupItem';
8
- import { Grid } from '@elliemae/ds-basic/Grid';
10
+ import { Grid } from '@elliemae/ds-grid';
9
11
  import { StyledCard } from './StyledCard.js';
10
12
  import { ExpandChevron } from './ExpandChevron.js';
11
13
  import { useHeight } from './useHeight.js';
@@ -34,28 +36,30 @@ const CenterWrap = /*#__PURE__*/styled.div.withConfig({
34
36
  componentId: "sc-10tpzm8-6"
35
37
  })(["display:flex;align-items:center;", ""], truncate());
36
38
 
37
- const MobileCard = ({
38
- children,
39
- height = 'm',
40
- leftAddOn,
41
- leftProp,
42
- rightProp,
43
- subText,
44
- subIcons,
45
- details,
46
- theme,
47
- expandable = false,
48
- expandedContent,
49
- value
50
- }) => {
39
+ const MobileCard = _ref => {
51
40
  var _TitleEllipsis, _SubText;
52
41
 
42
+ let {
43
+ children,
44
+ height = 'm',
45
+ leftAddOn,
46
+ leftProp,
47
+ rightProp,
48
+ subText,
49
+ subIcons,
50
+ details,
51
+ theme,
52
+ expandable = false,
53
+ expandedContent,
54
+ value
55
+ } = _ref;
53
56
  const subTextRef = useRef(null);
54
57
  const subTextHeight = useHeight(subTextRef);
55
58
  const isJustChildren = !(subText || subIcons || details);
56
59
  const halfM = op('/', __UNSAFE_SPACE_TO_DIMSUM(theme.space.m), 2);
57
60
  return /*#__PURE__*/_jsx(GroupItem, {
58
- render: (context = {}) => {
61
+ render: function () {
62
+ let context = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
59
63
  const {
60
64
  activeValue,
61
65
  onChange
@@ -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-${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