@elliemae/ds-mobile 2.4.2-rc.1 → 2.4.2-rc.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 (76) hide show
  1. package/cjs/CategoryBox/CategoryBox.js +2 -2
  2. package/cjs/CollectionBox/CollectionBox.js +1 -1
  3. package/cjs/FullPageContainer/useMobileHeight.js +0 -1
  4. package/cjs/GlobalHeader/MobileGlobalHeader.js +2 -3
  5. package/cjs/GlobalHeader/styles.js +11 -5
  6. package/cjs/GroupBox/GroupBox.js +2 -2
  7. package/cjs/InfiniteLoader/Infiniteloader.js +2 -4
  8. package/cjs/InfiniteLoader/VirtualizedInfiniteLoader.js +0 -1
  9. package/cjs/LoadingPage/Page.js +0 -1
  10. package/cjs/MobileBanner/MobileBanner.js +11 -14
  11. package/cjs/MobileBanner/styles.js +26 -38
  12. package/cjs/MobileBanner/utils/styleHelpers.js +43 -12
  13. package/cjs/MobileCard/Card.js +1 -1
  14. package/cjs/MobileCard/CardIcons.js +1 -1
  15. package/cjs/MobileCard/ExpandableRegion.js +4 -5
  16. package/cjs/MobileCard/Group.js +2 -2
  17. package/cjs/MobileCard/useHeight.js +0 -1
  18. package/cjs/MobileContextMenu/MobileContextMenu.js +4 -7
  19. package/cjs/MobileContextMenu/MobileContextMenuGroup.js +1 -1
  20. package/cjs/MobileContextMenu/MobileContextMenuItem.js +11 -1
  21. package/cjs/MobileDatePicker/MobileDatePicker.js +1 -1
  22. package/cjs/MobileDropdownMenu/MobileDropdownMenu.js +1 -2
  23. package/cjs/MobileFooter/Footer.js +2 -2
  24. package/cjs/MobileListItem/MobileListItem.js +1 -1
  25. package/cjs/MobilePageHeader/MobilePageHeader.js +1 -2
  26. package/cjs/MobileSelectList/MobileSelectList.js +2 -3
  27. package/cjs/MobileSeparator/Separator.js +2 -2
  28. package/cjs/MobileTimePicker/MobileTimePicker.js +1 -1
  29. package/cjs/MobileTouchable/MobileTouchable.js +2 -3
  30. package/cjs/Modal/Modal.js +2 -2
  31. package/cjs/Modal/styled.js +5 -4
  32. package/cjs/PageForm/PageForm.js +1 -1
  33. package/cjs/PageSummary/PageSummary.js +1 -1
  34. package/cjs/SideNav/SideNav.js +1 -2
  35. package/cjs/SwipeToRefresh/ProgressIndicator.js +4 -4
  36. package/cjs/SwipeToRefresh/SwipeToRefresh.js +2 -2
  37. package/cjs/SwipeToRefresh/useSwipe.js +0 -1
  38. package/esm/CategoryBox/CategoryBox.js +2 -2
  39. package/esm/CollectionBox/CollectionBox.js +1 -1
  40. package/esm/FullPageContainer/useMobileHeight.js +0 -1
  41. package/esm/GlobalHeader/MobileGlobalHeader.js +0 -1
  42. package/esm/GlobalHeader/styles.js +11 -4
  43. package/esm/GroupBox/GroupBox.js +2 -2
  44. package/esm/InfiniteLoader/Infiniteloader.js +2 -4
  45. package/esm/InfiniteLoader/VirtualizedInfiniteLoader.js +0 -1
  46. package/esm/LoadingPage/Page.js +0 -1
  47. package/esm/MobileBanner/MobileBanner.js +10 -13
  48. package/esm/MobileBanner/styles.js +27 -39
  49. package/esm/MobileBanner/utils/styleHelpers.js +43 -8
  50. package/esm/MobileCard/Card.js +1 -1
  51. package/esm/MobileCard/CardIcons.js +1 -1
  52. package/esm/MobileCard/ExpandableRegion.js +4 -5
  53. package/esm/MobileCard/Group.js +2 -2
  54. package/esm/MobileCard/useHeight.js +0 -1
  55. package/esm/MobileContextMenu/MobileContextMenu.js +4 -7
  56. package/esm/MobileContextMenu/MobileContextMenuGroup.js +1 -1
  57. package/esm/MobileContextMenu/MobileContextMenuItem.js +11 -1
  58. package/esm/MobileDatePicker/MobileDatePicker.js +1 -1
  59. package/esm/MobileDropdownMenu/MobileDropdownMenu.js +1 -2
  60. package/esm/MobileFooter/Footer.js +2 -2
  61. package/esm/MobileListItem/MobileListItem.js +1 -1
  62. package/esm/MobilePageHeader/MobilePageHeader.js +1 -2
  63. package/esm/MobileSelectList/MobileSelectList.js +2 -3
  64. package/esm/MobileSeparator/Separator.js +2 -2
  65. package/esm/MobileTimePicker/MobileTimePicker.js +1 -1
  66. package/esm/MobileTouchable/MobileTouchable.js +2 -3
  67. package/esm/Modal/Modal.js +2 -2
  68. package/esm/Modal/styled.js +5 -3
  69. package/esm/PageForm/PageForm.js +1 -1
  70. package/esm/PageSummary/PageSummary.js +1 -1
  71. package/esm/SideNav/SideNav.js +1 -2
  72. package/esm/SwipeToRefresh/ProgressIndicator.js +4 -4
  73. package/esm/SwipeToRefresh/SwipeToRefresh.js +2 -2
  74. package/esm/SwipeToRefresh/useSwipe.js +0 -1
  75. package/package.json +14 -14
  76. package/types/MobileBanner/styles.d.ts +3 -1
