@elliemae/ds-mobile 2.0.0-alpha.11 → 2.0.0-alpha.12
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 +35 -82
- 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/MobileCard/props.js +62 -0
- 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 +16 -5
- package/cjs/Tabs/propTypes.js +28 -0
- package/cjs/index.js +11 -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 +29 -76
- 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/MobileCard/props.js +58 -0
- 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 +13 -4
- package/esm/Tabs/propTypes.js +23 -0
- package/esm/index.js +5 -4
- package/package.json +35 -7
- package/types/Accordion/Accordion.d.ts +1 -1
- package/types/CategoryBox/CategoryBox.d.ts +37 -6
- package/types/CollectionBox/CollectionBox.d.ts +37 -6
- package/types/GlobalHeader/MobileGlobalHeader.d.ts +43 -6
- package/types/GlobalHeader/styles.d.ts +6 -6
- package/types/GroupBox/GroupBox.d.ts +44 -7
- package/types/InfiniteLoader/Infiniteloader.d.ts +30 -5
- package/types/InfiniteLoader/VirtualizedInfiniteLoader.d.ts +56 -8
- package/types/InfiniteLoader/styled.d.ts +1 -1
- package/types/LoadingPage/Page.d.ts +1 -1
- package/types/MobileActionToolbar/MobileActionToolbar.d.ts +16 -4
- package/types/MobileActionToolbar/MobileActionToolbarItem.d.ts +15 -2
- package/types/MobileBanner/MobileBanner.d.ts +72 -12
- package/types/MobileBanner/propTypes.d.ts +67 -11
- package/types/MobileBanner/styles.d.ts +10 -10
- package/types/MobileCard/Card.d.ts +20 -13
- package/types/MobileCard/ExpandableRegion.d.ts +2 -2
- package/types/MobileCard/Group.d.ts +18 -8
- package/types/MobileCard/StyledCard.d.ts +3 -1
- package/types/MobileCard/index.d.ts +13 -12
- package/types/MobileCard/props.d.ts +118 -0
- package/types/MobileContextMenu/MobileContextMenu.d.ts +13 -2
- package/types/MobileContextMenu/MobileContextMenuGroup.d.ts +37 -5
- package/types/MobileContextMenu/MobileContextMenuItem.d.ts +54 -9
- package/types/MobileDatePicker/MobileDatePicker.d.ts +43 -7
- package/types/MobileDropdownMenu/MobileDropdownInput.d.ts +2 -2
- package/types/MobileDropdownMenu/MobileDropdownMenu.d.ts +24 -4
- package/types/MobileEmtpyState/MobileEmptyState.d.ts +14 -2
- package/types/MobileFilterbar/Filterbar.d.ts +9 -2
- package/types/MobileFilterbar/FilterbarItem.d.ts +15 -2
- package/types/MobileFilterbar/FilterbarSort.d.ts +9 -2
- package/types/MobileFooter/Action.d.ts +19 -3
- package/types/MobileFooter/Footer.d.ts +8 -1
- package/types/MobileFooter/Text.d.ts +8 -1
- package/types/MobileListItem/MobileListItem.d.ts +17 -7
- package/types/MobilePageHeader/MobilePageHeader.d.ts +21 -11
- package/types/MobileSelectList/MobileSelectList.d.ts +3 -3
- package/types/MobileSelectList/styled.d.ts +5 -5
- package/types/MobileSeparator/Separator.d.ts +23 -5
- package/types/MobileTimePicker/MobileTimePicker.d.ts +32 -6
- package/types/MobileTouchable/MobileTouchable.d.ts +1 -1
- package/types/Modal/Modal.d.ts +50 -9
- package/types/Modal/styled.d.ts +7 -6
- package/types/PageList/PageList.d.ts +2 -2
- package/types/PageSearch/PageSearch.d.ts +2 -2
- package/types/PageSummary/Tags.d.ts +4 -4
- package/types/SideNav/SideNav.d.ts +26 -5
- package/types/SideNav/styles.d.ts +8 -8
- package/types/SwipeToRefresh/SwipeToRefresh.d.ts +22 -3
- package/types/SwipeToRefresh/styled.d.ts +5 -4
- package/types/Tabs/index.d.ts +24 -9
- package/types/Tabs/propTypes.d.ts +42 -0
- package/types/index.d.ts +5 -1
|
@@ -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
|
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
2
2
|
import 'react';
|
|
3
|
-
import DSIndeterminateProgressIndicator from '@elliemae/ds-
|
|
3
|
+
import DSIndeterminateProgressIndicator from '@elliemae/ds-indeterminate-progress-indicator';
|
|
4
4
|
import { LoaderBox } from './styled.js';
|
|
5
5
|
|
|
6
6
|
var _DSIndeterminateProgr;
|
|
7
|
-
const Loader =
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
7
|
+
const Loader = _ref => {
|
|
8
|
+
let {
|
|
9
|
+
isOpen
|
|
10
|
+
} = _ref;
|
|
11
|
+
return /*#__PURE__*/_jsx(LoaderBox, {
|
|
12
|
+
className: isOpen && 'opened'
|
|
13
|
+
}, void 0, _DSIndeterminateProgr || (_DSIndeterminateProgr = /*#__PURE__*/_jsx(DSIndeterminateProgressIndicator, {
|
|
14
|
+
processing: true,
|
|
15
|
+
title: "Loading"
|
|
16
|
+
})));
|
|
17
|
+
};
|
|
15
18
|
|
|
16
19
|
export { Loader };
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
2
2
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
3
3
|
import { useState } from 'react';
|
|
4
|
-
import { describe } from 'react-desc';
|
|
4
|
+
import { PropTypes, describe } from 'react-desc';
|
|
5
5
|
import RWInfiniteLoader from 'react-window-infinite-loader';
|
|
6
6
|
import { VariableSizeList } from 'react-window';
|
|
7
7
|
import { jsx } from 'react/jsx-runtime';
|
|
8
8
|
|
|
9
|
-
const VirtualizedInfiniteLoader =
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
9
|
+
const VirtualizedInfiniteLoader = _ref => {
|
|
10
|
+
let {
|
|
11
|
+
moreItemsLoading = false,
|
|
12
|
+
hasNextPage = false,
|
|
13
|
+
isItemLoaded = () => true,
|
|
14
|
+
loadMoreItems,
|
|
15
|
+
getItemSize = () => 38,
|
|
16
|
+
height,
|
|
17
|
+
item: Row
|
|
18
|
+
} = _ref;
|
|
18
19
|
const [itemCount, setItemCount] = useState(10);
|
|
19
20
|
|
|
20
21
|
const loadMore = (startIndex, stopIndex) => {
|
|
@@ -30,19 +31,22 @@ const VirtualizedInfiniteLoader = ({
|
|
|
30
31
|
isItemLoaded: isItemLoaded,
|
|
31
32
|
itemCount: itemCount,
|
|
32
33
|
loadMoreItems: loadMore
|
|
33
|
-
}, void 0,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
34
|
+
}, void 0, _ref2 => {
|
|
35
|
+
let {
|
|
36
|
+
onItemsRendered,
|
|
37
|
+
ref
|
|
38
|
+
} = _ref2;
|
|
39
|
+
return /*#__PURE__*/jsx(VariableSizeList, {
|
|
40
|
+
className: "List",
|
|
41
|
+
height: height,
|
|
42
|
+
itemCount: itemCount,
|
|
43
|
+
itemSize: getItemSize,
|
|
44
|
+
onItemsRendered: onItemsRendered,
|
|
45
|
+
ref: ref,
|
|
46
|
+
width: "100%",
|
|
47
|
+
children: Row
|
|
48
|
+
});
|
|
49
|
+
}), moreItemsLoading && /*#__PURE__*/_jsx("div", {
|
|
46
50
|
style: {
|
|
47
51
|
position: 'absolute',
|
|
48
52
|
bottom: 0,
|
|
@@ -52,6 +56,29 @@ const VirtualizedInfiniteLoader = ({
|
|
|
52
56
|
}, void 0, "Loading"));
|
|
53
57
|
};
|
|
54
58
|
|
|
59
|
+
const listProps = {
|
|
60
|
+
/** Function responsible for tracking the loaded state of each item. */
|
|
61
|
+
isItemLoaded: PropTypes.bool.description('Function responsible for tracking the loaded state of each item.'),
|
|
62
|
+
|
|
63
|
+
/** Callback to be invoked when more rows must be loaded. It should return a Promise that is resolved once all data has finished loading. */
|
|
64
|
+
loadMoreItems: PropTypes.func.description('Callback to be invoked when more rows must be loaded. It should return a Promise that is resolved once all data has finished loading.'),
|
|
65
|
+
|
|
66
|
+
/** callback to get row item size */
|
|
67
|
+
getItemSize: PropTypes.func.description('callback to get row item size'),
|
|
68
|
+
|
|
69
|
+
/** height for the list */
|
|
70
|
+
height: PropTypes.number.description('height for the list'),
|
|
71
|
+
|
|
72
|
+
/** flag to know if virtual list should be on loading state */
|
|
73
|
+
moreItemsLoading: PropTypes.bool.description('flag to know if virtual list s'),
|
|
74
|
+
|
|
75
|
+
/** Row item to render */
|
|
76
|
+
item: PropTypes.element.description('Row item to render'),
|
|
77
|
+
|
|
78
|
+
/** flag for virtualized list */
|
|
79
|
+
hasNextPage: PropTypes.bool.description('flag for virtualized list')
|
|
80
|
+
};
|
|
55
81
|
const VirtualizedInfiniteLoaderWithSchema = describe(VirtualizedInfiniteLoader);
|
|
82
|
+
VirtualizedInfiniteLoaderWithSchema.propTypes = listProps;
|
|
56
83
|
|
|
57
84
|
export { VirtualizedInfiniteLoader, VirtualizedInfiniteLoaderWithSchema };
|
package/esm/LoadingPage/Page.js
CHANGED
|
@@ -1,11 +1,19 @@
|
|
|
1
1
|
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
2
2
|
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
3
3
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
4
|
+
import 'core-js/modules/esnext.async-iterator.constructor.js';
|
|
5
|
+
import 'core-js/modules/esnext.async-iterator.to-array.js';
|
|
6
|
+
import 'core-js/modules/esnext.iterator.constructor.js';
|
|
7
|
+
import 'core-js/modules/esnext.iterator.to-array.js';
|
|
8
|
+
import 'core-js/modules/esnext.async-iterator.filter.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';
|
|
4
12
|
import React, { useState, useRef, useEffect } from 'react';
|
|
5
13
|
import { withTheme } from '@elliemae/ds-system';
|
|
6
14
|
import { get } from 'lodash';
|
|
7
15
|
import styled from 'styled-components';
|
|
8
|
-
import Backdrop from '@elliemae/ds-
|
|
16
|
+
import Backdrop from '@elliemae/ds-backdrop';
|
|
9
17
|
import { jsxs, Fragment } from 'react/jsx-runtime';
|
|
10
18
|
|
|
11
19
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
@@ -13,18 +21,22 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
13
21
|
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; }
|
|
14
22
|
const LoadingPageLoader = /*#__PURE__*/styled.div.withConfig({
|
|
15
23
|
componentId: "sc-wx0z8k-0"
|
|
16
|
-
})(["", ";z-index:", ";top:25%;left:15%;width:70%;height:75%;display:flex;flex-direction:column;align-items:center;"],
|
|
17
|
-
|
|
18
|
-
|
|
24
|
+
})(["", ";z-index:", ";top:25%;left:15%;width:70%;height:75%;display:flex;flex-direction:column;align-items:center;"], _ref => {
|
|
25
|
+
let {
|
|
26
|
+
type
|
|
27
|
+
} = _ref;
|
|
28
|
+
return type === 'cover' ? 'position: fixed' : 'position: absolute';
|
|
29
|
+
}, props => props.zIndex);
|
|
19
30
|
|
|
20
|
-
const LoadingPage =
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
31
|
+
const LoadingPage = _ref2 => {
|
|
32
|
+
let {
|
|
33
|
+
backdropZIndex,
|
|
34
|
+
children,
|
|
35
|
+
loader,
|
|
36
|
+
loading,
|
|
37
|
+
type = 'fill',
|
|
38
|
+
zIndex = 1
|
|
39
|
+
} = _ref2;
|
|
28
40
|
const [position, setPosition] = useState(null);
|
|
29
41
|
const childRef = useRef(null);
|
|
30
42
|
useEffect(() => {
|
|
@@ -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 { Grid } from '@elliemae/ds-
|
|
4
|
+
import { Grid } from '@elliemae/ds-grid';
|
|
5
5
|
import styled from 'styled-components';
|
|
6
6
|
import { withTheme } from '@elliemae/ds-system';
|
|
7
7
|
export { default as ToolbarItem } from './MobileActionToolbarItem.js';
|
|
@@ -10,11 +10,12 @@ const ToolStrip = /*#__PURE__*/styled(Grid).withConfig({
|
|
|
10
10
|
componentId: "sc-162vd15-0"
|
|
11
11
|
})(["display:flex;justify-content:space-around;align-items:center;background-color:", ";"], props => props.theme.colors.neutral['000']);
|
|
12
12
|
|
|
13
|
-
const Toolbar =
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
const Toolbar = _ref => {
|
|
14
|
+
let {
|
|
15
|
+
withDepth = true,
|
|
16
|
+
buttons = [],
|
|
17
|
+
theme
|
|
18
|
+
} = _ref;
|
|
18
19
|
const rows = [1];
|
|
19
20
|
const toolbarHeight = theme.space.m;
|
|
20
21
|
const borderStyle = withDepth ? {
|
|
@@ -1,8 +1,13 @@
|
|
|
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 from 'react';
|
|
4
9
|
import { PropTypes, describe } from 'react-desc';
|
|
5
|
-
import DSButton from '@elliemae/ds-
|
|
10
|
+
import DSButton from '@elliemae/ds-button';
|
|
6
11
|
import { jsx } from 'react/jsx-runtime';
|
|
7
12
|
|
|
8
13
|
const _excluded = ["icon"];
|
|
@@ -1,8 +1,13 @@
|
|
|
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 { useRef, useState, useEffect, useLayoutEffect } from 'react';
|
|
5
|
-
import CloseX from '@elliemae/ds-icons
|
|
10
|
+
import { CloseX } from '@elliemae/ds-icons';
|
|
6
11
|
import { describe } from 'react-desc';
|
|
7
12
|
import { icons } from './utils/icons.js';
|
|
8
13
|
import { propTypes } from './propTypes.js';
|
|
@@ -16,19 +21,20 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
16
21
|
|
|
17
22
|
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; }
|
|
18
23
|
|
|
19
|
-
const DSMobileBanner =
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
24
|
+
const DSMobileBanner = _ref => {
|
|
25
|
+
let {
|
|
26
|
+
type,
|
|
27
|
+
isOpen,
|
|
28
|
+
closeButtonOnClick,
|
|
29
|
+
label,
|
|
30
|
+
body,
|
|
31
|
+
actionLinkLabel,
|
|
32
|
+
actionLinkHref,
|
|
33
|
+
actionLinkOnClick,
|
|
34
|
+
showCloseButton,
|
|
35
|
+
containerProps,
|
|
36
|
+
focusOnOpen
|
|
37
|
+
} = _ref;
|
|
32
38
|
const innerContainerRef = useRef(null);
|
|
33
39
|
const closeRef = useRef(null);
|
|
34
40
|
const [current, setCurrent] = useState(isOpen);
|