@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.
- 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 +11 -14
- package/cjs/MobileBanner/styles.js +26 -38
- 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 +10 -13
- package/esm/MobileBanner/styles.js +27 -39
- 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
- package/types/MobileBanner/styles.d.ts +3 -1
|
@@ -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 ?
|
|
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:
|
|
37
|
+
refHeight: ref?.current?.scrollHeight || 9999,
|
|
39
38
|
onTransitionEnd: hideOnAnimationEnd,
|
|
40
39
|
animate: animate
|
|
41
40
|
}, void 0, /*#__PURE__*/jsx(RegionWrapper, {
|
package/esm/MobileCard/Group.js
CHANGED
|
@@ -16,14 +16,14 @@ const GroupGrid = /*#__PURE__*/styled(Grid).withConfig({
|
|
|
16
16
|
theme,
|
|
17
17
|
withTopBorder
|
|
18
18
|
} = _ref;
|
|
19
|
-
return withTopBorder ?
|
|
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 =>
|
|
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,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 =>
|
|
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
|
-
|
|
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:
|
|
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':
|
|
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 =
|
|
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
|
|
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 &&
|
|
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(
|
|
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 =>
|
|
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(() =>
|
|
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":
|
|
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 ?
|
|
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":
|
|
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':
|
|
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
|
|
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
|
|
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
|
|
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';
|
package/esm/Modal/Modal.js
CHANGED
|
@@ -50,7 +50,7 @@ const Modal = _ref => {
|
|
|
50
50
|
zIndex: zIndex,
|
|
51
51
|
cols: ['auto']
|
|
52
52
|
}, void 0, /*#__PURE__*/_jsx(ModalBox, {
|
|
53
|
-
maxHeight:
|
|
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:
|
|
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',
|
package/esm/Modal/styled.js
CHANGED
|
@@ -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
|
-
|
|
7
|
-
|
|
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);
|
package/esm/PageForm/PageForm.js
CHANGED
|
@@ -17,7 +17,7 @@ const Body = /*#__PURE__*/styled(Grid).withConfig({
|
|
|
17
17
|
let {
|
|
18
18
|
theme
|
|
19
19
|
} = _ref2;
|
|
20
|
-
return
|
|
20
|
+
return `width: ${op('*', __UNSAFE_SPACE_TO_DIMSUM(theme.space.xxl), 6.25)};`;
|
|
21
21
|
});
|
|
22
22
|
|
|
23
23
|
const PageForm = _ref3 => {
|
|
@@ -25,7 +25,7 @@ const Body = /*#__PURE__*/styled(Grid).withConfig({
|
|
|
25
25
|
let {
|
|
26
26
|
theme
|
|
27
27
|
} = _ref2;
|
|
28
|
-
return
|
|
28
|
+
return `width: ${op('*', __UNSAFE_SPACE_TO_DIMSUM(theme.space.xxl), 6.25)};`;
|
|
29
29
|
});
|
|
30
30
|
|
|
31
31
|
const PageSummary = _ref3 => {
|
package/esm/SideNav/SideNav.js
CHANGED
|
@@ -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 { useState } from 'react';
|
|
@@ -45,7 +44,7 @@ const DSSideNav = _ref => {
|
|
|
45
44
|
}, idx, /*#__PURE__*/_jsx("div", {
|
|
46
45
|
className: "icon"
|
|
47
46
|
}, void 0, icon), /*#__PURE__*/_jsx("div", {
|
|
48
|
-
className:
|
|
47
|
+
className: `text ${idx === selectedMenuItemIdx ? 'active' : ''}`
|
|
49
48
|
}, void 0, text));
|
|
50
49
|
})) : null
|
|
51
50
|
});
|
|
@@ -28,16 +28,16 @@ const ProgressIndicator = _ref => {
|
|
|
28
28
|
r: "54",
|
|
29
29
|
fill: "none",
|
|
30
30
|
strokeWidth: "12",
|
|
31
|
-
stroke:
|
|
31
|
+
stroke: `${theme.colors.neutral[100]}`
|
|
32
32
|
}), /*#__PURE__*/_jsx("circle", {
|
|
33
33
|
cx: "60",
|
|
34
34
|
cy: "60",
|
|
35
35
|
r: "54",
|
|
36
36
|
strokeWidth: "12",
|
|
37
37
|
fill: "none",
|
|
38
|
-
strokeDasharray:
|
|
39
|
-
strokeDashoffset:
|
|
40
|
-
stroke:
|
|
38
|
+
strokeDasharray: `${cir}px`,
|
|
39
|
+
strokeDashoffset: `${dashoffset}px`,
|
|
40
|
+
stroke: `${theme.colors.brand[600]}`,
|
|
41
41
|
strokeLinecap: "round"
|
|
42
42
|
})));
|
|
43
43
|
};
|
|
@@ -30,14 +30,14 @@ const SwipeToRefresh = _ref => {
|
|
|
30
30
|
onTouchMove: swipe.touchMove,
|
|
31
31
|
ref: swipe.ref,
|
|
32
32
|
children: [/*#__PURE__*/_jsx(LoaderBox, {
|
|
33
|
-
height: loading ? theme.space.m :
|
|
33
|
+
height: loading ? theme.space.m : `${swipe.height}px`,
|
|
34
34
|
alignItems: "flex-start",
|
|
35
35
|
"data-testid": "loader-box"
|
|
36
36
|
}, void 0, /*#__PURE__*/_jsx(PositionLoader, {
|
|
37
37
|
height: theme.space.m,
|
|
38
38
|
justifyContent: "center",
|
|
39
39
|
alignItems: "center",
|
|
40
|
-
mt: swipe.height > 40 || loading ? 0 :
|
|
40
|
+
mt: swipe.height > 40 || loading ? 0 : `${swipe.height - 40}px`
|
|
41
41
|
}, void 0, loading ? _DSCircularProgressIn || (_DSCircularProgressIn = /*#__PURE__*/_jsx(DSCircularProgressIndicator, {})) : /*#__PURE__*/_jsx(ProgressIndicator, {
|
|
42
42
|
progress: progress
|
|
43
43
|
}))), /*#__PURE__*/jsx("div", {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-mobile",
|
|
3
|
-
"version": "2.4.2-rc.
|
|
3
|
+
"version": "2.4.2-rc.13",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - System",
|
|
6
6
|
"module": "./esm/index.js",
|
|
@@ -433,19 +433,19 @@
|
|
|
433
433
|
"generateSubmodules": true
|
|
434
434
|
},
|
|
435
435
|
"dependencies": {
|
|
436
|
-
"@elliemae/ds-accordion": "2.4.2-rc.
|
|
437
|
-
"@elliemae/ds-backdrop": "2.4.2-rc.
|
|
438
|
-
"@elliemae/ds-button": "2.4.2-rc.
|
|
439
|
-
"@elliemae/ds-circular-progress-indicator": "2.4.2-rc.
|
|
440
|
-
"@elliemae/ds-form": "2.4.2-rc.
|
|
441
|
-
"@elliemae/ds-grid": "2.4.2-rc.
|
|
442
|
-
"@elliemae/ds-icon": "2.4.2-rc.
|
|
443
|
-
"@elliemae/ds-icons": "2.4.2-rc.
|
|
444
|
-
"@elliemae/ds-indeterminate-progress-indicator": "2.4.2-rc.
|
|
445
|
-
"@elliemae/ds-shared": "2.4.2-rc.
|
|
446
|
-
"@elliemae/ds-system": "2.4.2-rc.
|
|
447
|
-
"@elliemae/ds-tabs": "2.4.2-rc.
|
|
448
|
-
"@elliemae/ds-truncated-expandable-text": "2.4.2-rc.
|
|
436
|
+
"@elliemae/ds-accordion": "2.4.2-rc.13",
|
|
437
|
+
"@elliemae/ds-backdrop": "2.4.2-rc.13",
|
|
438
|
+
"@elliemae/ds-button": "2.4.2-rc.13",
|
|
439
|
+
"@elliemae/ds-circular-progress-indicator": "2.4.2-rc.13",
|
|
440
|
+
"@elliemae/ds-form": "2.4.2-rc.13",
|
|
441
|
+
"@elliemae/ds-grid": "2.4.2-rc.13",
|
|
442
|
+
"@elliemae/ds-icon": "2.4.2-rc.13",
|
|
443
|
+
"@elliemae/ds-icons": "2.4.2-rc.13",
|
|
444
|
+
"@elliemae/ds-indeterminate-progress-indicator": "2.4.2-rc.13",
|
|
445
|
+
"@elliemae/ds-shared": "2.4.2-rc.13",
|
|
446
|
+
"@elliemae/ds-system": "2.4.2-rc.13",
|
|
447
|
+
"@elliemae/ds-tabs": "2.4.2-rc.13",
|
|
448
|
+
"@elliemae/ds-truncated-expandable-text": "2.4.2-rc.13",
|
|
449
449
|
"@xstyled/styled-components": "~3.1.1",
|
|
450
450
|
"polished": "~3.6.7",
|
|
451
451
|
"prop-types": "~15.7.2",
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import type { StyledBannerContainerT, StyledContentT, StyledInnerContainerT } from './index.d';
|
|
2
3
|
export declare const StyledInnerContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, StyledInnerContainerT, never>;
|
|
3
4
|
export declare const StyledTextContent: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -6,6 +7,7 @@ export declare const StyledSubTitle: import("styled-components").StyledComponent
|
|
|
6
7
|
export declare const StyledIconContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
7
8
|
export declare const StyledContent: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, StyledContentT, never>;
|
|
8
9
|
export declare const StyledCloseButtonContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
9
|
-
export declare const
|
|
10
|
+
export declare const StyledSubTitleText: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
|
|
11
|
+
export declare const StyledCloseButton: import("styled-components").StyledComponent<import("react").ComponentType<import("@elliemae/ds-button/types/v2/react-desc-prop-types").DSButtonT.Props>, import("styled-components").DefaultTheme, {}, never>;
|
|
10
12
|
export declare const StyledActionLink: import("styled-components").StyledComponent<"a", import("styled-components").DefaultTheme, {}, never>;
|
|
11
13
|
export declare const StyledBannerContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, StyledBannerContainerT, never>;
|