@elliemae/ds-mobile 2.0.0-alpha.1 → 2.0.0-alpha.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 +4 -12
- package/cjs/Accordion/index.js +4 -12
- package/cjs/CategoryBox/CategoryBox.js +6 -6
- package/cjs/CollectionBox/CollectionBox.js +11 -11
- package/cjs/FullPageContainer/FullPageContainer.js +2 -2
- package/cjs/FullPageContainer/FullPageContainerScroll.js +2 -2
- package/cjs/GlobalHeader/MobileGlobalHeader.js +9 -9
- package/cjs/GlobalHeader/styles.js +6 -6
- package/cjs/GroupBox/GroupBox.js +6 -6
- package/cjs/Icons/EM_logo.js +4 -4
- package/cjs/InfiniteLoader/Infiniteloader.js +3 -3
- package/cjs/InfiniteLoader/Loader.js +2 -2
- package/cjs/InfiniteLoader/VirtualizedInfiniteLoader.js +3 -3
- package/cjs/InfiniteLoader/styled.js +1 -1
- package/cjs/LoadingPage/Page.js +7 -7
- package/cjs/LoadingPage/index.js +1 -1
- package/cjs/MobileActionToolbar/MobileActionToolbar.js +4 -4
- package/cjs/MobileActionToolbar/MobileActionToolbarItem.js +5 -5
- package/cjs/MobileActionToolbar/index.js +2 -2
- package/cjs/MobileBanner/MobileBanner.js +6 -6
- package/cjs/MobileBanner/styles.js +10 -10
- package/cjs/MobileBanner/utils/icons.js +6 -4
- package/cjs/MobileCard/ActionAddon.js +3 -3
- package/cjs/MobileCard/Card.js +22 -22
- package/cjs/MobileCard/CardIcons.js +3 -3
- package/cjs/MobileCard/ExpandChevron.js +4 -4
- package/cjs/MobileCard/ExpandableRegion.js +3 -3
- package/cjs/MobileCard/Group.js +8 -8
- package/cjs/MobileCard/StyledCard.js +1 -1
- package/cjs/MobileCard/index.js +3 -3
- package/cjs/MobileContextMenu/MobileContextMenu.js +23 -24
- package/cjs/MobileContextMenu/MobileContextMenuGroup.js +4 -4
- package/cjs/MobileContextMenu/MobileContextMenuItem.js +16 -16
- package/cjs/MobileDatePicker/Input.js +3 -3
- package/cjs/MobileDatePicker/MobileDatePicker.js +4 -4
- package/cjs/MobileDropdownMenu/MobileDropdownInput.js +7 -7
- package/cjs/MobileDropdownMenu/MobileDropdownMenu.js +5 -5
- package/cjs/MobileEmtpyState/MobileEmptyState.js +4 -4
- package/cjs/MobileEmtpyState/index.js +1 -1
- package/cjs/MobileFilterbar/Filterbar.js +4 -4
- package/cjs/MobileFilterbar/FilterbarItem.js +1 -1
- package/cjs/MobileFilterbar/FilterbarSort.js +3 -3
- package/cjs/MobileFooter/Action.js +6 -6
- package/cjs/MobileFooter/Footer.js +6 -6
- package/cjs/MobileFooter/Text.js +2 -2
- package/cjs/MobileFooter/index.js +1 -1
- package/cjs/MobileListItem/MobileListItem.js +6 -6
- package/cjs/MobilePageHeader/MobilePageHeader.js +28 -28
- package/cjs/MobileSelectList/MobileSelectList.js +12 -12
- package/cjs/MobileSelectList/styled.js +7 -7
- package/cjs/MobileSeparator/Separator.js +3 -3
- package/cjs/MobileSeparator/index.js +1 -1
- package/cjs/MobileTimePicker/Input.js +3 -3
- package/cjs/MobileTimePicker/MobileTimePicker.js +4 -4
- package/cjs/MobileTimePicker/MobileTimePicker.stories.js +3 -3
- package/cjs/MobileTouchable/MobileTouchable.js +3 -3
- package/cjs/Modal/Modal.js +14 -14
- package/cjs/Modal/styled.js +6 -6
- package/cjs/PageFilter/PageFilter.js +14 -14
- package/cjs/PageForm/PageForm.js +4 -4
- package/cjs/PageList/PageList.js +3 -3
- package/cjs/PageSearch/PageSearch.js +4 -4
- package/cjs/PageSummary/PageSummary.js +4 -4
- package/cjs/PageSummary/Tags.js +4 -4
- package/cjs/SideNav/SideNav.js +15 -15
- package/cjs/SideNav/styles.js +8 -8
- package/cjs/SwipeToRefresh/ProgressIndicator.js +4 -4
- package/cjs/SwipeToRefresh/ProgressLoader.js +37 -37
- package/cjs/SwipeToRefresh/SwipeToRefresh.js +4 -4
- package/cjs/SwipeToRefresh/styled.js +4 -4
- package/cjs/Tabs/index.js +3 -3
- package/cjs/index.js +6 -14
- package/esm/MobileBanner/utils/icons.js +2 -1
- package/esm/MobileContextMenu/MobileContextMenu.js +9 -10
- package/package.json +1 -1
- package/types/MobileTimePicker/MobileTimePicker.stories.d.ts +1 -0
|
@@ -8,25 +8,17 @@ var Accordion = require('@elliemae/ds-basic/Accordion');
|
|
|
8
8
|
|
|
9
9
|
Object.defineProperty(exports, 'DSMobileAccordion', {
|
|
10
10
|
enumerable: true,
|
|
11
|
-
get: function () {
|
|
12
|
-
return Accordion.DSAccordion;
|
|
13
|
-
}
|
|
11
|
+
get: function () { return Accordion.DSAccordion; }
|
|
14
12
|
});
|
|
15
13
|
Object.defineProperty(exports, 'DSMobileAccordionItem', {
|
|
16
14
|
enumerable: true,
|
|
17
|
-
get: function () {
|
|
18
|
-
return Accordion.DSAccordionItem;
|
|
19
|
-
}
|
|
15
|
+
get: function () { return Accordion.DSAccordionItem; }
|
|
20
16
|
});
|
|
21
17
|
Object.defineProperty(exports, 'DSMobileAccordionItemWithSchema', {
|
|
22
18
|
enumerable: true,
|
|
23
|
-
get: function () {
|
|
24
|
-
return Accordion.DSAccordionItemWithSchema;
|
|
25
|
-
}
|
|
19
|
+
get: function () { return Accordion.DSAccordionItemWithSchema; }
|
|
26
20
|
});
|
|
27
21
|
Object.defineProperty(exports, 'DSMobileAccordionWithSchema', {
|
|
28
22
|
enumerable: true,
|
|
29
|
-
get: function () {
|
|
30
|
-
return Accordion.DSAccordionWithSchema;
|
|
31
|
-
}
|
|
23
|
+
get: function () { return Accordion.DSAccordionWithSchema; }
|
|
32
24
|
});
|
package/cjs/Accordion/index.js
CHANGED
|
@@ -8,25 +8,17 @@ var Accordion = require('@elliemae/ds-basic/Accordion');
|
|
|
8
8
|
|
|
9
9
|
Object.defineProperty(exports, 'DSMobileAccordion', {
|
|
10
10
|
enumerable: true,
|
|
11
|
-
get: function () {
|
|
12
|
-
return Accordion.DSAccordion;
|
|
13
|
-
}
|
|
11
|
+
get: function () { return Accordion.DSAccordion; }
|
|
14
12
|
});
|
|
15
13
|
Object.defineProperty(exports, 'DSMobileAccordionItem', {
|
|
16
14
|
enumerable: true,
|
|
17
|
-
get: function () {
|
|
18
|
-
return Accordion.DSAccordionItem;
|
|
19
|
-
}
|
|
15
|
+
get: function () { return Accordion.DSAccordionItem; }
|
|
20
16
|
});
|
|
21
17
|
Object.defineProperty(exports, 'DSMobileAccordionItemWithSchema', {
|
|
22
18
|
enumerable: true,
|
|
23
|
-
get: function () {
|
|
24
|
-
return Accordion.DSAccordionItemWithSchema;
|
|
25
|
-
}
|
|
19
|
+
get: function () { return Accordion.DSAccordionItemWithSchema; }
|
|
26
20
|
});
|
|
27
21
|
Object.defineProperty(exports, 'DSMobileAccordionWithSchema', {
|
|
28
22
|
enumerable: true,
|
|
29
|
-
get: function () {
|
|
30
|
-
return Accordion.DSAccordionWithSchema;
|
|
31
|
-
}
|
|
23
|
+
get: function () { return Accordion.DSAccordionWithSchema; }
|
|
32
24
|
});
|
|
@@ -15,10 +15,10 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
15
15
|
var _jsx__default = /*#__PURE__*/_interopDefaultLegacy(_jsx);
|
|
16
16
|
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
17
17
|
|
|
18
|
-
const Title = /*#__PURE__*/styled__default[
|
|
18
|
+
const Title = /*#__PURE__*/styled__default["default"].h3.withConfig({
|
|
19
19
|
componentId: "sc-iv6vo1-0"
|
|
20
20
|
})(["font-size:18px;margin:0;color:", ";line-height:inherit;", " font-weight:", ";"], props => props.theme.colors.neutral['700'], dsSystem.truncate(), props => props.theme.fontWeights.semibold);
|
|
21
|
-
const CategoryBox = /*#__PURE__*/styled__default[
|
|
21
|
+
const CategoryBox = /*#__PURE__*/styled__default["default"](dsBasic.Grid).withConfig({
|
|
22
22
|
componentId: "sc-iv6vo1-1"
|
|
23
23
|
})(["background:", ";border-top:", ";"], props => props.theme.colors.neutral['0'], props => props.borderTop ? `1px solid ${props.theme.colors.neutral['100']}` : 'none');
|
|
24
24
|
|
|
@@ -32,17 +32,17 @@ const DSCategoryBox = ({
|
|
|
32
32
|
const rows = ['auto'];
|
|
33
33
|
const hasActions = actionsRight.length > 0;
|
|
34
34
|
if (hasActions) rows.push('auto');
|
|
35
|
-
return /*#__PURE__*/_jsx__default[
|
|
35
|
+
return /*#__PURE__*/_jsx__default["default"](dsBasic.Grid, {
|
|
36
36
|
rows: ['40px', 'auto']
|
|
37
|
-
}, void 0, /*#__PURE__*/_jsx__default[
|
|
37
|
+
}, void 0, /*#__PURE__*/_jsx__default["default"](CategoryBox, {
|
|
38
38
|
cols: rows,
|
|
39
39
|
borderTop: borderTop,
|
|
40
40
|
alignItems: "center",
|
|
41
41
|
pl: "xs",
|
|
42
42
|
pr: actionsRight.length > 0 ? 'xxs' : 'xs'
|
|
43
|
-
}, void 0, /*#__PURE__*/_jsx__default[
|
|
43
|
+
}, void 0, /*#__PURE__*/_jsx__default["default"](Title, {
|
|
44
44
|
as: `h${headerLevel}`
|
|
45
|
-
}, void 0, title), hasActions && /*#__PURE__*/_jsx__default[
|
|
45
|
+
}, void 0, title), hasActions && /*#__PURE__*/_jsx__default["default"](dsBasic.Grid, {
|
|
46
46
|
cols: lodash.times(actionsRight.length, () => 'auto'),
|
|
47
47
|
justifySelf: "end"
|
|
48
48
|
}, void 0, actionsRight)), children);
|
|
@@ -14,19 +14,19 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
14
14
|
var _jsx__default = /*#__PURE__*/_interopDefaultLegacy(_jsx);
|
|
15
15
|
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
16
16
|
|
|
17
|
-
const CollectionBox = /*#__PURE__*/styled__default[
|
|
17
|
+
const CollectionBox = /*#__PURE__*/styled__default["default"](Grid.Grid).withConfig({
|
|
18
18
|
componentId: "sc-z729w4-0"
|
|
19
19
|
})(["background:", ";font-size:13px;color:", ";font-weight:", ";border-top:1px solid ", ";"], props => props.theme.colors.neutral['000'], props => props.theme.colors.neutral['700'], props => props.theme.fontWeights.semibold, props => props.theme.colors.neutral['100']);
|
|
20
|
-
const Footer = /*#__PURE__*/styled__default[
|
|
20
|
+
const Footer = /*#__PURE__*/styled__default["default"](Grid.Grid).withConfig({
|
|
21
21
|
componentId: "sc-z729w4-1"
|
|
22
22
|
})(["border-top:1px dashed ", ";"], props => props.theme.colors.neutral['100']);
|
|
23
|
-
const Body = /*#__PURE__*/styled__default[
|
|
23
|
+
const Body = /*#__PURE__*/styled__default["default"](Grid.Grid).withConfig({
|
|
24
24
|
componentId: "sc-z729w4-2"
|
|
25
25
|
})(["min-height:92px;font-weight:", ";"], props => props.theme.fontWeights.regular);
|
|
26
|
-
const Header = /*#__PURE__*/styled__default[
|
|
26
|
+
const Header = /*#__PURE__*/styled__default["default"].h3.withConfig({
|
|
27
27
|
componentId: "sc-z729w4-3"
|
|
28
28
|
})(["line-height:unset;font-size:inherit;font-weight:inherit;margin:0;", "}"], dsSystem.truncate());
|
|
29
|
-
const ActionWrap = /*#__PURE__*/styled__default[
|
|
29
|
+
const ActionWrap = /*#__PURE__*/styled__default["default"](Grid.Grid).withConfig({
|
|
30
30
|
componentId: "sc-z729w4-4"
|
|
31
31
|
})(["& .em-ds-button{padding:0;min-width:unset;}"]);
|
|
32
32
|
|
|
@@ -46,19 +46,19 @@ const DSCollectionBox = ({
|
|
|
46
46
|
if (headerAction) headerCols.push('auto');
|
|
47
47
|
if (title) headerCols.push('auto');
|
|
48
48
|
if (footerAction) footerCols.push('auto');
|
|
49
|
-
return /*#__PURE__*/_jsx__default[
|
|
49
|
+
return /*#__PURE__*/_jsx__default["default"](CollectionBox, {
|
|
50
50
|
rows: rows
|
|
51
|
-
}, void 0, /*#__PURE__*/_jsx__default[
|
|
51
|
+
}, void 0, /*#__PURE__*/_jsx__default["default"](Grid.Grid, {
|
|
52
52
|
alignItems: "center",
|
|
53
53
|
cols: headerCols
|
|
54
|
-
}, void 0, title && /*#__PURE__*/_jsx__default[
|
|
54
|
+
}, void 0, title && /*#__PURE__*/_jsx__default["default"](Header, {
|
|
55
55
|
as: `h${headerLevel}`
|
|
56
|
-
}, void 0, title), headerAction && /*#__PURE__*/_jsx__default[
|
|
56
|
+
}, void 0, title), headerAction && /*#__PURE__*/_jsx__default["default"](ActionWrap, {
|
|
57
57
|
justifySelf: "end"
|
|
58
|
-
}, void 0, headerAction)), /*#__PURE__*/_jsx__default[
|
|
58
|
+
}, void 0, headerAction)), /*#__PURE__*/_jsx__default["default"](Body, {}, void 0, body), footerAction && /*#__PURE__*/_jsx__default["default"](Footer, {
|
|
59
59
|
alignItems: "center",
|
|
60
60
|
cols: footerCols
|
|
61
|
-
}, void 0, /*#__PURE__*/_jsx__default[
|
|
61
|
+
}, void 0, /*#__PURE__*/_jsx__default["default"](ActionWrap, {
|
|
62
62
|
justifySelf: "end"
|
|
63
63
|
}, void 0, footerAction)));
|
|
64
64
|
};
|
|
@@ -18,13 +18,13 @@ const _excluded = ["children"];
|
|
|
18
18
|
|
|
19
19
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
20
20
|
|
|
21
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default[
|
|
21
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
22
22
|
|
|
23
23
|
const DSFullPageContainer = _ref => {
|
|
24
24
|
let {
|
|
25
25
|
children
|
|
26
26
|
} = _ref,
|
|
27
|
-
props = _objectWithoutProperties__default[
|
|
27
|
+
props = _objectWithoutProperties__default["default"](_ref, _excluded);
|
|
28
28
|
|
|
29
29
|
const height = useMobileHeight.useMobileHeight();
|
|
30
30
|
return /*#__PURE__*/jsxRuntime.jsx(dsBasic.Grid, _objectSpread(_objectSpread({
|
|
@@ -17,14 +17,14 @@ const _excluded = ["style", "children"];
|
|
|
17
17
|
|
|
18
18
|
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; }
|
|
19
19
|
|
|
20
|
-
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__default[
|
|
20
|
+
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__default["default"](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
21
|
|
|
22
22
|
const DSFullPageContainerScroll = _ref => {
|
|
23
23
|
let {
|
|
24
24
|
style = {},
|
|
25
25
|
children
|
|
26
26
|
} = _ref,
|
|
27
|
-
props = _objectWithoutProperties__default[
|
|
27
|
+
props = _objectWithoutProperties__default["default"](_ref, _excluded);
|
|
28
28
|
|
|
29
29
|
return /*#__PURE__*/jsxRuntime.jsx(dsBasic.Grid, _objectSpread(_objectSpread({
|
|
30
30
|
maxHeight: "100%",
|
|
@@ -29,7 +29,7 @@ var _span;
|
|
|
29
29
|
|
|
30
30
|
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; }
|
|
31
31
|
|
|
32
|
-
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__default[
|
|
32
|
+
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__default["default"](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; }
|
|
33
33
|
|
|
34
34
|
const DSGlobalHeader = ({
|
|
35
35
|
containerProps = {},
|
|
@@ -68,26 +68,26 @@ const DSGlobalHeader = ({
|
|
|
68
68
|
"data-testid": containerProps['data-testid'] || 'global-header-wrapper'
|
|
69
69
|
}, containerProps), {}, {
|
|
70
70
|
children: !searchBarVisible ? /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
71
|
-
children: /*#__PURE__*/_jsx__default[
|
|
71
|
+
children: /*#__PURE__*/_jsx__default["default"](styles.MainSection, {}, void 0, /*#__PURE__*/_jsx__default["default"](styles.Icon, {
|
|
72
72
|
onClick: menuToggle.bind(null, true)
|
|
73
|
-
}, void 0, EM_logo()), /*#__PURE__*/_jsx__default[
|
|
73
|
+
}, void 0, EM_logo()), /*#__PURE__*/_jsx__default["default"](styles.Label, {}, void 0, title), _span || (_span = /*#__PURE__*/_jsx__default["default"]("span", {})), /*#__PURE__*/_jsx__default["default"](styles.RightSection, {}, void 0, /*#__PURE__*/_jsx__default["default"](Grid.Grid, {
|
|
74
74
|
cols: lastIcon ? [1 / 2, 1 / 2] : [1],
|
|
75
75
|
gutter: "xs"
|
|
76
|
-
}, void 0, /*#__PURE__*/_jsx__default[
|
|
76
|
+
}, void 0, /*#__PURE__*/_jsx__default["default"](Grid.Grid, {}, void 0, /*#__PURE__*/_jsx__default["default"](Search__default["default"], {
|
|
77
77
|
"data-testid": "mobile-global-header-search",
|
|
78
78
|
size: Icon.DSIconSizes.M,
|
|
79
79
|
color: Icon.DSIconColors.WHITE,
|
|
80
80
|
onClick: searchClicked
|
|
81
|
-
})), lastIcon && /*#__PURE__*/_jsx__default[
|
|
82
|
-
}) : /*#__PURE__*/_jsx__default[
|
|
81
|
+
})), lastIcon && /*#__PURE__*/_jsx__default["default"](Grid.Grid, {}, void 0, lastIcon))))
|
|
82
|
+
}) : /*#__PURE__*/_jsx__default["default"](styles.SearchWrapper, {}, void 0, /*#__PURE__*/_jsx__default["default"](DSInput__default["default"], {
|
|
83
83
|
clearable: true,
|
|
84
84
|
className: "dsInput",
|
|
85
85
|
placeholder: "Search here",
|
|
86
86
|
onChange: searchValueChanged,
|
|
87
|
-
rightComponent: /*#__PURE__*/_jsx__default[
|
|
87
|
+
rightComponent: /*#__PURE__*/_jsx__default["default"](DSButton__default["default"], {
|
|
88
88
|
buttonType: "primary",
|
|
89
89
|
className: "dsButton",
|
|
90
|
-
icon: /*#__PURE__*/_jsx__default[
|
|
90
|
+
icon: /*#__PURE__*/_jsx__default["default"](Search__default["default"], {
|
|
91
91
|
size: Icon.DSIconSizes.M,
|
|
92
92
|
color: Icon.DSIconColors.WHITE,
|
|
93
93
|
onClick: searchCloseClicked
|
|
@@ -96,7 +96,7 @@ const DSGlobalHeader = ({
|
|
|
96
96
|
value: searchValue,
|
|
97
97
|
variant: "variant-active"
|
|
98
98
|
}))
|
|
99
|
-
})), showMenu ? /*#__PURE__*/_jsx__default[
|
|
99
|
+
})), showMenu ? /*#__PURE__*/_jsx__default["default"](SideNav.DSSideNav, {
|
|
100
100
|
title: title,
|
|
101
101
|
menuItems: topMenuItems,
|
|
102
102
|
bottomMenuItems: bottomMenuItems,
|
|
@@ -9,7 +9,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
9
9
|
|
|
10
10
|
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
11
11
|
|
|
12
|
-
const Container = /*#__PURE__*/styled__default[
|
|
12
|
+
const Container = /*#__PURE__*/styled__default["default"].header.withConfig({
|
|
13
13
|
componentId: "sc-1nzpklc-0"
|
|
14
14
|
})(["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']);
|
|
15
15
|
const growLeft = dsSystem.kfrm`
|
|
@@ -20,21 +20,21 @@ const growLeft = dsSystem.kfrm`
|
|
|
20
20
|
width: 100%;
|
|
21
21
|
}
|
|
22
22
|
`;
|
|
23
|
-
const SearchWrapper = /*#__PURE__*/styled__default[
|
|
23
|
+
const SearchWrapper = /*#__PURE__*/styled__default["default"].div.withConfig({
|
|
24
24
|
componentId: "sc-1nzpklc-1"
|
|
25
25
|
})(["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], dsSystem.css`
|
|
26
26
|
animation: ${growLeft} 1s;
|
|
27
27
|
`, 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']);
|
|
28
|
-
const Icon = /*#__PURE__*/styled__default[
|
|
28
|
+
const Icon = /*#__PURE__*/styled__default["default"].div.withConfig({
|
|
29
29
|
componentId: "sc-1nzpklc-2"
|
|
30
30
|
})(["margin-right:", ";"], props => props.theme.space.xs);
|
|
31
|
-
const Label = /*#__PURE__*/styled__default[
|
|
31
|
+
const Label = /*#__PURE__*/styled__default["default"].div.withConfig({
|
|
32
32
|
componentId: "sc-1nzpklc-3"
|
|
33
33
|
})(["font-family:", ";font-weight:", ";font-size:25px;line-height:32px;"], props => props.theme.fonts.default, props => props.theme.fontWeights.regular);
|
|
34
|
-
const RightSection = /*#__PURE__*/styled__default[
|
|
34
|
+
const RightSection = /*#__PURE__*/styled__default["default"].div.withConfig({
|
|
35
35
|
componentId: "sc-1nzpklc-4"
|
|
36
36
|
})(["padding-top:5px;"]);
|
|
37
|
-
const MainSection = /*#__PURE__*/styled__default[
|
|
37
|
+
const MainSection = /*#__PURE__*/styled__default["default"].div.withConfig({
|
|
38
38
|
componentId: "sc-1nzpklc-5"
|
|
39
39
|
})(["display:flex;flex-direction:row;height:32px;span{flex-grow:1;}"]);
|
|
40
40
|
|
package/cjs/GroupBox/GroupBox.js
CHANGED
|
@@ -15,10 +15,10 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
15
15
|
var _jsx__default = /*#__PURE__*/_interopDefaultLegacy(_jsx);
|
|
16
16
|
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
17
17
|
|
|
18
|
-
const Title = /*#__PURE__*/styled__default[
|
|
18
|
+
const Title = /*#__PURE__*/styled__default["default"].h3.withConfig({
|
|
19
19
|
componentId: "sc-1g87w66-0"
|
|
20
20
|
})(["font-size:14px;margin:0;", " color:", ";line-height:inherit;text-transform:capitalize;font-weight:", ";"], dsSystem.truncate(), props => props.theme.colors.neutral['700'], props => props.theme.fontWeights.semibold);
|
|
21
|
-
const GroupBox = /*#__PURE__*/styled__default[
|
|
21
|
+
const GroupBox = /*#__PURE__*/styled__default["default"](dsBasic.Grid).withConfig({
|
|
22
22
|
componentId: "sc-1g87w66-1"
|
|
23
23
|
})(["background:", ";border-top:", ";"], props => props.background === 'grey' ? props.theme.colors.neutral['050'] : props.theme.colors.neutral['000'], props => props.borderTop ? `1px solid ${props.theme.colors.neutral['100']}` : 'none');
|
|
24
24
|
|
|
@@ -33,18 +33,18 @@ const DSGroupBox = ({
|
|
|
33
33
|
const rows = ['auto'];
|
|
34
34
|
const hasActions = actionsRight.length > 0;
|
|
35
35
|
if (hasActions) rows.push('auto');
|
|
36
|
-
return /*#__PURE__*/_jsx__default[
|
|
36
|
+
return /*#__PURE__*/_jsx__default["default"](dsBasic.Grid, {
|
|
37
37
|
rows: ['32px', 'auto']
|
|
38
|
-
}, void 0, /*#__PURE__*/_jsx__default[
|
|
38
|
+
}, void 0, /*#__PURE__*/_jsx__default["default"](GroupBox, {
|
|
39
39
|
background: background,
|
|
40
40
|
cols: rows,
|
|
41
41
|
borderTop: borderTop,
|
|
42
42
|
alignItems: "center",
|
|
43
43
|
pl: "xs",
|
|
44
44
|
pr: hasActions ? 'xxs' : 'xs'
|
|
45
|
-
}, void 0, /*#__PURE__*/_jsx__default[
|
|
45
|
+
}, void 0, /*#__PURE__*/_jsx__default["default"](Title, {
|
|
46
46
|
as: `h${headerLevel}`
|
|
47
|
-
}, void 0, title), hasActions && /*#__PURE__*/_jsx__default[
|
|
47
|
+
}, void 0, title), hasActions && /*#__PURE__*/_jsx__default["default"](dsBasic.Grid, {
|
|
48
48
|
cols: lodash.times(actionsRight.length, () => 'auto'),
|
|
49
49
|
justifySelf: "end"
|
|
50
50
|
}, void 0, actionsRight)), children);
|
package/cjs/Icons/EM_logo.js
CHANGED
|
@@ -10,25 +10,25 @@ var _jsx__default = /*#__PURE__*/_interopDefaultLegacy(_jsx);
|
|
|
10
10
|
var _svg;
|
|
11
11
|
|
|
12
12
|
function SvgIcon() {
|
|
13
|
-
return _svg || (_svg = /*#__PURE__*/_jsx__default[
|
|
13
|
+
return _svg || (_svg = /*#__PURE__*/_jsx__default["default"]("svg", {
|
|
14
14
|
width: "32px",
|
|
15
15
|
height: "32px",
|
|
16
16
|
viewBox: "0 0 32 32",
|
|
17
17
|
version: "1.1",
|
|
18
18
|
xmlns: "http://www.w3.org/2000/svg"
|
|
19
|
-
}, void 0, /*#__PURE__*/_jsx__default[
|
|
19
|
+
}, void 0, /*#__PURE__*/_jsx__default["default"]("title", {}, void 0, "em-logo-whitebackground"), /*#__PURE__*/_jsx__default["default"]("g", {
|
|
20
20
|
id: "em-logo-whitebackground",
|
|
21
21
|
stroke: "none",
|
|
22
22
|
strokeWidth: "1",
|
|
23
23
|
fill: "none",
|
|
24
24
|
fillRule: "evenodd"
|
|
25
|
-
}, void 0, /*#__PURE__*/_jsx__default[
|
|
25
|
+
}, void 0, /*#__PURE__*/_jsx__default["default"]("circle", {
|
|
26
26
|
id: "Oval",
|
|
27
27
|
fill: "#FFFFFF",
|
|
28
28
|
cx: "16",
|
|
29
29
|
cy: "16",
|
|
30
30
|
r: "16"
|
|
31
|
-
}), /*#__PURE__*/_jsx__default[
|
|
31
|
+
}), /*#__PURE__*/_jsx__default["default"]("image", {
|
|
32
32
|
id: "Encompass_ICON_COLOR",
|
|
33
33
|
width: "32",
|
|
34
34
|
height: "32",
|
|
@@ -57,13 +57,13 @@ const InfiniteLoader = ({
|
|
|
57
57
|
(_observer$current2 = observer.current) === null || _observer$current2 === void 0 ? void 0 : _observer$current2.disconnect();
|
|
58
58
|
};
|
|
59
59
|
}, [target, observer, fetchData]);
|
|
60
|
-
return /*#__PURE__*/_jsx__default[
|
|
60
|
+
return /*#__PURE__*/_jsx__default["default"](dsBasic.Grid, {
|
|
61
61
|
style: {
|
|
62
62
|
position: 'relative',
|
|
63
63
|
height,
|
|
64
64
|
overflow: 'hidden'
|
|
65
65
|
}
|
|
66
|
-
}, void 0, /*#__PURE__*/_jsx__default[
|
|
66
|
+
}, void 0, /*#__PURE__*/_jsx__default["default"](dsBasic.Grid, {
|
|
67
67
|
style: {
|
|
68
68
|
overflow: isFetching ? 'hidden' : 'auto',
|
|
69
69
|
height
|
|
@@ -73,7 +73,7 @@ const InfiniteLoader = ({
|
|
|
73
73
|
style: {
|
|
74
74
|
height: 1
|
|
75
75
|
}
|
|
76
|
-
})), /*#__PURE__*/_jsx__default[
|
|
76
|
+
})), /*#__PURE__*/_jsx__default["default"](Loader.Loader, {
|
|
77
77
|
isOpen: isFetching
|
|
78
78
|
}));
|
|
79
79
|
};
|
|
@@ -15,9 +15,9 @@ var DSIndeterminateProgressIndicator__default = /*#__PURE__*/_interopDefaultLega
|
|
|
15
15
|
var _DSIndeterminateProgr;
|
|
16
16
|
const Loader = ({
|
|
17
17
|
isOpen
|
|
18
|
-
}) => /*#__PURE__*/_jsx__default[
|
|
18
|
+
}) => /*#__PURE__*/_jsx__default["default"](styled.LoaderBox, {
|
|
19
19
|
className: isOpen && 'opened'
|
|
20
|
-
}, void 0, _DSIndeterminateProgr || (_DSIndeterminateProgr = /*#__PURE__*/_jsx__default[
|
|
20
|
+
}, void 0, _DSIndeterminateProgr || (_DSIndeterminateProgr = /*#__PURE__*/_jsx__default["default"](DSIndeterminateProgressIndicator__default["default"], {
|
|
21
21
|
processing: true,
|
|
22
22
|
title: "Loading"
|
|
23
23
|
})));
|
|
@@ -30,11 +30,11 @@ const VirtualizedInfiniteLoader = ({
|
|
|
30
30
|
return loadMoreItems(startIndex, stopIndex);
|
|
31
31
|
};
|
|
32
32
|
|
|
33
|
-
return /*#__PURE__*/_jsx__default[
|
|
33
|
+
return /*#__PURE__*/_jsx__default["default"]("div", {
|
|
34
34
|
style: {
|
|
35
35
|
position: 'relative'
|
|
36
36
|
}
|
|
37
|
-
}, void 0, /*#__PURE__*/_jsx__default[
|
|
37
|
+
}, void 0, /*#__PURE__*/_jsx__default["default"](RWInfiniteLoader__default["default"], {
|
|
38
38
|
isItemLoaded: isItemLoaded,
|
|
39
39
|
itemCount: itemCount,
|
|
40
40
|
loadMoreItems: loadMore
|
|
@@ -50,7 +50,7 @@ const VirtualizedInfiniteLoader = ({
|
|
|
50
50
|
ref: ref,
|
|
51
51
|
width: "100%",
|
|
52
52
|
children: Row
|
|
53
|
-
})), moreItemsLoading && /*#__PURE__*/_jsx__default[
|
|
53
|
+
})), moreItemsLoading && /*#__PURE__*/_jsx__default["default"]("div", {
|
|
54
54
|
style: {
|
|
55
55
|
position: 'absolute',
|
|
56
56
|
bottom: 0,
|
|
@@ -8,7 +8,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
8
8
|
|
|
9
9
|
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
10
10
|
|
|
11
|
-
const LoaderBox = /*#__PURE__*/styled__default[
|
|
11
|
+
const LoaderBox = /*#__PURE__*/styled__default["default"].div.withConfig({
|
|
12
12
|
componentId: "sc-ejumr4-0"
|
|
13
13
|
})(["position:absolute;width:100%;z-index:10;background-color:white;height:50px;bottom:-50px;border-top:1px solid #e0e3e8;align-items:center;transition:400ms cubic-bezier(0,0,0.42,1);&.opened{transition:400ms cubic-bezier(0.36,0,1,1);bottom:0;}"]);
|
|
14
14
|
|
package/cjs/LoadingPage/Page.js
CHANGED
|
@@ -21,8 +21,8 @@ var Backdrop__default = /*#__PURE__*/_interopDefaultLegacy(Backdrop);
|
|
|
21
21
|
|
|
22
22
|
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; }
|
|
23
23
|
|
|
24
|
-
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__default[
|
|
25
|
-
const LoadingPageLoader = /*#__PURE__*/styled__default[
|
|
24
|
+
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__default["default"](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; }
|
|
25
|
+
const LoadingPageLoader = /*#__PURE__*/styled__default["default"].div.withConfig({
|
|
26
26
|
componentId: "sc-wx0z8k-0"
|
|
27
27
|
})(["", ";z-index:", ";top:25%;left:15%;width:70%;height:75%;display:flex;flex-direction:column;align-items:center;"], ({
|
|
28
28
|
type
|
|
@@ -45,26 +45,26 @@ const LoadingPage = ({
|
|
|
45
45
|
}
|
|
46
46
|
}, [childRef]);
|
|
47
47
|
|
|
48
|
-
const Back = loading && /*#__PURE__*/_jsx__default[
|
|
48
|
+
const Back = loading && /*#__PURE__*/_jsx__default["default"](Backdrop__default["default"], {
|
|
49
49
|
type: type,
|
|
50
50
|
zIndex: backdropZIndex
|
|
51
51
|
});
|
|
52
52
|
|
|
53
|
-
const Loader = loader && loading && /*#__PURE__*/_jsx__default[
|
|
53
|
+
const Loader = loader && loading && /*#__PURE__*/_jsx__default["default"](LoadingPageLoader, {
|
|
54
54
|
zIndex: zIndex,
|
|
55
55
|
type: type,
|
|
56
56
|
hide: !loading
|
|
57
57
|
}, void 0, loader);
|
|
58
58
|
|
|
59
|
-
const injectRefPosition = child => /*#__PURE__*/React__default[
|
|
59
|
+
const injectRefPosition = child => /*#__PURE__*/React__default["default"].cloneElement(React__default["default"].Children.only(child), {
|
|
60
60
|
ref: childRef,
|
|
61
|
-
children: React__default[
|
|
61
|
+
children: React__default["default"].Children.toArray(child.props.children).concat([Loader, Back]),
|
|
62
62
|
style: _objectSpread(_objectSpread({}, lodash.get(child, 'props.style', {})), {}, {
|
|
63
63
|
position: position === 'static' ? 'relative' : position
|
|
64
64
|
})
|
|
65
65
|
});
|
|
66
66
|
|
|
67
|
-
if (React__default[
|
|
67
|
+
if (React__default["default"].Children.count(children) === 0) {
|
|
68
68
|
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
69
69
|
children: [Loader, Back]
|
|
70
70
|
});
|
package/cjs/LoadingPage/index.js
CHANGED
|
@@ -15,7 +15,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
15
15
|
var _jsx__default = /*#__PURE__*/_interopDefaultLegacy(_jsx);
|
|
16
16
|
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
17
17
|
|
|
18
|
-
const ToolStrip = /*#__PURE__*/styled__default[
|
|
18
|
+
const ToolStrip = /*#__PURE__*/styled__default["default"](Grid.Grid).withConfig({
|
|
19
19
|
componentId: "sc-162vd15-0"
|
|
20
20
|
})(["display:flex;justify-content:space-around;align-items:center;background-color:", ";"], props => props.theme.colors.neutral['000']);
|
|
21
21
|
|
|
@@ -31,7 +31,7 @@ const Toolbar = ({
|
|
|
31
31
|
} : {
|
|
32
32
|
boxShadow: 'none'
|
|
33
33
|
};
|
|
34
|
-
return /*#__PURE__*/_jsx__default[
|
|
34
|
+
return /*#__PURE__*/_jsx__default["default"](ToolStrip, {
|
|
35
35
|
rows: rows,
|
|
36
36
|
height: toolbarHeight,
|
|
37
37
|
style: borderStyle
|
|
@@ -49,6 +49,6 @@ const DSMobileActionToolbar = dsSystem.withTheme(Toolbar);
|
|
|
49
49
|
const DSMobileActionToolbarWithSchema = reactDesc.describe(DSMobileActionToolbar);
|
|
50
50
|
DSMobileActionToolbarWithSchema.propTypes = props;
|
|
51
51
|
|
|
52
|
-
exports.ToolbarItem = MobileActionToolbarItem[
|
|
52
|
+
exports.ToolbarItem = MobileActionToolbarItem["default"];
|
|
53
53
|
exports.DSMobileActionToolbarWithSchema = DSMobileActionToolbarWithSchema;
|
|
54
|
-
exports[
|
|
54
|
+
exports["default"] = DSMobileActionToolbar;
|
|
@@ -20,18 +20,18 @@ const _excluded = ["icon"];
|
|
|
20
20
|
|
|
21
21
|
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; }
|
|
22
22
|
|
|
23
|
-
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__default[
|
|
23
|
+
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__default["default"](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; }
|
|
24
24
|
|
|
25
25
|
const ToolbarItem = _ref => {
|
|
26
26
|
let {
|
|
27
27
|
icon
|
|
28
28
|
} = _ref,
|
|
29
|
-
otherProps = _objectWithoutProperties__default[
|
|
29
|
+
otherProps = _objectWithoutProperties__default["default"](_ref, _excluded);
|
|
30
30
|
|
|
31
|
-
const displayIcon = /*#__PURE__*/React__default[
|
|
31
|
+
const displayIcon = /*#__PURE__*/React__default["default"].cloneElement(icon, {
|
|
32
32
|
size: 'm'
|
|
33
33
|
});
|
|
34
|
-
return /*#__PURE__*/jsxRuntime.jsx(DSButton__default[
|
|
34
|
+
return /*#__PURE__*/jsxRuntime.jsx(DSButton__default["default"], _objectSpread(_objectSpread({}, otherProps), {}, {
|
|
35
35
|
buttonType: "text",
|
|
36
36
|
icon: displayIcon,
|
|
37
37
|
size: "m"
|
|
@@ -47,4 +47,4 @@ const DSToolbarItemWithSchema = reactDesc.describe(ToolbarItem);
|
|
|
47
47
|
DSToolbarItemWithSchema.propTypes = props;
|
|
48
48
|
|
|
49
49
|
exports.DSToolbarItemWithSchema = DSToolbarItemWithSchema;
|
|
50
|
-
exports[
|
|
50
|
+
exports["default"] = ToolbarItem;
|
|
@@ -8,6 +8,6 @@ var MobileActionToolbarItem = require('./MobileActionToolbarItem.js');
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
exports.DSMobileActionToolbarWithSchema = MobileActionToolbar.DSMobileActionToolbarWithSchema;
|
|
11
|
-
exports
|
|
11
|
+
exports["default"] = MobileActionToolbar["default"];
|
|
12
12
|
exports.DSToolbarItemWithSchema = MobileActionToolbarItem.DSToolbarItemWithSchema;
|
|
13
|
-
exports.ToolbarItem = MobileActionToolbarItem[
|
|
13
|
+
exports.ToolbarItem = MobileActionToolbarItem["default"];
|
|
@@ -23,7 +23,7 @@ var _CloseX;
|
|
|
23
23
|
|
|
24
24
|
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; }
|
|
25
25
|
|
|
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__default[
|
|
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__default["default"](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; }
|
|
27
27
|
|
|
28
28
|
const DSMobileBanner = ({
|
|
29
29
|
type,
|
|
@@ -73,20 +73,20 @@ const DSMobileBanner = ({
|
|
|
73
73
|
isOpen: isOpen,
|
|
74
74
|
ref: innerContainerRef,
|
|
75
75
|
isAnimating: isAnimating,
|
|
76
|
-
children: [/*#__PURE__*/_jsx__default[
|
|
76
|
+
children: [/*#__PURE__*/_jsx__default["default"](styles.StyledIconContainer, {
|
|
77
77
|
"data-testid": "ds-mobile-banner-icon"
|
|
78
|
-
}, void 0, icons.icons[type]), /*#__PURE__*/_jsx__default[
|
|
78
|
+
}, void 0, icons.icons[type]), /*#__PURE__*/_jsx__default["default"](styles.StyledContent, {
|
|
79
79
|
showCloseButton: showCloseButton
|
|
80
|
-
}, void 0, /*#__PURE__*/_jsx__default[
|
|
80
|
+
}, void 0, /*#__PURE__*/_jsx__default["default"](styles.StyledTitle, {}, void 0, label), /*#__PURE__*/_jsx__default["default"](styles.StyledSubTitle, {}, void 0, body, actionLinkLabel && /*#__PURE__*/_jsx__default["default"](styles.StyledActionLink, {
|
|
81
81
|
href: actionLinkHref,
|
|
82
82
|
"data-testid": "ds-mobile-banner-link",
|
|
83
83
|
onClick: actionLinkOnClick
|
|
84
|
-
}, void 0, actionLinkLabel))), showCloseButton && /*#__PURE__*/_jsx__default[
|
|
84
|
+
}, void 0, actionLinkLabel))), showCloseButton && /*#__PURE__*/_jsx__default["default"](styles.StyledCloseButtonContainer, {}, void 0, /*#__PURE__*/_jsx__default["default"](styles.StyledCloseButton, {
|
|
85
85
|
"data-testid": "ds-mobile-banner-close-button",
|
|
86
86
|
buttonType: "link",
|
|
87
87
|
onClick: closeButtonOnClick,
|
|
88
88
|
"aria-label": "Close Banner",
|
|
89
|
-
icon: _CloseX || (_CloseX = /*#__PURE__*/_jsx__default[
|
|
89
|
+
icon: _CloseX || (_CloseX = /*#__PURE__*/_jsx__default["default"](CloseX__default["default"], {
|
|
90
90
|
width: "12px",
|
|
91
91
|
height: "12px"
|
|
92
92
|
})),
|