@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
@@ -4,11 +4,20 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var _defineProperty = require('@babel/runtime/helpers/defineProperty');
6
6
  var _jsx = require('@babel/runtime/helpers/jsx');
7
+ require('core-js/modules/web.dom-collections.iterator.js');
8
+ require('core-js/modules/esnext.async-iterator.constructor.js');
9
+ require('core-js/modules/esnext.async-iterator.to-array.js');
10
+ require('core-js/modules/esnext.iterator.constructor.js');
11
+ require('core-js/modules/esnext.iterator.to-array.js');
12
+ require('core-js/modules/esnext.async-iterator.filter.js');
13
+ require('core-js/modules/esnext.iterator.filter.js');
14
+ require('core-js/modules/esnext.async-iterator.for-each.js');
15
+ require('core-js/modules/esnext.iterator.for-each.js');
7
16
  var React = require('react');
8
17
  var dsSystem = require('@elliemae/ds-system');
9
18
  var lodash = require('lodash');
10
19
  var styled = require('styled-components');
11
- var Backdrop = require('@elliemae/ds-basic/Backdrop');
20
+ var Backdrop = require('@elliemae/ds-backdrop');
12
21
  var jsxRuntime = require('react/jsx-runtime');
13
22
 
14
23
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
@@ -24,18 +33,22 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
24
33
  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__default["default"](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; }
25
34
  const LoadingPageLoader = /*#__PURE__*/styled__default["default"].div.withConfig({
26
35
  componentId: "sc-wx0z8k-0"
27
- })(["", ";z-index:", ";top:25%;left:15%;width:70%;height:75%;display:flex;flex-direction:column;align-items:center;"], ({
28
- type
29
- }) => type === 'cover' ? 'position: fixed' : 'position: absolute', props => props.zIndex);
36
+ })(["", ";z-index:", ";top:25%;left:15%;width:70%;height:75%;display:flex;flex-direction:column;align-items:center;"], _ref => {
37
+ let {
38
+ type
39
+ } = _ref;
40
+ return type === 'cover' ? 'position: fixed' : 'position: absolute';
41
+ }, props => props.zIndex);
30
42
 
