@elliemae/ds-mobile 2.0.0-next.8 → 2.0.0-rc.3
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/Accordion/Accordion.js +5 -5
- package/cjs/Accordion/index.js +5 -5
- package/cjs/CategoryBox/CategoryBox.js +12 -11
- package/cjs/CollectionBox/CollectionBox.js +14 -13
- package/cjs/FullPageContainer/FullPageContainer.js +7 -2
- package/cjs/FullPageContainer/FullPageContainerScroll.js +7 -2
- package/cjs/GlobalHeader/MobileGlobalHeader.js +28 -24
- package/cjs/GroupBox/GroupBox.js +13 -12
- package/cjs/InfiniteLoader/Infiniteloader.js +11 -9
- package/cjs/InfiniteLoader/Loader.js +12 -9
- package/cjs/InfiniteLoader/VirtualizedInfiniteLoader.js +49 -22
- package/cjs/LoadingPage/Page.js +24 -12
- package/cjs/MobileActionToolbar/MobileActionToolbar.js +8 -7
- package/cjs/MobileActionToolbar/MobileActionToolbarItem.js +6 -1
- package/cjs/MobileBanner/MobileBanner.js +21 -16
- package/cjs/MobileBanner/styles.js +128 -59
- package/cjs/MobileBanner/utils/icons.js +5 -12
- package/cjs/MobileBanner/utils/styleHelpers.js +8 -4
- package/cjs/MobileCard/ActionAddon.js +16 -14
- package/cjs/MobileCard/Card.js +26 -22
- package/cjs/MobileCard/CardIcons.js +21 -16
- package/cjs/MobileCard/ExpandChevron.js +8 -10
- package/cjs/MobileCard/ExpandableRegion.js +5 -4
- package/cjs/MobileCard/Group.js +22 -16
- package/cjs/MobileContextMenu/MobileContextMenu.js +33 -25
- package/cjs/MobileContextMenu/MobileContextMenuGroup.js +35 -25
- package/cjs/MobileContextMenu/MobileContextMenuItem.js +29 -25
- package/cjs/MobileDatePicker/Input.js +5 -0
- package/cjs/MobileDatePicker/MobileDatePicker.js +15 -16
- package/cjs/MobileDropdownMenu/MobileDropdownInput.js +27 -17
- package/cjs/MobileDropdownMenu/MobileDropdownMenu.js +19 -16
- package/cjs/MobileEmtpyState/MobileEmptyState.js +10 -8
- package/cjs/MobileFilterbar/Filterbar.js +13 -10
- package/cjs/MobileFilterbar/FilterbarItem.js +15 -12
- package/cjs/MobileFilterbar/FilterbarSort.js +17 -14
- package/cjs/MobileFooter/Action.js +27 -24
- package/cjs/MobileFooter/Footer.js +15 -8
- package/cjs/MobileFooter/Text.js +6 -3
- package/cjs/MobileListItem/MobileListItem.js +14 -13
- package/cjs/MobilePageHeader/MobilePageHeader.js +35 -35
- package/cjs/MobileSelectList/MobileSelectList.js +29 -22
- package/cjs/MobileSelectList/styled.js +9 -11
- package/cjs/MobileSeparator/Separator.js +30 -18
- package/cjs/MobileTimePicker/Input.js +5 -0
- package/cjs/MobileTimePicker/MobileTimePicker.js +15 -16
- package/cjs/MobileTimePicker/MobileTimePicker.stories.js +2 -2
- package/cjs/MobileTouchable/MobileTouchable.js +7 -2
- package/cjs/Modal/Modal.js +30 -25
- package/cjs/Modal/styled.js +7 -7
- package/cjs/PageFilter/PageFilter.js +20 -15
- package/cjs/PageForm/PageForm.js +22 -15
- package/cjs/PageList/PageList.js +12 -11
- package/cjs/PageSearch/PageSearch.js +14 -13
- package/cjs/PageSummary/PageSummary.js +34 -21
- package/cjs/PageSummary/Tags.js +12 -6
- package/cjs/SideNav/SideNav.js +42 -34
- package/cjs/SwipeToRefresh/ProgressIndicator.js +6 -5
- package/cjs/SwipeToRefresh/SwipeToRefresh.js +8 -7
- package/cjs/SwipeToRefresh/styled.js +4 -4
- package/cjs/SwipeToRefresh/useSwipe.js +5 -4
- package/cjs/Tabs/index.js +8 -3
- package/cjs/index.js +9 -5
- package/esm/Accordion/Accordion.js +1 -1
- package/esm/Accordion/index.js +1 -1
- package/esm/CategoryBox/CategoryBox.js +9 -8
- package/esm/CollectionBox/CollectionBox.js +9 -8
- package/esm/FullPageContainer/FullPageContainer.js +6 -1
- package/esm/FullPageContainer/FullPageContainerScroll.js +6 -1
- package/esm/GlobalHeader/MobileGlobalHeader.js +20 -14
- package/esm/GroupBox/GroupBox.js +10 -9
- package/esm/InfiniteLoader/Infiniteloader.js +9 -7
- package/esm/InfiniteLoader/Loader.js +12 -9
- package/esm/InfiniteLoader/VirtualizedInfiniteLoader.js +50 -23
- package/esm/LoadingPage/Page.js +24 -12
- package/esm/MobileActionToolbar/MobileActionToolbar.js +7 -6
- package/esm/MobileActionToolbar/MobileActionToolbarItem.js +6 -1
- package/esm/MobileBanner/MobileBanner.js +20 -14
- package/esm/MobileBanner/styles.js +128 -59
- package/esm/MobileBanner/utils/icons.js +1 -4
- package/esm/MobileBanner/utils/styleHelpers.js +8 -4
- package/esm/MobileCard/ActionAddon.js +16 -13
- package/esm/MobileCard/Card.js +20 -16
- package/esm/MobileCard/CardIcons.js +20 -15
- package/esm/MobileCard/ExpandChevron.js +8 -8
- package/esm/MobileCard/ExpandableRegion.js +5 -4
- package/esm/MobileCard/Group.js +20 -14
- package/esm/MobileContextMenu/MobileContextMenu.js +26 -18
- package/esm/MobileContextMenu/MobileContextMenuGroup.js +35 -25
- package/esm/MobileContextMenu/MobileContextMenuItem.js +25 -19
- package/esm/MobileDatePicker/Input.js +5 -0
- package/esm/MobileDatePicker/MobileDatePicker.js +12 -11
- package/esm/MobileDropdownMenu/MobileDropdownInput.js +27 -16
- package/esm/MobileDropdownMenu/MobileDropdownMenu.js +19 -16
- package/esm/MobileEmtpyState/MobileEmptyState.js +10 -7
- package/esm/MobileFilterbar/Filterbar.js +13 -10
- package/esm/MobileFilterbar/FilterbarItem.js +15 -12
- package/esm/MobileFilterbar/FilterbarSort.js +17 -14
- package/esm/MobileFooter/Action.js +26 -23
- package/esm/MobileFooter/Footer.js +12 -5
- package/esm/MobileFooter/Text.js +6 -3
- package/esm/MobileListItem/MobileListItem.js +10 -9
- package/esm/MobilePageHeader/MobilePageHeader.js +17 -16
- package/esm/MobileSelectList/MobileSelectList.js +25 -17
- package/esm/MobileSelectList/styled.js +4 -4
- package/esm/MobileSeparator/Separator.js +28 -16
- package/esm/MobileTimePicker/Input.js +5 -0
- package/esm/MobileTimePicker/MobileTimePicker.js +12 -11
- package/esm/MobileTimePicker/MobileTimePicker.stories.js +1 -1
- package/esm/MobileTouchable/MobileTouchable.js +6 -1
- package/esm/Modal/Modal.js +25 -19
- package/esm/Modal/styled.js +1 -1
- package/esm/PageFilter/PageFilter.js +15 -10
- package/esm/PageForm/PageForm.js +18 -11
- package/esm/PageList/PageList.js +10 -9
- package/esm/PageSearch/PageSearch.js +10 -9
- package/esm/PageSummary/PageSummary.js +32 -19
- package/esm/PageSummary/Tags.js +12 -6
- package/esm/SideNav/SideNav.js +38 -29
- package/esm/SwipeToRefresh/ProgressIndicator.js +5 -4
- package/esm/SwipeToRefresh/SwipeToRefresh.js +7 -6
- package/esm/SwipeToRefresh/styled.js +1 -1
- package/esm/SwipeToRefresh/useSwipe.js +5 -4
- package/esm/Tabs/index.js +6 -1
- package/esm/index.js +4 -3
- package/package.json +15 -7
- package/types/Accordion/Accordion.d.ts +1 -1
- package/types/CategoryBox/CategoryBox.d.ts +1 -1
- package/types/CollectionBox/CollectionBox.d.ts +1 -1
- package/types/GroupBox/GroupBox.d.ts +1 -1
- package/types/InfiniteLoader/Infiniteloader.d.ts +1 -1
- package/types/MobileBanner/styles.d.ts +60 -1
- package/types/MobileDatePicker/MobileDatePicker.d.ts +1 -1
- package/types/MobileSelectList/styled.d.ts +4 -4
- package/types/MobileTimePicker/MobileTimePicker.d.ts +1 -1
- package/types/Modal/styled.d.ts +7 -6
- package/types/SideNav/SideNav.d.ts +1 -1
- package/types/SwipeToRefresh/styled.d.ts +4 -3
- package/types/index.d.ts +5 -1
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
2
2
|
import 'react';
|
|
3
3
|
import styled from 'styled-components';
|
|
4
|
-
import { Grid } from '@elliemae/ds-
|
|
4
|
+
import { Grid } from '@elliemae/ds-grid';
|
|
5
5
|
import { withTheme, op, __UNSAFE_SPACE_TO_DIMSUM } from '@elliemae/ds-system';
|
|
6
6
|
|
|
7
7
|
const Header = /*#__PURE__*/styled(Grid).withConfig({
|
|
8
8
|
componentId: "sc-a8tzbi-0"
|
|
9
9
|
})(["height:100%;background:", ";padding:", ";"], props => props.theme.colors.brand['600'], props => __UNSAFE_SPACE_TO_DIMSUM(props.theme.space.xxs));
|
|
10
|
-
const DSMobilePageSearch = withTheme(
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
10
|
+
const DSMobilePageSearch = withTheme(_ref => {
|
|
11
|
+
let {
|
|
12
|
+
HeaderContainer = Header,
|
|
13
|
+
SearchContainer = Header,
|
|
14
|
+
searchHeader = null,
|
|
15
|
+
pageTitle = 'Search',
|
|
16
|
+
body = null,
|
|
17
|
+
theme
|
|
18
|
+
} = _ref;
|
|
18
19
|
const rows = [op('*', __UNSAFE_SPACE_TO_DIMSUM(theme.space.l), 0.81), op('*', __UNSAFE_SPACE_TO_DIMSUM(theme.space.l), 1.62), 1];
|
|
19
20
|
return /*#__PURE__*/_jsx(Grid, {
|
|
20
21
|
rows: rows,
|
|
@@ -1,35 +1,48 @@
|
|
|
1
1
|
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
2
2
|
import 'react';
|
|
3
|
-
import { Grid } from '@elliemae/ds-
|
|
3
|
+
import { Grid } from '@elliemae/ds-grid';
|
|
4
4
|
import styled from 'styled-components';
|
|
5
5
|
import { op, __UNSAFE_SPACE_TO_DIMSUM } from '@elliemae/ds-system';
|
|
6
6
|
import { DSFullPageContainer } from '../FullPageContainer/FullPageContainer.js';
|
|
7
|
+
import 'core-js/modules/esnext.async-iterator.filter.js';
|
|
8
|
+
import 'core-js/modules/esnext.iterator.constructor.js';
|
|
9
|
+
import 'core-js/modules/esnext.iterator.filter.js';
|
|
10
|
+
import 'core-js/modules/esnext.async-iterator.for-each.js';
|
|
11
|
+
import 'core-js/modules/esnext.iterator.for-each.js';
|
|
7
12
|
import '@babel/runtime/helpers/esm/defineProperty';
|
|
8
13
|
import '@babel/runtime/helpers/esm/objectWithoutProperties';
|
|
9
|
-
import '@elliemae/ds-basic';
|
|
10
14
|
import 'react/jsx-runtime';
|
|
11
15
|
import { Header, Section, Toolbar, BodyWrapper } from './Tags.js';
|
|
12
16
|
|
|
13
17
|
const Body = /*#__PURE__*/styled(Grid).withConfig({
|
|
14
18
|
componentId: "sc-1jlvilw-0"
|
|
15
|
-
})(["margin:0 auto;width:100%;@media (min-width:", "){", "}"],
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
})(["margin:0 auto;width:100%;@media (min-width:", "){", "}"], _ref => {
|
|
20
|
+
let {
|
|
21
|
+
theme
|
|
22
|
+
} = _ref;
|
|
23
|
+
return theme.breakpoints.small;
|
|
24
|
+
}, _ref2 => {
|
|
25
|
+
let {
|
|
26
|
+
theme
|
|
27
|
+
} = _ref2;
|
|
28
|
+
return "width: ".concat(op('*', __UNSAFE_SPACE_TO_DIMSUM(theme.space.xxl), 6.25), ";");
|
|
29
|
+
});
|
|
20
30
|
|
|
21
|
-
const PageSummary =
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}, void 0,
|
|
31
|
+
const PageSummary = _ref3 => {
|
|
32
|
+
let {
|
|
33
|
+
header = null,
|
|
34
|
+
headerZIndex = 1,
|
|
35
|
+
bodyPrimary = null,
|
|
36
|
+
actions = null,
|
|
37
|
+
actionsZIndex = 1,
|
|
38
|
+
bodySecondary = null
|
|
39
|
+
} = _ref3;
|
|
40
|
+
return /*#__PURE__*/_jsx(DSFullPageContainer, {}, void 0, header && /*#__PURE__*/_jsx(Header, {
|
|
41
|
+
zIndex: headerZIndex
|
|
42
|
+
}, void 0, header), /*#__PURE__*/_jsx(Section, {}, void 0, /*#__PURE__*/_jsx(Grid, {}, void 0, /*#__PURE__*/_jsx(Body, {}, void 0, bodyPrimary)), /*#__PURE__*/_jsx(Toolbar, {
|
|
43
|
+
zIndex: actionsZIndex
|
|
44
|
+
}, void 0, actions), /*#__PURE__*/_jsx(BodyWrapper, {}, void 0, /*#__PURE__*/_jsx(Body, {}, void 0, bodySecondary))));
|
|
45
|
+
};
|
|
33
46
|
|
|
34
47
|
const DSPageSummary = PageSummary;
|
|
35
48
|
|
package/esm/PageSummary/Tags.js
CHANGED
|
@@ -2,14 +2,20 @@ import styled from 'styled-components';
|
|
|
2
2
|
|
|
3
3
|
const Header = /*#__PURE__*/styled.div.withConfig({
|
|
4
4
|
componentId: "sc-1bwtial-0"
|
|
5
|
-
})(["position:fixed;display:grid;top:0;left:0;width:100%;height:64px;z-index:", ";"],
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
})(["position:fixed;display:grid;top:0;left:0;width:100%;height:64px;z-index:", ";"], _ref => {
|
|
6
|
+
let {
|
|
7
|
+
zIndex
|
|
8
|
+
} = _ref;
|
|
9
|
+
return zIndex;
|
|
10
|
+
});
|
|
8
11
|
const Toolbar = /*#__PURE__*/styled.div.withConfig({
|
|
9
12
|
componentId: "sc-1bwtial-1"
|
|
10
|
-
})(["position:sticky;left:0;top:64px;background:", ";z-index:", ";"], props => props.theme.colors.neutral['000'],
|
|
11
|
-
|
|
12
|
-
|
|
13
|
+
})(["position:sticky;left:0;top:64px;background:", ";z-index:", ";"], props => props.theme.colors.neutral['000'], _ref2 => {
|
|
14
|
+
let {
|
|
15
|
+
zIndex
|
|
16
|
+
} = _ref2;
|
|
17
|
+
return zIndex;
|
|
18
|
+
});
|
|
13
19
|
const BodyWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
14
20
|
componentId: "sc-1bwtial-2"
|
|
15
21
|
})(["position:relative;display:grid;top:0;left:0;height:100%;"]);
|
package/esm/SideNav/SideNav.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
2
2
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
3
|
+
import 'core-js/modules/esnext.async-iterator.map.js';
|
|
4
|
+
import 'core-js/modules/esnext.iterator.map.js';
|
|
3
5
|
import { useState } from 'react';
|
|
4
|
-
import { DSBackdrop } from '@elliemae/ds-
|
|
5
|
-
import Close from '@elliemae/ds-icons
|
|
6
|
-
import { DSIconSizes, DSIconColors } from '@elliemae/ds-
|
|
6
|
+
import { DSBackdrop } from '@elliemae/ds-backdrop';
|
|
7
|
+
import { Close } from '@elliemae/ds-icons';
|
|
8
|
+
import { DSIconSizes, DSIconColors } from '@elliemae/ds-icon';
|
|
7
9
|
import { PropTypes, describe } from 'react-desc';
|
|
8
10
|
import { noop } from 'lodash';
|
|
9
11
|
import SvgIcon from '../Icons/EM_logo.js';
|
|
@@ -12,13 +14,14 @@ import { jsx, Fragment } from 'react/jsx-runtime';
|
|
|
12
14
|
|
|
13
15
|
var _span, _Hr, _hr;
|
|
14
16
|
|
|
15
|
-
const DSSideNav =
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
const DSSideNav = _ref => {
|
|
18
|
+
let {
|
|
19
|
+
containerProps = {},
|
|
20
|
+
title,
|
|
21
|
+
onClose = noop,
|
|
22
|
+
menuItems = [],
|
|
23
|
+
bottomMenuItems = []
|
|
24
|
+
} = _ref;
|
|
22
25
|
const [selectedMenuItemIdx, setSelectedMenuItem] = useState(-1);
|
|
23
26
|
|
|
24
27
|
const menuItemClick = (idx, text, cb) => {
|
|
@@ -30,32 +33,38 @@ const DSSideNav = ({
|
|
|
30
33
|
};
|
|
31
34
|
|
|
32
35
|
const renderMenuList = () => /*#__PURE__*/jsx(Fragment, {
|
|
33
|
-
children: menuItems.length > 0 ? /*#__PURE__*/_jsx(MenuList, {}, void 0, menuItems.map(({
|
|
36
|
+
children: menuItems.length > 0 ? /*#__PURE__*/_jsx(MenuList, {}, void 0, menuItems.map((_ref2, idx) => {
|
|
37
|
+
let {
|
|
38
|
+
icon,
|
|
39
|
+
text,
|
|
40
|
+
onClick
|
|
41
|
+
} = _ref2;
|
|
42
|
+
return /*#__PURE__*/_jsx("div", {
|
|
43
|
+
className: "menuitem",
|
|
44
|
+
onClick: menuItemClick.bind(null, idx, text, onClick)
|
|
45
|
+
}, idx, /*#__PURE__*/_jsx("div", {
|
|
46
|
+
className: "icon"
|
|
47
|
+
}, void 0, icon), /*#__PURE__*/_jsx("div", {
|
|
48
|
+
className: "text ".concat(idx === selectedMenuItemIdx ? 'active' : '')
|
|
49
|
+
}, void 0, text));
|
|
50
|
+
})) : null
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
const renderBottomMenu = () => /*#__PURE__*/_jsx(MenuList, {}, void 0, bottomMenuItems.map((_ref3, idx) => {
|
|
54
|
+
let {
|
|
34
55
|
icon,
|
|
35
56
|
text,
|
|
36
57
|
onClick
|
|
37
|
-
}
|
|
58
|
+
} = _ref3;
|
|
59
|
+
return /*#__PURE__*/_jsx("div", {
|
|
38
60
|
className: "menuitem",
|
|
39
|
-
onClick:
|
|
61
|
+
onClick: () => onClick(idx, text)
|
|
40
62
|
}, idx, /*#__PURE__*/_jsx("div", {
|
|
41
63
|
className: "icon"
|
|
42
64
|
}, void 0, icon), /*#__PURE__*/_jsx("div", {
|
|
43
|
-
className: "text
|
|
44
|
-
}, void 0, text))
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
const renderBottomMenu = () => /*#__PURE__*/_jsx(MenuList, {}, void 0, bottomMenuItems.map(({
|
|
48
|
-
icon,
|
|
49
|
-
text,
|
|
50
|
-
onClick
|
|
51
|
-
}, idx) => /*#__PURE__*/_jsx("div", {
|
|
52
|
-
className: "menuitem",
|
|
53
|
-
onClick: () => onClick(idx, text)
|
|
54
|
-
}, idx, /*#__PURE__*/_jsx("div", {
|
|
55
|
-
className: "icon"
|
|
56
|
-
}, void 0, icon), /*#__PURE__*/_jsx("div", {
|
|
57
|
-
className: "text"
|
|
58
|
-
}, void 0, text))));
|
|
65
|
+
className: "text"
|
|
66
|
+
}, void 0, text));
|
|
67
|
+
}));
|
|
59
68
|
|
|
60
69
|
return /*#__PURE__*/_jsx(Container, {
|
|
61
70
|
"data-testid": containerProps['data-testid'] || 'global-header-menu'
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
2
2
|
import 'react';
|
|
3
3
|
import { useTheme } from '@elliemae/ds-system';
|
|
4
|
-
import { Grid } from '@elliemae/ds-
|
|
4
|
+
import { Grid } from '@elliemae/ds-grid';
|
|
5
5
|
|
|
6
6
|
const rad = 54;
|
|
7
7
|
const cir = 2 * Math.PI * rad;
|
|
8
|
-
const ProgressIndicator =
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
const ProgressIndicator = _ref => {
|
|
9
|
+
let {
|
|
10
|
+
progress = 0
|
|
11
|
+
} = _ref;
|
|
11
12
|
const factor = progress / 100;
|
|
12
13
|
const theme = useTheme();
|
|
13
14
|
const dashoffset = cir * (1 - factor);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
2
2
|
import 'react';
|
|
3
3
|
import { PropTypes, describe } from 'react-desc';
|
|
4
|
-
import { DSCircularProgressIndicator } from '@elliemae/ds-
|
|
4
|
+
import { DSCircularProgressIndicator } from '@elliemae/ds-circular-progress-indicator';
|
|
5
5
|
import { useTheme } from '@elliemae/ds-system';
|
|
6
6
|
import { useSwipe } from './useSwipe.js';
|
|
7
7
|
import { SwipeContainer, SwipeDrag, LoaderBox, PositionLoader } from './styled.js';
|
|
@@ -10,11 +10,12 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
10
10
|
|
|
11
11
|
var _DSCircularProgressIn;
|
|
12
12
|
|
|
13
|
-
const SwipeToRefresh =
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
const SwipeToRefresh = _ref => {
|
|
14
|
+
let {
|
|
15
|
+
children,
|
|
16
|
+
loading,
|
|
17
|
+
onRefresh
|
|
18
|
+
} = _ref;
|
|
18
19
|
const breakpoint = 60;
|
|
19
20
|
const theme = useTheme();
|
|
20
21
|
const swipe = useSwipe({
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
2
2
|
import { useState, useRef } from 'react';
|
|
3
3
|
|
|
4
|
-
const useSwipe =
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
const useSwipe = _ref => {
|
|
5
|
+
let {
|
|
6
|
+
onRefresh,
|
|
7
|
+
breakpoint
|
|
8
|
+
} = _ref;
|
|
8
9
|
const [startingPoint, setStartingPoint] = useState(0);
|
|
9
10
|
const [movingPoint, setMovingPoint] = useState(0);
|
|
10
11
|
const ref = useRef();
|
package/esm/Tabs/index.js
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
|
+
import 'core-js/modules/esnext.async-iterator.filter.js';
|
|
2
|
+
import 'core-js/modules/esnext.iterator.constructor.js';
|
|
3
|
+
import 'core-js/modules/esnext.iterator.filter.js';
|
|
4
|
+
import 'core-js/modules/esnext.async-iterator.for-each.js';
|
|
5
|
+
import 'core-js/modules/esnext.iterator.for-each.js';
|
|
1
6
|
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
2
7
|
import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
|
|
3
8
|
import 'react';
|
|
4
|
-
import { DSTabs, DSTab } from '@elliemae/ds-
|
|
9
|
+
import { DSTabs, DSTab } from '@elliemae/ds-tabs';
|
|
5
10
|
import { jsx } from 'react/jsx-runtime';
|
|
6
11
|
|
|
7
12
|
const _excluded = ["children"],
|
package/esm/index.js
CHANGED
|
@@ -4,8 +4,8 @@ export { DSMobilePageForm, DSPageForm } from './PageForm/PageForm.js';
|
|
|
4
4
|
export { DSPageSummary } from './PageSummary/PageSummary.js';
|
|
5
5
|
export { DSMobileLoadingPage } from './LoadingPage/Page.js';
|
|
6
6
|
export { DSMobilePageSearch, DSPageSearch } from './PageSearch/PageSearch.js';
|
|
7
|
-
export { DSAccordion as DSMobileAccordion, DSAccordionItem as DSMobileAccordionItem, DSAccordionItemWithSchema as DSMobileAccordionItemWithSchema, DSAccordionWithSchema as DSMobileAccordionWithSchema } from '@elliemae/ds-
|
|
8
|
-
export { MobileSeparatorWithSchema } from './MobileSeparator/Separator.js';
|
|
7
|
+
export { DSAccordion as DSMobileAccordion, DSAccordionItem as DSMobileAccordionItem, DSAccordionItemWithSchema as DSMobileAccordionItemWithSchema, DSAccordionWithSchema as DSMobileAccordionWithSchema } from '@elliemae/ds-accordion';
|
|
8
|
+
export { default as DSMobileSeparator, MobileSeparatorWithSchema } from './MobileSeparator/Separator.js';
|
|
9
9
|
export { DSMobileListItem, ListItemWithSchema } from './MobileListItem/MobileListItem.js';
|
|
10
10
|
export { DSMobileTouchable } from './MobileTouchable/MobileTouchable.js';
|
|
11
11
|
export { DSMobileContextMenu, DSMobileContextMenuWithSchema } from './MobileContextMenu/MobileContextMenu.js';
|
|
@@ -14,7 +14,7 @@ export { DSMobileContextMenuGroup, DSMobileContextMenuGroupWithSchema } from './
|
|
|
14
14
|
export { DSMobileFilterbar, FilterbarWithSchema } from './MobileFilterbar/Filterbar.js';
|
|
15
15
|
export { DSMobileFilterbarSort, FilterbarSortWithSchema } from './MobileFilterbar/FilterbarSort.js';
|
|
16
16
|
export { DSMobileFilterbarItem, FilterbarItemWithSchema } from './MobileFilterbar/FilterbarItem.js';
|
|
17
|
-
export { DSMobileActionToolbarWithSchema } from './MobileActionToolbar/MobileActionToolbar.js';
|
|
17
|
+
export { default as DSMobileActionToolbar, DSMobileActionToolbarWithSchema } from './MobileActionToolbar/MobileActionToolbar.js';
|
|
18
18
|
export { DSToolbarItemWithSchema, default as ToolbarItem } from './MobileActionToolbar/MobileActionToolbarItem.js';
|
|
19
19
|
export { default as DSMobileFooter, MobileFooterWithSchema } from './MobileFooter/Footer.js';
|
|
20
20
|
export { DSMobileFooterText, DSMobileFooterTextWithSchema } from './MobileFooter/Text.js';
|
|
@@ -41,3 +41,4 @@ export { DSMobileBanner, DSMobileBannerWithSchema } from './MobileBanner/MobileB
|
|
|
41
41
|
export { MOBILE_BANNER_TYPES } from './MobileBanner/utils/bannerTypes.js';
|
|
42
42
|
export { DSMobileCardWithSchema } from './MobileCard/Card.js';
|
|
43
43
|
export { DSMobileCardGroupWithSchema } from './MobileCard/Group.js';
|
|
44
|
+
export { SubIcons } from './MobileCard/CardIcons.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-mobile",
|
|
3
|
-
"version": "2.0.0-
|
|
3
|
+
"version": "2.0.0-rc.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - System",
|
|
6
6
|
"module": "./esm/index.js",
|
|
@@ -421,20 +421,28 @@
|
|
|
421
421
|
"generateSubmodules": true
|
|
422
422
|
},
|
|
423
423
|
"dependencies": {
|
|
424
|
+
"@elliemae/ds-basic": "2.0.0-rc.3",
|
|
425
|
+
"@elliemae/ds-devutils": "2.0.0-rc.3",
|
|
426
|
+
"@elliemae/ds-icons": "2.0.0-rc.3",
|
|
427
|
+
"@elliemae/ds-shared": "2.0.0-rc.3",
|
|
428
|
+
"@elliemae/ds-system": "2.0.0-rc.3",
|
|
424
429
|
"polished": "~3.6.7",
|
|
430
|
+
"prop-types": "~15.7.2",
|
|
431
|
+
"react-desc": "~4.1.3",
|
|
425
432
|
"react-window": "~1.8.6",
|
|
426
|
-
"react-window-infinite-loader": "~1.0.
|
|
427
|
-
"styled-system": "~5.1.5"
|
|
433
|
+
"react-window-infinite-loader": "~1.0.5"
|
|
428
434
|
},
|
|
429
435
|
"devDependencies": {
|
|
430
|
-
"@elliemae/pui-theme": "~2.2.
|
|
431
|
-
"styled-components": "~5.3.
|
|
436
|
+
"@elliemae/pui-theme": "~2.2.5",
|
|
437
|
+
"styled-components": "~5.3.3",
|
|
438
|
+
"styled-system": "~5.1.5"
|
|
432
439
|
},
|
|
433
440
|
"peerDependencies": {
|
|
434
|
-
"@elliemae/pui-theme": "^2.2.
|
|
441
|
+
"@elliemae/pui-theme": "^2.2.5",
|
|
435
442
|
"lodash": "^4.17.21",
|
|
436
443
|
"react": "~17.0.2",
|
|
437
444
|
"react-dom": "^17.0.2",
|
|
438
|
-
"styled-components": "^5.3.
|
|
445
|
+
"styled-components": "^5.3.3",
|
|
446
|
+
"styled-system": "^5.1.5"
|
|
439
447
|
}
|
|
440
448
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { DSAccordion as DSMobileAccordion, DSAccordionItem as DSMobileAccordionItem, DSAccordionWithSchema as DSMobileAccordionWithSchema, DSAccordionItemWithSchema as DSMobileAccordionItemWithSchema, } from '@elliemae/ds-
|
|
1
|
+
export { DSAccordion as DSMobileAccordion, DSAccordionItem as DSMobileAccordionItem, DSAccordionWithSchema as DSMobileAccordionWithSchema, DSAccordionItemWithSchema as DSMobileAccordionItemWithSchema, } from '@elliemae/ds-accordion';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
declare const DSCategoryBox: {
|
|
3
|
-
({ borderTop, actionsRight, title, headerLevel, children
|
|
3
|
+
({ borderTop, actionsRight, title, headerLevel, children }: {
|
|
4
4
|
borderTop?: boolean | undefined;
|
|
5
5
|
actionsRight?: never[] | undefined;
|
|
6
6
|
title: any;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
declare const DSGroupBox: {
|
|
3
|
-
({ children, title, background, headerLevel, actionsRight, borderTop
|
|
3
|
+
({ children, title, background, headerLevel, actionsRight, borderTop }: {
|
|
4
4
|
children: any;
|
|
5
5
|
title: any;
|
|
6
6
|
background?: string | undefined;
|
|
@@ -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", any, StyledInnerContainerT, never>;
|
|
3
4
|
export declare const StyledTextContent: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -6,6 +7,64 @@ export declare const StyledSubTitle: import("styled-components").StyledComponent
|
|
|
6
7
|
export declare const StyledIconContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
7
8
|
export declare const StyledContent: import("styled-components").StyledComponent<"div", any, StyledContentT, never>;
|
|
8
9
|
export declare const StyledCloseButtonContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
9
|
-
export declare const StyledCloseButton: import("styled-components").StyledComponent<
|
|
10
|
+
export declare const StyledCloseButton: import("styled-components").StyledComponent<{
|
|
11
|
+
({ innerRef, disabled, buttonType, fluidWidth, size, labelText, icon, onBlur, onClick, onKeyPress, leftIcon, tabIndex, variant, intent, containerProps, className, as: Component, type, ...rest }: {
|
|
12
|
+
[x: string]: any;
|
|
13
|
+
innerRef: any;
|
|
14
|
+
disabled: any;
|
|
15
|
+
buttonType: any;
|
|
16
|
+
fluidWidth: any;
|
|
17
|
+
size: any;
|
|
18
|
+
labelText: any;
|
|
19
|
+
icon: any;
|
|
20
|
+
onBlur: any;
|
|
21
|
+
onClick: any;
|
|
22
|
+
onKeyPress: any;
|
|
23
|
+
leftIcon: any;
|
|
24
|
+
tabIndex: any;
|
|
25
|
+
variant: any;
|
|
26
|
+
intent: any;
|
|
27
|
+
containerProps: any;
|
|
28
|
+
className: any;
|
|
29
|
+
as: any;
|
|
30
|
+
type: any;
|
|
31
|
+
}): JSX.Element;
|
|
32
|
+
defaultProps: {
|
|
33
|
+
disabled: boolean;
|
|
34
|
+
fluidWidth: boolean;
|
|
35
|
+
labelText: string;
|
|
36
|
+
icon: null;
|
|
37
|
+
onBlur: () => null;
|
|
38
|
+
onClick: () => null;
|
|
39
|
+
onKeyPress: () => null;
|
|
40
|
+
leftIcon: null;
|
|
41
|
+
tabIndex: number;
|
|
42
|
+
variant: string;
|
|
43
|
+
containerProps: {};
|
|
44
|
+
as: string;
|
|
45
|
+
type: string;
|
|
46
|
+
};
|
|
47
|
+
propTypes: {
|
|
48
|
+
tabIndex: any;
|
|
49
|
+
className: any;
|
|
50
|
+
'aria-disabled': any;
|
|
51
|
+
as: any;
|
|
52
|
+
disabled: any;
|
|
53
|
+
fluidWidth: any;
|
|
54
|
+
labelText: any;
|
|
55
|
+
icon: any;
|
|
56
|
+
leftIcon: any;
|
|
57
|
+
buttonType: any;
|
|
58
|
+
size: any;
|
|
59
|
+
type: any;
|
|
60
|
+
variant: any;
|
|
61
|
+
innerRef: any;
|
|
62
|
+
onBlur: any;
|
|
63
|
+
intent: any;
|
|
64
|
+
containerProps: any;
|
|
65
|
+
onClick: any;
|
|
66
|
+
onKeyPress: any;
|
|
67
|
+
};
|
|
68
|
+
}, any, {}, never>;
|
|
10
69
|
export declare const StyledActionLink: import("styled-components").StyledComponent<"a", any, {}, never>;
|
|
11
70
|
export declare const StyledBannerContainer: import("styled-components").StyledComponent<"div", any, StyledBannerContainerT, never>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const StyledContainer: import("styled-components").StyledComponent<
|
|
3
|
-
export declare const HeaderContainer: import("styled-components").StyledComponent<
|
|
4
|
-
export declare const Footer: import("styled-components").StyledComponent<
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const StyledContainer: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & React.RefAttributes<HTMLDivElement>>, any, {}, never>;
|
|
3
|
+
export declare const HeaderContainer: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & React.RefAttributes<HTMLDivElement>>, any, {}, never>;
|
|
4
|
+
export declare const Footer: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & React.RefAttributes<HTMLDivElement>>, any, {}, never>;
|
|
5
5
|
export declare const ListContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
6
6
|
export declare const checkbox: JSX.Element;
|
|
7
7
|
export declare const checked: JSX.Element;
|
package/types/Modal/styled.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export declare const BodyFix: import("styled-components").GlobalStyleComponent<{}, import("styled-components").DefaultTheme>;
|
|
2
|
-
export declare const ModalBox: import("styled-components").StyledComponent<
|
|
3
|
-
export declare const ModalPosition: import("styled-components").StyledComponent<
|
|
4
|
-
export declare const BackShadow: import("styled-components").StyledComponent<
|
|
5
|
-
export declare const ModalIcon: import("styled-components").StyledComponent<
|
|
6
|
-
export declare const ModalTitle: import("styled-components").StyledComponent<
|
|
7
|
-
export declare const ModalDescription: import("styled-components").StyledComponent<
|
|
3
|
+
export declare const ModalBox: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
|
|
4
|
+
export declare const ModalPosition: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
|
|
5
|
+
export declare const BackShadow: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
|
|
6
|
+
export declare const ModalIcon: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
|
|
7
|
+
export declare const ModalTitle: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
|
|
8
|
+
export declare const ModalDescription: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
declare const DSSideNav: {
|
|
3
|
-
({ containerProps, title, onClose, menuItems, bottomMenuItems
|
|
3
|
+
({ containerProps, title, onClose, menuItems, bottomMenuItems }: {
|
|
4
4
|
containerProps?: {} | undefined;
|
|
5
5
|
title: any;
|
|
6
6
|
onClose?: ((...args: any[]) => void) | undefined;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const SwipeContainer: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
|
|
2
3
|
export declare const SwipeDrag: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
-
export declare const LoaderBox: import("styled-components").StyledComponent<
|
|
4
|
-
export declare const PositionLoader: import("styled-components").StyledComponent<
|
|
4
|
+
export declare const LoaderBox: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
|
|
5
|
+
export declare const PositionLoader: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
|
package/types/index.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export * from './MobileTimePicker';
|
|
|
19
19
|
export * from './MobileEmtpyState';
|
|
20
20
|
export * from './MobileDropdownMenu';
|
|
21
21
|
export * from './Tabs';
|
|
22
|
-
export { DSMobileCard, DSMobileCardWithSchema, DSMobileCardGroupWithSchema } from './MobileCard';
|
|
22
|
+
export { DSMobileCard, DSMobileCardWithSchema, DSMobileCardGroupWithSchema, SubIcons } from './MobileCard';
|
|
23
23
|
export { DSCollectionBox, DSCollectionBoxWithSchema } from './CollectionBox';
|
|
24
24
|
export { DSCategoryBox, DSCategoryBoxWithSchema } from './CategoryBox';
|
|
25
25
|
export { DSGroupBox, DSGroupBoxWithSchema } from './GroupBox';
|
|
@@ -29,3 +29,7 @@ export * from './Modal';
|
|
|
29
29
|
export { DSSideNav, DSSideNavWithSchema } from './SideNav';
|
|
30
30
|
export { InfiniteLoader, VirtualizedInfiniteLoader, VirtualizedInfiniteLoaderWithSchema, InfiniteLoaderWithSchema, } from './InfiniteLoader';
|
|
31
31
|
export * from './MobileBanner';
|
|
32
|
+
export * from './MobileActionToolbar';
|
|
33
|
+
export { default as DSMobileActionToolbar } from './MobileActionToolbar';
|
|
34
|
+
export * from './MobileSeparator';
|
|
35
|
+
export { default as DSMobileSeparator } from './MobileSeparator';
|