@elliemae/ds-mobile 2.0.0-next.9 → 2.0.0-rc.1
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
|
@@ -4,13 +4,17 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var _jsx = require('@babel/runtime/helpers/jsx');
|
|
6
6
|
require('react');
|
|
7
|
-
var
|
|
7
|
+
var dsGrid = require('@elliemae/ds-grid');
|
|
8
8
|
var styled = require('styled-components');
|
|
9
9
|
var dsSystem = require('@elliemae/ds-system');
|
|
10
10
|
var FullPageContainer = require('../FullPageContainer/FullPageContainer.js');
|
|
11
|
+
require('core-js/modules/esnext.async-iterator.filter.js');
|
|
12
|
+
require('core-js/modules/esnext.iterator.constructor.js');
|
|
13
|
+
require('core-js/modules/esnext.iterator.filter.js');
|
|
14
|
+
require('core-js/modules/esnext.async-iterator.for-each.js');
|
|
15
|
+
require('core-js/modules/esnext.iterator.for-each.js');
|
|
11
16
|
require('@babel/runtime/helpers/defineProperty');
|
|
12
17
|
require('@babel/runtime/helpers/objectWithoutProperties');
|
|
13
|
-
require('@elliemae/ds-basic');
|
|
14
18
|
require('react/jsx-runtime');
|
|
15
19
|
var Tags = require('./Tags.js');
|
|
16
20
|
|
|
@@ -19,26 +23,35 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
19
23
|
var _jsx__default = /*#__PURE__*/_interopDefaultLegacy(_jsx);
|
|
20
24
|
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
21
25
|
|
|
22
|
-
const Body = /*#__PURE__*/styled__default["default"](
|
|
26
|
+
const Body = /*#__PURE__*/styled__default["default"](dsGrid.Grid).withConfig({
|
|
23
27
|
componentId: "sc-1jlvilw-0"
|
|
24
|
-
})(["margin:0 auto;width:100%;@media (min-width:", "){", "}"],
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
28
|
+
})(["margin:0 auto;width:100%;@media (min-width:", "){", "}"], _ref => {
|
|
29
|
+
let {
|
|
30
|
+
theme
|
|
31
|
+
} = _ref;
|
|
32
|
+
return theme.breakpoints.small;
|
|
33
|
+
}, _ref2 => {
|
|
34
|
+
let {
|
|
35
|
+
theme
|
|
36
|
+
} = _ref2;
|
|
37
|
+
return "width: ".concat(dsSystem.op('*', dsSystem.__UNSAFE_SPACE_TO_DIMSUM(theme.space.xxl), 6.25), ";");
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
const PageSummary = _ref3 => {
|
|
41
|
+
let {
|
|
42
|
+
header = null,
|
|
43
|
+
headerZIndex = 1,
|
|
44
|
+
bodyPrimary = null,
|
|
45
|
+
actions = null,
|
|
46
|
+
actionsZIndex = 1,
|
|
47
|
+
bodySecondary = null
|
|
48
|
+
} = _ref3;
|
|
49
|
+
return /*#__PURE__*/_jsx__default["default"](FullPageContainer.DSFullPageContainer, {}, void 0, header && /*#__PURE__*/_jsx__default["default"](Tags.Header, {
|
|
50
|
+
zIndex: headerZIndex
|
|
51
|
+
}, void 0, header), /*#__PURE__*/_jsx__default["default"](Tags.Section, {}, void 0, /*#__PURE__*/_jsx__default["default"](dsGrid.Grid, {}, void 0, /*#__PURE__*/_jsx__default["default"](Body, {}, void 0, bodyPrimary)), /*#__PURE__*/_jsx__default["default"](Tags.Toolbar, {
|
|
52
|
+
zIndex: actionsZIndex
|
|
53
|
+
}, void 0, actions), /*#__PURE__*/_jsx__default["default"](Tags.BodyWrapper, {}, void 0, /*#__PURE__*/_jsx__default["default"](Body, {}, void 0, bodySecondary))));
|
|
54
|
+
};
|
|
42
55
|
|
|
43
56
|
const DSPageSummary = PageSummary;
|
|
44
57
|
|
package/cjs/PageSummary/Tags.js
CHANGED
|
@@ -10,14 +10,20 @@ var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
|
10
10
|
|
|
11
11
|
const Header = /*#__PURE__*/styled__default["default"].div.withConfig({
|
|
12
12
|
componentId: "sc-1bwtial-0"
|
|
13
|
-
})(["position:fixed;display:grid;top:0;left:0;width:100%;height:64px;z-index:", ";"],
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
})(["position:fixed;display:grid;top:0;left:0;width:100%;height:64px;z-index:", ";"], _ref => {
|
|
14
|
+
let {
|
|
15
|
+
zIndex
|
|
16
|
+
} = _ref;
|
|
17
|
+
return zIndex;
|
|
18
|
+
});
|
|
16
19
|
const Toolbar = /*#__PURE__*/styled__default["default"].div.withConfig({
|
|
17
20
|
componentId: "sc-1bwtial-1"
|
|
18
|
-
})(["position:sticky;left:0;top:64px;background:", ";z-index:", ";"], props => props.theme.colors.neutral['000'],
|
|
19
|
-
|
|
20
|
-
|
|
21
|
+
})(["position:sticky;left:0;top:64px;background:", ";z-index:", ";"], props => props.theme.colors.neutral['000'], _ref2 => {
|
|
22
|
+
let {
|
|
23
|
+
zIndex
|
|
24
|
+
} = _ref2;
|
|
25
|
+
return zIndex;
|
|
26
|
+
});
|
|
21
27
|
const BodyWrapper = /*#__PURE__*/styled__default["default"].div.withConfig({
|
|
22
28
|
componentId: "sc-1bwtial-2"
|
|
23
29
|
})(["position:relative;display:grid;top:0;left:0;height:100%;"]);
|
package/cjs/SideNav/SideNav.js
CHANGED
|
@@ -4,10 +4,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var _jsx = require('@babel/runtime/helpers/jsx');
|
|
6
6
|
require('core-js/modules/web.dom-collections.iterator.js');
|
|
7
|
+
require('core-js/modules/esnext.async-iterator.map.js');
|
|
8
|
+
require('core-js/modules/esnext.iterator.map.js');
|
|
7
9
|
var React = require('react');
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
10
|
+
var Backdrop = require('@elliemae/ds-backdrop');
|
|
11
|
+
var dsIcons = require('@elliemae/ds-icons');
|
|
12
|
+
var dsIcon = require('@elliemae/ds-icon');
|
|
11
13
|
var reactDesc = require('react-desc');
|
|
12
14
|
var lodash = require('lodash');
|
|
13
15
|
var EM_logo = require('../Icons/EM_logo.js');
|
|
@@ -17,17 +19,17 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
17
19
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
18
20
|
|
|
19
21
|
var _jsx__default = /*#__PURE__*/_interopDefaultLegacy(_jsx);
|
|
20
|
-
var Close__default = /*#__PURE__*/_interopDefaultLegacy(Close);
|
|
21
22
|
|
|
22
23
|
var _span, _Hr, _hr;
|
|
23
24
|
|
|
24
|
-
const DSSideNav =
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
25
|
+
const DSSideNav = _ref => {
|
|
26
|
+
let {
|
|
27
|
+
containerProps = {},
|
|
28
|
+
title,
|
|
29
|
+
onClose = lodash.noop,
|
|
30
|
+
menuItems = [],
|
|
31
|
+
bottomMenuItems = []
|
|
32
|
+
} = _ref;
|
|
31
33
|
const [selectedMenuItemIdx, setSelectedMenuItem] = React.useState(-1);
|
|
32
34
|
|
|
33
35
|
const menuItemClick = (idx, text, cb) => {
|
|
@@ -39,46 +41,52 @@ const DSSideNav = ({
|
|
|
39
41
|
};
|
|
40
42
|
|
|
41
43
|
const renderMenuList = () => /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
42
|
-
children: menuItems.length > 0 ? /*#__PURE__*/_jsx__default["default"](styles.MenuList, {}, void 0, menuItems.map(({
|
|
44
|
+
children: menuItems.length > 0 ? /*#__PURE__*/_jsx__default["default"](styles.MenuList, {}, void 0, menuItems.map((_ref2, idx) => {
|
|
45
|
+
let {
|
|
46
|
+
icon,
|
|
47
|
+
text,
|
|
48
|
+
onClick
|
|
49
|
+
} = _ref2;
|
|
50
|
+
return /*#__PURE__*/_jsx__default["default"]("div", {
|
|
51
|
+
className: "menuitem",
|
|
52
|
+
onClick: menuItemClick.bind(null, idx, text, onClick)
|
|
53
|
+
}, idx, /*#__PURE__*/_jsx__default["default"]("div", {
|
|
54
|
+
className: "icon"
|
|
55
|
+
}, void 0, icon), /*#__PURE__*/_jsx__default["default"]("div", {
|
|
56
|
+
className: "text ".concat(idx === selectedMenuItemIdx ? 'active' : '')
|
|
57
|
+
}, void 0, text));
|
|
58
|
+
})) : null
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
const renderBottomMenu = () => /*#__PURE__*/_jsx__default["default"](styles.MenuList, {}, void 0, bottomMenuItems.map((_ref3, idx) => {
|
|
62
|
+
let {
|
|
43
63
|
icon,
|
|
44
64
|
text,
|
|
45
65
|
onClick
|
|
46
|
-
}
|
|
66
|
+
} = _ref3;
|
|
67
|
+
return /*#__PURE__*/_jsx__default["default"]("div", {
|
|
47
68
|
className: "menuitem",
|
|
48
|
-
onClick:
|
|
69
|
+
onClick: () => onClick(idx, text)
|
|
49
70
|
}, idx, /*#__PURE__*/_jsx__default["default"]("div", {
|
|
50
71
|
className: "icon"
|
|
51
72
|
}, void 0, icon), /*#__PURE__*/_jsx__default["default"]("div", {
|
|
52
|
-
className: "text
|
|
53
|
-
}, void 0, text))
|
|
54
|
-
});
|
|
55
|
-
|
|
56
|
-
const renderBottomMenu = () => /*#__PURE__*/_jsx__default["default"](styles.MenuList, {}, void 0, bottomMenuItems.map(({
|
|
57
|
-
icon,
|
|
58
|
-
text,
|
|
59
|
-
onClick
|
|
60
|
-
}, idx) => /*#__PURE__*/_jsx__default["default"]("div", {
|
|
61
|
-
className: "menuitem",
|
|
62
|
-
onClick: () => onClick(idx, text)
|
|
63
|
-
}, idx, /*#__PURE__*/_jsx__default["default"]("div", {
|
|
64
|
-
className: "icon"
|
|
65
|
-
}, void 0, icon), /*#__PURE__*/_jsx__default["default"]("div", {
|
|
66
|
-
className: "text"
|
|
67
|
-
}, void 0, text))));
|
|
73
|
+
className: "text"
|
|
74
|
+
}, void 0, text));
|
|
75
|
+
}));
|
|
68
76
|
|
|
69
77
|
return /*#__PURE__*/_jsx__default["default"](styles.Container, {
|
|
70
78
|
"data-testid": containerProps['data-testid'] || 'global-header-menu'
|
|
71
|
-
}, void 0, /*#__PURE__*/_jsx__default["default"](
|
|
79
|
+
}, void 0, /*#__PURE__*/_jsx__default["default"](Backdrop.DSBackdrop, {
|
|
72
80
|
onClick: onClose,
|
|
73
81
|
type: "cover"
|
|
74
82
|
}), /*#__PURE__*/_jsx__default["default"](styles.Menu, {}, void 0, /*#__PURE__*/_jsx__default["default"](styles.MenuWrapper, {}, void 0, /*#__PURE__*/_jsx__default["default"](styles.Heading, {}, void 0, /*#__PURE__*/_jsx__default["default"](styles.Icon, {}, void 0, EM_logo()), /*#__PURE__*/_jsx__default["default"]("div", {
|
|
75
83
|
className: "content"
|
|
76
84
|
}, void 0, /*#__PURE__*/_jsx__default["default"]("label", {}, void 0, title), _span || (_span = /*#__PURE__*/_jsx__default["default"]("span", {})), /*#__PURE__*/_jsx__default["default"]("div", {
|
|
77
85
|
className: "icon"
|
|
78
|
-
}, void 0, /*#__PURE__*/_jsx__default["default"](
|
|
86
|
+
}, void 0, /*#__PURE__*/_jsx__default["default"](dsIcons.Close, {
|
|
79
87
|
onClick: onClose,
|
|
80
|
-
size:
|
|
81
|
-
color:
|
|
88
|
+
size: dsIcon.DSIconSizes.S,
|
|
89
|
+
color: dsIcon.DSIconColors.WHITE
|
|
82
90
|
})))), _Hr || (_Hr = /*#__PURE__*/_jsx__default["default"](styles.Hr, {})), renderMenuList(), bottomMenuItems.length > 0 ? /*#__PURE__*/_jsx__default["default"](styles.BottomMenu, {}, void 0, /*#__PURE__*/_jsx__default["default"]("div", {
|
|
83
91
|
className: "content"
|
|
84
92
|
}, void 0, _hr || (_hr = /*#__PURE__*/_jsx__default["default"]("hr", {})), renderBottomMenu())) : null)));
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var _jsx = require('@babel/runtime/helpers/jsx');
|
|
6
6
|
require('react');
|
|
7
7
|
var dsSystem = require('@elliemae/ds-system');
|
|
8
|
-
var
|
|
8
|
+
var dsGrid = require('@elliemae/ds-grid');
|
|
9
9
|
|
|
10
10
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
11
11
|
|
|
@@ -13,13 +13,14 @@ var _jsx__default = /*#__PURE__*/_interopDefaultLegacy(_jsx);
|
|
|
13
13
|
|
|
14
14
|
const rad = 54;
|
|
15
15
|
const cir = 2 * Math.PI * rad;
|
|
16
|
-
const ProgressIndicator =
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
const ProgressIndicator = _ref => {
|
|
17
|
+
let {
|
|
18
|
+
progress = 0
|
|
19
|
+
} = _ref;
|
|
19
20
|
const factor = progress / 100;
|
|
20
21
|
const theme = dsSystem.useTheme();
|
|
21
22
|
const dashoffset = cir * (1 - factor);
|
|
22
|
-
return /*#__PURE__*/_jsx__default["default"](
|
|
23
|
+
return /*#__PURE__*/_jsx__default["default"](dsGrid.Grid, {
|
|
23
24
|
height: theme.space.s,
|
|
24
25
|
width: theme.space.s,
|
|
25
26
|
justifyContent: "center",
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var _jsx = require('@babel/runtime/helpers/jsx');
|
|
6
6
|
require('react');
|
|
7
7
|
var reactDesc = require('react-desc');
|
|
8
|
-
var
|
|
8
|
+
var dsCircularProgressIndicator = require('@elliemae/ds-circular-progress-indicator');
|
|
9
9
|
var dsSystem = require('@elliemae/ds-system');
|
|
10
10
|
var useSwipe = require('./useSwipe.js');
|
|
11
11
|
var styled = require('./styled.js');
|
|
@@ -18,11 +18,12 @@ var _jsx__default = /*#__PURE__*/_interopDefaultLegacy(_jsx);
|
|
|
18
18
|
|
|
19
19
|
var _DSCircularProgressIn;
|
|
20
20
|
|
|
21
|
-
const SwipeToRefresh =
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
const SwipeToRefresh = _ref => {
|
|
22
|
+
let {
|
|
23
|
+
children,
|
|
24
|
+
loading,
|
|
25
|
+
onRefresh
|
|
26
|
+
} = _ref;
|
|
26
27
|
const breakpoint = 60;
|
|
27
28
|
const theme = dsSystem.useTheme();
|
|
28
29
|
const swipe = useSwipe.useSwipe({
|
|
@@ -45,7 +46,7 @@ const SwipeToRefresh = ({
|
|
|
45
46
|
justifyContent: "center",
|
|
46
47
|
alignItems: "center",
|
|
47
48
|
mt: swipe.height > 40 || loading ? 0 : "".concat(swipe.height - 40, "px")
|
|
48
|
-
}, void 0, loading ? _DSCircularProgressIn || (_DSCircularProgressIn = /*#__PURE__*/_jsx__default["default"](
|
|
49
|
+
}, void 0, loading ? _DSCircularProgressIn || (_DSCircularProgressIn = /*#__PURE__*/_jsx__default["default"](dsCircularProgressIndicator.DSCircularProgressIndicator, {})) : /*#__PURE__*/_jsx__default["default"](ProgressIndicator.ProgressIndicator, {
|
|
49
50
|
progress: progress
|
|
50
51
|
}))), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
51
52
|
ref: swipe.target,
|
|
@@ -2,23 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var dsGrid = require('@elliemae/ds-grid');
|
|
6
6
|
var styled = require('styled-components');
|
|
7
7
|
|
|
8
8
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
9
9
|
|
|
10
10
|
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
11
11
|
|
|
12
|
-
const SwipeContainer = /*#__PURE__*/styled__default["default"](
|
|
12
|
+
const SwipeContainer = /*#__PURE__*/styled__default["default"](dsGrid.Grid).withConfig({
|
|
13
13
|
componentId: "sc-pbpd8a-0"
|
|
14
14
|
})(["transition:height 0.2s;overscroll-behavior:none;height:100%;"]);
|
|
15
15
|
const SwipeDrag = /*#__PURE__*/styled__default["default"].div.withConfig({
|
|
16
16
|
componentId: "sc-pbpd8a-1"
|
|
17
17
|
})(["border:none;overscroll-behavior:none;overflow:auto;max-height:100%;"]);
|
|
18
|
-
const LoaderBox = /*#__PURE__*/styled__default["default"](
|
|
18
|
+
const LoaderBox = /*#__PURE__*/styled__default["default"](dsGrid.Grid).withConfig({
|
|
19
19
|
componentId: "sc-pbpd8a-2"
|
|
20
20
|
})(["transition:height 0.2s;overflow:hidden;"]);
|
|
21
|
-
const PositionLoader = /*#__PURE__*/styled__default["default"](
|
|
21
|
+
const PositionLoader = /*#__PURE__*/styled__default["default"](dsGrid.Grid).withConfig({
|
|
22
22
|
componentId: "sc-pbpd8a-3"
|
|
23
23
|
})(["transition:margin 0.2s;"]);
|
|
24
24
|
|
|
@@ -5,10 +5,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
require('core-js/modules/web.dom-collections.iterator.js');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
|
|
8
|
-
const useSwipe =
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
const useSwipe = _ref => {
|
|
9
|
+
let {
|
|
10
|
+
onRefresh,
|
|
11
|
+
breakpoint
|
|
12
|
+
} = _ref;
|
|
12
13
|
const [startingPoint, setStartingPoint] = React.useState(0);
|
|
13
14
|
const [movingPoint, setMovingPoint] = React.useState(0);
|
|
14
15
|
const ref = React.useRef();
|
package/cjs/Tabs/index.js
CHANGED
|
@@ -2,10 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
require('core-js/modules/esnext.async-iterator.filter.js');
|
|
6
|
+
require('core-js/modules/esnext.iterator.constructor.js');
|
|
7
|
+
require('core-js/modules/esnext.iterator.filter.js');
|
|
8
|
+
require('core-js/modules/esnext.async-iterator.for-each.js');
|
|
9
|
+
require('core-js/modules/esnext.iterator.for-each.js');
|
|
5
10
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
6
11
|
var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
|
|
7
12
|
require('react');
|
|
8
|
-
var
|
|
13
|
+
var dsTabs = require('@elliemae/ds-tabs');
|
|
9
14
|
var jsxRuntime = require('react/jsx-runtime');
|
|
10
15
|
|
|
11
16
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -25,7 +30,7 @@ const DSMobileTabs = _ref => {
|
|
|
25
30
|
} = _ref,
|
|
26
31
|
props = _objectWithoutProperties__default["default"](_ref, _excluded);
|
|
27
32
|
|
|
28
|
-
return /*#__PURE__*/jsxRuntime.jsx(
|
|
33
|
+
return /*#__PURE__*/jsxRuntime.jsx(dsTabs.DSTabs, _objectSpread(_objectSpread({}, props), {}, {
|
|
29
34
|
isDSMobile: true,
|
|
30
35
|
children: children
|
|
31
36
|
}));
|
|
@@ -36,7 +41,7 @@ const DSMobileTab = _ref2 => {
|
|
|
36
41
|
} = _ref2,
|
|
37
42
|
props = _objectWithoutProperties__default["default"](_ref2, _excluded2);
|
|
38
43
|
|
|
39
|
-
return /*#__PURE__*/jsxRuntime.jsx(
|
|
44
|
+
return /*#__PURE__*/jsxRuntime.jsx(dsTabs.DSTab, _objectSpread(_objectSpread({}, props), {}, {
|
|
40
45
|
isDSMobile: true,
|
|
41
46
|
children: children
|
|
42
47
|
}));
|
package/cjs/index.js
CHANGED
|
@@ -8,7 +8,7 @@ var PageForm = require('./PageForm/PageForm.js');
|
|
|
8
8
|
var PageSummary = require('./PageSummary/PageSummary.js');
|
|
9
9
|
var Page = require('./LoadingPage/Page.js');
|
|
10
10
|
var PageSearch = require('./PageSearch/PageSearch.js');
|
|
11
|
-
var
|
|
11
|
+
var dsAccordion = require('@elliemae/ds-accordion');
|
|
12
12
|
var Separator = require('./MobileSeparator/Separator.js');
|
|
13
13
|
var MobileListItem = require('./MobileListItem/MobileListItem.js');
|
|
14
14
|
var MobileTouchable = require('./MobileTouchable/MobileTouchable.js');
|
|
@@ -45,6 +45,7 @@ var MobileBanner = require('./MobileBanner/MobileBanner.js');
|
|
|
45
45
|
var bannerTypes = require('./MobileBanner/utils/bannerTypes.js');
|
|
46
46
|
var Card = require('./MobileCard/Card.js');
|
|
47
47
|
var Group = require('./MobileCard/Group.js');
|
|
48
|
+
var CardIcons = require('./MobileCard/CardIcons.js');
|
|
48
49
|
|
|
49
50
|
|
|
50
51
|
|
|
@@ -59,20 +60,21 @@ exports.DSMobilePageSearch = PageSearch.DSMobilePageSearch;
|
|
|
59
60
|
exports.DSPageSearch = PageSearch.DSPageSearch;
|
|
60
61
|
Object.defineProperty(exports, 'DSMobileAccordion', {
|
|
61
62
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
63
|
+
get: function () { return dsAccordion.DSAccordion; }
|
|
63
64
|
});
|
|
64
65
|
Object.defineProperty(exports, 'DSMobileAccordionItem', {
|
|
65
66
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
67
|
+
get: function () { return dsAccordion.DSAccordionItem; }
|
|
67
68
|
});
|
|
68
69
|
Object.defineProperty(exports, 'DSMobileAccordionItemWithSchema', {
|
|
69
70
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
71
|
+
get: function () { return dsAccordion.DSAccordionItemWithSchema; }
|
|
71
72
|
});
|
|
72
73
|
Object.defineProperty(exports, 'DSMobileAccordionWithSchema', {
|
|
73
74
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
75
|
+
get: function () { return dsAccordion.DSAccordionWithSchema; }
|
|
75
76
|
});
|
|
77
|
+
exports.DSMobileSeparator = Separator["default"];
|
|
76
78
|
exports.MobileSeparatorWithSchema = Separator.MobileSeparatorWithSchema;
|
|
77
79
|
exports.DSMobileListItem = MobileListItem.DSMobileListItem;
|
|
78
80
|
exports.ListItemWithSchema = MobileListItem.ListItemWithSchema;
|
|
@@ -89,6 +91,7 @@ exports.DSMobileFilterbarSort = FilterbarSort.DSMobileFilterbarSort;
|
|
|
89
91
|
exports.FilterbarSortWithSchema = FilterbarSort.FilterbarSortWithSchema;
|
|
90
92
|
exports.DSMobileFilterbarItem = FilterbarItem.DSMobileFilterbarItem;
|
|
91
93
|
exports.FilterbarItemWithSchema = FilterbarItem.FilterbarItemWithSchema;
|
|
94
|
+
exports.DSMobileActionToolbar = MobileActionToolbar["default"];
|
|
92
95
|
exports.DSMobileActionToolbarWithSchema = MobileActionToolbar.DSMobileActionToolbarWithSchema;
|
|
93
96
|
exports.DSToolbarItemWithSchema = MobileActionToolbarItem.DSToolbarItemWithSchema;
|
|
94
97
|
exports.ToolbarItem = MobileActionToolbarItem["default"];
|
|
@@ -136,3 +139,4 @@ exports.DSMobileBannerWithSchema = MobileBanner.DSMobileBannerWithSchema;
|
|
|
136
139
|
exports.MOBILE_BANNER_TYPES = bannerTypes.MOBILE_BANNER_TYPES;
|
|
137
140
|
exports.DSMobileCardWithSchema = Card.DSMobileCardWithSchema;
|
|
138
141
|
exports.DSMobileCardGroupWithSchema = Group.DSMobileCardGroupWithSchema;
|
|
142
|
+
exports.SubIcons = CardIcons.SubIcons;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { DSAccordion as DSMobileAccordion, DSAccordionItem as DSMobileAccordionItem, DSAccordionItemWithSchema as DSMobileAccordionItemWithSchema, DSAccordionWithSchema as DSMobileAccordionWithSchema } from '@elliemae/ds-
|
|
1
|
+
export { DSAccordion as DSMobileAccordion, DSAccordionItem as DSMobileAccordionItem, DSAccordionItemWithSchema as DSMobileAccordionItemWithSchema, DSAccordionWithSchema as DSMobileAccordionWithSchema } from '@elliemae/ds-accordion';
|
package/esm/Accordion/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { DSAccordion as DSMobileAccordion, DSAccordionItem as DSMobileAccordionItem, DSAccordionItemWithSchema as DSMobileAccordionItemWithSchema, DSAccordionWithSchema as DSMobileAccordionWithSchema } from '@elliemae/ds-
|
|
1
|
+
export { DSAccordion as DSMobileAccordion, DSAccordionItem as DSMobileAccordionItem, DSAccordionItemWithSchema as DSMobileAccordionItemWithSchema, DSAccordionWithSchema as DSMobileAccordionWithSchema } from '@elliemae/ds-accordion';
|
|
@@ -3,7 +3,7 @@ import 'react';
|
|
|
3
3
|
import { times } from 'lodash';
|
|
4
4
|
import { PropTypes, describe } from 'react-desc';
|
|
5
5
|
import styled from 'styled-components';
|
|
6
|
-
import { Grid } from '@elliemae/ds-
|
|
6
|
+
import { Grid } from '@elliemae/ds-grid';
|
|
7
7
|
import { truncate } from '@elliemae/ds-system';
|
|
8
8
|
|
|
9
9
|
const Title = /*#__PURE__*/styled.h3.withConfig({
|
|
@@ -13,13 +13,14 @@ const CategoryBox = /*#__PURE__*/styled(Grid).withConfig({
|
|
|
13
13
|
componentId: "sc-iv6vo1-1"
|
|
14
14
|
})(["background:", ";border-top:", ";"], props => props.theme.colors.neutral['0'], props => props.borderTop ? "1px solid ".concat(props.theme.colors.neutral['100']) : 'none');
|
|
15
15
|
|
|
16
|
-
const DSCategoryBox =
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
16
|
+
const DSCategoryBox = _ref => {
|
|
17
|
+
let {
|
|
18
|
+
borderTop = true,
|
|
19
|
+
actionsRight = [],
|
|
20
|
+
title,
|
|
21
|
+
headerLevel = 3,
|
|
22
|
+
children
|
|
23
|
+
} = _ref;
|
|
23
24
|
const rows = ['auto'];
|
|
24
25
|
const hasActions = actionsRight.length > 0;
|
|
25
26
|
if (hasActions) rows.push('auto');
|
|
@@ -2,7 +2,7 @@ import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
|
2
2
|
import 'react';
|
|
3
3
|
import { PropTypes, describe } from 'react-desc';
|
|
4
4
|
import styled from 'styled-components';
|
|
5
|
-
import { Grid } from '@elliemae/ds-
|
|
5
|
+
import { Grid } from '@elliemae/ds-grid';
|
|
6
6
|
import { truncate } from '@elliemae/ds-system';
|
|
7
7
|
|
|
8
8
|
const CollectionBox = /*#__PURE__*/styled(Grid).withConfig({
|
|
@@ -21,13 +21,14 @@ const ActionWrap = /*#__PURE__*/styled(Grid).withConfig({
|
|
|
21
21
|
componentId: "sc-z729w4-4"
|
|
22
22
|
})(["& .em-ds-button{padding:0;min-width:unset;}"]);
|
|
23
23
|
|
|
24
|
-
const DSCollectionBox =
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
24
|
+
const DSCollectionBox = _ref => {
|
|
25
|
+
let {
|
|
26
|
+
body,
|
|
27
|
+
title,
|
|
28
|
+
headerAction,
|
|
29
|
+
footerAction,
|
|
30
|
+
headerLevel = 3
|
|
31
|
+
} = _ref;
|
|
31
32
|
const headerCols = [];
|
|
32
33
|
const footerCols = [];
|
|
33
34
|
const rows = [];
|
|
@@ -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 { Grid } from '@elliemae/ds-
|
|
9
|
+
import { Grid } from '@elliemae/ds-grid';
|
|
5
10
|
import { useMobileHeight } from './useMobileHeight.js';
|
|
6
11
|
import { jsx } from 'react/jsx-runtime';
|
|
7
12
|
|
|
@@ -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 { Grid } from '@elliemae/ds-
|
|
9
|
+
import { Grid } from '@elliemae/ds-grid';
|
|
5
10
|
import { jsx } from 'react/jsx-runtime';
|
|
6
11
|
|
|
7
12
|
const _excluded = ["style", "children"];
|
|
@@ -1,14 +1,19 @@
|
|
|
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 _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
3
8
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
4
9
|
import { useState, useCallback } from 'react';
|
|
5
|
-
import Search from '@elliemae/ds-icons
|
|
6
|
-
import DSInput from '@elliemae/ds-
|
|
10
|
+
import { Search } from '@elliemae/ds-icons';
|
|
11
|
+
import { DSInput } from '@elliemae/ds-form';
|
|
7
12
|
import { PropTypes, describe } from 'react-desc';
|
|
8
|
-
import DSButton from '@elliemae/ds-
|
|
9
|
-
import { DSIconSizes, DSIconColors } from '@elliemae/ds-
|
|
10
|
-
import {
|
|
11
|
-
import { Grid } from '@elliemae/ds-
|
|
13
|
+
import DSButton from '@elliemae/ds-button';
|
|
14
|
+
import { DSIconSizes, DSIconColors } from '@elliemae/ds-icon';
|
|
15
|
+
import { debounce, noop } from 'lodash';
|
|
16
|
+
import { Grid } from '@elliemae/ds-grid';
|
|
12
17
|
import SvgIcon from '../Icons/EM_logo.js';
|
|
13
18
|
import { Container, MainSection, Icon, Label, RightSection, SearchWrapper } from './styles.js';
|
|
14
19
|
import { DSSideNav } from '../SideNav/SideNav.js';
|
|
@@ -20,14 +25,15 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
20
25
|
|
|
21
26
|
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; }
|
|
22
27
|
|
|
23
|
-
const DSGlobalHeader =
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
const DSGlobalHeader = _ref => {
|
|
29
|
+
let {
|
|
30
|
+
containerProps = {},
|
|
31
|
+
title,
|
|
32
|
+
lastIcon,
|
|
33
|
+
onSearchChange = noop,
|
|
34
|
+
topMenuItems,
|
|
35
|
+
bottomMenuItems
|
|
36
|
+
} = _ref;
|
|
31
37
|
const [searchBarVisible, setSearchBarVisible] = useState(false);
|
|
32
38
|
const [searchValue, setSearchValue] = useState();
|
|
33
39
|
const [showMenu, setShowMenu] = useState(false);
|
package/esm/GroupBox/GroupBox.js
CHANGED
|
@@ -4,7 +4,7 @@ import { PropTypes, describe } from 'react-desc';
|
|
|
4
4
|
import { times } from 'lodash';
|
|
5
5
|
import { truncate } from '@elliemae/ds-system';
|
|
6
6
|
import styled from 'styled-components';
|
|
7
|
-
import { Grid } from '@elliemae/ds-
|
|
7
|
+
import { Grid } from '@elliemae/ds-grid';
|
|
8
8
|
|
|
9
9
|
const Title = /*#__PURE__*/styled.h3.withConfig({
|
|
10
10
|
componentId: "sc-1g87w66-0"
|
|
@@ -13,14 +13,15 @@ const GroupBox = /*#__PURE__*/styled(Grid).withConfig({
|
|
|
13
13
|
componentId: "sc-1g87w66-1"
|
|
14
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
|
-
const DSGroupBox =
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
16
|
+
const DSGroupBox = _ref => {
|
|
17
|
+
let {
|
|
18
|
+
children,
|
|
19
|
+
title,
|
|
20
|
+
background = 'grey',
|
|
21
|
+
headerLevel = 3,
|
|
22
|
+
actionsRight = [],
|
|
23
|
+
borderTop
|
|
24
|
+
} = _ref;
|
|
24
25
|
const rows = ['auto'];
|
|
25
26
|
const hasActions = actionsRight.length > 0;
|
|
26
27
|
if (hasActions) rows.push('auto');
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
2
2
|
import { useRef, useEffect } from 'react';
|
|
3
3
|
import { PropTypes, describe } from 'react-desc';
|
|
4
|
-
import { Grid } from '@elliemae/ds-
|
|
4
|
+
import { Grid } from '@elliemae/ds-grid';
|
|
5
5
|
import { Loader } from './Loader.js';
|
|
6
6
|
import { jsx } from 'react/jsx-runtime';
|
|
7
7
|
|
|
8
|
-
const InfiniteLoader =
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
const InfiniteLoader = _ref => {
|
|
9
|
+
let {
|
|
10
|
+
isFetching,
|
|
11
|
+
fetchData,
|
|
12
|
+
children,
|
|
13
|
+
height = window.innerHeight
|
|
14
|
+
} = _ref;
|
|
15
|
+
|
|
14
16
|
const callback = entries => {
|
|
15
17
|
const {
|
|
16
18
|
isIntersecting
|