@elliemae/ds-mobile 2.0.0-next.1 → 2.0.0-next.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/Accordion/Accordion.js +5 -5
- package/cjs/Accordion/index.js +5 -5
- package/cjs/CategoryBox/CategoryBox.js +14 -13
- package/cjs/CollectionBox/CollectionBox.js +15 -14
- package/cjs/FullPageContainer/FullPageContainer.js +7 -2
- package/cjs/FullPageContainer/FullPageContainerScroll.js +7 -2
- package/cjs/FullPageContainer/useMobileHeight.js +1 -0
- package/cjs/GlobalHeader/MobileGlobalHeader.js +29 -24
- package/cjs/GlobalHeader/styles.js +5 -11
- package/cjs/GroupBox/GroupBox.js +15 -14
- package/cjs/InfiniteLoader/Infiniteloader.js +11 -9
- package/cjs/InfiniteLoader/Loader.js +12 -9
- package/cjs/InfiniteLoader/VirtualizedInfiniteLoader.js +50 -22
- package/cjs/LoadingPage/Page.js +25 -12
- package/cjs/MobileActionToolbar/MobileActionToolbar.js +8 -7
- package/cjs/MobileActionToolbar/MobileActionToolbarItem.js +6 -1
- package/cjs/MobileBanner/MobileBanner.js +22 -16
- package/cjs/MobileBanner/styles.js +128 -59
- package/cjs/MobileBanner/utils/icons.js +5 -12
- package/cjs/MobileBanner/utils/styleHelpers.js +20 -47
- 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 +7 -7
- package/cjs/MobileCard/Group.js +23 -17
- package/cjs/MobileCard/useHeight.js +1 -0
- package/cjs/MobileContextMenu/MobileContextMenu.js +37 -28
- package/cjs/MobileContextMenu/MobileContextMenuGroup.js +35 -25
- package/cjs/MobileContextMenu/MobileContextMenuItem.js +30 -36
- package/cjs/MobileDatePicker/Input.js +5 -0
- package/cjs/MobileDatePicker/MobileDatePicker.js +16 -17
- package/cjs/MobileDropdownMenu/MobileDropdownInput.js +27 -17
- package/cjs/MobileDropdownMenu/MobileDropdownMenu.js +21 -17
- 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 +17 -10
- package/cjs/MobileFooter/Text.js +6 -3
- package/cjs/MobileListItem/MobileListItem.js +15 -14
- package/cjs/MobilePageHeader/MobilePageHeader.js +37 -36
- package/cjs/MobileSelectList/MobileSelectList.js +32 -24
- 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 +16 -17
- package/cjs/MobileTimePicker/MobileTimePicker.stories.js +2 -2
- package/cjs/MobileTouchable/MobileTouchable.js +8 -2
- package/cjs/Modal/Modal.js +32 -27
- package/cjs/Modal/styled.js +11 -12
- 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 +43 -34
- package/cjs/SwipeToRefresh/ProgressIndicator.js +10 -9
- package/cjs/SwipeToRefresh/SwipeToRefresh.js +10 -9
- package/cjs/SwipeToRefresh/styled.js +4 -4
- package/cjs/SwipeToRefresh/useSwipe.js +6 -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 +11 -10
- package/esm/CollectionBox/CollectionBox.js +10 -9
- package/esm/FullPageContainer/FullPageContainer.js +6 -1
- package/esm/FullPageContainer/FullPageContainerScroll.js +6 -1
- package/esm/FullPageContainer/useMobileHeight.js +1 -0
- package/esm/GlobalHeader/MobileGlobalHeader.js +21 -14
- package/esm/GlobalHeader/styles.js +4 -11
- package/esm/GroupBox/GroupBox.js +12 -11
- package/esm/InfiniteLoader/Infiniteloader.js +9 -7
- package/esm/InfiniteLoader/Loader.js +12 -9
- package/esm/InfiniteLoader/VirtualizedInfiniteLoader.js +51 -23
- package/esm/LoadingPage/Page.js +25 -12
- package/esm/MobileActionToolbar/MobileActionToolbar.js +7 -6
- package/esm/MobileActionToolbar/MobileActionToolbarItem.js +6 -1
- package/esm/MobileBanner/MobileBanner.js +21 -14
- package/esm/MobileBanner/styles.js +128 -59
- package/esm/MobileBanner/utils/icons.js +1 -4
- package/esm/MobileBanner/utils/styleHelpers.js +16 -47
- 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 +7 -7
- package/esm/MobileCard/Group.js +21 -15
- package/esm/MobileCard/useHeight.js +1 -0
- package/esm/MobileContextMenu/MobileContextMenu.js +30 -21
- package/esm/MobileContextMenu/MobileContextMenuGroup.js +35 -25
- package/esm/MobileContextMenu/MobileContextMenuItem.js +26 -30
- package/esm/MobileDatePicker/Input.js +5 -0
- package/esm/MobileDatePicker/MobileDatePicker.js +13 -12
- package/esm/MobileDropdownMenu/MobileDropdownInput.js +27 -16
- package/esm/MobileDropdownMenu/MobileDropdownMenu.js +21 -17
- 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 +14 -7
- package/esm/MobileFooter/Text.js +6 -3
- package/esm/MobileListItem/MobileListItem.js +11 -10
- package/esm/MobilePageHeader/MobilePageHeader.js +19 -17
- package/esm/MobileSelectList/MobileSelectList.js +28 -19
- 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 +13 -12
- package/esm/MobileTimePicker/MobileTimePicker.stories.js +1 -1
- package/esm/MobileTouchable/MobileTouchable.js +7 -1
- package/esm/Modal/Modal.js +27 -21
- package/esm/Modal/styled.js +4 -6
- 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 +39 -29
- package/esm/SwipeToRefresh/ProgressIndicator.js +9 -8
- package/esm/SwipeToRefresh/SwipeToRefresh.js +9 -8
- package/esm/SwipeToRefresh/styled.js +1 -1
- package/esm/SwipeToRefresh/useSwipe.js +6 -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
- package/cjs/package.json +0 -7
- package/esm/package.json +0 -7
|
@@ -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",
|
|
@@ -35,16 +36,16 @@ const ProgressIndicator = ({
|
|
|
35
36
|
r: "54",
|
|
36
37
|
fill: "none",
|
|
37
38
|
strokeWidth: "12",
|
|
38
|
-
stroke:
|
|
39
|
+
stroke: "".concat(theme.colors.neutral[100])
|
|
39
40
|
}), /*#__PURE__*/_jsx__default["default"]("circle", {
|
|
40
41
|
cx: "60",
|
|
41
42
|
cy: "60",
|
|
42
43
|
r: "54",
|
|
43
44
|
strokeWidth: "12",
|
|
44
45
|
fill: "none",
|
|
45
|
-
strokeDasharray:
|
|
46
|
-
strokeDashoffset:
|
|
47
|
-
stroke:
|
|
46
|
+
strokeDasharray: "".concat(cir, "px"),
|
|
47
|
+
strokeDashoffset: "".concat(dashoffset, "px"),
|
|
48
|
+
stroke: "".concat(theme.colors.brand[600]),
|
|
48
49
|
strokeLinecap: "round"
|
|
49
50
|
})));
|
|
50
51
|
};
|
|
@@ -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({
|
|
@@ -37,15 +38,15 @@ const SwipeToRefresh = ({
|
|
|
37
38
|
onTouchMove: swipe.touchMove,
|
|
38
39
|
ref: swipe.ref,
|
|
39
40
|
children: [/*#__PURE__*/_jsx__default["default"](styled.LoaderBox, {
|
|
40
|
-
height: loading ? theme.space.m :
|
|
41
|
+
height: loading ? theme.space.m : "".concat(swipe.height, "px"),
|
|
41
42
|
alignItems: "flex-start",
|
|
42
43
|
"data-testid": "loader-box"
|
|
43
44
|
}, void 0, /*#__PURE__*/_jsx__default["default"](styled.PositionLoader, {
|
|
44
45
|
height: theme.space.m,
|
|
45
46
|
justifyContent: "center",
|
|
46
47
|
alignItems: "center",
|
|
47
|
-
mt: swipe.height > 40 || loading ? 0 :
|
|
48
|
-
}, void 0, loading ? _DSCircularProgressIn || (_DSCircularProgressIn = /*#__PURE__*/_jsx__default["default"](
|
|
48
|
+
mt: swipe.height > 40 || loading ? 0 : "".concat(swipe.height - 40, "px")
|
|
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
|
|
|
@@ -2,12 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
require('core-js/modules/web.dom-collections.iterator.js');
|
|
5
6
|
var React = require('react');
|
|
6
7
|
|
|
7
|
-
const useSwipe =
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
const useSwipe = _ref => {
|
|
9
|
+
let {
|
|
10
|
+
onRefresh,
|
|
11
|
+
breakpoint
|
|
12
|
+
} = _ref;
|
|
11
13
|
const [startingPoint, setStartingPoint] = React.useState(0);
|
|
12
14
|
const [movingPoint, setMovingPoint] = React.useState(0);
|
|
13
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({
|
|
@@ -11,15 +11,16 @@ const Title = /*#__PURE__*/styled.h3.withConfig({
|
|
|
11
11
|
})(["font-size:18px;margin:0;color:", ";line-height:inherit;", " font-weight:", ";"], props => props.theme.colors.neutral['700'], truncate(), props => props.theme.fontWeights.semibold);
|
|
12
12
|
const CategoryBox = /*#__PURE__*/styled(Grid).withConfig({
|
|
13
13
|
componentId: "sc-iv6vo1-1"
|
|
14
|
-
})(["background:", ";border-top:", ";"], props => props.theme.colors.neutral['0'], props => props.borderTop ?
|
|
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');
|
|
@@ -32,7 +33,7 @@ const DSCategoryBox = ({
|
|
|
32
33
|
pl: "xs",
|
|
33
34
|
pr: actionsRight.length > 0 ? 'xxs' : 'xs'
|
|
34
35
|
}, void 0, /*#__PURE__*/_jsx(Title, {
|
|
35
|
-
as:
|
|
36
|
+
as: "h".concat(headerLevel)
|
|
36
37
|
}, void 0, title), hasActions && /*#__PURE__*/_jsx(Grid, {
|
|
37
38
|
cols: times(actionsRight.length, () => 'auto'),
|
|
38
39
|
justifySelf: "end"
|
|
@@ -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 = [];
|
|
@@ -43,7 +44,7 @@ const DSCollectionBox = ({
|
|
|
43
44
|
alignItems: "center",
|
|
44
45
|
cols: headerCols
|
|
45
46
|
}, void 0, title && /*#__PURE__*/_jsx(Header, {
|
|
46
|
-
as:
|
|
47
|
+
as: "h".concat(headerLevel)
|
|
47
48
|
}, void 0, title), headerAction && /*#__PURE__*/_jsx(ActionWrap, {
|
|
48
49
|
justifySelf: "end"
|
|
49
50
|
}, void 0, headerAction)), /*#__PURE__*/_jsx(Body, {}, void 0, body), footerAction && /*#__PURE__*/_jsx(Footer, {
|
|
@@ -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,13 +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';
|
|
8
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
3
9
|
import { useState, useCallback } from 'react';
|
|
4
|
-
import Search from '@elliemae/ds-icons
|
|
5
|
-
import DSInput from '@elliemae/ds-
|
|
10
|
+
import { Search } from '@elliemae/ds-icons';
|
|
11
|
+
import { DSInput } from '@elliemae/ds-form';
|
|
6
12
|
import { PropTypes, describe } from 'react-desc';
|
|
7
|
-
import DSButton from '@elliemae/ds-
|
|
8
|
-
import { DSIconSizes, DSIconColors } from '@elliemae/ds-
|
|
9
|
-
import {
|
|
10
|
-
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';
|
|
11
17
|
import SvgIcon from '../Icons/EM_logo.js';
|
|
12
18
|
import { Container, MainSection, Icon, Label, RightSection, SearchWrapper } from './styles.js';
|
|
13
19
|
import { DSSideNav } from '../SideNav/SideNav.js';
|
|
@@ -19,14 +25,15 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
19
25
|
|
|
20
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; }
|
|
21
27
|
|
|
22
|
-
const DSGlobalHeader =
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
const DSGlobalHeader = _ref => {
|
|
29
|
+
let {
|
|
30
|
+
containerProps = {},
|
|
31
|
+
title,
|
|
32
|
+
lastIcon,
|
|
33
|
+
onSearchChange = noop,
|
|
34
|
+
topMenuItems,
|
|
35
|
+
bottomMenuItems
|
|
36
|
+
} = _ref;
|
|
30
37
|
const [searchBarVisible, setSearchBarVisible] = useState(false);
|
|
31
38
|
const [searchValue, setSearchValue] = useState();
|
|
32
39
|
const [showMenu, setShowMenu] = useState(false);
|
|
@@ -1,22 +1,15 @@
|
|
|
1
|
+
import _taggedTemplateLiteral from '@babel/runtime/helpers/esm/taggedTemplateLiteral';
|
|
1
2
|
import styled from 'styled-components';
|
|
2
3
|
import { kfrm, css } from '@elliemae/ds-system';
|
|
3
4
|
|
|
5
|
+
var _templateObject, _templateObject2;
|
|
4
6
|
const Container = /*#__PURE__*/styled.header.withConfig({
|
|
5
7
|
componentId: "sc-1nzpklc-0"
|
|
6
8
|
})(["width:auto;height:64px;position:fixed;width:100%;background-color:", ";padding:", ";color:", ";"], props => props.theme.colors.brand[700], props => props.theme.space.xs, props => props.theme.colors.neutral['000']);
|
|
7
|
-
const growLeft = kfrm
|
|
8
|
-
0% {
|
|
9
|
-
width: 0;
|
|
10
|
-
}
|
|
11
|
-
100% {
|
|
12
|
-
width: 100%;
|
|
13
|
-
}
|
|
14
|
-
`;
|
|
9
|
+
const growLeft = kfrm(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n 0% {\n width: 0;\n }\n 100% {\n width: 100%;\n }\n"])));
|
|
15
10
|
const SearchWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
16
11
|
componentId: "sc-1nzpklc-1"
|
|
17
|
-
})(["background-color:", ";", " float:right;width:100%;border-radius:4px;.dsInput{input{border-radius:2px 0 0 2px;color:", ";border:calc(0.30769rem * 0.25) solid ", " !important;&:focus{border-right:none !important;}&::placeholder{color:", ";}}.em-ds-input__clearable{border:calc(0.30769rem * 0.25) solid ", " !important;}}.dsButton{border-color:", " !important;border-radius:0 2px 2px 0;border-left:none;}svg,svg:not([fill]){fill:", ";}"], props => props.theme.colors.brand[600], css
|
|
18
|
-
animation: ${growLeft} 1s;
|
|
19
|
-
`, props => props.theme.colors.neutral['000'], props => props.theme.colors.brand[800], props => props.theme.colors.neutral['000'], props => props.theme.colors.brand[800], props => props.theme.colors.brand[800], props => props.theme.colors.neutral['000']);
|
|
12
|
+
})(["background-color:", ";", " float:right;width:100%;border-radius:4px;.dsInput{input{border-radius:2px 0 0 2px;color:", ";border:calc(0.30769rem * 0.25) solid ", " !important;&:focus{border-right:none !important;}&::placeholder{color:", ";}}.em-ds-input__clearable{border:calc(0.30769rem * 0.25) solid ", " !important;}}.dsButton{border-color:", " !important;border-radius:0 2px 2px 0;border-left:none;}svg,svg:not([fill]){fill:", ";}"], props => props.theme.colors.brand[600], css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n animation: ", " 1s;\n "])), growLeft), props => props.theme.colors.neutral['000'], props => props.theme.colors.brand[800], props => props.theme.colors.neutral['000'], props => props.theme.colors.brand[800], props => props.theme.colors.brand[800], props => props.theme.colors.neutral['000']);
|
|
20
13
|
const Icon = /*#__PURE__*/styled.div.withConfig({
|
|
21
14
|
componentId: "sc-1nzpklc-2"
|
|
22
15
|
})(["margin-right:", ";"], props => props.theme.space.xs);
|
package/esm/GroupBox/GroupBox.js
CHANGED
|
@@ -4,23 +4,24 @@ 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"
|
|
11
11
|
})(["font-size:14px;margin:0;", " color:", ";line-height:inherit;text-transform:capitalize;font-weight:", ";"], truncate(), props => props.theme.colors.neutral['700'], props => props.theme.fontWeights.semibold);
|
|
12
12
|
const GroupBox = /*#__PURE__*/styled(Grid).withConfig({
|
|
13
13
|
componentId: "sc-1g87w66-1"
|
|
14
|
-
})(["background:", ";border-top:", ";"], props => props.background === 'grey' ? props.theme.colors.neutral['050'] : props.theme.colors.neutral['000'], props => props.borderTop ?
|
|
14
|
+
})(["background:", ";border-top:", ";"], props => props.background === 'grey' ? props.theme.colors.neutral['050'] : props.theme.colors.neutral['000'], props => props.borderTop ? "1px solid ".concat(props.theme.colors.neutral['100']) : 'none');
|
|
15
15
|
|
|
16
|
-
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');
|
|
@@ -34,7 +35,7 @@ const DSGroupBox = ({
|
|
|
34
35
|
pl: "xs",
|
|
35
36
|
pr: hasActions ? 'xxs' : 'xs'
|
|
36
37
|
}, void 0, /*#__PURE__*/_jsx(Title, {
|
|
37
|
-
as:
|
|
38
|
+
as: "h".concat(headerLevel)
|
|
38
39
|
}, void 0, title), hasActions && /*#__PURE__*/_jsx(Grid, {
|
|
39
40
|
cols: times(actionsRight.length, () => 'auto'),
|
|
40
41
|
justifySelf: "end"
|
|
@@ -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,19 +1,21 @@
|
|
|
1
1
|
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
2
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
2
3
|
import { useState } from 'react';
|
|
3
|
-
import { describe } from 'react-desc';
|
|
4
|
+
import { PropTypes, describe } from 'react-desc';
|
|
4
5
|
import RWInfiniteLoader from 'react-window-infinite-loader';
|
|
5
6
|
import { VariableSizeList } from 'react-window';
|
|
6
7
|
import { jsx } from 'react/jsx-runtime';
|
|
7
8
|
|
|
8
|
-
const VirtualizedInfiniteLoader =
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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;
|
|
17
19
|
const [itemCount, setItemCount] = useState(10);
|
|
18
20
|
|
|
19
21
|
const loadMore = (startIndex, stopIndex) => {
|
|
@@ -29,19 +31,22 @@ const VirtualizedInfiniteLoader = ({
|
|
|
29
31
|
isItemLoaded: isItemLoaded,
|
|
30
32
|
itemCount: itemCount,
|
|
31
33
|
loadMoreItems: loadMore
|
|
32
|
-
}, void 0,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
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", {
|
|
45
50
|
style: {
|
|
46
51
|
position: 'absolute',
|
|
47
52
|
bottom: 0,
|
|
@@ -51,6 +56,29 @@ const VirtualizedInfiniteLoader = ({
|
|
|
51
56
|
}, void 0, "Loading"));
|
|
52
57
|
};
|
|
53
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
|
+
};
|
|
54
81
|
const VirtualizedInfiniteLoaderWithSchema = describe(VirtualizedInfiniteLoader);
|
|
82
|
+
VirtualizedInfiniteLoaderWithSchema.propTypes = listProps;
|
|
55
83
|
|
|
56
84
|
export { VirtualizedInfiniteLoader, VirtualizedInfiniteLoaderWithSchema };
|