@elliemae/ds-mobile 2.0.0-next.7 → 2.0.0-rc.10
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 +27 -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 +23 -13
- package/types/MobileCard/Group.d.ts +18 -8
- package/types/MobileCard/StyledCard.d.ts +1 -1
- package/types/MobileCard/index.d.ts +4 -12
- 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/index.d.ts +5 -1
|
@@ -1,24 +1,29 @@
|
|
|
1
1
|
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
2
|
+
import 'core-js/modules/esnext.async-iterator.map.js';
|
|
3
|
+
import 'core-js/modules/esnext.iterator.map.js';
|
|
2
4
|
import 'react';
|
|
3
5
|
import styled from 'styled-components';
|
|
4
|
-
import { Grid } from '@elliemae/ds-
|
|
6
|
+
import { Grid } from '@elliemae/ds-grid';
|
|
5
7
|
|
|
6
8
|
const CardIconsWrapper = /*#__PURE__*/styled(Grid).withConfig({
|
|
7
9
|
componentId: "sc-1vqygz1-0"
|
|
8
10
|
})(["align-items:center;span,svg{width:12px !important;height:12px !important;}span.icon-color-muted svg,svg:not([fill]){fill:", ";height:12px !important;width:12px !important;& *{fill:", ";}}span.icon-color-warn svg,svg:not([fill]){fill:", ";height:12px !important;width:12px !important;& *{fill:", ";}}span.icon-color-error svg,svg:not([fill]){fill:", ";height:12px !important;width:12px !important;& *{fill:", ";}}span.icon-color-success svg,svg:not([fill]){fill:", ";height:12px !important;width:12px !important;& *{fill:", ";}}span.icon-color-primary svg,svg:not([fill]){fill:", ";}span.icon-color-primary svg,svg:not([fill]){fill:", ";}"], props => props.theme.colors.neutral['600'], props => props.theme.colors.neutral['600'], props => props.theme.colors.warning['600'], props => props.theme.colors.warning['600'], props => props.theme.colors.danger['900'], props => props.theme.colors.danger['900'], props => props.theme.colors.success['900'], props => props.theme.colors.success['900'], props => props.theme.colors.brand[600], props => props.theme.colors.brand[600]);
|
|
9
|
-
const SubIcons =
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
11
|
+
const SubIcons = _ref => {
|
|
12
|
+
let {
|
|
13
|
+
icons = [],
|
|
14
|
+
colors = []
|
|
15
|
+
} = _ref;
|
|
16
|
+
return /*#__PURE__*/_jsx(CardIconsWrapper, {
|
|
17
|
+
cols: icons.map(() => '12px'),
|
|
18
|
+
gutter: "6px",
|
|
19
|
+
height: "14px",
|
|
20
|
+
"data-testid": "card-subIcons"
|
|
21
|
+
}, void 0, icons.map((Icon, i) =>
|
|
22
|
+
/*#__PURE__*/
|
|
23
|
+
// eslint-disable-next-line react/no-array-index-key
|
|
24
|
+
_jsx(Icon, {
|
|
25
|
+
className: "icon-color-".concat(colors[i] || 'muted')
|
|
26
|
+
}, i)));
|
|
27
|
+
};
|
|
23
28
|
|
|
24
29
|
export { SubIcons };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
2
2
|
import 'react';
|
|
3
3
|
import styled from 'styled-components';
|
|
4
|
-
import
|
|
5
|
-
import ChevronRight from '@elliemae/ds-icons/ChevronRight';
|
|
4
|
+
import { ChevronDown, ChevronRight } from '@elliemae/ds-icons';
|
|
6
5
|
|
|
7
6
|
const ChevronWrap = /*#__PURE__*/styled.div.withConfig({
|
|
8
7
|
componentId: "sc-1l0ask2-0"
|
|
9
8
|
})(["margin-top:", ";align-self:", ";margin-left:", ";"], props => props.align === 'top' ? '18px' : '0', props => props.align === 'top' ? 'flex-start' : 'center', props => props.theme.space.xs);
|
|
10
|
-
const ExpandChevron =
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
9
|
+
const ExpandChevron = _ref => {
|
|
10
|
+
let {
|
|
11
|
+
isExpanded,
|
|
12
|
+
onClick,
|
|
13
|
+
align
|
|
14
|
+
} = _ref;
|
|
15
|
+
const Chevron = isExpanded ? ChevronDown : ChevronRight;
|
|
16
16
|
return /*#__PURE__*/_jsx(ChevronWrap, {
|
|
17
17
|
"data-testid": "ds-card-expand-chevron",
|
|
18
18
|
align: align
|
|
@@ -11,12 +11,13 @@ const RegionWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
|
11
11
|
const Region = /*#__PURE__*/styled.div.withConfig({
|
|
12
12
|
componentId: "sc-mduzz9-1"
|
|
13
13
|
})(["display:flex;", " transition:max-height ", " linear;max-height:0;", " align-items:center;", ";border-top:", ";font-weight:", ";"], props => props.hide ? 'visibility: hidden;' : '', props => props.animate ? '0.25s' : '0.20s', props => props.animate ? "\n max-height: ".concat(props.refHeight, "px;\n ") : '', truncate(), props => border(props.theme.colors.neutral['300']), props => props.theme.fontWeights.regular);
|
|
14
|
-
const ExpandableRegion =
|
|
15
|
-
show,
|
|
16
|
-
content
|
|
17
|
-
}) => {
|
|
14
|
+
const ExpandableRegion = _ref => {
|
|
18
15
|
var _ref$current;
|
|
19
16
|
|
|
17
|
+
let {
|
|
18
|
+
show,
|
|
19
|
+
content
|
|
20
|
+
} = _ref;
|
|
20
21
|
const ref = useRef(null); // triggers transition
|
|
21
22
|
|
|
22
23
|
const [animate, setAnimate] = useState(show); // needed to properly handle the transition. Hide after transition ends
|
package/esm/MobileCard/Group.js
CHANGED
|
@@ -1,18 +1,23 @@
|
|
|
1
1
|
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
2
|
+
import 'core-js/modules/esnext.async-iterator.map.js';
|
|
3
|
+
import 'core-js/modules/esnext.iterator.map.js';
|
|
2
4
|
import React from 'react';
|
|
3
5
|
import { PropTypes, describe } from 'react-desc';
|
|
4
6
|
import styled from 'styled-components';
|
|
5
7
|
import Group from '@elliemae/ds-shared/GroupContext/Group';
|
|
6
|
-
import { Grid } from '@elliemae/ds-
|
|
8
|
+
import { Grid } from '@elliemae/ds-grid';
|
|
7
9
|
import { truncate, __UNSAFE_SPACE_TO_DIMSUM, color, border, withTheme } from '@elliemae/ds-system';
|
|
8
10
|
import { StyledCard } from './StyledCard.js';
|
|
9
11
|
|
|
10
12
|
const GroupGrid = /*#__PURE__*/styled(Grid).withConfig({
|
|
11
13
|
componentId: "sc-17xukaf-0"
|
|
12
|
-
})(["", "{border-top:none;}", ""], StyledCard,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
})(["", "{border-top:none;}", ""], StyledCard, _ref => {
|
|
15
|
+
let {
|
|
16
|
+
theme,
|
|
17
|
+
withTopBorder
|
|
18
|
+
} = _ref;
|
|
19
|
+
return withTopBorder ? "border-top: ".concat(border(theme.colors.neutral['100'])) : '';
|
|
20
|
+
});
|
|
16
21
|
const GroupTitle = /*#__PURE__*/styled.span.withConfig({
|
|
17
22
|
componentId: "sc-17xukaf-1"
|
|
18
23
|
})(["", ""], truncate());
|
|
@@ -20,15 +25,16 @@ const GroupTitleGrid = /*#__PURE__*/styled.div.withConfig({
|
|
|
20
25
|
componentId: "sc-17xukaf-2"
|
|
21
26
|
})(["display:flex;justify-content:space-between;padding:0 ", ";font-size:", ";", " font-weight:", ";background-color:", ";border-top:", ";line-height:", ";@media (min-width:1024px){background-color:", ";border-top:", ";}"], props => props.theme.space.xs, props => "calc(".concat(__UNSAFE_SPACE_TO_DIMSUM(props.theme.space.m), " / 2)"), color('neutral', '700'), props => props.theme.fontWeights.semibold, props => props.theme.colors.brand['200'], props => border(props.theme.colors.brand['300']), props => __UNSAFE_SPACE_TO_DIMSUM(props.theme.space.m), props => props.theme.colors.neutral['080'], props => border(props.theme.colors.neutral['080']));
|
|
22
27
|
|
|
23
|
-
const MobileCardGroup =
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
const MobileCardGroup = _ref2 => {
|
|
29
|
+
let {
|
|
30
|
+
children,
|
|
31
|
+
theme,
|
|
32
|
+
title,
|
|
33
|
+
action,
|
|
34
|
+
activeValue,
|
|
35
|
+
allowMultipleOpen = false,
|
|
36
|
+
onChange = () => null
|
|
37
|
+
} = _ref2;
|
|
32
38
|
const rows = !title ? ['auto'] : [__UNSAFE_SPACE_TO_DIMSUM(theme.space.m), 'auto'];
|
|
33
39
|
return /*#__PURE__*/_jsx(Group, {
|
|
34
40
|
activeValue: activeValue,
|
|
@@ -1,12 +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.map.js';
|
|
5
|
+
import 'core-js/modules/esnext.iterator.map.js';
|
|
6
|
+
import 'core-js/modules/esnext.async-iterator.filter.js';
|
|
7
|
+
import 'core-js/modules/esnext.iterator.constructor.js';
|
|
8
|
+
import 'core-js/modules/esnext.iterator.filter.js';
|
|
9
|
+
import 'core-js/modules/esnext.async-iterator.for-each.js';
|
|
10
|
+
import 'core-js/modules/esnext.iterator.for-each.js';
|
|
4
11
|
import React, { useState, useMemo, useRef } from 'react';
|
|
5
12
|
import { noop } from 'lodash';
|
|
6
13
|
import { PropTypes, describe } from 'react-desc';
|
|
7
14
|
import styled from 'styled-components';
|
|
8
|
-
import { Grid } from '@elliemae/ds-
|
|
9
|
-
import { DSBackdrop } from '@elliemae/ds-
|
|
15
|
+
import { Grid } from '@elliemae/ds-grid';
|
|
16
|
+
import { DSBackdrop } from '@elliemae/ds-backdrop';
|
|
10
17
|
import { truncate, withTheme } from '@elliemae/ds-system';
|
|
11
18
|
import Group from '@elliemae/ds-shared/GroupContext/Group';
|
|
12
19
|
import { DSMobileContextMenuGroup } from './MobileContextMenuGroup.js';
|
|
@@ -29,22 +36,23 @@ const HeaderContainer = /*#__PURE__*/styled(Grid).withConfig({
|
|
|
29
36
|
|
|
30
37
|
const isArr = prop => Array.isArray(prop);
|
|
31
38
|
|
|
32
|
-
const DSMobileContextMenu = withTheme(
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
39
|
+
const DSMobileContextMenu = withTheme(_ref => {
|
|
40
|
+
let {
|
|
41
|
+
open = false,
|
|
42
|
+
title = '',
|
|
43
|
+
multiple = false,
|
|
44
|
+
singleSelect = false,
|
|
45
|
+
onChange = noop,
|
|
46
|
+
onClickOutside = noop,
|
|
47
|
+
children,
|
|
48
|
+
theme,
|
|
49
|
+
backdropZIndex,
|
|
50
|
+
zIndex = 1,
|
|
51
|
+
dataTestid = 'mobile-context-menu',
|
|
52
|
+
buttonFooter = null,
|
|
53
|
+
onApply = noop,
|
|
54
|
+
selecteds: initSelecteds
|
|
55
|
+
} = _ref;
|
|
48
56
|
const [selectedItems, setSelectedItems] = useState([]);
|
|
49
57
|
const trueSelected = useMemo(() => initSelecteds !== undefined ? initSelecteds : [...selectedItems], [initSelecteds, selectedItems]);
|
|
50
58
|
const containerRef = useRef(null);
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
2
2
|
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
3
|
+
import 'core-js/modules/esnext.async-iterator.map.js';
|
|
4
|
+
import 'core-js/modules/esnext.iterator.map.js';
|
|
5
|
+
import 'core-js/modules/esnext.async-iterator.filter.js';
|
|
6
|
+
import 'core-js/modules/esnext.iterator.constructor.js';
|
|
7
|
+
import 'core-js/modules/esnext.iterator.filter.js';
|
|
8
|
+
import 'core-js/modules/esnext.async-iterator.for-each.js';
|
|
9
|
+
import 'core-js/modules/esnext.iterator.for-each.js';
|
|
3
10
|
import React from 'react';
|
|
4
11
|
import styled from 'styled-components';
|
|
5
|
-
import { Grid } from '@elliemae/ds-
|
|
12
|
+
import { Grid } from '@elliemae/ds-grid';
|
|
6
13
|
import { noop } from 'lodash';
|
|
7
14
|
import { PropTypes, describe } from 'react-desc';
|
|
8
15
|
|
|
@@ -13,32 +20,35 @@ const Title = /*#__PURE__*/styled.div.withConfig({
|
|
|
13
20
|
componentId: "sc-atfpfh-0"
|
|
14
21
|
})(["height:24px;line-height:24px;font-size:12px;border-top:1px solid ", ";background:", ";padding:0 ", ";color:", ";font-weight:", ";"], props => props.theme.colors.brand['300'], props => props.theme.colors.brand['200'], props => props.theme.space.xs, props => props.theme.colors.neutral['700'], props => props.theme.fontWeights.semibold);
|
|
15
22
|
|
|
16
|
-
const DSMobileContextMenuGroup =
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
singleSelect,
|
|
20
|
-
children,
|
|
21
|
-
value: groupValue,
|
|
22
|
-
selectedItems
|
|
23
|
-
}) => /*#__PURE__*/_jsx(Grid, {}, void 0, /*#__PURE__*/_jsx(Grid, {}, void 0, /*#__PURE__*/_jsx(Title, {}, void 0, title)), /*#__PURE__*/_jsx(Grid, {}, void 0, React.Children.map(children, (child, index) => {
|
|
24
|
-
const {
|
|
25
|
-
onClick = noop
|
|
26
|
-
} = child.props;
|
|
27
|
-
const value = "".concat(groupValue, ":").concat(index);
|
|
28
|
-
let isSelected;
|
|
29
|
-
if (singleSelect) isSelected = selectedItems === value;else if (isMulti) isSelected = selectedItems.includes(value);
|
|
30
|
-
return /*#__PURE__*/React.cloneElement(child, {
|
|
31
|
-
value,
|
|
32
|
-
key: 'group.'.concat(index),
|
|
33
|
-
isGroup: true,
|
|
23
|
+
const DSMobileContextMenuGroup = _ref => {
|
|
24
|
+
let {
|
|
25
|
+
title,
|
|
34
26
|
isMulti,
|
|
35
27
|
singleSelect,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
})
|
|
41
|
-
|
|
28
|
+
children,
|
|
29
|
+
value: groupValue,
|
|
30
|
+
selectedItems
|
|
31
|
+
} = _ref;
|
|
32
|
+
return /*#__PURE__*/_jsx(Grid, {}, void 0, /*#__PURE__*/_jsx(Grid, {}, void 0, /*#__PURE__*/_jsx(Title, {}, void 0, title)), /*#__PURE__*/_jsx(Grid, {}, void 0, React.Children.map(children, (child, index) => {
|
|
33
|
+
const {
|
|
34
|
+
onClick = noop
|
|
35
|
+
} = child.props;
|
|
36
|
+
const value = "".concat(groupValue, ":").concat(index);
|
|
37
|
+
let isSelected;
|
|
38
|
+
if (singleSelect) isSelected = selectedItems === value;else if (isMulti) isSelected = selectedItems.includes(value);
|
|
39
|
+
return /*#__PURE__*/React.cloneElement(child, {
|
|
40
|
+
value,
|
|
41
|
+
key: 'group.'.concat(index),
|
|
42
|
+
isGroup: true,
|
|
43
|
+
isMulti,
|
|
44
|
+
singleSelect,
|
|
45
|
+
isSelected,
|
|
46
|
+
onClick: e => onClick(e, _objectSpread({
|
|
47
|
+
value
|
|
48
|
+
}, child.props))
|
|
49
|
+
});
|
|
50
|
+
})));
|
|
51
|
+
};
|
|
42
52
|
|
|
43
53
|
const props = {
|
|
44
54
|
/**
|
|
@@ -1,13 +1,18 @@
|
|
|
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 _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
2
7
|
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
3
8
|
import 'react';
|
|
4
9
|
import { PropTypes, describe } from 'react-desc';
|
|
5
|
-
import { Grid } from '@elliemae/ds-
|
|
10
|
+
import { Grid } from '@elliemae/ds-grid';
|
|
6
11
|
import styled from 'styled-components';
|
|
7
12
|
import { truncate } from '@elliemae/ds-system';
|
|
8
13
|
import GroupItem from '@elliemae/ds-shared/GroupContext/GroupItem';
|
|
9
|
-
import DSCheckbox from '@elliemae/ds-
|
|
10
|
-
import
|
|
14
|
+
import { DSCheckbox } from '@elliemae/ds-form';
|
|
15
|
+
import { Checkmark } from '@elliemae/ds-icons';
|
|
11
16
|
import { DSMobileTouchable } from '../MobileTouchable/MobileTouchable.js';
|
|
12
17
|
import { jsx } from 'react/jsx-runtime';
|
|
13
18
|
|
|
@@ -34,24 +39,25 @@ const Title = /*#__PURE__*/styled.span.withConfig({
|
|
|
34
39
|
const Label = /*#__PURE__*/styled.span.withConfig({
|
|
35
40
|
componentId: "sc-20od94-3"
|
|
36
41
|
})(["font-size:13px;color:", ";"], props => props.theme.colors.neutral['600']);
|
|
37
|
-
const CheckMark = /*#__PURE__*/styled(
|
|
42
|
+
const CheckMark = /*#__PURE__*/styled(Checkmark).withConfig({
|
|
38
43
|
componentId: "sc-20od94-4"
|
|
39
44
|
})(["fill:", ";"], props => props.theme.colors.brand['600']);
|
|
40
45
|
|
|
41
|
-
const DSMobileContextMenuItem =
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
46
|
+
const DSMobileContextMenuItem = _ref => {
|
|
47
|
+
var _DSCheckbox, _Grid, _Title;
|
|
48
|
+
|
|
49
|
+
let {
|
|
50
|
+
label,
|
|
51
|
+
title,
|
|
52
|
+
leftProp,
|
|
53
|
+
isGroup,
|
|
54
|
+
isMulti,
|
|
55
|
+
singleSelect,
|
|
56
|
+
isSelected,
|
|
57
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
58
|
+
onClick = () => {},
|
|
59
|
+
value
|
|
60
|
+
} = _ref;
|
|
55
61
|
return /*#__PURE__*/_jsx(GroupItem, {
|
|
56
62
|
render: context => {
|
|
57
63
|
const {
|
|
@@ -62,7 +68,7 @@ const DSMobileContextMenuItem = ({
|
|
|
62
68
|
let showLeftAddon = isSelected;
|
|
63
69
|
if (isMulti || !singleSelect) showLeftAddon = true;
|
|
64
70
|
let leftAddon = leftProp || null;
|
|
65
|
-
if (isMulti) leftAddon =
|
|
71
|
+
if (isMulti) leftAddon = _DSCheckbox || (_DSCheckbox = /*#__PURE__*/_jsx(DSCheckbox, {
|
|
66
72
|
checked: isSelected,
|
|
67
73
|
"data-testid": "leftAddon-checkbox"
|
|
68
74
|
}));
|
|
@@ -1,3 +1,8 @@
|
|
|
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';
|
|
@@ -1,21 +1,22 @@
|
|
|
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 { DSIconColors } from '@elliemae/ds-
|
|
5
|
-
import DatePicker from '@elliemae/ds-icons
|
|
6
|
-
import DSButton from '@elliemae/ds-
|
|
7
|
-
import DSInputGroup from '@elliemae/ds-
|
|
4
|
+
import { DSIconColors } from '@elliemae/ds-icon';
|
|
5
|
+
import { DatePicker } from '@elliemae/ds-icons';
|
|
6
|
+
import DSButton from '@elliemae/ds-button';
|
|
7
|
+
import { DSInputGroup } from '@elliemae/ds-form';
|
|
8
8
|
import { Input } from './Input.js';
|
|
9
9
|
|
|
10
10
|
var _DatePicker;
|
|
11
11
|
|
|
12
|
-
const DSMobileDatePicker =
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
12
|
+
const DSMobileDatePicker = _ref => {
|
|
13
|
+
let {
|
|
14
|
+
disabled,
|
|
15
|
+
value,
|
|
16
|
+
tabIndex,
|
|
17
|
+
placeholder,
|
|
18
|
+
onChange
|
|
19
|
+
} = _ref;
|
|
19
20
|
const inputRef = useRef(null);
|
|
20
21
|
useEffect(() => {
|
|
21
22
|
/*
|
|
@@ -1,9 +1,14 @@
|
|
|
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 'react';
|
|
4
9
|
import styled from 'styled-components';
|
|
5
10
|
import { focus } from '@elliemae/ds-system';
|
|
6
|
-
import
|
|
11
|
+
import { ChevronDown } from '@elliemae/ds-icons';
|
|
7
12
|
import { jsx } from 'react/jsx-runtime';
|
|
8
13
|
|
|
9
14
|
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; }
|
|
@@ -18,20 +23,26 @@ const MobileDropdownInputWrap = /*#__PURE__*/styled.span.withConfig({
|
|
|
18
23
|
const CaretWrap = /*#__PURE__*/styled.span.withConfig({
|
|
19
24
|
componentId: "sc-1rsc1yn-2"
|
|
20
25
|
})(["width:32px;height:32px;position:absolute;right:0;top:0;display:flex;justify-content:center;align-items:center;"]);
|
|
21
|
-
const Caret =
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
26
|
+
const Caret = _ref => {
|
|
27
|
+
let {
|
|
28
|
+
onClick
|
|
29
|
+
} = _ref;
|
|
30
|
+
return /*#__PURE__*/_jsx(CaretWrap, {
|
|
31
|
+
onClick: onClick
|
|
32
|
+
}, void 0, /*#__PURE__*/_jsx(ChevronDown, {
|
|
33
|
+
color: ['brand-primary', '600']
|
|
34
|
+
}));
|
|
35
|
+
};
|
|
36
|
+
const DSMobileDropdownTriggerInput = _ref2 => {
|
|
37
|
+
let {
|
|
38
|
+
inputProps,
|
|
39
|
+
caretProps
|
|
40
|
+
} = _ref2;
|
|
41
|
+
return /*#__PURE__*/_jsx(MobileDropdownInputWrap, {
|
|
42
|
+
"data-testid": "ds-mobile-ddwn-menu"
|
|
43
|
+
}, void 0, /*#__PURE__*/jsx(MobileDropdownInput, _objectSpread(_objectSpread({}, inputProps), {}, {
|
|
44
|
+
readOnly: true
|
|
45
|
+
})), /*#__PURE__*/jsx(Caret, _objectSpread({}, caretProps)));
|
|
46
|
+
};
|
|
36
47
|
|
|
37
48
|
export { Caret, DSMobileDropdownTriggerInput, MobileDropdownInput, MobileDropdownInputWrap };
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
2
2
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
3
|
+
import 'core-js/modules/esnext.async-iterator.map.js';
|
|
4
|
+
import 'core-js/modules/esnext.iterator.map.js';
|
|
3
5
|
import React, { useState, useRef } from 'react';
|
|
4
6
|
import { PropTypes, describe } from 'react-desc';
|
|
5
7
|
import { DSMobileContextMenu } from '../MobileContextMenu/MobileContextMenu.js';
|
|
@@ -8,22 +10,23 @@ import '../MobileContextMenu/MobileContextMenuGroup.js';
|
|
|
8
10
|
import { DSMobileDropdownTriggerInput } from './MobileDropdownInput.js';
|
|
9
11
|
import { jsxs, Fragment } from 'react/jsx-runtime';
|
|
10
12
|
|
|
11
|
-
const DSMobileDropdownMenu =
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}
|
|
13
|
+
const DSMobileDropdownMenu = _ref => {
|
|
14
|
+
let {
|
|
15
|
+
placeholder,
|
|
16
|
+
options = [],
|
|
17
|
+
title,
|
|
18
|
+
value,
|
|
19
|
+
itemsProps = {
|
|
20
|
+
label: undefined,
|
|
21
|
+
leftProp: undefined,
|
|
22
|
+
isGroup: false,
|
|
23
|
+
isMulti: false,
|
|
24
|
+
singleSelect: false,
|
|
25
|
+
isItemSelected: () => false,
|
|
26
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
27
|
+
onClick: () => {}
|
|
28
|
+
}
|
|
29
|
+
} = _ref;
|
|
27
30
|
const [menuOpen, setMenuOpen] = useState(false);
|
|
28
31
|
const inputRef = useRef(null);
|
|
29
32
|
const inputProps = React.useMemo(() => ({
|
|
@@ -2,7 +2,7 @@ import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
|
2
2
|
import 'react';
|
|
3
3
|
import styled from 'styled-components';
|
|
4
4
|
import { PropTypes, describe } from 'react-desc';
|
|
5
|
-
import Search from '@elliemae/ds-icons
|
|
5
|
+
import { Search } from '@elliemae/ds-icons';
|
|
6
6
|
|
|
7
7
|
const Wrapper = /*#__PURE__*/styled.div.withConfig({
|
|
8
8
|
componentId: "sc-1v2x6kj-0"
|
|
@@ -11,12 +11,15 @@ const Label = /*#__PURE__*/styled.p.withConfig({
|
|
|
11
11
|
componentId: "sc-1v2x6kj-1"
|
|
12
12
|
})(["color:", ";font-size:", ";font-weight:", ";min-width:132px;"], props => props.theme.colors.neutral['600'], props => props.theme.space.xs, props => props.theme.fontWeights.semibold);
|
|
13
13
|
|
|
14
|
-
const DSMobileEmptyState =
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
14
|
+
const DSMobileEmptyState = _ref => {
|
|
15
|
+
let {
|
|
16
|
+
label = 'No search results found.'
|
|
17
|
+
} = _ref;
|
|
18
|
+
return /*#__PURE__*/_jsx(Wrapper, {}, void 0, /*#__PURE__*/_jsx(Search, {
|
|
19
|
+
size: "xxl",
|
|
20
|
+
color: ['neutral', 400]
|
|
21
|
+
}), /*#__PURE__*/_jsx(Label, {}, void 0, label));
|
|
22
|
+
};
|
|
20
23
|
|
|
21
24
|
const props = {
|
|
22
25
|
/** empty state label */
|
|
@@ -3,7 +3,7 @@ import 'react';
|
|
|
3
3
|
import styled from 'styled-components';
|
|
4
4
|
import { PropTypes, describe } from 'react-desc';
|
|
5
5
|
import { __UNSAFE_SPACE_TO_DIMSUM } from '@elliemae/ds-system';
|
|
6
|
-
import { Grid } from '@elliemae/ds-
|
|
6
|
+
import { Grid } from '@elliemae/ds-grid';
|
|
7
7
|
import MobileSeparator from '../MobileSeparator/Separator.js';
|
|
8
8
|
|
|
9
9
|
const Bar = /*#__PURE__*/styled.div.withConfig({
|
|
@@ -13,15 +13,18 @@ const Separator = /*#__PURE__*/styled.div.withConfig({
|
|
|
13
13
|
componentId: "sc-14ysw84-1"
|
|
14
14
|
})(["& > *{margin:0;}"]);
|
|
15
15
|
|
|
16
|
-
const DSMobileFilterbar =
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
16
|
+
const DSMobileFilterbar = _ref => {
|
|
17
|
+
let {
|
|
18
|
+
children
|
|
19
|
+
} = _ref;
|
|
20
|
+
return /*#__PURE__*/_jsx(Grid, {
|
|
21
|
+
rows: ['auto', 'auto'],
|
|
22
|
+
"data-testid": "filter-bar-wrapper"
|
|
23
|
+
}, void 0, /*#__PURE__*/_jsx(Bar, {}, void 0, children), /*#__PURE__*/_jsx(Separator, {}, void 0, /*#__PURE__*/_jsx(MobileSeparator, {
|
|
24
|
+
margin: "xxs",
|
|
25
|
+
color: ['neutral', '300']
|
|
26
|
+
})));
|
|
27
|
+
};
|
|
25
28
|
|
|
26
29
|
const filterbarProps = {
|
|
27
30
|
children: PropTypes.element.description('FilterBar Items').isRequired
|
|
@@ -1,19 +1,22 @@
|
|
|
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
|
|
|
6
|
-
const DSMobileFilterbarItem =
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
6
|
+
const DSMobileFilterbarItem = _ref => {
|
|
7
|
+
let {
|
|
8
|
+
children,
|
|
9
|
+
onClick
|
|
10
|
+
} = _ref;
|
|
11
|
+
return /*#__PURE__*/_jsx(Grid, {
|
|
12
|
+
"data-testid": "filter-bar-item-wrapper",
|
|
13
|
+
cols: ['min-content'],
|
|
14
|
+
pr: "xxs",
|
|
15
|
+
pt: "xxs",
|
|
16
|
+
role: "button",
|
|
17
|
+
onClick: onClick
|
|
18
|
+
}, void 0, children);
|
|
19
|
+
};
|
|
17
20
|
|
|
18
21
|
const filterbarItemProps = {
|
|
19
22
|
children: PropTypes.element.description('FilterBar Items').isRequired,
|