@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.
- package/cjs/CategoryBox/CategoryBox.js +2 -2
- package/cjs/CollectionBox/CollectionBox.js +1 -1
- package/cjs/FullPageContainer/useMobileHeight.js +0 -1
- package/cjs/GlobalHeader/MobileGlobalHeader.js +2 -3
- package/cjs/GlobalHeader/styles.js +11 -5
- package/cjs/GroupBox/GroupBox.js +2 -2
- package/cjs/InfiniteLoader/Infiniteloader.js +2 -4
- package/cjs/InfiniteLoader/VirtualizedInfiniteLoader.js +0 -1
- package/cjs/LoadingPage/Page.js +0 -1
- package/cjs/MobileBanner/MobileBanner.js +3 -6
- package/cjs/MobileBanner/utils/styleHelpers.js +43 -12
- package/cjs/MobileCard/Card.js +1 -1
- package/cjs/MobileCard/CardIcons.js +1 -1
- package/cjs/MobileCard/ExpandableRegion.js +4 -5
- package/cjs/MobileCard/Group.js +2 -2
- package/cjs/MobileCard/useHeight.js +0 -1
- package/cjs/MobileContextMenu/MobileContextMenu.js +4 -7
- package/cjs/MobileContextMenu/MobileContextMenuGroup.js +1 -1
- package/cjs/MobileContextMenu/MobileContextMenuItem.js +11 -1
- package/cjs/MobileDatePicker/MobileDatePicker.js +1 -1
- package/cjs/MobileDropdownMenu/MobileDropdownMenu.js +1 -2
- package/cjs/MobileFooter/Footer.js +2 -2
- package/cjs/MobileListItem/MobileListItem.js +1 -1
- package/cjs/MobilePageHeader/MobilePageHeader.js +1 -2
- package/cjs/MobileSelectList/MobileSelectList.js +2 -3
- package/cjs/MobileSeparator/Separator.js +2 -2
- package/cjs/MobileTimePicker/MobileTimePicker.js +1 -1
- package/cjs/MobileTouchable/MobileTouchable.js +2 -3
- package/cjs/Modal/Modal.js +2 -2
- package/cjs/Modal/styled.js +5 -4
- package/cjs/PageForm/PageForm.js +1 -1
- package/cjs/PageSummary/PageSummary.js +1 -1
- package/cjs/SideNav/SideNav.js +1 -2
- package/cjs/SwipeToRefresh/ProgressIndicator.js +4 -4
- package/cjs/SwipeToRefresh/SwipeToRefresh.js +2 -2
- package/cjs/SwipeToRefresh/useSwipe.js +0 -1
- package/esm/CategoryBox/CategoryBox.js +2 -2
- package/esm/CollectionBox/CollectionBox.js +1 -1
- package/esm/FullPageContainer/useMobileHeight.js +0 -1
- package/esm/GlobalHeader/MobileGlobalHeader.js +0 -1
- package/esm/GlobalHeader/styles.js +11 -4
- package/esm/GroupBox/GroupBox.js +2 -2
- package/esm/InfiniteLoader/Infiniteloader.js +2 -4
- package/esm/InfiniteLoader/VirtualizedInfiniteLoader.js +0 -1
- package/esm/LoadingPage/Page.js +0 -1
- package/esm/MobileBanner/MobileBanner.js +1 -4
- package/esm/MobileBanner/utils/styleHelpers.js +43 -8
- package/esm/MobileCard/Card.js +1 -1
- package/esm/MobileCard/CardIcons.js +1 -1
- package/esm/MobileCard/ExpandableRegion.js +4 -5
- package/esm/MobileCard/Group.js +2 -2
- package/esm/MobileCard/useHeight.js +0 -1
- package/esm/MobileContextMenu/MobileContextMenu.js +4 -7
- package/esm/MobileContextMenu/MobileContextMenuGroup.js +1 -1
- package/esm/MobileContextMenu/MobileContextMenuItem.js +11 -1
- package/esm/MobileDatePicker/MobileDatePicker.js +1 -1
- package/esm/MobileDropdownMenu/MobileDropdownMenu.js +1 -2
- package/esm/MobileFooter/Footer.js +2 -2
- package/esm/MobileListItem/MobileListItem.js +1 -1
- package/esm/MobilePageHeader/MobilePageHeader.js +1 -2
- package/esm/MobileSelectList/MobileSelectList.js +2 -3
- package/esm/MobileSeparator/Separator.js +2 -2
- package/esm/MobileTimePicker/MobileTimePicker.js +1 -1
- package/esm/MobileTouchable/MobileTouchable.js +2 -3
- package/esm/Modal/Modal.js +2 -2
- package/esm/Modal/styled.js +5 -3
- package/esm/PageForm/PageForm.js +1 -1
- package/esm/PageSummary/PageSummary.js +1 -1
- package/esm/SideNav/SideNav.js +1 -2
- package/esm/SwipeToRefresh/ProgressIndicator.js +4 -4
- package/esm/SwipeToRefresh/SwipeToRefresh.js +2 -2
- package/esm/SwipeToRefresh/useSwipe.js +0 -1
- package/package.json +14 -14
|
@@ -20,7 +20,7 @@ const Title = /*#__PURE__*/styled__default["default"].h3.withConfig({
|
|
|
20
20
|
})(["font-size:18px;margin:0;color:", ";line-height:inherit;", " font-weight:", ";"], props => props.theme.colors.neutral['700'], dsSystem.truncate(), props => props.theme.fontWeights.semibold);
|
|
21
21
|
const CategoryBox = /*#__PURE__*/styled__default["default"](dsGrid.Grid).withConfig({
|
|
22
22
|
componentId: "sc-iv6vo1-1"
|
|
23
|
-
})(["background:", ";border-top:", ";"], props => props.theme.colors.neutral['0'], props => props.borderTop ?
|
|
23
|
+
})(["background:", ";border-top:", ";"], props => props.theme.colors.neutral['0'], props => props.borderTop ? `1px solid ${props.theme.colors.neutral['100']}` : 'none');
|
|
24
24
|
|
|
25
25
|
const DSCategoryBox = _ref => {
|
|
26
26
|
let {
|
|
@@ -42,7 +42,7 @@ const DSCategoryBox = _ref => {
|
|
|
42
42
|
pl: "xs",
|
|
43
43
|
pr: actionsRight.length > 0 ? 'xxs' : 'xs'
|
|
44
44
|
}, void 0, /*#__PURE__*/_jsx__default["default"](Title, {
|
|
45
|
-
as:
|
|
45
|
+
as: `h${headerLevel}`
|
|
46
46
|
}, void 0, title), hasActions && /*#__PURE__*/_jsx__default["default"](dsGrid.Grid, {
|
|
47
47
|
cols: lodash.times(actionsRight.length, () => 'auto'),
|
|
48
48
|
justifySelf: "end"
|
|
@@ -53,7 +53,7 @@ const DSCollectionBox = _ref => {
|
|
|
53
53
|
alignItems: "center",
|
|
54
54
|
cols: headerCols
|
|
55
55
|
}, void 0, title && /*#__PURE__*/_jsx__default["default"](Header, {
|
|
56
|
-
as:
|
|
56
|
+
as: `h${headerLevel}`
|
|
57
57
|
}, void 0, title), headerAction && /*#__PURE__*/_jsx__default["default"](ActionWrap, {
|
|
58
58
|
justifySelf: "end"
|
|
59
59
|
}, void 0, headerAction)), /*#__PURE__*/_jsx__default["default"](Body, {}, void 0, body), footerAction && /*#__PURE__*/_jsx__default["default"](Footer, {
|
|
@@ -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 _jsx = require('@babel/runtime/helpers/jsx');
|
|
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 _jsx = require('@babel/runtime/helpers/jsx');
|
|
13
12
|
var React = require('react');
|
|
14
13
|
var dsIcons = require('@elliemae/ds-icons');
|
|
15
14
|
var dsForm = require('@elliemae/ds-form');
|
|
@@ -2,23 +2,29 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var _taggedTemplateLiteral = require('@babel/runtime/helpers/taggedTemplateLiteral');
|
|
6
5
|
var styled = require('styled-components');
|
|
7
6
|
var dsSystem = require('@elliemae/ds-system');
|
|
8
7
|
|
|
9
8
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
10
9
|
|
|
11
|
-
var _taggedTemplateLiteral__default = /*#__PURE__*/_interopDefaultLegacy(_taggedTemplateLiteral);
|
|
12
10
|
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
13
11
|
|
|
14
|
-
var _templateObject, _templateObject2;
|
|
15
12
|
const Container = /*#__PURE__*/styled__default["default"].header.withConfig({
|
|
16
13
|
componentId: "sc-1nzpklc-0"
|
|
17
14
|
})(["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']);
|
|
18
|
-
const growLeft = dsSystem.kfrm
|
|
15
|
+
const growLeft = dsSystem.kfrm`
|
|
16
|
+
0% {
|
|
17
|
+
width: 0;
|
|
18
|
+
}
|
|
19
|
+
100% {
|
|
20
|
+
width: 100%;
|
|
21
|
+
}
|
|
22
|
+
`;
|
|
19
23
|
const SearchWrapper = /*#__PURE__*/styled__default["default"].div.withConfig({
|
|
20
24
|
componentId: "sc-1nzpklc-1"
|
|
21
|
-
})(["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], dsSystem.css
|
|
25
|
+
})(["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], dsSystem.css`
|
|
26
|
+
animation: ${growLeft} 1s;
|
|
27
|
+
`, 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']);
|
|
22
28
|
const Icon = /*#__PURE__*/styled__default["default"].div.withConfig({
|
|
23
29
|
componentId: "sc-1nzpklc-2"
|
|
24
30
|
})(["margin-right:", ";"], props => props.theme.space.xs);
|
package/cjs/GroupBox/GroupBox.js
CHANGED
|
@@ -20,7 +20,7 @@ const Title = /*#__PURE__*/styled__default["default"].h3.withConfig({
|
|
|
20
20
|
})(["font-size:14px;margin:0;", " color:", ";line-height:inherit;text-transform:capitalize;font-weight:", ";"], dsSystem.truncate(), props => props.theme.colors.neutral['700'], props => props.theme.fontWeights.semibold);
|
|
21
21
|
const GroupBox = /*#__PURE__*/styled__default["default"](dsGrid.Grid).withConfig({
|
|
22
22
|
componentId: "sc-1g87w66-1"
|
|
23
|
-
})(["background:", ";border-top:", ";"], props => props.background === 'grey' ? props.theme.colors.neutral['050'] : props.theme.colors.neutral['000'], props => props.borderTop ?
|
|
23
|
+
})(["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');
|
|
24
24
|
|
|
25
25
|
const DSGroupBox = _ref => {
|
|
26
26
|
let {
|
|
@@ -44,7 +44,7 @@ const DSGroupBox = _ref => {
|
|
|
44
44
|
pl: "xs",
|
|
45
45
|
pr: hasActions ? 'xxs' : 'xs'
|
|
46
46
|
}, void 0, /*#__PURE__*/_jsx__default["default"](Title, {
|
|
47
|
-
as:
|
|
47
|
+
as: `h${headerLevel}`
|
|
48
48
|
}, void 0, title), hasActions && /*#__PURE__*/_jsx__default["default"](dsGrid.Grid, {
|
|
49
49
|
cols: lodash.times(actionsRight.length, () => 'auto'),
|
|
50
50
|
justifySelf: "end"
|
|
@@ -53,10 +53,8 @@ const InfiniteLoader = _ref => {
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
return () => {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
(_observer$current = observer.current) === null || _observer$current === void 0 ? void 0 : _observer$current.unobserve(target.current);
|
|
59
|
-
(_observer$current2 = observer.current) === null || _observer$current2 === void 0 ? void 0 : _observer$current2.disconnect();
|
|
56
|
+
observer.current?.unobserve(target.current);
|
|
57
|
+
observer.current?.disconnect();
|
|
60
58
|
};
|
|
61
59
|
}, [target, observer, fetchData]);
|
|
62
60
|
return /*#__PURE__*/_jsx__default["default"](dsGrid.Grid, {
|
|
@@ -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 RWInfiniteLoader = require('react-window-infinite-loader');
|
package/cjs/LoadingPage/Page.js
CHANGED
|
@@ -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.constructor.js');
|
|
9
8
|
require('core-js/modules/esnext.async-iterator.to-array.js');
|
|
10
9
|
require('core-js/modules/esnext.iterator.constructor.js');
|
|
@@ -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 _jsx = require('@babel/runtime/helpers/jsx');
|
|
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 _jsx = require('@babel/runtime/helpers/jsx');
|
|
13
12
|
var React = require('react');
|
|
14
13
|
var dsIcons = require('@elliemae/ds-icons');
|
|
15
14
|
var reactDesc = require('react-desc');
|
|
@@ -56,9 +55,7 @@ const DSMobileBanner = _ref => {
|
|
|
56
55
|
}, [isAnimating, isOpen]);
|
|
57
56
|
React.useEffect(() => {
|
|
58
57
|
if (focusOnOpen && closeRef.current && isOpen) {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
(_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);
|
|
58
|
+
closeRef.current?.focus?.();
|
|
62
59
|
}
|
|
63
60
|
}, [focusOnOpen, isOpen]);
|
|
64
61
|
React.useLayoutEffect(() => {
|
|
@@ -2,19 +2,46 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var _taggedTemplateLiteral = require('@babel/runtime/helpers/taggedTemplateLiteral');
|
|
6
5
|
var dsSystem = require('@elliemae/ds-system');
|
|
7
6
|
var bannerTypes = require('./bannerTypes.js');
|
|
8
7
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
const
|
|
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
|
+
`;
|
|
18
45
|
const handleBorderColor = (type, _ref) => {
|
|
19
46
|
let {
|
|
20
47
|
colors
|
|
@@ -39,9 +66,13 @@ const handleAnimation = function (isAnimating, isOpen) {
|
|
|
39
66
|
|
|
40
67
|
if (isAnimating) {
|
|
41
68
|
if (isOpen) {
|
|
42
|
-
return dsSystem.css
|
|
69
|
+
return dsSystem.css`
|
|
70
|
+
animation: ${height ? spanContainer(height) : slideIn} 0.5s ease-in;
|
|
71
|
+
`;
|
|
43
72
|
} else {
|
|
44
|
-
return dsSystem.css
|
|
73
|
+
return dsSystem.css`
|
|
74
|
+
animation: ${height ? shrinkContainer(height) : slideOut} 0.5s ease-in;
|
|
75
|
+
`;
|
|
45
76
|
}
|
|
46
77
|
}
|
|
47
78
|
};
|
package/cjs/MobileCard/Card.js
CHANGED
|
@@ -76,7 +76,7 @@ const MobileCard = _ref => {
|
|
|
76
76
|
activeValue,
|
|
77
77
|
onChange
|
|
78
78
|
} = context;
|
|
79
|
-
const selected = activeValue !== undefined && (activeValue === value ||
|
|
79
|
+
const selected = activeValue !== undefined && (activeValue === value || activeValue?.length && activeValue?.includes(value));
|
|
80
80
|
return /*#__PURE__*/_jsx__default["default"](StyledCard.StyledCard, {
|
|
81
81
|
"data-testid": "card-wrapper",
|
|
82
82
|
minHeight: height === 'm' ? dsSystem.__UNSAFE_SPACE_TO_DIMSUM(theme.space.xxl) : dsSystem.__UNSAFE_SPACE_TO_DIMSUM(theme.space.xl)
|
|
@@ -31,7 +31,7 @@ const SubIcons = _ref => {
|
|
|
31
31
|
/*#__PURE__*/
|
|
32
32
|
// eslint-disable-next-line react/no-array-index-key
|
|
33
33
|
_jsx__default["default"](Icon, {
|
|
34
|
-
className:
|
|
34
|
+
className: `icon-color-${colors[i] || 'muted'}`
|
|
35
35
|
}, i)));
|
|
36
36
|
};
|
|
37
37
|
|
|
@@ -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 styled = require('styled-components');
|
|
9
8
|
var dsSystem = require('@elliemae/ds-system');
|
|
@@ -19,10 +18,10 @@ const RegionWrapper = /*#__PURE__*/styled__default["default"].div.withConfig({
|
|
|
19
18
|
})(["width:100%;height:100%;"]);
|
|
20
19
|
const Region = /*#__PURE__*/styled__default["default"].div.withConfig({
|
|
21
20
|
componentId: "sc-mduzz9-1"
|
|
22
|
-
})(["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 ?
|
|
21
|
+
})(["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 ? `
|
|
22
|
+
max-height: ${props.refHeight}px;
|
|
23
|
+
` : '', dsSystem.truncate(), props => dsSystem.border(props.theme.colors.neutral['300']), props => props.theme.fontWeights.regular);
|
|
23
24
|
const ExpandableRegion = _ref => {
|
|
24
|
-
var _ref$current;
|
|
25
|
-
|
|
26
25
|
let {
|
|
27
26
|
show,
|
|
28
27
|
content
|
|
@@ -44,7 +43,7 @@ const ExpandableRegion = _ref => {
|
|
|
44
43
|
return /*#__PURE__*/_jsx__default["default"](Region, {
|
|
45
44
|
hide: hide // needed to handle transition, `auto` max-height isn't supported
|
|
46
45
|
,
|
|
47
|
-
refHeight:
|
|
46
|
+
refHeight: ref?.current?.scrollHeight || 9999,
|
|
48
47
|
onTransitionEnd: hideOnAnimationEnd,
|
|
49
48
|
animate: animate
|
|
50
49
|
}, void 0, /*#__PURE__*/jsxRuntime.jsx(RegionWrapper, {
|
package/cjs/MobileCard/Group.js
CHANGED
|
@@ -27,14 +27,14 @@ const GroupGrid = /*#__PURE__*/styled__default["default"](dsGrid.Grid).withConfi
|
|
|
27
27
|
theme,
|
|
28
28
|
withTopBorder
|
|
29
29
|
} = _ref;
|
|
30
|
-
return withTopBorder ?
|
|
30
|
+
return withTopBorder ? `border-top: ${dsSystem.border(theme.colors.neutral['100'])}` : '';
|
|
31
31
|
});
|
|
32
32
|
const GroupTitle = /*#__PURE__*/styled__default["default"].span.withConfig({
|
|
33
33
|
componentId: "sc-17xukaf-1"
|
|
34
34
|
})(["", ""], dsSystem.truncate());
|
|
35
35
|
const GroupTitleGrid = /*#__PURE__*/styled__default["default"].div.withConfig({
|
|
36
36
|
componentId: "sc-17xukaf-2"
|
|
37
|
-
})(["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 =>
|
|
37
|
+
})(["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(${dsSystem.__UNSAFE_SPACE_TO_DIMSUM(props.theme.space.m)} / 2)`, dsSystem.color('neutral', '700'), props => props.theme.fontWeights.semibold, props => props.theme.colors.brand['200'], props => dsSystem.border(props.theme.colors.brand['300']), props => dsSystem.__UNSAFE_SPACE_TO_DIMSUM(props.theme.space.m), props => props.theme.colors.neutral['080'], props => dsSystem.border(props.theme.colors.neutral['080']));
|
|
38
38
|
|
|
39
39
|
const MobileCardGroup = _ref2 => {
|
|
40
40
|
let {
|
|
@@ -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.map.js');
|
|
9
8
|
require('core-js/modules/esnext.iterator.map.js');
|
|
10
9
|
require('core-js/modules/esnext.async-iterator.filter.js');
|
|
@@ -38,7 +37,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
38
37
|
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__default["default"](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; }
|
|
39
38
|
const StyledContainer = /*#__PURE__*/styled__default["default"](dsGrid.Grid).withConfig({
|
|
40
39
|
componentId: "sc-15ys5tq-0"
|
|
41
|
-
})(["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 =>
|
|
40
|
+
})(["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);
|
|
42
41
|
const StyledTitle = /*#__PURE__*/styled__default["default"](dsGrid.Grid).withConfig({
|
|
43
42
|
componentId: "sc-15ys5tq-1"
|
|
44
43
|
})(["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'], dsSystem.truncate(), props => props.theme.colors.neutral['000']);
|
|
@@ -121,9 +120,7 @@ const DSMobileContextMenu = dsSystem.withTheme(_ref => {
|
|
|
121
120
|
multiple: multiple,
|
|
122
121
|
onChange: handleChange
|
|
123
122
|
}, void 0, React__default["default"].Children.map(children, (child, ii) => {
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
const isGroup = child.type === (_ContextMenuGroup || (_ContextMenuGroup = /*#__PURE__*/_jsx__default["default"](MobileContextMenuGroup.DSMobileContextMenuGroup, {}))).type || ((_child$type = child.type) === null || _child$type === void 0 ? void 0 : _child$type.name) === MobileContextMenuGroup.DSMobileContextMenuGroup.componentType || child.type === MobileContextMenuGroup.DSMobileContextMenuGroup.type;
|
|
123
|
+
const isGroup = child.type === (_ContextMenuGroup || (_ContextMenuGroup = /*#__PURE__*/_jsx__default["default"](MobileContextMenuGroup.DSMobileContextMenuGroup, {}))).type || child.type?.name === MobileContextMenuGroup.DSMobileContextMenuGroup.componentType || child.type === MobileContextMenuGroup.DSMobileContextMenuGroup.type;
|
|
127
124
|
const {
|
|
128
125
|
onClick = lodash.noop
|
|
129
126
|
} = child.props;
|
|
@@ -132,7 +129,7 @@ const DSMobileContextMenu = dsSystem.withTheme(_ref => {
|
|
|
132
129
|
if (singleSelect) isSelected = trueSelected === value;else if (multiple) isSelected = trueSelected.includes(value);
|
|
133
130
|
return /*#__PURE__*/React__default["default"].cloneElement(child, {
|
|
134
131
|
value,
|
|
135
|
-
key:
|
|
132
|
+
key: `cm.${ii}`,
|
|
136
133
|
isMulti: multiple,
|
|
137
134
|
singleSelect,
|
|
138
135
|
isSelected,
|
|
@@ -145,7 +142,7 @@ const DSMobileContextMenu = dsSystem.withTheme(_ref => {
|
|
|
145
142
|
alignItems: "center"
|
|
146
143
|
}, void 0, /*#__PURE__*/React__default["default"].cloneElement(buttonFooter, _objectSpread(_objectSpread({}, buttonFooter.props), {}, {
|
|
147
144
|
containerProps: {
|
|
148
|
-
'data-testid':
|
|
145
|
+
'data-testid': `${dataTestid}--btn`
|
|
149
146
|
},
|
|
150
147
|
buttonType: 'primary',
|
|
151
148
|
size: 'l',
|
|
@@ -44,7 +44,7 @@ const DSMobileContextMenuGroup = _ref => {
|
|
|
44
44
|
const {
|
|
45
45
|
onClick = lodash.noop
|
|
46
46
|
} = child.props;
|
|
47
|
-
const value =
|
|
47
|
+
const value = `${groupValue}:${index}`;
|
|
48
48
|
let isSelected;
|
|
49
49
|
if (singleSelect) isSelected = selectedItems === value;else if (isMulti) isSelected = selectedItems.includes(value);
|
|
50
50
|
return /*#__PURE__*/React__default["default"].cloneElement(child, {
|
|
@@ -39,7 +39,17 @@ const PropWrap = /*#__PURE__*/styled__default["default"](props => /*#__PURE__*/j
|
|
|
39
39
|
componentId: "sc-20od94-1"
|
|
40
40
|
})(["", ""], props => {
|
|
41
41
|
if (!props.isMulti) {
|
|
42
|
-
return
|
|
42
|
+
return `
|
|
43
|
+
& > span {
|
|
44
|
+
height: 18px;
|
|
45
|
+
width: 18px;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
& > span > svg {
|
|
49
|
+
height: 18px;
|
|
50
|
+
width: 18px;
|
|
51
|
+
}
|
|
52
|
+
`;
|
|
43
53
|
}
|
|
44
54
|
|
|
45
55
|
return '';
|
|
@@ -38,7 +38,7 @@ const DSMobileDatePicker = _ref => {
|
|
|
38
38
|
}
|
|
39
39
|
}, [inputRef.current]);
|
|
40
40
|
const valueArr = value.split('-');
|
|
41
|
-
const displayValue = value &&
|
|
41
|
+
const displayValue = value && `${valueArr[1]} / ${valueArr[2]} / ${valueArr[0]}`;
|
|
42
42
|
return /*#__PURE__*/_jsx__default["default"](dsForm.DSInputGroup, {
|
|
43
43
|
rightAddon: /*#__PURE__*/_jsx__default["default"](DSButton__default["default"], {
|
|
44
44
|
"aria-label": "Date Picker Button",
|
|
@@ -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');
|
|
@@ -75,7 +74,7 @@ const DSMobileDropdownMenu = _ref => {
|
|
|
75
74
|
isGroup: itemsProps.isGroup,
|
|
76
75
|
isMulti: itemsProps.isMulti,
|
|
77
76
|
singleSelect: itemsProps.singleSelect
|
|
78
|
-
}, 'ddwn'.concat(
|
|
77
|
+
}, 'ddwn'.concat(`${i}`)))) : null]
|
|
79
78
|
});
|
|
80
79
|
};
|
|
81
80
|
|
|
@@ -26,7 +26,7 @@ var DSButton__default = /*#__PURE__*/_interopDefaultLegacy(DSButton);
|
|
|
26
26
|
|
|
27
27
|
const FooterWrap = /*#__PURE__*/styled__default["default"](dsGrid.Grid).withConfig({
|
|
28
28
|
componentId: "sc-ls5vfg-0"
|
|
29
|
-
})(["background-color:", ";border-top:", ";height:", ";"], props => props.theme.colors.neutral['000'], props => dsSystem.border(props.theme.colors.neutral[100]), props =>
|
|
29
|
+
})(["background-color:", ";border-top:", ";height:", ";"], props => props.theme.colors.neutral['000'], props => dsSystem.border(props.theme.colors.neutral[100]), props => `calc(${dsSystem.__UNSAFE_SPACE_TO_DIMSUM(props.theme.space.xs)} * 7)`);
|
|
30
30
|
|
|
31
31
|
const MobileFooter = _ref => {
|
|
32
32
|
let {
|
|
@@ -40,7 +40,7 @@ const MobileFooter = _ref => {
|
|
|
40
40
|
return childArr.length === 1 ? ['90%'] : ['45%', '45%'];
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
return childArr.map(() =>
|
|
43
|
+
return childArr.map(() => `${100 / childArr.length}%`);
|
|
44
44
|
};
|
|
45
45
|
|
|
46
46
|
return /*#__PURE__*/_jsx__default["default"](FooterWrap, {}, void 0, /*#__PURE__*/_jsx__default["default"](dsGrid.Grid, {
|
|
@@ -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":
|
|
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 ?
|
|
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":
|
|
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':
|
|
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
|
|
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
|
|
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
|
|
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');
|
package/cjs/Modal/Modal.js
CHANGED
|
@@ -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:
|
|
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:
|
|
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',
|
package/cjs/Modal/styled.js
CHANGED
|
@@ -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
|
-
|
|
16
|
-
|
|
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);
|
package/cjs/PageForm/PageForm.js
CHANGED
|
@@ -26,7 +26,7 @@ const Body = /*#__PURE__*/styled__default["default"](dsGrid.Grid).withConfig({
|
|
|
26
26
|
let {
|
|
27
27
|
theme
|
|
28
28
|
} = _ref2;
|
|
29
|
-
return
|
|
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
|
|
37
|
+
return `width: ${dsSystem.op('*', dsSystem.__UNSAFE_SPACE_TO_DIMSUM(theme.space.xxl), 6.25)};`;
|
|
38
38
|
});
|
|
39
39
|
|
|
40
40
|
const PageSummary = _ref3 => {
|