31
- const LoadingPage = ({
32
- backdropZIndex,
33
- children,
34
- loader,
35
- loading,
36
- type = 'fill',
37
- zIndex = 1
38
- }) => {
43
+ const LoadingPage = _ref2 => {
44
+ let {
45
+ backdropZIndex,
46
+ children,
47
+ loader,
48
+ loading,
49
+ type = 'fill',
50
+ zIndex = 1
51
+ } = _ref2;
39
52
  const [position, setPosition] = React.useState(null);
40
53
  const childRef = React.useRef(null);
41
54
  React.useEffect(() => {
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var _jsx = require('@babel/runtime/helpers/jsx');
6
6
  require('react');
7
7
  var reactDesc = require('react-desc');
8
- var Grid = require('@elliemae/ds-basic/Grid');
8
+ var dsGrid = require('@elliemae/ds-grid');
9
9
  var styled = require('styled-components');
10
10
  var dsSystem = require('@elliemae/ds-system');
11
11
  var MobileActionToolbarItem = require('./MobileActionToolbarItem.js');
@@ -15,15 +15,16 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
15
15
  var _jsx__default = /*#__PURE__*/_interopDefaultLegacy(_jsx);
16
16
  var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
17
17
 
18
- const ToolStrip = /*#__PURE__*/styled__default["default"](Grid.Grid).withConfig({
18
+ const ToolStrip = /*#__PURE__*/styled__default["default"](dsGrid.Grid).withConfig({
19
19
  componentId: "sc-162vd15-0"
20
20
  })(["display:flex;justify-content:space-around;align-items:center;background-color:", ";"], props => props.theme.colors.neutral['000']);
21
21
 
22
- const Toolbar = ({
23
- withDepth = true,
24
- buttons = [],
25
- theme
26
- }) => {
22
+ const Toolbar = _ref => {
23
+ let {
24
+ withDepth = true,
25
+ buttons = [],
26
+ theme
27
+ } = _ref;
27
28
  const rows = [1];
28
29
  const toolbarHeight = theme.space.m;
29
30
  const borderStyle = withDepth ? {
@@ -2,11 +2,16 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ require('core-js/modules/esnext.async-iterator.filter.js');
6
+ require('core-js/modules/esnext.iterator.constructor.js');
7
+ require('core-js/modules/esnext.iterator.filter.js');
8
+ require('core-js/modules/esnext.async-iterator.for-each.js');
9
+ require('core-js/modules/esnext.iterator.for-each.js');
5
10
  var _defineProperty = require('@babel/runtime/helpers/defineProperty');
6
11
  var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
7
12
  var React = require('react');
8
13
  var reactDesc = require('react-desc');
9
- var DSButton = require('@elliemae/ds-basic/Button');
14
+ var DSButton = require('@elliemae/ds-button');
10
15
  var jsxRuntime = require('react/jsx-runtime');
11
16
 
12
17
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
@@ -4,8 +4,14 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var _defineProperty = require('@babel/runtime/helpers/defineProperty');
6
6
  var _jsx = require('@babel/runtime/helpers/jsx');
7
+ require('core-js/modules/web.dom-collections.iterator.js');
8
+ require('core-js/modules/esnext.async-iterator.filter.js');
9
+ require('core-js/modules/esnext.iterator.constructor.js');
10
+ require('core-js/modules/esnext.iterator.filter.js');
11
+ require('core-js/modules/esnext.async-iterator.for-each.js');
12
+ require('core-js/modules/esnext.iterator.for-each.js');
7
13
  var React = require('react');
8
- var CloseX = require('@elliemae/ds-icons/CloseX');
14
+ var dsIcons = require('@elliemae/ds-icons');
9
15
  var reactDesc = require('react-desc');
10
16
  var icons = require('./utils/icons.js');
11
17
  var propTypes = require('./propTypes.js');
@@ -17,7 +23,6 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
17
23
 
18
24
  var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
19
25
  var _jsx__default = /*#__PURE__*/_interopDefaultLegacy(_jsx);
20
- var CloseX__default = /*#__PURE__*/_interopDefaultLegacy(CloseX);
21
26
 
22
27
  var _CloseX;
23
28
 
@@ -25,19 +30,20 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
25
30
 
26
31
  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__default["default"](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; }
27
32
 
28
- const DSMobileBanner = ({
29
- type,
30
- isOpen,
31
- closeButtonOnClick,
32
- label,
33
- body,
34
- actionLinkLabel,
35
- actionLinkHref,
36
- actionLinkOnClick,
37
- showCloseButton,
38
- containerProps,
39
- focusOnOpen
40
- }) => {
33
+ const DSMobileBanner = _ref => {
34
+ let {
35
+ type,
36
+ isOpen,
37
+ closeButtonOnClick,
38
+ label,
39
+ body,
40
+ actionLinkLabel,
41
+ actionLinkHref,
42
+ actionLinkOnClick,
43
+ showCloseButton,
44
+ containerProps,
45
+ focusOnOpen
46
+ } = _ref;
41
47
  const innerContainerRef = React.useRef(null);
42
48
  const closeRef = React.useRef(null);
43
49
  const [current, setCurrent] = React.useState(isOpen);
@@ -86,7 +92,7 @@ const DSMobileBanner = ({
86
92
  buttonType: "link",
87
93
  onClick: closeButtonOnClick,
88
94
  "aria-label": "Close Banner",
89
- icon: _CloseX || (_CloseX = /*#__PURE__*/_jsx__default["default"](CloseX__default["default"], {
95
+ icon: _CloseX || (_CloseX = /*#__PURE__*/_jsx__default["default"](dsIcons.CloseX, {
90
96
  width: "12px",
91
97
  height: "12px"
92
98
  })),
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var styled = require('styled-components');
6
6
  var dsSystem = require('@elliemae/ds-system');
7
- var DSButton = require('@elliemae/ds-basic/Button');
7
+ var DSButton = require('@elliemae/ds-button');
8
8
  var styleHelpers = require('./utils/styleHelpers.js');
9
9
 
10
10
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
@@ -14,84 +14,153 @@ var DSButton__default = /*#__PURE__*/_interopDefaultLegacy(DSButton);
14
14
 
15
15
  const StyledInnerContainer = /*#__PURE__*/styled__default["default"].div.withConfig({
16
16
  componentId: "sc-4jnp92-0"
17
- })(["display:flex;min-height:68px;width:100%;background-color:", ";border-bottom:4px solid ", ";transform:translateY(", ");", ";"], ({
18
- theme
19
- }) => theme.colors.neutral['000'], ({
20
- type,
21
- theme
22
- }) => styleHelpers.handleBorderColor(type, theme), ({
23
- isOpen
24
- }) => isOpen ? '0' : '-100%', ({
25
- isAnimating,
26
- isOpen
27
- }) => styleHelpers.handleAnimation(isAnimating, isOpen));
17
+ })(["display:flex;min-height:68px;width:100%;background-color:", ";border-bottom:4px solid ", ";transform:translateY(", ");", ";"], _ref => {
18
+ let {
19
+ theme
20
+ } = _ref;
21
+ return theme.colors.neutral['000'];
22
+ }, _ref2 => {
23
+ let {
24
+ type,
25
+ theme
26
+ } = _ref2;
27
+ return styleHelpers.handleBorderColor(type, theme);
28
+ }, _ref3 => {
29
+ let {
30
+ isOpen
31
+ } = _ref3;
32
+ return isOpen ? '0' : '-100%';
33
+ }, _ref4 => {
34
+ let {
35
+ isAnimating,
36
+ isOpen
37
+ } = _ref4;
38
+ return styleHelpers.handleAnimation(isAnimating, isOpen);
39
+ });
28
40
  const StyledTextContent = /*#__PURE__*/styled__default["default"].div.withConfig({
29
41
  componentId: "sc-4jnp92-1"
30
42
  })(["width:100%;"]);
31
43
  const StyledTitle = /*#__PURE__*/styled__default["default"].div.withConfig({
32
44
  componentId: "sc-4jnp92-2"
33
- })(["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 ", ";}"], ({
34
- theme
35
- }) => theme.colors.neutral[700], ({
36
- theme
37
- }) => dsSystem.toMobile(theme.fontSizes.title[700]), ({
38
- theme
39
- }) => theme.fontWeights.semibold, ({
40
- theme
41
- }) => theme.space.xxs, ({
42
- theme
43
- }) => theme.colors.neutral[700], ({
44
- theme
45
- }) => theme.colors.neutral[700]);
45
+ })(["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 => {
46
+ let {
47
+ theme
48
+ } = _ref5;
49
+ return theme.colors.neutral[700];
50
+ }, _ref6 => {
51
+ let {
52
+ theme
53
+ } = _ref6;
54
+ return dsSystem.toMobile(theme.fontSizes.title[700]);
55
+ }, _ref7 => {
56
+ let {
57
+ theme
58
+ } = _ref7;
59
+ return theme.fontWeights.semibold;
60
+ }, _ref8 => {
61
+ let {
62
+ theme
63
+ } = _ref8;
64
+ return theme.space.xxs;
65
+ }, _ref9 => {
66
+ let {
67
+ theme
68
+ } = _ref9;
69
+ return theme.colors.neutral[700];
70
+ }, _ref10 => {
71
+ let {
72
+ theme
73
+ } = _ref10;
74
+ return theme.colors.neutral[700];
75
+ });
46
76
  const StyledSubTitle = /*#__PURE__*/styled__default["default"].div.withConfig({
47
77
  componentId: "sc-4jnp92-3"
48
- })(["font-size:", ";font-weight:", ";"], ({
49
- theme
50
- }) => dsSystem.toMobile(theme.fontSizes.title[600]), ({
51
- theme
52
- }) => theme.fontWeights.regular);
78
+ })(["font-size:", ";font-weight:", ";"], _ref11 => {
79
+ let {
80
+ theme
81
+ } = _ref11;
82
+ return dsSystem.toMobile(theme.fontSizes.title[600]);
83
+ }, _ref12 => {
84
+ let {
85
+ theme
86
+ } = _ref12;
87
+ return theme.fontWeights.regular;
88
+ });
53
89
  const StyledIconContainer = /*#__PURE__*/styled__default["default"].div.withConfig({
54
90
  componentId: "sc-4jnp92-4"
55
- })(["margin-top:10px;margin-right:", ";margin-left:", ";"], ({
56
- theme
57
- }) => theme.space.xxs, ({
58
- theme
59
- }) => theme.space.xs);
91
+ })(["margin-top:10px;margin-right:", ";margin-left:", ";"], _ref13 => {
92
+ let {
93
+ theme
94
+ } = _ref13;
95
+ return theme.space.xxs;
96
+ }, _ref14 => {
97
+ let {
98
+ theme
99
+ } = _ref14;
100
+ return theme.space.xs;
101
+ });
60
102
  const StyledContent = /*#__PURE__*/styled__default["default"].div.withConfig({
61
103
  componentId: "sc-4jnp92-5"
62
- })(["width:100%;display:flex;flex-direction:column;margin:", " 0;margin-right:", ";"], ({
63
- theme
64
- }) => theme.space.xxs2, ({
65
- showCloseButton
66
- }) => !showCloseButton ? '28px' : '0');
104
+ })(["width:100%;display:flex;flex-direction:column;margin:", " 0;margin-right:", ";"], _ref15 => {
105
+ let {
106
+ theme
107
+ } = _ref15;
108
+ return theme.space.xxs2;
109
+ }, _ref16 => {
110
+ let {
111
+ showCloseButton
112
+ } = _ref16;
113
+ return !showCloseButton ? '28px' : '0';
114
+ });
67
115
  const StyledCloseButtonContainer = /*#__PURE__*/styled__default["default"].div.withConfig({
68
116
  componentId: "sc-4jnp92-6"
69
117
  })(["display:flex;align-items:flex-start;margin-top:6px;margin-right:6px;"]);
70
118
  const StyledCloseButton = /*#__PURE__*/styled__default["default"](DSButton__default["default"]).withConfig({
71
119
  componentId: "sc-4jnp92-7"
72
- })(["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;}}"], ({
73
- theme
74
- }) => theme.colors.brand[700]);
120
+ })(["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 => {
121
+ let {
122
+ theme
123
+ } = _ref17;
124
+ return theme.colors.brand[700];
125
+ });
75
126
  const StyledActionLink = /*#__PURE__*/styled__default["default"].a.withConfig({
76
127
  componentId: "sc-4jnp92-8"
77
- })(["text-decoration:none;float:right;margin-left:", ";line-height:1.1;font-size:", ";font-weight:", ";color:", ";"], ({
78
- theme
79
- }) => theme.space.xs, ({
80
- theme
81
- }) => dsSystem.toMobile(theme.fontSizes.title[600]), ({
82
- theme
83
- }) => theme.fontWeights.regular, ({
84
- theme
85
- }) => theme.colors.brand[600]);
128
+ })(["text-decoration:none;float:right;margin-left:", ";line-height:1.1;font-size:", ";font-weight:", ";color:", ";"], _ref18 => {
129
+ let {
130
+ theme
131
+ } = _ref18;
132
+ return theme.space.xs;
133
+ }, _ref19 => {
134
+ let {
135
+ theme
136
+ } = _ref19;
137
+ return dsSystem.toMobile(theme.fontSizes.title[600]);
138
+ }, _ref20 => {
139
+ let {
140
+ theme
141
+ } = _ref20;
142
+ return theme.fontWeights.regular;
143
+ }, _ref21 => {
144
+ let {
145
+ theme
146
+ } = _ref21;
147
+ return theme.colors.brand[600];
148
+ });
86
149
  const StyledBannerContainer = /*#__PURE__*/styled__default["default"].div.withConfig({
87
150
  componentId: "sc-4jnp92-9"
88
- })(["overflow:hidden;height:", ";", ";"], ({
89
- isOpen
90
- }) => isOpen ? 'auto' : '0px', ({
91
- isAnimating,
92
- isOpen,
93
- height
94
- }) => styleHelpers.handleAnimation(isAnimating, isOpen, height));
151
+ })(["overflow:hidden;height:", ";", ";"], _ref22 => {
152
+ let {
153
+ isOpen
154
+ } = _ref22;
155
+ return isOpen ? 'auto' : '0px';
156
+ }, _ref23 => {
157
+ let {
158
+ isAnimating,
159
+ isOpen,
160
+ height
161
+ } = _ref23;
162
+ return styleHelpers.handleAnimation(isAnimating, isOpen, height);
163
+ });
95
164
 
