@elliemae/ds-mobile 2.4.2-rc.9 → 2.4.2

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 (73) 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 +3 -6
  11. package/cjs/MobileBanner/utils/styleHelpers.js +43 -12
  12. package/cjs/MobileCard/Card.js +1 -1
  13. package/cjs/MobileCard/CardIcons.js +1 -1
  14. package/cjs/MobileCard/ExpandableRegion.js +4 -5
  15. package/cjs/MobileCard/Group.js +2 -2
  16. package/cjs/MobileCard/useHeight.js +0 -1
  17. package/cjs/MobileContextMenu/MobileContextMenu.js +4 -7
  18. package/cjs/MobileContextMenu/MobileContextMenuGroup.js +1 -1
  19. package/cjs/MobileContextMenu/MobileContextMenuItem.js +11 -1
  20. package/cjs/MobileDatePicker/MobileDatePicker.js +1 -1
  21. package/cjs/MobileDropdownMenu/MobileDropdownMenu.js +1 -2
  22. package/cjs/MobileFooter/Footer.js +2 -2
  23. package/cjs/MobileListItem/MobileListItem.js +1 -1
  24. package/cjs/MobilePageHeader/MobilePageHeader.js +1 -2
  25. package/cjs/MobileSelectList/MobileSelectList.js +2 -3
  26. package/cjs/MobileSeparator/Separator.js +2 -2
  27. package/cjs/MobileTimePicker/MobileTimePicker.js +1 -1
  28. package/cjs/MobileTouchable/MobileTouchable.js +2 -3
  29. package/cjs/Modal/Modal.js +2 -2
  30. package/cjs/Modal/styled.js +5 -4
  31. package/cjs/PageForm/PageForm.js +1 -1
  32. package/cjs/PageSummary/PageSummary.js +1 -1
  33. package/cjs/SideNav/SideNav.js +1 -2
  34. package/cjs/SwipeToRefresh/ProgressIndicator.js +4 -4
  35. package/cjs/SwipeToRefresh/SwipeToRefresh.js +2 -2
  36. package/cjs/SwipeToRefresh/useSwipe.js +0 -1
  37. package/esm/CategoryBox/CategoryBox.js +2 -2
  38. package/esm/CollectionBox/CollectionBox.js +1 -1
  39. package/esm/FullPageContainer/useMobileHeight.js +0 -1
  40. package/esm/GlobalHeader/MobileGlobalHeader.js +0 -1
  41. package/esm/GlobalHeader/styles.js +11 -4
  42. package/esm/GroupBox/GroupBox.js +2 -2
  43. package/esm/InfiniteLoader/Infiniteloader.js +2 -4
  44. package/esm/InfiniteLoader/VirtualizedInfiniteLoader.js +0 -1
  45. package/esm/LoadingPage/Page.js +0 -1
  46. package/esm/MobileBanner/MobileBanner.js +1 -4
  47. package/esm/MobileBanner/utils/styleHelpers.js +43 -8
  48. package/esm/MobileCard/Card.js +1 -1
  49. package/esm/MobileCard/CardIcons.js +1 -1
  50. package/esm/MobileCard/ExpandableRegion.js +4 -5
  51. package/esm/MobileCard/Group.js +2 -2
  52. package/esm/MobileCard/useHeight.js +0 -1
  53. package/esm/MobileContextMenu/MobileContextMenu.js +4 -7
  54. package/esm/MobileContextMenu/MobileContextMenuGroup.js +1 -1
  55. package/esm/MobileContextMenu/MobileContextMenuItem.js +11 -1
  56. package/esm/MobileDatePicker/MobileDatePicker.js +1 -1
  57. package/esm/MobileDropdownMenu/MobileDropdownMenu.js +1 -2
  58. package/esm/MobileFooter/Footer.js +2 -2
  59. package/esm/MobileListItem/MobileListItem.js +1 -1
  60. package/esm/MobilePageHeader/MobilePageHeader.js +1 -2
  61. package/esm/MobileSelectList/MobileSelectList.js +2 -3
  62. package/esm/MobileSeparator/Separator.js +2 -2
  63. package/esm/MobileTimePicker/MobileTimePicker.js +1 -1
  64. package/esm/MobileTouchable/MobileTouchable.js +2 -3
  65. package/esm/Modal/Modal.js +2 -2
  66. package/esm/Modal/styled.js +5 -3
  67. package/esm/PageForm/PageForm.js +1 -1
  68. package/esm/PageSummary/PageSummary.js +1 -1
  69. package/esm/SideNav/SideNav.js +1 -2
  70. package/esm/SwipeToRefresh/ProgressIndicator.js +4 -4
  71. package/esm/SwipeToRefresh/SwipeToRefresh.js +2 -2
  72. package/esm/SwipeToRefresh/useSwipe.js +0 -1
  73. package/package.json +14 -14
