@elliemae/ds-mobile 2.0.0-alpha.10 → 2.0.0-alpha.14
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 +129 -60
- 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 +35 -82
- 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/props.js +62 -0
- 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 +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 +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 +129 -60
- 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 +29 -76
- 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/props.js +58 -0
- 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 +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
- package/cjs/package.json +0 -7
- package/esm/package.json +0 -7
|
@@ -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
|
|
|
@@ -23,17 +28,7 @@ const PropWrap = /*#__PURE__*/styled(props => /*#__PURE__*/jsx(Grid, _objectSpre
|
|
|
23
28
|
componentId: "sc-20od94-1"
|
|
24
29
|
})(["", ""], props => {
|
|
25
30
|
if (!props.isMulti) {
|
|
26
|
-
return
|
|
27
|
-
& > span {
|
|
28
|
-
height: 18px;
|
|
29
|
-
width: 18px;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
& > span > svg {
|
|
33
|
-
height: 18px;
|
|
34
|
-
width: 18px;
|
|
35
|
-
}
|
|
36
|
-
`;
|
|
31
|
+
return "\n & > span {\n height: 18px;\n width: 18px;\n }\n\n & > span > svg {\n height: 18px;\n width: 18px;\n }\n ";
|
|
37
32
|
}
|
|
38
33
|
|
|
39
34
|
return '';
|
|
@@ -44,24 +39,25 @@ const Title = /*#__PURE__*/styled.span.withConfig({
|
|
|
44
39
|
const Label = /*#__PURE__*/styled.span.withConfig({
|
|
45
40
|
componentId: "sc-20od94-3"
|
|
46
41
|
})(["font-size:13px;color:", ";"], props => props.theme.colors.neutral['600']);
|
|
47
|
-
const CheckMark = /*#__PURE__*/styled(
|
|
42
|
+
const CheckMark = /*#__PURE__*/styled(Checkmark).withConfig({
|
|
48
43
|
componentId: "sc-20od94-4"
|
|
49
44
|
})(["fill:", ";"], props => props.theme.colors.brand['600']);
|
|
50
45
|
|
|
51
|
-
const DSMobileContextMenuItem =
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
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;
|
|
65
61
|
return /*#__PURE__*/_jsx(GroupItem, {
|
|
66
62
|
render: context => {
|
|
67
63
|
const {
|
|
@@ -72,7 +68,7 @@ const DSMobileContextMenuItem = ({
|
|
|
72
68
|
let showLeftAddon = isSelected;
|
|
73
69
|
if (isMulti || !singleSelect) showLeftAddon = true;
|
|
74
70
|
let leftAddon = leftProp || null;
|
|
75
|
-
if (isMulti) leftAddon =
|
|
71
|
+
if (isMulti) leftAddon = _DSCheckbox || (_DSCheckbox = /*#__PURE__*/_jsx(DSCheckbox, {
|
|
76
72
|
checked: isSelected,
|
|
77
73
|
"data-testid": "leftAddon-checkbox"
|
|
78
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
|
/*
|
|
@@ -28,7 +29,7 @@ const DSMobileDatePicker = ({
|
|
|
28
29
|
}
|
|
29
30
|
}, [inputRef.current]);
|
|
30
31
|
const valueArr = value.split('-');
|
|
31
|
-
const displayValue = value &&
|
|
32
|
+
const displayValue = value && "".concat(valueArr[1], " / ").concat(valueArr[2], " / ").concat(valueArr[0]);
|
|
32
33
|
return /*#__PURE__*/_jsx(DSInputGroup, {
|
|
33
34
|
rightAddon: /*#__PURE__*/_jsx(DSButton, {
|
|
34
35
|
"aria-label": "Date Picker Button",
|
|
@@ -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,4 +1,7 @@
|
|
|
1
1
|
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
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';
|
|
2
5
|
import React, { useState, useRef } from 'react';
|
|
3
6
|
import { PropTypes, describe } from 'react-desc';
|
|
4
7
|
import { DSMobileContextMenu } from '../MobileContextMenu/MobileContextMenu.js';
|
|
@@ -7,22 +10,23 @@ import '../MobileContextMenu/MobileContextMenuGroup.js';
|
|
|
7
10
|
import { DSMobileDropdownTriggerInput } from './MobileDropdownInput.js';
|
|
8
11
|
import { jsxs, Fragment } from 'react/jsx-runtime';
|
|
9
12
|
|
|
10
|
-
const DSMobileDropdownMenu =
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
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;
|
|
26
30
|
const [menuOpen, setMenuOpen] = useState(false);
|
|
27
31
|
const inputRef = useRef(null);
|
|
28
32
|
const inputProps = React.useMemo(() => ({
|
|
@@ -62,7 +66,7 @@ const DSMobileDropdownMenu = ({
|
|
|
62
66
|
isGroup: itemsProps.isGroup,
|
|
63
67
|
isMulti: itemsProps.isMulti,
|
|
64
68
|
singleSelect: itemsProps.singleSelect
|
|
65
|
-
}, 'ddwn'.concat(
|
|
69
|
+
}, 'ddwn'.concat("".concat(i))))) : null]
|
|
66
70
|
});
|
|
67
71
|
};
|
|
68
72
|
|
|
@@ -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,
|
|
@@ -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 MobileSeparator from '../MobileSeparator/Separator.js';
|
|
7
7
|
import { jsxs, Fragment } from 'react/jsx-runtime';
|
|
8
8
|
|
|
@@ -10,19 +10,22 @@ const Separator = /*#__PURE__*/styled.div.withConfig({
|
|
|
10
10
|
componentId: "sc-103uq0b-0"
|
|
11
11
|
})(["& > *{margin-left:0;}"]);
|
|
12
12
|
|
|
13
|
-
const DSMobileFilterbarSort =
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
13
|
+
const DSMobileFilterbarSort = _ref => {
|
|
14
|
+
let {
|
|
15
|
+
children
|
|
16
|
+
} = _ref;
|
|
17
|
+
return /*#__PURE__*/jsxs(Fragment, {
|
|
18
|
+
children: [children, /*#__PURE__*/_jsx(Grid, {
|
|
19
|
+
pb: "xxs",
|
|
20
|
+
pt: "xxs",
|
|
21
|
+
cols: ['min-content']
|
|
22
|
+
}, void 0, /*#__PURE__*/_jsx(Separator, {}, void 0, /*#__PURE__*/_jsx(MobileSeparator, {
|
|
23
|
+
margin: "xxs",
|
|
24
|
+
direction: "vertical",
|
|
25
|
+
color: ['neutral', '300']
|
|
26
|
+
})))]
|
|
27
|
+
});
|
|
28
|
+
};
|
|
26
29
|
|
|
27
30
|
const filterbarSortProps = {
|
|
28
31
|
children: PropTypes.element.description('FilterBar Sort Item').isRequired
|
|
@@ -3,34 +3,37 @@ import React from 'react';
|
|
|
3
3
|
import styled from 'styled-components';
|
|
4
4
|
import { typography } from 'styled-system';
|
|
5
5
|
import { color, __UNSAFE_SPACE_TO_DIMSUM } from '@elliemae/ds-system';
|
|
6
|
-
import { Grid } from '@elliemae/ds-
|
|
6
|
+
import { Grid } from '@elliemae/ds-grid';
|
|
7
7
|
import { PropTypes, describe } from 'react-desc';
|
|
8
8
|
|
|
9
9
|
const Label = /*#__PURE__*/styled.span.withConfig({
|
|
10
10
|
componentId: "sc-1op229o-0"
|
|
11
|
-
})(["", " ", " padding-bottom:", ";padding-top:calc(
|
|
11
|
+
})(["", " ", " padding-bottom:", ";padding-top:calc(", " / 2);"], typography, color('neutral', '800'), props => __UNSAFE_SPACE_TO_DIMSUM(props.theme.space.xxs), props => __UNSAFE_SPACE_TO_DIMSUM(props.theme.space.xxs));
|
|
12
12
|
|
|
13
|
-
const DSMobileFooterAction =
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
},
|
|
32
|
-
|
|
33
|
-
}, void 0,
|
|
13
|
+
const DSMobileFooterAction = _ref => {
|
|
14
|
+
let {
|
|
15
|
+
label,
|
|
16
|
+
icon,
|
|
17
|
+
onClick
|
|
18
|
+
} = _ref;
|
|
19
|
+
return /*#__PURE__*/_jsx(Grid, {
|
|
20
|
+
"data-testid": "ds-mobile-footer-action",
|
|
21
|
+
rows: ['auto'].concat(label ? 'min-content' : 'none'),
|
|
22
|
+
justifyContent: "center",
|
|
23
|
+
role: "button",
|
|
24
|
+
onClick: onClick
|
|
25
|
+
}, void 0, /*#__PURE__*/_jsx(Grid, {
|
|
26
|
+
justifyContent: "center",
|
|
27
|
+
alignItems: "center"
|
|
28
|
+
}, void 0, /*#__PURE__*/React.cloneElement(icon, {
|
|
29
|
+
'data-testid': 'ds-mobile-footer-action-icon',
|
|
30
|
+
size: !label ? 'l' : 'm'
|
|
31
|
+
})), label && /*#__PURE__*/_jsx(Grid, {
|
|
32
|
+
justifyContent: "center"
|
|
33
|
+
}, void 0, /*#__PURE__*/_jsx(Label, {
|
|
34
|
+
fontSize: "11px"
|
|
35
|
+
}, void 0, label)));
|
|
36
|
+
};
|
|
34
37
|
|
|
35
38
|
const actionProps = {
|
|
36
39
|
/** Action label */
|
|
@@ -1,19 +1,26 @@
|
|
|
1
1
|
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
2
|
+
import 'core-js/modules/esnext.async-iterator.constructor.js';
|
|
3
|
+
import 'core-js/modules/esnext.async-iterator.to-array.js';
|
|
4
|
+
import 'core-js/modules/esnext.iterator.constructor.js';
|
|
5
|
+
import 'core-js/modules/esnext.iterator.to-array.js';
|
|
6
|
+
import 'core-js/modules/esnext.async-iterator.map.js';
|
|
7
|
+
import 'core-js/modules/esnext.iterator.map.js';
|
|
2
8
|
import React from 'react';
|
|
3
9
|
import styled from 'styled-components';
|
|
4
10
|
import { border, __UNSAFE_SPACE_TO_DIMSUM } from '@elliemae/ds-system';
|
|
5
|
-
import { Grid } from '@elliemae/ds-
|
|
6
|
-
import DSButton from '@elliemae/ds-
|
|
11
|
+
import { Grid } from '@elliemae/ds-grid';
|
|
12
|
+
import DSButton from '@elliemae/ds-button';
|
|
7
13
|
import { PropTypes, describe } from 'react-desc';
|
|
8
14
|
import { DSMobileFooterText } from './Text.js';
|
|
9
15
|
|
|
10
16
|
const FooterWrap = /*#__PURE__*/styled(Grid).withConfig({
|
|
11
17
|
componentId: "sc-ls5vfg-0"
|
|
12
|
-
})(["background-color:", ";border-top:", ";height:", ";"], props => props.theme.colors.neutral['000'], props => border(props.theme.colors.neutral[100]), props =>
|
|
18
|
+
})(["background-color:", ";border-top:", ";height:", ";"], props => props.theme.colors.neutral['000'], props => border(props.theme.colors.neutral[100]), props => "calc(".concat(__UNSAFE_SPACE_TO_DIMSUM(props.theme.space.xs), " * 7)"));
|
|
13
19
|
|
|
14
|
-
const MobileFooter =
|
|
15
|
-
|
|
16
|
-
|
|
20
|
+
const MobileFooter = _ref => {
|
|
21
|
+
let {
|
|
22
|
+
children
|
|
23
|
+
} = _ref;
|
|
17
24
|
const childArr = React.Children.toArray(children);
|
|
18
25
|
const isButtonType = childArr[0].type === DSMobileFooterText || childArr[0].type === DSButton;
|
|
19
26
|
|
|
@@ -22,7 +29,7 @@ const MobileFooter = ({
|
|
|
22
29
|
return childArr.length === 1 ? ['90%'] : ['45%', '45%'];
|
|
23
30
|
}
|
|
24
31
|
|
|
25
|
-
return childArr.map(() =>
|
|
32
|
+
return childArr.map(() => "".concat(100 / childArr.length, "%"));
|
|
26
33
|
};
|
|
27
34
|
|
|
28
35
|
return /*#__PURE__*/_jsx(FooterWrap, {}, void 0, /*#__PURE__*/_jsx(Grid, {
|
package/esm/MobileFooter/Text.js
CHANGED
|
@@ -8,9 +8,12 @@ const Text = /*#__PURE__*/styled.p.withConfig({
|
|
|
8
8
|
componentId: "sc-1v0cqsw-0"
|
|
9
9
|
})(["margin:auto 0;", " ", " ", ""], truncate(), textStyle('body'), color('neutral', '800'));
|
|
10
10
|
|
|
11
|
-
const DSMobileFooterText =
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
const DSMobileFooterText = _ref => {
|
|
12
|
+
let {
|
|
13
|
+
children
|
|
14
|
+
} = _ref;
|
|
15
|
+
return /*#__PURE__*/_jsx(Text, {}, void 0, children);
|
|
16
|
+
};
|
|
14
17
|
|
|
15
18
|
const props = {
|
|
16
19
|
children: PropTypes.string.isRequired.description('Children')
|
|
@@ -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, withTheme, __UNSAFE_SPACE_TO_DIMSUM, border } from '@elliemae/ds-system';
|
|
7
7
|
|
|
8
8
|
const StyledContainer = /*#__PURE__*/styled(Grid).withConfig({
|
|
@@ -12,14 +12,15 @@ const StyledTitle = /*#__PURE__*/styled.div.withConfig({
|
|
|
12
12
|
componentId: "sc-n7r3qn-1"
|
|
13
13
|
})(["font-weight:", ";font-size:13px;color:", ";", ""], props => props.theme.fontWeights.semibold, props => props.theme.colors.neutral['800'], truncate());
|
|
14
14
|
|
|
15
|
-
const MobileListItem =
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
15
|
+
const MobileListItem = _ref => {
|
|
16
|
+
let {
|
|
17
|
+
leftAddon = null,
|
|
18
|
+
rightAddon = null,
|
|
19
|
+
title = '',
|
|
20
|
+
value = '',
|
|
21
|
+
dataTestid = 'mobile-list-item',
|
|
22
|
+
theme
|
|
23
|
+
} = _ref;
|
|
23
24
|
const cols = [1];
|
|
24
25
|
if (leftAddon) cols.unshift(__UNSAFE_SPACE_TO_DIMSUM(theme.space.m));
|
|
25
26
|
if (rightAddon) cols.push(__UNSAFE_SPACE_TO_DIMSUM(theme.space.m));
|
|
@@ -30,7 +31,7 @@ const MobileListItem = ({
|
|
|
30
31
|
pl: __UNSAFE_SPACE_TO_DIMSUM(theme.space.s),
|
|
31
32
|
pr: __UNSAFE_SPACE_TO_DIMSUM(theme.space.s),
|
|
32
33
|
gutter: "xs",
|
|
33
|
-
"data-testid":
|
|
34
|
+
"data-testid": "".concat(dataTestid, "--").concat(value)
|
|
34
35
|
}, void 0, leftAddon && /*#__PURE__*/_jsx(Grid, {
|
|
35
36
|
alignItems: "center",
|
|
36
37
|
justifyContent: "center"
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
2
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
2
3
|
import React, { useMemo, useState, useCallback } from 'react';
|
|
3
4
|
import { PropTypes, describe } from 'react-desc';
|
|
4
5
|
import styled from 'styled-components';
|
|
5
|
-
import { TruncatedExpandableText } from '@elliemae/ds-
|
|
6
|
-
import { Grid } from '@elliemae/ds-
|
|
6
|
+
import { TruncatedExpandableText } from '@elliemae/ds-truncated-expandable-text';
|
|
7
|
+
import { Grid } from '@elliemae/ds-grid';
|
|
7
8
|
import { truncate, withTheme, __UNSAFE_SPACE_TO_DIMSUM, border } from '@elliemae/ds-system';
|
|
8
|
-
import ChevronSmallDown from '@elliemae/ds-icons
|
|
9
|
-
import DSButton from '@elliemae/ds-
|
|
9
|
+
import { ChevronSmallDown } from '@elliemae/ds-icons';
|
|
10
|
+
import DSButton from '@elliemae/ds-button';
|
|
10
11
|
import MobileSeparator from '../MobileSeparator/Separator.js';
|
|
11
12
|
|
|
12
13
|
var _ChevronSmallDown;
|
|
@@ -21,23 +22,24 @@ const Label = /*#__PURE__*/styled.div.withConfig({
|
|
|
21
22
|
})(["color:", ";", ""], props => props.theme.colors.neutral['500'], truncate());
|
|
22
23
|
const Value = /*#__PURE__*/styled.div.withConfig({
|
|
23
24
|
componentId: "sc-1tfu1y9-3"
|
|
24
|
-
})(["", " color:", ";", " margin-top:", ";"], truncate(), props => props.theme.colors.neutral['600'], props => props.withMarginRight ?
|
|
25
|
+
})(["", " color:", ";", " margin-top:", ";"], truncate(), props => props.theme.colors.neutral['600'], props => props.withMarginRight ? "margin-right: 4px;" : '', props => props.withBreadcrumb ? '12px' : '0');
|
|
25
26
|
const Wrapper = /*#__PURE__*/styled(Grid).withConfig({
|
|
26
27
|
componentId: "sc-1tfu1y9-4"
|
|
27
28
|
})(["border-bottom:", ";"], props => border(props.theme.colors.neutral['300']));
|
|
28
29
|
|
|
29
|
-
const MobilePageHeader =
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
30
|
+
const MobilePageHeader = _ref => {
|
|
31
|
+
let {
|
|
32
|
+
pageTitle = null,
|
|
33
|
+
contextMenu = null,
|
|
34
|
+
firstAction = null,
|
|
35
|
+
secondAction = null,
|
|
36
|
+
backArrow = null,
|
|
37
|
+
breadCrumb = null,
|
|
38
|
+
onOpenContextMenu = () => null,
|
|
39
|
+
value,
|
|
40
|
+
label,
|
|
41
|
+
theme
|
|
42
|
+
} = _ref;
|
|
41
43
|
const hasValue = value === 0 || value;
|
|
42
44
|
const countActions = useMemo(() => {
|
|
43
45
|
let count = 0;
|