96
165
  exports.StyledActionLink = StyledActionLink;
97
166
  exports.StyledBannerContainer = StyledBannerContainer;
@@ -4,32 +4,25 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var _jsx = require('@babel/runtime/helpers/jsx');
6
6
  require('react');
7
- var SuccessFill = require('@elliemae/ds-icons/SuccessFill');
8
- var InfoFill = require('@elliemae/ds-icons/InfoFill');
9
- var AlertsDetailFill = require('@elliemae/ds-icons/AlertsDetailFill');
10
- var WarningSquare = require('@elliemae/ds-icons/WarningSquare');
7
+ var dsIcons = require('@elliemae/ds-icons');
11
8
 
12
9
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
13
10
 
14
11
  var _jsx__default = /*#__PURE__*/_interopDefaultLegacy(_jsx);
15
- var SuccessFill__default = /*#__PURE__*/_interopDefaultLegacy(SuccessFill);
16
- var InfoFill__default = /*#__PURE__*/_interopDefaultLegacy(InfoFill);
17
- var AlertsDetailFill__default = /*#__PURE__*/_interopDefaultLegacy(AlertsDetailFill);
18
- var WarningSquare__default = /*#__PURE__*/_interopDefaultLegacy(WarningSquare);
19
12
 
20
13
  const icons = {
21
- success: /*#__PURE__*/_jsx__default["default"](SuccessFill__default["default"], {
14
+ success: /*#__PURE__*/_jsx__default["default"](dsIcons.SuccessFill, {
22
15
  fill: "#207e56"
23
16
  }),
24
- info: /*#__PURE__*/_jsx__default["default"](InfoFill__default["default"], {
17
+ info: /*#__PURE__*/_jsx__default["default"](dsIcons.InfoFill, {
25
18
  fill: "#1e79c2"
26
19
  }),
27
- error: /*#__PURE__*/_jsx__default["default"](AlertsDetailFill__default["default"], {
20
+ error: /*#__PURE__*/_jsx__default["default"](dsIcons.AlertsDetailFill, {
28
21
  width: "24px",
29
22
  height: "24px",
30
23
  fill: "#c64252"
31
24
  }),
32
- warning: /*#__PURE__*/_jsx__default["default"](WarningSquare__default["default"], {
25
+ warning: /*#__PURE__*/_jsx__default["default"](dsIcons.WarningSquare, {
33
26
  width: "24px",
34
27
  height: "24px",
35
28
  fill: "#d17a00"
@@ -2,49 +2,24 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ var _taggedTemplateLiteral = require('@babel/runtime/helpers/taggedTemplateLiteral');
5
6
  var dsSystem = require('@elliemae/ds-system');
6
7
  var bannerTypes = require('./bannerTypes.js');
7
8
 
8
- const slideIn = dsSystem.kfrm`
9
- 0% {
10
- transform: translate3d(0, -100%, 0);
11
- }
12
- 100% {
13
- transform: translate3d(0, 0, 0);
14
- }
15
- `;
16
- const slideOut = dsSystem.kfrm`
17
- 0% {
18
- transform: translate3d(0, 0, 0);
19
- opacity: 1;
20
- }
21
- 60% {
22
- opacity: 0;
23
- }
24
- 100% {
25
- opacity: 0;
26
- transform: translate3d(0, -100%, 0);
27
- }
28
- `;
29
- const spanContainer = height => dsSystem.kfrm`
30
- 0% {
31
- height: 0px;
32
- }
33
- 100% {
34
- height: ${height}px;
35
- }
36
- `;
37
- const shrinkContainer = height => dsSystem.kfrm`
38
- 0% {
39
- height: ${height}px;
40
- }
41
- 100% {
42
- height: 0px;
43
- }
44
- `;
45
- const handleBorderColor = (type, {
46
- colors
47
- }) => {
9
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
10
+
11
+ var _taggedTemplateLiteral__default = /*#__PURE__*/_interopDefaultLegacy(_taggedTemplateLiteral);
12
+
13
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6;
14
+ const slideIn = dsSystem.kfrm(_templateObject || (_templateObject = _taggedTemplateLiteral__default["default"](["\n 0% {\n transform: translate3d(0, -100%, 0);\n }\n 100% {\n transform: translate3d(0, 0, 0);\n }\n"])));
15
+ const slideOut = dsSystem.kfrm(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral__default["default"](["\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"])));
16
+ const spanContainer = height => dsSystem.kfrm(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral__default["default"](["\n 0% {\n height: 0px;\n }\n 100% {\n height: ", "px;\n }\n"])), height);
17
+ const shrinkContainer = height => dsSystem.kfrm(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral__default["default"](["\n 0% {\n height: ", "px;\n }\n 100% {\n height: 0px;\n }\n"])), height);
18
+ const handleBorderColor = (type, _ref) => {
19
+ let {
20
+ colors
21
+ } = _ref;
22
+
48
23
  switch (type) {
49
24
  case bannerTypes.MOBILE_BANNER_TYPES.SUCCESS:
50
25
  return colors.success[900];
@@ -59,16 +34,14 @@ const handleBorderColor = (type, {
59
34
  return colors.danger[900];
60
35
  }
61
36
  };
62
- const handleAnimation = (isAnimating, isOpen, height = null) => {
37
+ const handleAnimation = function (isAnimating, isOpen) {
38
+ let height = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
39
+
63
40
  if (isAnimating) {
64
41
  if (isOpen) {
65
- return dsSystem.css`
66
- animation: ${height ? spanContainer(height) : slideIn} 0.5s ease-in;
67
- `;
42
+ return dsSystem.css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral__default["default"](["\n animation: ", " 0.5s ease-in;\n "])), height ? spanContainer(height) : slideIn);
68
43
  } else {
69
- return dsSystem.css`
70
- animation: ${height ? shrinkContainer(height) : slideOut} 0.5s ease-in;
71
- `;
44
+ return dsSystem.css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral__default["default"](["\n animation: ", " 0.5s ease-in;\n "])), height ? shrinkContainer(height) : slideOut);
72
45
  }
73
46
  }
74
47
  };
@@ -5,29 +5,31 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var _jsx = require('@babel/runtime/helpers/jsx');
6
6
  require('react');
7
7
  var styled = require('styled-components');
8
- var ChevronSmallDown = require('@elliemae/ds-icons/ChevronSmallDown');
9
- var DSButton = require('@elliemae/ds-basic/Button');
8
+ var dsIcons = require('@elliemae/ds-icons');
9
+ var DSButton = require('@elliemae/ds-button');
10
10
 
11
11
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
12
12
 
13
13
  var _jsx__default = /*#__PURE__*/_interopDefaultLegacy(_jsx);
14
14
  var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
15
- var ChevronSmallDown__default = /*#__PURE__*/_interopDefaultLegacy(ChevronSmallDown);
16
15
  var DSButton__default = /*#__PURE__*/_interopDefaultLegacy(DSButton);
17
16
 
18
17
  const Addon = /*#__PURE__*/styled__default["default"](DSButton__default["default"]).withConfig({
19
18
  componentId: "sc-afblfw-0"
20
19
  })(["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']);
21
- const ActionAddon = ({
22
- label,
23
- onClick,
24
- icon
25
- }) => /*#__PURE__*/_jsx__default["default"](Addon, {
26
- onClick: onClick,
27
- labelText: label,
28
- icon: icon || /*#__PURE__*/_jsx__default["default"](ChevronSmallDown__default["default"], {
29
- color: ['brand-primary', 700]
30
- })
31
- });
20
+ const ActionAddon = _ref => {
21
+ let {
22
+ label,
23
+ onClick,
24
+ icon
25
+ } = _ref;
26
+ return /*#__PURE__*/_jsx__default["default"](Addon, {
27
+ onClick: onClick,
28
+ labelText: label,
29
+ icon: icon || /*#__PURE__*/_jsx__default["default"](dsIcons.ChevronSmallDown, {
30
+ color: ['brand-primary', 700]
31
+ })
32
+ });
33
+ };
32
34
 
33
35
  exports.ActionAddon = ActionAddon;