@elliemae/ds-mobile 2.0.0-next.3 → 2.0.0-next.7
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 +1 -0
- package/cjs/GlobalHeader/MobileGlobalHeader.js +1 -0
- package/cjs/GlobalHeader/styles.js +5 -11
- package/cjs/GroupBox/GroupBox.js +2 -2
- package/cjs/InfiniteLoader/VirtualizedInfiniteLoader.js +1 -0
- package/cjs/LoadingPage/Page.js +1 -0
- package/cjs/MobileBanner/MobileBanner.js +1 -0
- package/cjs/MobileBanner/utils/styleHelpers.js +12 -43
- package/cjs/MobileCard/CardIcons.js +1 -1
- package/cjs/MobileCard/ExpandableRegion.js +2 -3
- package/cjs/MobileCard/Group.js +2 -2
- package/cjs/MobileCard/useHeight.js +1 -0
- package/cjs/MobileContextMenu/MobileContextMenu.js +4 -3
- package/cjs/MobileContextMenu/MobileContextMenuGroup.js +1 -1
- package/cjs/MobileContextMenu/MobileContextMenuItem.js +1 -11
- package/cjs/MobileDatePicker/MobileDatePicker.js +1 -1
- package/cjs/MobileDropdownMenu/MobileDropdownMenu.js +2 -1
- package/cjs/MobileFooter/Footer.js +2 -2
- package/cjs/MobileListItem/MobileListItem.js +1 -1
- package/cjs/MobilePageHeader/MobilePageHeader.js +2 -1
- package/cjs/MobileSelectList/MobileSelectList.js +3 -2
- package/cjs/MobileSeparator/Separator.js +2 -2
- package/cjs/MobileTimePicker/MobileTimePicker.js +1 -1
- package/cjs/MobileTouchable/MobileTouchable.js +1 -0
- package/cjs/Modal/Modal.js +2 -2
- package/cjs/Modal/styled.js +4 -5
- package/cjs/PageForm/PageForm.js +1 -1
- package/cjs/PageSummary/PageSummary.js +1 -1
- package/cjs/SideNav/SideNav.js +2 -1
- package/cjs/SwipeToRefresh/ProgressIndicator.js +4 -4
- package/cjs/SwipeToRefresh/SwipeToRefresh.js +2 -2
- package/cjs/SwipeToRefresh/useSwipe.js +1 -0
- package/esm/CategoryBox/CategoryBox.js +2 -2
- package/esm/CollectionBox/CollectionBox.js +1 -1
- package/esm/FullPageContainer/useMobileHeight.js +1 -0
- package/esm/GlobalHeader/MobileGlobalHeader.js +1 -0
- package/esm/GlobalHeader/styles.js +4 -11
- package/esm/GroupBox/GroupBox.js +2 -2
- package/esm/InfiniteLoader/VirtualizedInfiniteLoader.js +1 -0
- package/esm/LoadingPage/Page.js +1 -0
- package/esm/MobileBanner/MobileBanner.js +1 -0
- package/esm/MobileBanner/utils/styleHelpers.js +8 -43
- package/esm/MobileCard/CardIcons.js +1 -1
- package/esm/MobileCard/ExpandableRegion.js +2 -3
- package/esm/MobileCard/Group.js +2 -2
- package/esm/MobileCard/useHeight.js +1 -0
- package/esm/MobileContextMenu/MobileContextMenu.js +4 -3
- package/esm/MobileContextMenu/MobileContextMenuGroup.js +1 -1
- package/esm/MobileContextMenu/MobileContextMenuItem.js +1 -11
- package/esm/MobileDatePicker/MobileDatePicker.js +1 -1
- package/esm/MobileDropdownMenu/MobileDropdownMenu.js +2 -1
- package/esm/MobileFooter/Footer.js +2 -2
- package/esm/MobileListItem/MobileListItem.js +1 -1
- package/esm/MobilePageHeader/MobilePageHeader.js +2 -1
- package/esm/MobileSelectList/MobileSelectList.js +3 -2
- package/esm/MobileSeparator/Separator.js +2 -2
- package/esm/MobileTimePicker/MobileTimePicker.js +1 -1
- package/esm/MobileTouchable/MobileTouchable.js +1 -0
- package/esm/Modal/Modal.js +2 -2
- package/esm/Modal/styled.js +3 -5
- package/esm/PageForm/PageForm.js +1 -1
- package/esm/PageSummary/PageSummary.js +1 -1
- package/esm/SideNav/SideNav.js +2 -1
- package/esm/SwipeToRefresh/ProgressIndicator.js +4 -4
- package/esm/SwipeToRefresh/SwipeToRefresh.js +2 -2
- package/esm/SwipeToRefresh/useSwipe.js +1 -0
- package/package.json +1 -1
- package/cjs/package.json +0 -7
- package/esm/package.json +0 -7
|
@@ -43,7 +43,7 @@ const DSCollectionBox = ({
|
|
|
43
43
|
alignItems: "center",
|
|
44
44
|
cols: headerCols
|
|
45
45
|
}, void 0, title && /*#__PURE__*/_jsx(Header, {
|
|
46
|
-
as:
|
|
46
|
+
as: "h".concat(headerLevel)
|
|
47
47
|
}, void 0, title), headerAction && /*#__PURE__*/_jsx(ActionWrap, {
|
|
48
48
|
justifySelf: "end"
|
|
49
49
|
}, void 0, headerAction)), /*#__PURE__*/_jsx(Body, {}, void 0, body), footerAction && /*#__PURE__*/_jsx(Footer, {
|
|
@@ -1,5 +1,6 @@
|
|
|
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';
|
|
3
4
|
import { useState, useCallback } from 'react';
|
|
4
5
|
import Search from '@elliemae/ds-icons/Search';
|
|
5
6
|
import DSInput from '@elliemae/ds-basic/form/Input';
|
|
@@ -1,22 +1,15 @@
|
|
|
1
|
+
import _taggedTemplateLiteral from '@babel/runtime/helpers/esm/taggedTemplateLiteral';
|
|
1
2
|
import styled from 'styled-components';
|
|
2
3
|
import { kfrm, css } from '@elliemae/ds-system';
|
|
3
4
|
|
|
5
|
+
var _templateObject, _templateObject2;
|
|
4
6
|
const Container = /*#__PURE__*/styled.header.withConfig({
|
|
5
7
|
componentId: "sc-1nzpklc-0"
|
|
6
8
|
})(["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']);
|
|
7
|
-
const growLeft = kfrm
|
|
8
|
-
0% {
|
|
9
|
-
width: 0;
|
|
10
|
-
}
|
|
11
|
-
100% {
|
|
12
|
-
width: 100%;
|
|
13
|
-
}
|
|
14
|
-
`;
|
|
9
|
+
const growLeft = kfrm(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n 0% {\n width: 0;\n }\n 100% {\n width: 100%;\n }\n"])));
|
|
15
10
|
const SearchWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
16
11
|
componentId: "sc-1nzpklc-1"
|
|
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']);
|
|
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']);
|
|
20
13
|
const Icon = /*#__PURE__*/styled.div.withConfig({
|
|
21
14
|
componentId: "sc-1nzpklc-2"
|
|
22
15
|
})(["margin-right:", ";"], props => props.theme.space.xs);
|
package/esm/GroupBox/GroupBox.js
CHANGED
|
@@ -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 ?
|
|
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');
|
|
15
15
|
|
|
16
16
|
const DSGroupBox = ({
|
|
17
17
|
children,
|
|
@@ -34,7 +34,7 @@ const DSGroupBox = ({
|
|
|
34
34
|
pl: "xs",
|
|
35
35
|
pr: hasActions ? 'xxs' : 'xs'
|
|
36
36
|
}, void 0, /*#__PURE__*/_jsx(Title, {
|
|
37
|
-
as:
|
|
37
|
+
as: "h".concat(headerLevel)
|
|
38
38
|
}, void 0, title), hasActions && /*#__PURE__*/_jsx(Grid, {
|
|
39
39
|
cols: times(actionsRight.length, () => 'auto'),
|
|
40
40
|
justifySelf: "end"
|
package/esm/LoadingPage/Page.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
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';
|
|
3
4
|
import React, { useState, useRef, useEffect } from 'react';
|
|
4
5
|
import { withTheme } from '@elliemae/ds-system';
|
|
5
6
|
import { get } from 'lodash';
|
|
@@ -1,5 +1,6 @@
|
|
|
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';
|
|
3
4
|
import { useRef, useState, useEffect, useLayoutEffect } from 'react';
|
|
4
5
|
import CloseX from '@elliemae/ds-icons/CloseX';
|
|
5
6
|
import { describe } from 'react-desc';
|
|
@@ -1,43 +1,12 @@
|
|
|
1
|
+
import _taggedTemplateLiteral from '@babel/runtime/helpers/esm/taggedTemplateLiteral';
|
|
1
2
|
import { kfrm, css } from '@elliemae/ds-system';
|
|
2
3
|
import { MOBILE_BANNER_TYPES } from './bannerTypes.js';
|
|
3
4
|
|
|
4
|
-
|
|
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
|
-
`;
|
|
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);
|
|
41
10
|
const handleBorderColor = (type, {
|
|
42
11
|
colors
|
|
43
12
|
}) => {
|
|
@@ -58,13 +27,9 @@ const handleBorderColor = (type, {
|
|
|
58
27
|
const handleAnimation = (isAnimating, isOpen, height = null) => {
|
|
59
28
|
if (isAnimating) {
|
|
60
29
|
if (isOpen) {
|
|
61
|
-
return css
|
|
62
|
-
animation: ${height ? spanContainer(height) : slideIn} 0.5s ease-in;
|
|
63
|
-
`;
|
|
30
|
+
return css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n animation: ", " 0.5s ease-in;\n "])), height ? spanContainer(height) : slideIn);
|
|
64
31
|
} else {
|
|
65
|
-
return css
|
|
66
|
-
animation: ${height ? shrinkContainer(height) : slideOut} 0.5s ease-in;
|
|
67
|
-
`;
|
|
32
|
+
return css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n animation: ", " 0.5s ease-in;\n "])), height ? shrinkContainer(height) : slideOut);
|
|
68
33
|
}
|
|
69
34
|
}
|
|
70
35
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
2
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
2
3
|
import { useRef, useState, useEffect } from 'react';
|
|
3
4
|
import styled from 'styled-components';
|
|
4
5
|
import { truncate, border } from '@elliemae/ds-system';
|
|
@@ -9,9 +10,7 @@ const RegionWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
|
9
10
|
})(["width:100%;height:100%;"]);
|
|
10
11
|
const Region = /*#__PURE__*/styled.div.withConfig({
|
|
11
12
|
componentId: "sc-mduzz9-1"
|
|
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);
|
|
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);
|
|
15
14
|
const ExpandableRegion = ({
|
|
16
15
|
show,
|
|
17
16
|
content
|
package/esm/MobileCard/Group.js
CHANGED
|
@@ -12,13 +12,13 @@ const GroupGrid = /*#__PURE__*/styled(Grid).withConfig({
|
|
|
12
12
|
})(["", "{border-top:none;}", ""], StyledCard, ({
|
|
13
13
|
theme,
|
|
14
14
|
withTopBorder
|
|
15
|
-
}) => withTopBorder ?
|
|
15
|
+
}) => withTopBorder ? "border-top: ".concat(border(theme.colors.neutral['100'])) : '');
|
|
16
16
|
const GroupTitle = /*#__PURE__*/styled.span.withConfig({
|
|
17
17
|
componentId: "sc-17xukaf-1"
|
|
18
18
|
})(["", ""], truncate());
|
|
19
19
|
const GroupTitleGrid = /*#__PURE__*/styled.div.withConfig({
|
|
20
20
|
componentId: "sc-17xukaf-2"
|
|
21
|
-
})(["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 =>
|
|
21
|
+
})(["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']));
|
|
22
22
|
|
|
23
23
|
const MobileCardGroup = ({
|
|
24
24
|
children,
|
|
@@ -1,5 +1,6 @@
|
|
|
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';
|
|
3
4
|
import React, { useState, useMemo, useRef } from 'react';
|
|
4
5
|
import { noop } from 'lodash';
|
|
5
6
|
import { PropTypes, describe } from 'react-desc';
|
|
@@ -18,7 +19,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
18
19
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
19
20
|
const StyledContainer = /*#__PURE__*/styled(Grid).withConfig({
|
|
20
21
|
componentId: "sc-15ys5tq-0"
|
|
21
|
-
})(["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 =>
|
|
22
|
+
})(["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);
|
|
22
23
|
const StyledTitle = /*#__PURE__*/styled(Grid).withConfig({
|
|
23
24
|
componentId: "sc-15ys5tq-1"
|
|
24
25
|
})(["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']);
|
|
@@ -111,7 +112,7 @@ const DSMobileContextMenu = withTheme(({
|
|
|
111
112
|
if (singleSelect) isSelected = trueSelected === value;else if (multiple) isSelected = trueSelected.includes(value);
|
|
112
113
|
return /*#__PURE__*/React.cloneElement(child, {
|
|
113
114
|
value,
|
|
114
|
-
key:
|
|
115
|
+
key: "cm.".concat(ii),
|
|
115
116
|
isMulti: multiple,
|
|
116
117
|
singleSelect,
|
|
117
118
|
isSelected,
|
|
@@ -124,7 +125,7 @@ const DSMobileContextMenu = withTheme(({
|
|
|
124
125
|
alignItems: "center"
|
|
125
126
|
}, void 0, /*#__PURE__*/React.cloneElement(buttonFooter, _objectSpread(_objectSpread({}, buttonFooter.props), {}, {
|
|
126
127
|
containerProps: {
|
|
127
|
-
'data-testid':
|
|
128
|
+
'data-testid': "".concat(dataTestid, "--btn")
|
|
128
129
|
},
|
|
129
130
|
buttonType: 'primary',
|
|
130
131
|
size: 'l',
|
|
@@ -24,7 +24,7 @@ const DSMobileContextMenuGroup = ({
|
|
|
24
24
|
const {
|
|
25
25
|
onClick = noop
|
|
26
26
|
} = child.props;
|
|
27
|
-
const value =
|
|
27
|
+
const value = "".concat(groupValue, ":").concat(index);
|
|
28
28
|
let isSelected;
|
|
29
29
|
if (singleSelect) isSelected = selectedItems === value;else if (isMulti) isSelected = selectedItems.includes(value);
|
|
30
30
|
return /*#__PURE__*/React.cloneElement(child, {
|
|
@@ -23,17 +23,7 @@ const PropWrap = /*#__PURE__*/styled(props => /*#__PURE__*/jsx(Grid, _objectSpre
|
|
|
23
23
|
componentId: "sc-20od94-1"
|
|
24
24
|
})(["", ""], props => {
|
|
25
25
|
if (!props.isMulti) {
|
|
26
|
-
return
|
|
27
|
-
& > span {
|
|
28
|
-
height: 18px;
|
|
29
|
-
width: 18px;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
& > span > svg {
|
|
33
|
-
height: 18px;
|
|
34
|
-
width: 18px;
|
|
35
|
-
}
|
|
36
|
-
`;
|
|
26
|
+
return "\n & > span {\n height: 18px;\n width: 18px;\n }\n\n & > span > svg {\n height: 18px;\n width: 18px;\n }\n ";
|
|
37
27
|
}
|
|
38
28
|
|
|
39
29
|
return '';
|
|
@@ -28,7 +28,7 @@ const DSMobileDatePicker = ({
|
|
|
28
28
|
}
|
|
29
29
|
}, [inputRef.current]);
|
|
30
30
|
const valueArr = value.split('-');
|
|
31
|
-
const displayValue = value &&
|
|
31
|
+
const displayValue = value && "".concat(valueArr[1], " / ").concat(valueArr[2], " / ").concat(valueArr[0]);
|
|
32
32
|
return /*#__PURE__*/_jsx(DSInputGroup, {
|
|
33
33
|
rightAddon: /*#__PURE__*/_jsx(DSButton, {
|
|
34
34
|
"aria-label": "Date Picker Button",
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
2
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
2
3
|
import React, { useState, useRef } from 'react';
|
|
3
4
|
import { PropTypes, describe } from 'react-desc';
|
|
4
5
|
import { DSMobileContextMenu } from '../MobileContextMenu/MobileContextMenu.js';
|
|
@@ -62,7 +63,7 @@ const DSMobileDropdownMenu = ({
|
|
|
62
63
|
isGroup: itemsProps.isGroup,
|
|
63
64
|
isMulti: itemsProps.isMulti,
|
|
64
65
|
singleSelect: itemsProps.singleSelect
|
|
65
|
-
}, 'ddwn'.concat(
|
|
66
|
+
}, 'ddwn'.concat("".concat(i))))) : null]
|
|
66
67
|
});
|
|
67
68
|
};
|
|
68
69
|
|
|
@@ -9,7 +9,7 @@ import { DSMobileFooterText } from './Text.js';
|
|
|
9
9
|
|
|
10
10
|
const FooterWrap = /*#__PURE__*/styled(Grid).withConfig({
|
|
11
11
|
componentId: "sc-ls5vfg-0"
|
|
12
|
-
})(["background-color:", ";border-top:", ";height:", ";"], props => props.theme.colors.neutral['000'], props => border(props.theme.colors.neutral[100]), props =>
|
|
12
|
+
})(["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)"));
|
|
13
13
|
|
|
14
14
|
const MobileFooter = ({
|
|
15
15
|
children
|
|
@@ -22,7 +22,7 @@ const MobileFooter = ({
|
|
|
22
22
|
return childArr.length === 1 ? ['90%'] : ['45%', '45%'];
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
return childArr.map(() =>
|
|
25
|
+
return childArr.map(() => "".concat(100 / childArr.length, "%"));
|
|
26
26
|
};
|
|
27
27
|
|
|
28
28
|
return /*#__PURE__*/_jsx(FooterWrap, {}, void 0, /*#__PURE__*/_jsx(Grid, {
|
|
@@ -30,7 +30,7 @@ const MobileListItem = ({
|
|
|
30
30
|
pl: __UNSAFE_SPACE_TO_DIMSUM(theme.space.s),
|
|
31
31
|
pr: __UNSAFE_SPACE_TO_DIMSUM(theme.space.s),
|
|
32
32
|
gutter: "xs",
|
|
33
|
-
"data-testid":
|
|
33
|
+
"data-testid": "".concat(dataTestid, "--").concat(value)
|
|
34
34
|
}, void 0, leftAddon && /*#__PURE__*/_jsx(Grid, {
|
|
35
35
|
alignItems: "center",
|
|
36
36
|
justifyContent: "center"
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
2
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
2
3
|
import React, { useMemo, useState, useCallback } from 'react';
|
|
3
4
|
import { PropTypes, describe } from 'react-desc';
|
|
4
5
|
import styled from 'styled-components';
|
|
@@ -21,7 +22,7 @@ const Label = /*#__PURE__*/styled.div.withConfig({
|
|
|
21
22
|
})(["color:", ";", ""], props => props.theme.colors.neutral['500'], truncate());
|
|
22
23
|
const Value = /*#__PURE__*/styled.div.withConfig({
|
|
23
24
|
componentId: "sc-1tfu1y9-3"
|
|
24
|
-
})(["", " color:", ";", " margin-top:", ";"], truncate(), props => props.theme.colors.neutral['600'], props => props.withMarginRight ?
|
|
25
|
+
})(["", " color:", ";", " margin-top:", ";"], truncate(), props => props.theme.colors.neutral['600'], props => props.withMarginRight ? "margin-right: 4px;" : '', props => props.withBreadcrumb ? '12px' : '0');
|
|
25
26
|
const Wrapper = /*#__PURE__*/styled(Grid).withConfig({
|
|
26
27
|
componentId: "sc-1tfu1y9-4"
|
|
27
28
|
})(["border-bottom:", ";"], props => border(props.theme.colors.neutral['300']));
|
|
@@ -1,5 +1,6 @@
|
|
|
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';
|
|
3
4
|
import React, { useState, useEffect } from 'react';
|
|
4
5
|
import { noop } from 'lodash';
|
|
5
6
|
import { Grid } from '@elliemae/ds-basic/Grid';
|
|
@@ -82,7 +83,7 @@ const MobileSelectList = ({
|
|
|
82
83
|
overflow: 'auto'
|
|
83
84
|
}
|
|
84
85
|
}, void 0, /*#__PURE__*/_jsx(ListContainer, {
|
|
85
|
-
"data-testid":
|
|
86
|
+
"data-testid": "".concat(dataTestid, "--list-container")
|
|
86
87
|
}, void 0, React.Children.map(children, child => {
|
|
87
88
|
let leftAddon = null;
|
|
88
89
|
let rightAddon = null;
|
|
@@ -112,7 +113,7 @@ const MobileSelectList = ({
|
|
|
112
113
|
pr: __UNSAFE_SPACE_TO_DIMSUM(theme.space.s)
|
|
113
114
|
}, void 0, /*#__PURE__*/React.cloneElement(buttonFooter, _objectSpread(_objectSpread({}, buttonFooter.props), {}, {
|
|
114
115
|
containerProps: {
|
|
115
|
-
'data-testid':
|
|
116
|
+
'data-testid': "".concat(dataTestid, "--btn")
|
|
116
117
|
},
|
|
117
118
|
buttonType: 'primary',
|
|
118
119
|
size: 'l',
|
|
@@ -14,11 +14,11 @@ const Separator = /*#__PURE__*/styled(Grid).withConfig({
|
|
|
14
14
|
theme,
|
|
15
15
|
color,
|
|
16
16
|
borderType
|
|
17
|
-
}) =>
|
|
17
|
+
}) => "".concat(theme.colors[color[0]][color[1]], " 1px ").concat(borderType), ({
|
|
18
18
|
theme,
|
|
19
19
|
color,
|
|
20
20
|
borderType
|
|
21
|
-
}) =>
|
|
21
|
+
}) => "".concat(theme.colors[color[0]][color[1]], " 1px ").concat(borderType));
|
|
22
22
|
|
|
23
23
|
const MobileSeparator = ({
|
|
24
24
|
color = ['neutral', '800'],
|
|
@@ -32,7 +32,7 @@ const DSMobileTimePicker = ({
|
|
|
32
32
|
if (!value || !valueArr[0] || !valueArr[1]) return '';
|
|
33
33
|
const ampm = valueArr[0] >= 12 ? 'pm' : 'am';
|
|
34
34
|
const h = valueArr[0] > 12 ? valueArr[0] - 12 : valueArr[0];
|
|
35
|
-
return
|
|
35
|
+
return "".concat(h, " : ").concat(valueArr[1], " ").concat(ampm);
|
|
36
36
|
}, [value]);
|
|
37
37
|
return /*#__PURE__*/_jsx(DSInputGroup, {
|
|
38
38
|
rightAddon: /*#__PURE__*/_jsx(DSButton, {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
2
2
|
import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
|
|
3
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
3
4
|
import { useState, useCallback } from 'react';
|
|
4
5
|
import { noop } from 'lodash';
|
|
5
6
|
import styled from 'styled-components';
|
package/esm/Modal/Modal.js
CHANGED
|
@@ -44,7 +44,7 @@ const Modal = ({
|
|
|
44
44
|
zIndex: zIndex,
|
|
45
45
|
cols: ['auto']
|
|
46
46
|
}, void 0, /*#__PURE__*/_jsx(ModalBox, {
|
|
47
|
-
maxHeight:
|
|
47
|
+
maxHeight: "".concat(window.innerHeight * 0.75, "px"),
|
|
48
48
|
rows: [1, '80px'],
|
|
49
49
|
style: {
|
|
50
50
|
overflow: 'hidden'
|
|
@@ -79,7 +79,7 @@ const Modal = ({
|
|
|
79
79
|
justifyContent: "center",
|
|
80
80
|
alignItems: "center",
|
|
81
81
|
style: {
|
|
82
|
-
borderTop:
|
|
82
|
+
borderTop: "1px solid ".concat(theme.colors.neutral[100])
|
|
83
83
|
}
|
|
84
84
|
}, void 0, showSecondaryAction && /*#__PURE__*/jsx(DSButton, _objectSpread(_objectSpread({}, secondaryActionProps), {}, {
|
|
85
85
|
labelText: secondaryActionProps.labelText || ' Cancel',
|
package/esm/Modal/styled.js
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
|
+
import _taggedTemplateLiteral from '@babel/runtime/helpers/esm/taggedTemplateLiteral';
|
|
1
2
|
import { Grid } from '@elliemae/ds-basic/Grid';
|
|
2
3
|
import styled from 'styled-components';
|
|
3
4
|
import { createGlobalStyle } from '@elliemae/ds-system';
|
|
4
5
|
|
|
5
|
-
|
|
6
|
-
body{
|
|
7
|
-
${props => props.isOpen ? 'overflow: hidden;' : ''};
|
|
8
|
-
}
|
|
9
|
-
`;
|
|
6
|
+
var _templateObject;
|
|
7
|
+
const BodyFix = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n body{\n ", ";\n }\n"])), props => props.isOpen ? 'overflow: hidden;' : '');
|
|
10
8
|
const ModalBox = /*#__PURE__*/styled(Grid).withConfig({
|
|
11
9
|
componentId: "sc-cke90o-0"
|
|
12
10
|
})(["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
|
@@ -12,7 +12,7 @@ const Body = /*#__PURE__*/styled(Grid).withConfig({
|
|
|
12
12
|
theme
|
|
13
13
|
}) => theme.breakpoints.small, ({
|
|
14
14
|
theme
|
|
15
|
-
}) =>
|
|
15
|
+
}) => "width: ".concat(op('*', __UNSAFE_SPACE_TO_DIMSUM(theme.space.xxl), 6.25), ";"));
|
|
16
16
|
|
|
17
17
|
const PageForm = ({
|
|
18
18
|
header = null,
|
|
@@ -16,7 +16,7 @@ const Body = /*#__PURE__*/styled(Grid).withConfig({
|
|
|
16
16
|
theme
|
|
17
17
|
}) => theme.breakpoints.small, ({
|
|
18
18
|
theme
|
|
19
|
-
}) =>
|
|
19
|
+
}) => "width: ".concat(op('*', __UNSAFE_SPACE_TO_DIMSUM(theme.space.xxl), 6.25), ";"));
|
|
20
20
|
|
|
21
21
|
const PageSummary = ({
|
|
22
22
|
header = null,
|
package/esm/SideNav/SideNav.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
2
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
2
3
|
import { useState } from 'react';
|
|
3
4
|
import { DSBackdrop } from '@elliemae/ds-basic';
|
|
4
5
|
import Close from '@elliemae/ds-icons/Close';
|
|
@@ -39,7 +40,7 @@ const DSSideNav = ({
|
|
|
39
40
|
}, idx, /*#__PURE__*/_jsx("div", {
|
|
40
41
|
className: "icon"
|
|
41
42
|
}, void 0, icon), /*#__PURE__*/_jsx("div", {
|
|
42
|
-
className:
|
|
43
|
+
className: "text ".concat(idx === selectedMenuItemIdx ? 'active' : '')
|
|
43
44
|
}, void 0, text)))) : null
|
|
44
45
|
});
|
|
45
46
|
|
|
@@ -27,16 +27,16 @@ const ProgressIndicator = ({
|
|
|
27
27
|
r: "54",
|
|
28
28
|
fill: "none",
|
|
29
29
|
strokeWidth: "12",
|
|
30
|
-
stroke:
|
|
30
|
+
stroke: "".concat(theme.colors.neutral[100])
|
|
31
31
|
}), /*#__PURE__*/_jsx("circle", {
|
|
32
32
|
cx: "60",
|
|
33
33
|
cy: "60",
|
|
34
34
|
r: "54",
|
|
35
35
|
strokeWidth: "12",
|
|
36
36
|
fill: "none",
|
|
37
|
-
strokeDasharray:
|
|
38
|
-
strokeDashoffset:
|
|
39
|
-
stroke:
|
|
37
|
+
strokeDasharray: "".concat(cir, "px"),
|
|
38
|
+
strokeDashoffset: "".concat(dashoffset, "px"),
|
|
39
|
+
stroke: "".concat(theme.colors.brand[600]),
|
|
40
40
|
strokeLinecap: "round"
|
|
41
41
|
})));
|
|
42
42
|
};
|
|
@@ -29,14 +29,14 @@ const SwipeToRefresh = ({
|
|
|
29
29
|
onTouchMove: swipe.touchMove,
|
|
30
30
|
ref: swipe.ref,
|
|
31
31
|
children: [/*#__PURE__*/_jsx(LoaderBox, {
|
|
32
|
-
height: loading ? theme.space.m :
|
|
32
|
+
height: loading ? theme.space.m : "".concat(swipe.height, "px"),
|
|
33
33
|
alignItems: "flex-start",
|
|
34
34
|
"data-testid": "loader-box"
|
|
35
35
|
}, void 0, /*#__PURE__*/_jsx(PositionLoader, {
|
|
36
36
|
height: theme.space.m,
|
|
37
37
|
justifyContent: "center",
|
|
38
38
|
alignItems: "center",
|
|
39
|
-
mt: swipe.height > 40 || loading ? 0 :
|
|
39
|
+
mt: swipe.height > 40 || loading ? 0 : "".concat(swipe.height - 40, "px")
|
|
40
40
|
}, void 0, loading ? _DSCircularProgressIn || (_DSCircularProgressIn = /*#__PURE__*/_jsx(DSCircularProgressIndicator, {})) : /*#__PURE__*/_jsx(ProgressIndicator, {
|
|
41
41
|
progress: progress
|
|
42
42
|
}))), /*#__PURE__*/jsx("div", {
|
package/package.json
CHANGED
package/cjs/package.json
DELETED