@@ -40,7 +40,7 @@ const MobileListItem = _ref => {
40
40
  pl: dsSystem.__UNSAFE_SPACE_TO_DIMSUM(theme.space.s),
41
41
  pr: dsSystem.__UNSAFE_SPACE_TO_DIMSUM(theme.space.s),
42
42
  gutter: "xs",
43
- "data-testid": "".concat(dataTestid, "--").concat(value)
43
+ "data-testid": `${dataTestid}--${value}`
44
44
  }, void 0, leftAddon && /*#__PURE__*/_jsx__default["default"](dsGrid.Grid, {
45
45
  alignItems: "center",
46
46
  justifyContent: "center"
@@ -3,7 +3,6 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var _jsx = require('@babel/runtime/helpers/jsx');
6
- require('core-js/modules/web.dom-collections.iterator.js');
7
6
  var React = require('react');
8
7
  var reactDesc = require('react-desc');
9
8
  var styled = require('styled-components');
@@ -33,7 +32,7 @@ const Label = /*#__PURE__*/styled__default["default"].div.withConfig({
33
32
  })(["color:", ";", ""], props => props.theme.colors.neutral['500'], dsSystem.truncate());
34
33
  const Value = /*#__PURE__*/styled__default["default"].div.withConfig({
35
34
  componentId: "sc-1tfu1y9-3"
36
- })(["", " color:", ";", " margin-top:", ";"], dsSystem.truncate(), props => props.theme.colors.neutral['600'], props => props.withMarginRight ? "margin-right: 4px;" : '', props => props.withBreadcrumb ? '12px' : '0');
35
+ })(["", " color:", ";", " margin-top:", ";"], dsSystem.truncate(), props => props.theme.colors.neutral['600'], props => props.withMarginRight ? `margin-right: 4px;` : '', props => props.withBreadcrumb ? '12px' : '0');
37
36
  const Wrapper = /*#__PURE__*/styled__default["default"](dsGrid.Grid).withConfig({
38
37
  componentId: "sc-1tfu1y9-4"
39
38
  })(["border-bottom:", ";"], props => dsSystem.border(props.theme.colors.neutral['300']));
@@ -4,7 +4,6 @@ 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
7
  require('core-js/modules/esnext.async-iterator.filter.js');
9
8
  require('core-js/modules/esnext.iterator.constructor.js');
10
9
  require('core-js/modules/esnext.iterator.filter.js');
@@ -101,7 +100,7 @@ const MobileSelectList = _ref => {
101
100
  overflow: 'auto'
102
101
  }