@@ -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,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 { useRef, useState, useEffect, useLayoutEffect } from 'react';
10
9
  import { CloseX } from '@elliemae/ds-icons';
11
10
  import { describe } from 'react-desc';
@@ -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(() => {
@@ -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
 
@@ -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 { useRef, useState, useEffect } from 'react';
4
3
  import styled from 'styled-components';
5
4
  import { truncate, border } from '@elliemae/ds-system';
@@ -10,10 +9,10 @@ const RegionWrapper = /*#__PURE__*/styled.div.withConfig({
10
9
  })(["width:100%;height:100%;"]);
11
10
  const Region = /*#__PURE__*/styled.div.withConfig({
12
11
  componentId: "sc-mduzz9-1"
13
- })(["display:flex;", " transition:max-height ", " linear;max-height:0;", " align-items:center;", ";border-top:", ";font-weight:", ";"], props => props.hide ? 'visibility: hidden;' : '', props => props.animate ? '0.25s' : '0.20s', props => props.animate ? "\n max-height: ".concat(props.refHeight, "px;\n ") : '', truncate(), props => border(props.theme.colors.neutral['300']), props => props.theme.fontWeights.regular);
12
+ })(["display:flex;", " transition:max-height ", " linear;max-height:0;", " align-items:center;", ";border-top:", ";font-weight:", ";"], props => props.hide ? 'visibility: hidden;' : '', props => props.animate ? '0.25s' : '0.20s', props => props.animate ? `
13
+ max-height: ${props.refHeight}px;
14
+ ` : '', truncate(), props => border(props.theme.colors.neutral['300']), props => props.theme.fontWeights.regular);
14
15
  const ExpandableRegion = _ref => {
15
- var _ref$current;
16
-
17
16
  let {
18
17
  show,
19
18
  content
@@ -35,7 +34,7 @@ const ExpandableRegion = _ref => {
35
34
  return /*#__PURE__*/_jsx(Region, {
36
35
  hide: hide // needed to handle transition, `auto` max-height isn't supported
37
36
  ,
38
- refHeight: (ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.scrollHeight) || 9999,
37
+ refHeight: ref?.current?.scrollHeight || 9999,
39
38
  onTransitionEnd: hideOnAnimationEnd,
40
39
  animate: animate
41
40
  }, void 0, /*#__PURE__*/jsx(RegionWrapper, {
@@ -16,14 +16,14 @@ const GroupGrid = /*#__PURE__*/styled(Grid).withConfig({
16
16
  theme,
17
17
  withTopBorder
18
18
  } = _ref;
19
- return withTopBorder ? "border-top: ".concat(border(theme.colors.neutral['100'])) : '';
19
+ return withTopBorder ? `border-top: ${border(theme.colors.neutral['100'])}` : '';
20
20
  });
21
21
  const GroupTitle = /*#__PURE__*/styled.span.withConfig({
22
22
  componentId: "sc-17xukaf-1"
23
23
  })(["", ""], truncate());
24
24
  const GroupTitleGrid = /*#__PURE__*/styled.div.withConfig({
25
25
  componentId: "sc-17xukaf-2"
26
- })(["display:flex;justify-content:space-between;padding:0 ", ";font-size:", ";", " font-weight:", ";background-color:", ";border-top:", ";line-height:", ";@media (min-width:1024px){background-color:", ";border-top:", ";}"], props => props.theme.space.xs, props => "calc(".concat(__UNSAFE_SPACE_TO_DIMSUM(props.theme.space.m), " / 2)"), color('neutral', '700'), props => props.theme.fontWeights.semibold, props => props.theme.colors.brand['200'], props => border(props.theme.colors.brand['300']), props => __UNSAFE_SPACE_TO_DIMSUM(props.theme.space.m), props => props.theme.colors.neutral['080'], props => border(props.theme.colors.neutral['080']));
26
+ })(["display:flex;justify-content:space-between;padding:0 ", ";font-size:", ";", " font-weight:", ";background-color:", ";border-top:", ";line-height:", ";@media (min-width:1024px){background-color:", ";border-top:", ";}"], props => props.theme.space.xs, props => `calc(${__UNSAFE_SPACE_TO_DIMSUM(props.theme.space.m)} / 2)`, color('neutral', '700'), props => props.theme.fontWeights.semibold, props => props.theme.colors.brand['200'], props => border(props.theme.colors.brand['300']), props => __UNSAFE_SPACE_TO_DIMSUM(props.theme.space.m), props => props.theme.colors.neutral['080'], props => border(props.theme.colors.neutral['080']));
27
27
 
28
28
  const MobileCardGroup = _ref2 => {
29
29
  let {
@@ -1,4 +1,3 @@
1
- import 'core-js/modules/web.dom-collections.iterator.js';
2
1
  import { useState, useEffect } from 'react';
3
2
  import { rem } from 'polished';
4
3
 
@@ -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.map.js';
5
4
  import 'core-js/modules/esnext.iterator.map.js';
6
5
  import 'core-js/modules/esnext.async-iterator.filter.js';
@@ -26,7 +25,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
26
25
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
27
26
  const StyledContainer = /*#__PURE__*/styled(Grid).withConfig({
28
27
  componentId: "sc-15ys5tq-0"
29
- })(["background:", ";z-index:", ";width:", ";position:fixed;bottom:0;left:", ";max-height:90vh;border-top-left-radius:5px;border-top-right-radius:5px;box-shadow:0 0px 24px 0 rgba(0,0,0,0.5),0 0px 11px 0 rgba(0,0,0,0.5);"], props => props.theme.colors.neutral['000'], props => props.zIndex, props => "calc(100% - ".concat(props.theme.space.xs, ")"), props => props.theme.space.xxs);
28
+ })(["background:", ";z-index:", ";width:", ";position:fixed;bottom:0;left:", ";max-height:90vh;border-top-left-radius:5px;border-top-right-radius:5px;box-shadow:0 0px 24px 0 rgba(0,0,0,0.5),0 0px 11px 0 rgba(0,0,0,0.5);"], props => props.theme.colors.neutral['000'], props => props.zIndex, props => `calc(100% - ${props.theme.space.xs})`, props => props.theme.space.xxs);
30
29
  const StyledTitle = /*#__PURE__*/styled(Grid).withConfig({
31
30
  componentId: "sc-15ys5tq-1"
32
31
  })(["font-size:16px;font-weight:", ";color:", ";", " & > span{height:20px;width:20px;}& > span > svg,svg:not([fill]){height:20px;width:20px;fill:", ";}"], props => props.theme.fontWeights.semibold, props => props.theme.colors.neutral['000'], truncate(), props => props.theme.colors.neutral['000']);
@@ -109,9 +108,7 @@ const DSMobileContextMenu = withTheme(_ref => {
109
108
  multiple: multiple,
110
109
  onChange: handleChange
111
110
  }, void 0, React.Children.map(children, (child, ii) => {
112
- var _child$type;
113
-
114
- const isGroup = child.type === (_ContextMenuGroup || (_ContextMenuGroup = /*#__PURE__*/_jsx(DSMobileContextMenuGroup, {}))).type || ((_child$type = child.type) === null || _child$type === void 0 ? void 0 : _child$type.name) === DSMobileContextMenuGroup.componentType || child.type === DSMobileContextMenuGroup.type;
111
+ const isGroup = child.type === (_ContextMenuGroup || (_ContextMenuGroup = /*#__PURE__*/_jsx(DSMobileContextMenuGroup, {}))).type || child.type?.name === DSMobileContextMenuGroup.componentType || child.type === DSMobileContextMenuGroup.type;
115
112
  const {
116
113
  onClick = noop
117
114
  } = child.props;
@@ -120,7 +117,7 @@ const DSMobileContextMenu = withTheme(_ref => {
120
117
  if (singleSelect) isSelected = trueSelected === value;else if (multiple) isSelected = trueSelected.includes(value);
121
118
  return /*#__PURE__*/React.cloneElement(child, {
122
119
  value,
123
- key: "cm.".concat(ii),
120
+ key: `cm.${ii}`,
124
121
  isMulti: multiple,
125
122
  singleSelect,
126
123
  isSelected,
@@ -133,7 +130,7 @@ const DSMobileContextMenu = withTheme(_ref => {
133
130
  alignItems: "center"
134
131
  }, void 0, /*#__PURE__*/React.cloneElement(buttonFooter, _objectSpread(_objectSpread({}, buttonFooter.props), {}, {
135
132
  containerProps: {
136
- 'data-testid': "".concat(dataTestid, "--btn")
133
+ 'data-testid': `${dataTestid}--btn`
137
134
  },
138
135
  buttonType: 'primary',
139
136
  size: 'l',
@@ -33,7 +33,7 @@ const DSMobileContextMenuGroup = _ref => {
33
33
  const {
34
34
  onClick = noop
35
35
  } = child.props;
36
- const value = "".concat(groupValue, ":").concat(index);
36
+ const value = `${groupValue}:${index}`;
37
37
  let isSelected;
38
38
  if (singleSelect) isSelected = selectedItems === value;else if (isMulti) isSelected = selectedItems.includes(value);
39
39
  return /*#__PURE__*/React.cloneElement(child, {
@@ -28,7 +28,17 @@ const PropWrap = /*#__PURE__*/styled(props => /*#__PURE__*/jsx(Grid, _objectSpre
28
28
  componentId: "sc-20od94-1"
29
29
  })(["", ""], props => {
30
30
  if (!props.isMulti) {
31
- return "\n & > span {\n height: 18px;\n width: 18px;\n }\n\n & > span > svg {\n height: 18px;\n width: 18px;\n }\n ";
31
+ return `
32
+ & > span {
33
+ height: 18px;
34
+ width: 18px;
35
+ }
36
+
37
+ & > span > svg {
38
+ height: 18px;
39
+ width: 18px;
40
+ }
41
+ `;
32
42
  }
33
43
 
34
44
  return '';
@@ -29,7 +29,7 @@ const DSMobileDatePicker = _ref => {
29
29
  }
30
30
  }, [inputRef.current]);
31
31
  const valueArr = value.split('-');
32
- const displayValue = value && "".concat(valueArr[1], " / ").concat(valueArr[2], " / ").concat(valueArr[0]);
32
+ const displayValue = value && `${valueArr[1]} / ${valueArr[2]} / ${valueArr[0]}`;
33
33
  return /*#__PURE__*/_jsx(DSInputGroup, {
34
34
  rightAddon: /*#__PURE__*/_jsx(DSButton, {
35
35
  "aria-label": "Date Picker Button",
@@ -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 'core-js/modules/esnext.async-iterator.map.js';
4
3
  import 'core-js/modules/esnext.iterator.map.js';
5
4
  import React, { useState, useRef } from 'react';
@@ -66,7 +65,7 @@ const DSMobileDropdownMenu = _ref => {
66
65
  isGroup: itemsProps.isGroup,
67
66
  isMulti: itemsProps.isMulti,
68
67
  singleSelect: itemsProps.singleSelect
69
- }, 'ddwn'.concat("".concat(i))))) : null]
68
+ }, 'ddwn'.concat(`${i}`)))) : null]
70
69
  });
71
70
  };
72
71
 
@@ -15,7 +15,7 @@ import { DSMobileFooterText } from './Text.js';
15
15
 
16
16
  const FooterWrap = /*#__PURE__*/styled(Grid).withConfig({
17
17
  componentId: "sc-ls5vfg-0"
18
- })(["background-color:", ";border-top:", ";height:", ";"], props => props.theme.colors.neutral['000'], props => border(props.theme.colors.neutral[100]), props => "calc(".concat(__UNSAFE_SPACE_TO_DIMSUM(props.theme.space.xs), " * 7)"));
18
+ })(["background-color:", ";border-top:", ";height:", ";"], props => props.theme.colors.neutral['000'], props => border(props.theme.colors.neutral[100]), props => `calc(${__UNSAFE_SPACE_TO_DIMSUM(props.theme.space.xs)} * 7)`);
19
19
 
20
20
  const MobileFooter = _ref => {
21
21
  let {
@@ -29,7 +29,7 @@ const MobileFooter = _ref => {
29
29
  return childArr.length === 1 ? ['90%'] : ['45%', '45%'];
30
30
  }
31
31
 
32
- return childArr.map(() => "".concat(100 / childArr.length, "%"));
32
+ return childArr.map(() => `${100 / childArr.length}%`);
33
33
  };
34
34
 
35
35
  return /*#__PURE__*/_jsx(FooterWrap, {}, void 0, /*#__PURE__*/_jsx(Grid, {
@@ -31,7 +31,7 @@ const MobileListItem = _ref => {
31
31
  pl: __UNSAFE_SPACE_TO_DIMSUM(theme.space.s),
32
32
  pr: __UNSAFE_SPACE_TO_DIMSUM(theme.space.s),
33
33
  gutter: "xs",
34
- "data-testid": "".concat(dataTestid, "--").concat(value)
34
+ "data-testid": `${dataTestid}--${value}`
35
35
  }, void 0, leftAddon && /*#__PURE__*/_jsx(Grid, {
36
36
  alignItems: "center",
37
37
  justifyContent: "center"
@@ -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 React, { useMemo, useState, useCallback } from 'react';
4
3
  import { PropTypes, describe } from 'react-desc';
5
4
  import styled from 'styled-components';
@@ -22,7 +21,7 @@ const Label = /*#__PURE__*/styled.div.withConfig({
22
21
  })(["color:", ";", ""], props => props.theme.colors.neutral['500'], truncate());
23
22
  const Value = /*#__PURE__*/styled.div.withConfig({
24
23
  componentId: "sc-1tfu1y9-3"
25
- })(["", " color:", ";", " margin-top:", ";"], truncate(), props => props.theme.colors.neutral['600'], props => props.withMarginRight ? "margin-right: 4px;" : '', props => props.withBreadcrumb ? '12px' : '0');
24
+ })(["", " color:", ";", " margin-top:", ";"], truncate(), props => props.theme.colors.neutral['600'], props => props.withMarginRight ? `margin-right: 4px;` : '', props => props.withBreadcrumb ? '12px' : '0');
26
25
  const Wrapper = /*#__PURE__*/styled(Grid).withConfig({
27
26
  componentId: "sc-1tfu1y9-4"
28
27
  })(["border-bottom:", ";"], props => border(props.theme.colors.neutral['300']));
@@ -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.filter.js';
5
4
  import 'core-js/modules/esnext.iterator.constructor.js';
6
5
  import 'core-js/modules/esnext.iterator.filter.js';
@@ -91,7 +90,7 @@ const MobileSelectList = _ref => {
91
90
  overflow: 'auto'
92
91
  }
93
92
  }, void 0, /*#__PURE__*/_jsx(ListContainer, {
94
- "data-testid": "".concat(dataTestid, "--list-container")
93
+ "data-testid": `${dataTestid}--list-container`
95
94
  }, void 0, React.Children.map(children, child => {
96
95
  let leftAddon = null;
97
96
  let rightAddon = null;
@@ -121,7 +120,7 @@ const MobileSelectList = _ref => {
121
120
  pr: __UNSAFE_SPACE_TO_DIMSUM(theme.space.s)
122
121
  }, void 0, /*#__PURE__*/React.cloneElement(buttonFooter, _objectSpread(_objectSpread({}, buttonFooter.props), {}, {
123
122
  containerProps: {
124
- 'data-testid': "".concat(dataTestid, "--btn")
123
+ 'data-testid': `${dataTestid}--btn`
125
124
  },
126
125
  buttonType: 'primary',
127
126
  size: 'l',
@@ -21,14 +21,14 @@ const Separator = /*#__PURE__*/styled(Grid).withConfig({
21
21
  color,
22
22
  borderType
23
23
  } = _ref;
24
- return "".concat(theme.colors[color[0]][color[1]], " 1px ").concat(borderType);
24
+ return `${theme.colors[color[0]][color[1]]} 1px ${borderType}`;
25
25
  }, _ref2 => {
26
26
  let {
27
27
  theme,
28
28
  color,
29
29
  borderType
30
30
  } = _ref2;
31
- return "".concat(theme.colors[color[0]][color[1]], " 1px ").concat(borderType);
31
+ return `${theme.colors[color[0]][color[1]]} 1px ${borderType}`;
32
32
  });
33
33
 
34
34
  const MobileSeparator = _ref3 => {
@@ -33,7 +33,7 @@ const DSMobileTimePicker = _ref => {
33
33
  if (!value || !valueArr[0] || !valueArr[1]) return '';
34
34
  const ampm = valueArr[0] >= 12 ? 'pm' : 'am';
35
35
  const h = valueArr[0] > 12 ? valueArr[0] - 12 : valueArr[0];
36
- return "".concat(h, " : ").concat(valueArr[1], " ").concat(ampm);
36
+ return `${h} : ${valueArr[1]} ${ampm}`;
37
37
  }, [value]);
38
38
  return /*#__PURE__*/_jsx(DSInputGroup, {
39
39
  rightAddon: /*#__PURE__*/_jsx(DSButton, {
@@ -1,11 +1,10 @@
1
- import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
2
- import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
3
- import 'core-js/modules/web.dom-collections.iterator.js';
4
1
  import 'core-js/modules/esnext.async-iterator.filter.js';
5
2
  import 'core-js/modules/esnext.iterator.constructor.js';
6
3
  import 'core-js/modules/esnext.iterator.filter.js';
7
4
  import 'core-js/modules/esnext.async-iterator.for-each.js';
8
5
  import 'core-js/modules/esnext.iterator.for-each.js';
6
+ import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
7
+ import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
9
8
  import { useState, useCallback } from 'react';
10
9
  import { noop } from 'lodash';
11
10
  import styled from 'styled-components';
@@ -50,7 +50,7 @@ const Modal = _ref => {
50
50
  zIndex: zIndex,
51
51
  cols: ['auto']
52
52
  }, void 0, /*#__PURE__*/_jsx(ModalBox, {
53
- maxHeight: "".concat(window.innerHeight * 0.75, "px"),
53
+ maxHeight: `${window.innerHeight * 0.75}px`,
54
54
  rows: [1, '80px'],
55
55
  style: {
56
56
  overflow: 'hidden'
@@ -85,7 +85,7 @@ const Modal = _ref => {
85
85
  justifyContent: "center",
86
86
  alignItems: "center",
87
87
  style: {
88
- borderTop: "1px solid ".concat(theme.colors.neutral[100])
88
+ borderTop: `1px solid ${theme.colors.neutral[100]}`
89
89
  }
90
90
  }, void 0, showSecondaryAction && /*#__PURE__*/jsx(DSButton, _objectSpread(_objectSpread({}, secondaryActionProps), {}, {
91
91
  labelText: secondaryActionProps.labelText || ' Cancel',
@@ -1,10 +1,12 @@
1
- import _taggedTemplateLiteral from '@babel/runtime/helpers/esm/taggedTemplateLiteral';
2
1
  import { Grid } from '@elliemae/ds-grid';
3
2
  import styled from 'styled-components';
4
3
  import { createGlobalStyle } from '@elliemae/ds-system';
5
4
 
6
- var _templateObject;
7
- const BodyFix = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n body{\n ", ";\n }\n"])), props => props.isOpen ? 'overflow: hidden;' : '');
5
+ const BodyFix = createGlobalStyle`
6
+ body{
7
+ ${props => props.isOpen ? 'overflow: hidden;' : ''};
8
+ }
9
+ `;
8
10
  const ModalBox = /*#__PURE__*/styled(Grid).withConfig({
9
11
  componentId: "sc-cke90o-0"
10
12
  })(["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);
@@ -17,7 +17,7 @@ const Body = /*#__PURE__*/styled(Grid).withConfig({
17
17
  let {
18
18
  theme
19
19
  } = _ref2;
20
- return "width: ".concat(op('*', __UNSAFE_SPACE_TO_DIMSUM(theme.space.xxl), 6.25), ";");
20
+ return `width: ${op('*', __UNSAFE_SPACE_TO_DIMSUM(theme.space.xxl), 6.25)};`;
21
21
  });
22
22
 
23
23
  const PageForm = _ref3 => {