103
102
  }, void 0, /*#__PURE__*/_jsx__default["default"](styled.ListContainer, {
104
- "data-testid": "".concat(dataTestid, "--list-container")
103
+ "data-testid": `${dataTestid}--list-container`
105
104
  }, void 0, React__default["default"].Children.map(children, child => {
106
105
  let leftAddon = null;
107
106
  let rightAddon = null;
@@ -131,7 +130,7 @@ const MobileSelectList = _ref => {
131
130
  pr: dsSystem.__UNSAFE_SPACE_TO_DIMSUM(theme.space.s)
132
131
  }, void 0, /*#__PURE__*/React__default["default"].cloneElement(buttonFooter, _objectSpread(_objectSpread({}, buttonFooter.props), {}, {
133
132
  containerProps: {
134
- 'data-testid': "".concat(dataTestid, "--btn")
133
+ 'data-testid': `${dataTestid}--btn`
135
134
  },
136
135
  buttonType: 'primary',
137
136
  size: 'l',
@@ -30,14 +30,14 @@ const Separator = /*#__PURE__*/styled__default["default"](dsGrid.Grid).withConfi
30
30
  color,
31
31
  borderType
32
32
  } = _ref;
33
- return "".concat(theme.colors[color[0]][color[1]], " 1px ").concat(borderType);
33
+ return `${theme.colors[color[0]][color[1]]} 1px ${borderType}`;
34
34
  }, _ref2 => {
35
35
  let {
36
36
  theme,
37
37
  color,
38
38
  borderType
39
39
  } = _ref2;
40
- return "".concat(theme.colors[color[0]][color[1]], " 1px ").concat(borderType);
40
+ return `${theme.colors[color[0]][color[1]]} 1px ${borderType}`;
41
41
  });
42
42
 
43
43
  const MobileSeparator = _ref3 => {
@@ -42,7 +42,7 @@ const DSMobileTimePicker = _ref => {
42
42
  if (!value || !valueArr[0] || !valueArr[1]) return '';
43
43
  const ampm = valueArr[0] >= 12 ? 'pm' : 'am';
44
44
  const h = valueArr[0] > 12 ? valueArr[0] - 12 : valueArr[0];
45
- return "".concat(h, " : ").concat(valueArr[1], " ").concat(ampm);
45
+ return `${h} : ${valueArr[1]} ${ampm}`;
46
46
  }, [value]);
47
47
  return /*#__PURE__*/_jsx__default["default"](dsForm.DSInputGroup, {
48
48
  rightAddon: /*#__PURE__*/_jsx__default["default"](DSButton__default["default"], {
@@ -2,14 +2,13 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var _defineProperty = require('@babel/runtime/helpers/defineProperty');
6
- var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
7
- require('core-js/modules/web.dom-collections.iterator.js');
8
5
  require('core-js/modules/esnext.async-iterator.filter.js');
9
6
  require('core-js/modules/esnext.iterator.constructor.js');
10
7
  require('core-js/modules/esnext.iterator.filter.js');
11
8
  require('core-js/modules/esnext.async-iterator.for-each.js');
12
9
  require('core-js/modules/esnext.iterator.for-each.js');
10
+ var _defineProperty = require('@babel/runtime/helpers/defineProperty');
11
+ var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
13
12
  var React = require('react');
14
13
  var lodash = require('lodash');
15
14
  var styled = require('styled-components');
@@ -60,7 +60,7 @@ const Modal = _ref => {
60
60
  zIndex: zIndex,
61
61
  cols: ['auto']
62
62
  }, void 0, /*#__PURE__*/_jsx__default["default"](styled.ModalBox, {
63
- maxHeight: "".concat(window.innerHeight * 0.75, "px"),
63
+ maxHeight: `${window.innerHeight * 0.75}px`,
64
64
  rows: [1, '80px'],
65
65
  style: {
66
66
  overflow: 'hidden'
@@ -95,7 +95,7 @@ const Modal = _ref => {
95
95
  justifyContent: "center",
96
96
  alignItems: "center",
97
97
  style: {
98
- borderTop: "1px solid ".concat(theme.colors.neutral[100])
98
+ borderTop: `1px solid ${theme.colors.neutral[100]}`
99
99
  }
100
100
  }, void 0, showSecondaryAction && /*#__PURE__*/jsxRuntime.jsx(DSButton__default["default"], _objectSpread(_objectSpread({}, secondaryActionProps), {}, {
101
101
  labelText: secondaryActionProps.labelText || ' Cancel',
@@ -2,18 +2,19 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var _taggedTemplateLiteral = require('@babel/runtime/helpers/taggedTemplateLiteral');
6
5
  var dsGrid = require('@elliemae/ds-grid');
7
6
  var styled = require('styled-components');
8
7
  var dsSystem = require('@elliemae/ds-system');
9
8
 
10
9
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
11
10
 
12
- var _taggedTemplateLiteral__default = /*#__PURE__*/_interopDefaultLegacy(_taggedTemplateLiteral);
13
11
  var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
14
12
 
15
- var _templateObject;
16
- const BodyFix = dsSystem.createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral__default["default"](["\n body{\n ", ";\n }\n"])), props => props.isOpen ? 'overflow: hidden;' : '');
13
+ const BodyFix = dsSystem.createGlobalStyle`
14
+ body{
15
+ ${props => props.isOpen ? 'overflow: hidden;' : ''};
16
+ }
17
+ `;
17
18
  const ModalBox = /*#__PURE__*/styled__default["default"](dsGrid.Grid).withConfig({
18
19
  componentId: "sc-cke90o-0"
19
20
  })(["width:100%;background:", ";max-height:", ";box-shadow:0 2px 4px 0 rgba(0,0,0,0.5);"], props => props.theme.colors.neutral['000'], props => props.maxHeight);
@@ -26,7 +26,7 @@ const Body = /*#__PURE__*/styled__default["default"](dsGrid.Grid).withConfig({
26
26
  let {
27
27
  theme
28
28
  } = _ref2;
29
- return "width: ".concat(dsSystem.op('*', dsSystem.__UNSAFE_SPACE_TO_DIMSUM(theme.space.xxl), 6.25), ";");
29
+ return `width: ${dsSystem.op('*', dsSystem.__UNSAFE_SPACE_TO_DIMSUM(theme.space.xxl), 6.25)};`;
30
30
  });
31
31
 
32
32
  const PageForm = _ref3 => {
@@ -34,7 +34,7 @@ const Body = /*#__PURE__*/styled__default["default"](dsGrid.Grid).withConfig({
34
34
  let {
35
35
  theme
36
36
  } = _ref2;
37
- return "width: ".concat(dsSystem.op('*', dsSystem.__UNSAFE_SPACE_TO_DIMSUM(theme.space.xxl), 6.25), ";");
37
+ return `width: ${dsSystem.op('*', dsSystem.__UNSAFE_SPACE_TO_DIMSUM(theme.space.xxl), 6.25)};`;
38
38
  });
39
39
 
40
40
  const PageSummary = _ref3 => {
@@ -3,7 +3,6 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var _jsx = require('@babel/runtime/helpers/jsx');
6
- require('core-js/modules/web.dom-collections.iterator.js');
7
6
  require('core-js/modules/esnext.async-iterator.map.js');
8
7
  require('core-js/modules/esnext.iterator.map.js');
9
8
  var React = require('react');
@@ -53,7 +52,7 @@ const DSSideNav = _ref => {
53
52
  }, idx, /*#__PURE__*/_jsx__default["default"]("div", {
54
53
  className: "icon"
55
54
  }, void 0, icon), /*#__PURE__*/_jsx__default["default"]("div", {
56
- className: "text ".concat(idx === selectedMenuItemIdx ? 'active' : '')
55
+ className: `text ${idx === selectedMenuItemIdx ? 'active' : ''}`
57
56
  }, void 0, text));
58
57
  })) : null
59
58
  });
@@ -36,16 +36,16 @@ const ProgressIndicator = _ref => {
36
36
  r: "54",
37
37
  fill: "none",
38
38
  strokeWidth: "12",
39
- stroke: "".concat(theme.colors.neutral[100])
39
+ stroke: `${theme.colors.neutral[100]}`
40
40
  }), /*#__PURE__*/_jsx__default["default"]("circle", {
41
41
  cx: "60",
42
42
  cy: "60",
43
43
  r: "54",
44
44
  strokeWidth: "12",
45
45
  fill: "none",
46
- strokeDasharray: "".concat(cir, "px"),
47
- strokeDashoffset: "".concat(dashoffset, "px"),
48
- stroke: "".concat(theme.colors.brand[600]),
46
+ strokeDasharray: `${cir}px`,
47
+ strokeDashoffset: `${dashoffset}px`,
48
+ stroke: `${theme.colors.brand[600]}`,
49
49
  strokeLinecap: "round"
50
50
  })));
51
51
  };
@@ -38,14 +38,14 @@ const SwipeToRefresh = _ref => {
38
38
  onTouchMove: swipe.touchMove,
39
39
  ref: swipe.ref,
40
40
  children: [/*#__PURE__*/_jsx__default["default"](styled.LoaderBox, {
41
- height: loading ? theme.space.m : "".concat(swipe.height, "px"),
41
+ height: loading ? theme.space.m : `${swipe.height}px`,
42
42
  alignItems: "flex-start",
43
43
  "data-testid": "loader-box"
44
44
  }, void 0, /*#__PURE__*/_jsx__default["default"](styled.PositionLoader, {
45
45
  height: theme.space.m,
46
46
  justifyContent: "center",
47
47
  alignItems: "center",
48
- mt: swipe.height > 40 || loading ? 0 : "".concat(swipe.height - 40, "px")
48
+ mt: swipe.height > 40 || loading ? 0 : `${swipe.height - 40}px`
49
49
  }, void 0, loading ? _DSCircularProgressIn || (_DSCircularProgressIn = /*#__PURE__*/_jsx__default["default"](dsCircularProgressIndicator.DSCircularProgressIndicator, {})) : /*#__PURE__*/_jsx__default["default"](ProgressIndicator.ProgressIndicator, {
50
50
  progress: progress
51
51
  }))), /*#__PURE__*/jsxRuntime.jsx("div", {
@@ -2,7 +2,6 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- require('core-js/modules/web.dom-collections.iterator.js');
6
5
  var React = require('react');
7
6
 
8
7
  const useSwipe = _ref => {
@@ -11,7 +11,7 @@ const Title = /*#__PURE__*/styled.h3.withConfig({
11
11
  })(["font-size:18px;margin:0;color:", ";line-height:inherit;", " font-weight:", ";"], props => props.theme.colors.neutral['700'], truncate(), props => props.theme.fontWeights.semibold);
12
12
  const CategoryBox = /*#__PURE__*/styled(Grid).withConfig({
13
13
  componentId: "sc-iv6vo1-1"
14
- })(["background:", ";border-top:", ";"], props => props.theme.colors.neutral['0'], props => props.borderTop ? "1px solid ".concat(props.theme.colors.neutral['100']) : 'none');
14
+ })(["background:", ";border-top:", ";"], props => props.theme.colors.neutral['0'], props => props.borderTop ? `1px solid ${props.theme.colors.neutral['100']}` : 'none');
15
15
 
16
16
  const DSCategoryBox = _ref => {
17
17
  let {
@@ -33,7 +33,7 @@ const DSCategoryBox = _ref => {
33
33
  pl: "xs",
34
34
  pr: actionsRight.length > 0 ? 'xxs' : 'xs'
35
35
  }, void 0, /*#__PURE__*/_jsx(Title, {
36
- as: "h".concat(headerLevel)
36
+ as: `h${headerLevel}`
37
37
  }, void 0, title), hasActions && /*#__PURE__*/_jsx(Grid, {
38
38
  cols: times(actionsRight.length, () => 'auto'),
39
39
  justifySelf: "end"
@@ -44,7 +44,7 @@ const DSCollectionBox = _ref => {
44
44
  alignItems: "center",
45
45
  cols: headerCols
46
46
  }, void 0, title && /*#__PURE__*/_jsx(Header, {
47
- as: "h".concat(headerLevel)
47
+ as: `h${headerLevel}`
48
48
  }, void 0, title), headerAction && /*#__PURE__*/_jsx(ActionWrap, {
49
49
  justifySelf: "end"
50
50
  }, void 0, headerAction)), /*#__PURE__*/_jsx(Body, {}, void 0, body), footerAction && /*#__PURE__*/_jsx(Footer, {
@@ -1,4 +1,3 @@
1
- import 'core-js/modules/web.dom-collections.iterator.js';
2
1
  import { useState, useEffect } from 'react';
3
2
 
4
3
  function useMobileHeight() {
@@ -5,7 +5,6 @@ import 'core-js/modules/esnext.async-iterator.for-each.js';
5
5
  import 'core-js/modules/esnext.iterator.for-each.js';
6
6
  import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
7
7
  import _jsx from '@babel/runtime/helpers/esm/jsx';
8
- import 'core-js/modules/web.dom-collections.iterator.js';
9
8
  import { useState, useCallback } from 'react';
10
9
  import { Search } from '@elliemae/ds-icons';
11
10
  import { DSInput } from '@elliemae/ds-form';
@@ -1,15 +1,22 @@
1
- import _taggedTemplateLiteral from '@babel/runtime/helpers/esm/taggedTemplateLiteral';
2
1
  import styled from 'styled-components';
3
2
  import { kfrm, css } from '@elliemae/ds-system';
4
3
 
5
- var _templateObject, _templateObject2;
6
4
  const Container = /*#__PURE__*/styled.header.withConfig({
7
5
  componentId: "sc-1nzpklc-0"
8
6
  })(["width:auto;height:64px;position:fixed;width:100%;background-color:", ";padding:", ";color:", ";"], props => props.theme.colors.brand[700], props => props.theme.space.xs, props => props.theme.colors.neutral['000']);
9
- const growLeft = kfrm(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n 0% {\n width: 0;\n }\n 100% {\n width: 100%;\n }\n"])));
7
+ const growLeft = kfrm`
8
+ 0% {
9
+ width: 0;
10
+ }
11
+ 100% {
12
+ width: 100%;
13
+ }
14
+ `;
10
15
  const SearchWrapper = /*#__PURE__*/styled.div.withConfig({
11
16
  componentId: "sc-1nzpklc-1"
12
- })(["background-color:", ";", " float:right;width:100%;border-radius:4px;.dsInput{input{border-radius:2px 0 0 2px;color:", ";border:calc(0.30769rem * 0.25) solid ", " !important;&:focus{border-right:none !important;}&::placeholder{color:", ";}}.em-ds-input__clearable{border:calc(0.30769rem * 0.25) solid ", " !important;}}.dsButton{border-color:", " !important;border-radius:0 2px 2px 0;border-left:none;}svg,svg:not([fill]){fill:", ";}"], props => props.theme.colors.brand[600], css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n animation: ", " 1s;\n "])), growLeft), props => props.theme.colors.neutral['000'], props => props.theme.colors.brand[800], props => props.theme.colors.neutral['000'], props => props.theme.colors.brand[800], props => props.theme.colors.brand[800], props => props.theme.colors.neutral['000']);
17
+ })(["background-color:", ";", " float:right;width:100%;border-radius:4px;.dsInput{input{border-radius:2px 0 0 2px;color:", ";border:calc(0.30769rem * 0.25) solid ", " !important;&:focus{border-right:none !important;}&::placeholder{color:", ";}}.em-ds-input__clearable{border:calc(0.30769rem * 0.25) solid ", " !important;}}.dsButton{border-color:", " !important;border-radius:0 2px 2px 0;border-left:none;}svg,svg:not([fill]){fill:", ";}"], props => props.theme.colors.brand[600], css`
18
+ animation: ${growLeft} 1s;
19
+ `, props => props.theme.colors.neutral['000'], props => props.theme.colors.brand[800], props => props.theme.colors.neutral['000'], props => props.theme.colors.brand[800], props => props.theme.colors.brand[800], props => props.theme.colors.neutral['000']);
13
20
  const Icon = /*#__PURE__*/styled.div.withConfig({
14
21
  componentId: "sc-1nzpklc-2"
15
22
  })(["margin-right:", ";"], props => props.theme.space.xs);
@@ -11,7 +11,7 @@ const Title = /*#__PURE__*/styled.h3.withConfig({
11
11
  })(["font-size:14px;margin:0;", " color:", ";line-height:inherit;text-transform:capitalize;font-weight:", ";"], truncate(), props => props.theme.colors.neutral['700'], props => props.theme.fontWeights.semibold);
12
12
  const GroupBox = /*#__PURE__*/styled(Grid).withConfig({
13
13
  componentId: "sc-1g87w66-1"
14
- })(["background:", ";border-top:", ";"], props => props.background === 'grey' ? props.theme.colors.neutral['050'] : props.theme.colors.neutral['000'], props => props.borderTop ? "1px solid ".concat(props.theme.colors.neutral['100']) : 'none');
14
+ })(["background:", ";border-top:", ";"], props => props.background === 'grey' ? props.theme.colors.neutral['050'] : props.theme.colors.neutral['000'], props => props.borderTop ? `1px solid ${props.theme.colors.neutral['100']}` : 'none');
15
15
 
16
16
  const DSGroupBox = _ref => {
17
17
  let {
@@ -35,7 +35,7 @@ const DSGroupBox = _ref => {
35
35
  pl: "xs",
36
36
  pr: hasActions ? 'xxs' : 'xs'
37
37
  }, void 0, /*#__PURE__*/_jsx(Title, {
38
- as: "h".concat(headerLevel)
38
+ as: `h${headerLevel}`
39
39
  }, void 0, title), hasActions && /*#__PURE__*/_jsx(Grid, {
40
40
  cols: times(actionsRight.length, () => 'auto'),
41
41
  justifySelf: "end"
@@ -45,10 +45,8 @@ const InfiniteLoader = _ref => {
45
45
  }
46
46
 
47
47
  return () => {
48
- var _observer$current, _observer$current2;
49
-
50
- (_observer$current = observer.current) === null || _observer$current === void 0 ? void 0 : _observer$current.unobserve(target.current);
51
- (_observer$current2 = observer.current) === null || _observer$current2 === void 0 ? void 0 : _observer$current2.disconnect();
48
+ observer.current?.unobserve(target.current);
49
+ observer.current?.disconnect();
52
50
  };
53
51
  }, [target, observer, fetchData]);
54
52
  return /*#__PURE__*/_jsx(Grid, {
@@ -1,5 +1,4 @@
1
1
  import _jsx from '@babel/runtime/helpers/esm/jsx';
2
- import 'core-js/modules/web.dom-collections.iterator.js';
3
2
  import { useState } from 'react';
4
3
  import { PropTypes, describe } from 'react-desc';
5
4
  import RWInfiniteLoader from 'react-window-infinite-loader';
@@ -1,6 +1,5 @@
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
3
  import 'core-js/modules/esnext.async-iterator.constructor.js';
5
4
  import 'core-js/modules/esnext.async-iterator.to-array.js';
6
5
  import 'core-js/modules/esnext.iterator.constructor.js';
@@ -5,14 +5,13 @@ import 'core-js/modules/esnext.async-iterator.for-each.js';
5
5
  import 'core-js/modules/esnext.iterator.for-each.js';
6
6
  import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
7
7
  import _jsx from '@babel/runtime/helpers/esm/jsx';
8
- import 'core-js/modules/web.dom-collections.iterator.js';
9
8
  import { useRef, useState, useEffect, useLayoutEffect } from 'react';
10
9
  import { CloseX } from '@elliemae/ds-icons';
11
10
  import { describe } from 'react-desc';
12
11
  import { icons } from './utils/icons.js';
13
12
  import { propTypes } from './propTypes.js';
14
13
  import { defaultProps } from './defaultProps.js';
15
- import { StyledBannerContainer, StyledInnerContainer, StyledIconContainer, StyledContent, StyledTitle, StyledSubTitle, StyledActionLink, StyledCloseButtonContainer, StyledCloseButton } from './styles.js';
14
+ import { StyledBannerContainer, StyledInnerContainer, StyledIconContainer, StyledContent, StyledTitle, StyledSubTitle, StyledSubTitleText, StyledActionLink, StyledCloseButtonContainer, StyledCloseButton } from './styles.js';
16
15
  import { jsx, jsxs } from 'react/jsx-runtime';
17
16
 
18
17
  var _CloseX;
@@ -47,9 +46,7 @@ const DSMobileBanner = _ref => {
47
46
  }, [isAnimating, isOpen]);
48
47
  useEffect(() => {
49
48
  if (focusOnOpen && closeRef.current && isOpen) {
50
- var _closeRef$current, _closeRef$current$foc;
51
-
52
- (_closeRef$current = closeRef.current) === null || _closeRef$current === void 0 ? void 0 : (_closeRef$current$foc = _closeRef$current.focus) === null || _closeRef$current$foc === void 0 ? void 0 : _closeRef$current$foc.call(_closeRef$current);
49
+ closeRef.current?.focus?.();
53
50
  }
54
51
  }, [focusOnOpen, isOpen]);
55
52
  useLayoutEffect(() => {
@@ -74,21 +71,21 @@ const DSMobileBanner = _ref => {
74
71
  "data-testid": "ds-mobile-banner-icon"
75
72
  }, void 0, icons[type]), /*#__PURE__*/_jsx(StyledContent, {
76
73
  showCloseButton: showCloseButton
77
- }, void 0, /*#__PURE__*/_jsx(StyledTitle, {}, void 0, label), /*#__PURE__*/_jsx(StyledSubTitle, {}, void 0, body, actionLinkLabel && /*#__PURE__*/_jsx(StyledActionLink, {
74
+ }, void 0, /*#__PURE__*/_jsx(StyledTitle, {}, void 0, label), /*#__PURE__*/_jsx(StyledSubTitle, {}, void 0, /*#__PURE__*/_jsx(StyledSubTitleText, {}, void 0, body), actionLinkLabel && /*#__PURE__*/_jsx(StyledActionLink, {
78
75
  href: actionLinkHref,
79
76
  "data-testid": "ds-mobile-banner-link",
80
77
  onClick: actionLinkOnClick
81
78
  }, void 0, actionLinkLabel))), showCloseButton && /*#__PURE__*/_jsx(StyledCloseButtonContainer, {}, void 0, /*#__PURE__*/_jsx(StyledCloseButton, {
82
79
  "data-testid": "ds-mobile-banner-close-button",
83
- buttonType: "link",
80
+ buttonType: "icon",
84
81
  onClick: closeButtonOnClick,
85
82
  "aria-label": "Close Banner",
86
- icon: _CloseX || (_CloseX = /*#__PURE__*/_jsx(CloseX, {
87
- width: "12px",
88
- height: "12px"
89
- })),
90
- innerRef: closeRef
91
- }))]
83
+ innerRef: closeRef,
84
+ size: "s"
85
+ }, void 0, _CloseX || (_CloseX = /*#__PURE__*/_jsx(CloseX, {
86
+ width: "12px",
87
+ height: "12px"
88
+ }))))]
92
89
  })
93
90
  }));
94
91
  };
@@ -1,11 +1,11 @@
1
1
  import styled from 'styled-components';
2
2
  import { toMobile } from '@elliemae/ds-system';
3
- import DSButton from '@elliemae/ds-button';
3
+ import { DSButtonV2 } 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(", ");", ";"], _ref => {
8
+ })(["display:flex;min-height:60px;width:100%;background-color:", ";border-bottom:4px solid ", ";transform:translateY(", ");", ";padding:8px 8px 8px 16px;"], _ref => {
9
9
  let {
10
10
  theme
11
11
  } = _ref;
@@ -52,7 +52,7 @@ const StyledTitle = /*#__PURE__*/styled.div.withConfig({
52
52
  let {
53
53
  theme
54
54
  } = _ref8;
55
- return theme.space.xxs;
55
+ return theme.space.xxxs;
56
56
  }, _ref9 => {
57
57
  let {
58
58
  theme
@@ -66,7 +66,7 @@ const StyledTitle = /*#__PURE__*/styled.div.withConfig({
66
66
  });
67
67
  const StyledSubTitle = /*#__PURE__*/styled.div.withConfig({
68
68
  componentId: "sc-4jnp92-3"
69
- })(["font-size:", ";font-weight:", ";"], _ref11 => {
69
+ })(["display:flex;flex-wrap:wrap;justify-content:flex-start;font-size:", ";font-weight:", ";& > *{margin-top:4px;}"], _ref11 => {
70
70
  let {
71
71
  theme
72
72
  } = _ref11;
@@ -79,78 +79,66 @@ const StyledSubTitle = /*#__PURE__*/styled.div.withConfig({
79
79
  });
80
80
  const StyledIconContainer = /*#__PURE__*/styled.div.withConfig({
81
81
  componentId: "sc-4jnp92-4"
82
- })(["margin-top:10px;margin-right:", ";margin-left:", ";"], _ref13 => {
82
+ })(["margin-right:", ";"], _ref13 => {
83
83
  let {
84
84
  theme
85
85
  } = _ref13;
86
86
  return theme.space.xxs;
87
- }, _ref14 => {
88
- let {
89
- theme
90
- } = _ref14;
91
- return theme.space.xs;
92
87
  });
93
88
  const StyledContent = /*#__PURE__*/styled.div.withConfig({
94
89
  componentId: "sc-4jnp92-5"
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 => {
90
+ })(["width:100%;display:flex;flex-direction:column;margin-right:", ";"], _ref14 => {
101
91
  let {
102
92
  showCloseButton
103
- } = _ref16;
93
+ } = _ref14;
104
94
  return !showCloseButton ? '28px' : '0';
105
95
  });
106
96
  const StyledCloseButtonContainer = /*#__PURE__*/styled.div.withConfig({
107
97
  componentId: "sc-4jnp92-6"
108
- })(["display:flex;align-items:flex-start;margin-top:6px;margin-right:6px;"]);
109
- const StyledCloseButton = /*#__PURE__*/styled(DSButton).withConfig({
98
+ })(["display:flex;align-items:flex-start;"]);
99
+ const StyledSubTitleText = /*#__PURE__*/styled.span.withConfig({
110
100
  componentId: "sc-4jnp92-7"
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 => {
101
+ })(["margin-right:16px;line-height:1.1;"]);
102
+ const StyledCloseButton = /*#__PURE__*/styled(DSButtonV2).withConfig({
103
+ componentId: "sc-4jnp92-8"
104
+ })(["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;}}"], _ref15 => {
112
105
  let {
113
106
  theme
114
- } = _ref17;
107
+ } = _ref15;
115
108
  return theme.colors.brand[700];
116
109
  });
117
110
  const StyledActionLink = /*#__PURE__*/styled.a.withConfig({
118
- componentId: "sc-4jnp92-8"
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 => {
111
+ componentId: "sc-4jnp92-9"
112
+ })(["text-decoration:none;line-height:1.1;font-size:", ";font-weight:", ";color:", ";"], _ref16 => {
125
113
  let {
126
114
  theme
127
- } = _ref19;
115
+ } = _ref16;
128
116
  return toMobile(theme.fontSizes.title[600]);
129
- }, _ref20 => {
117
+ }, _ref17 => {
130
118
  let {
131
119
  theme
132
- } = _ref20;
120
+ } = _ref17;
133
121
  return theme.fontWeights.regular;
134
- }, _ref21 => {
122
+ }, _ref18 => {
135
123
  let {
136
124
  theme
137
- } = _ref21;
125
+ } = _ref18;
138
126
  return theme.colors.brand[600];
139
127
  });
140
128
  const StyledBannerContainer = /*#__PURE__*/styled.div.withConfig({
141
- componentId: "sc-4jnp92-9"
142
- })(["overflow:hidden;height:", ";", ";"], _ref22 => {
129
+ componentId: "sc-4jnp92-10"
130
+ })(["overflow:hidden;height:", ";", ";"], _ref19 => {
143
131
  let {
144
132
  isOpen
145
- } = _ref22;
133
+ } = _ref19;
146
134
  return isOpen ? 'auto' : '0px';
147
- }, _ref23 => {
135
+ }, _ref20 => {
148
136
  let {
149
137
  isAnimating,
150
138
  isOpen,
151
139
  height
152
- } = _ref23;
140
+ } = _ref20;
153
141
  return handleAnimation(isAnimating, isOpen, height);
154
142
  });
155
143
 
156
- export { StyledActionLink, StyledBannerContainer, StyledCloseButton, StyledCloseButtonContainer, StyledContent, StyledIconContainer, StyledInnerContainer, StyledSubTitle, StyledTextContent, StyledTitle };
144
+ export { StyledActionLink, StyledBannerContainer, StyledCloseButton, StyledCloseButtonContainer, StyledContent, StyledIconContainer, StyledInnerContainer, StyledSubTitle, StyledSubTitleText, StyledTextContent, StyledTitle };
@@ -1,12 +1,43 @@
1
- import _taggedTemplateLiteral from '@babel/runtime/helpers/esm/taggedTemplateLiteral';
2
1
  import { kfrm, css } from '@elliemae/ds-system';
3
2
  import { MOBILE_BANNER_TYPES } from './bannerTypes.js';
4
3
 
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);
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
+ `;
10
41
  const handleBorderColor = (type, _ref) => {
11
42
  let {
12
43
  colors
@@ -31,9 +62,13 @@ const handleAnimation = function (isAnimating, isOpen) {
31
62
 
32
63
  if (isAnimating) {
33
64
  if (isOpen) {
34
- return css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n animation: ", " 0.5s ease-in;\n "])), height ? spanContainer(height) : slideIn);
65
+ return css`
66
+ animation: ${height ? spanContainer(height) : slideIn} 0.5s ease-in;
67
+ `;
35
68
  } else {
36
- return css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n animation: ", " 0.5s ease-in;\n "])), height ? shrinkContainer(height) : slideOut);
69
+ return css`
70
+ animation: ${height ? shrinkContainer(height) : slideOut} 0.5s ease-in;
71
+ `;
37
72
  }
38
73
  }
39
74
  };
@@ -66,7 +66,7 @@ const MobileCard = _ref => {
66
66
  activeValue,
67
67
  onChange
68
68
  } = context;
69
- const selected = activeValue !== undefined && (activeValue === value || (activeValue === null || activeValue === void 0 ? void 0 : activeValue.length) && (activeValue === null || activeValue === void 0 ? void 0 : activeValue.includes(value)));
69
+ const selected = activeValue !== undefined && (activeValue === value || activeValue?.length && activeValue?.includes(value));
70
70
  return /*#__PURE__*/_jsx(StyledCard, {
71
71
  "data-testid": "card-wrapper",
72
72
  minHeight: height === 'm' ? __UNSAFE_SPACE_TO_DIMSUM(theme.space.xxl) : __UNSAFE_SPACE_TO_DIMSUM(theme.space.xl)
@@ -22,7 +22,7 @@ const SubIcons = _ref => {
22
22
  /*#__PURE__*/
23
23
  // eslint-disable-next-line react/no-array-index-key
24
24
  _jsx(Icon, {
25
- className: "icon-color-".concat(colors[i] || 'muted')
25
+ className: `icon-color-${colors[i] || 'muted'}`
26
26
  }, i)));
27
27
  };
28
28