@elliemae/ds-modal-slide 2.0.0-next.6 → 2.0.0-rc.1
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/DSModalSlide.js +18 -17
- package/cjs/components/Footer.js +38 -30
- package/cjs/components/Header.js +24 -22
- package/cjs/components/blocks.js +29 -20
- package/esm/DSModalSlide.js +15 -14
- package/esm/components/Footer.js +38 -30
- package/esm/components/Header.js +24 -21
- package/esm/components/blocks.js +29 -20
- package/package.json +8 -7
- package/types/components/Header.d.ts +1 -1
package/cjs/DSModalSlide.js
CHANGED
|
@@ -8,8 +8,8 @@ var React = require('react');
|
|
|
8
8
|
var reactDesc = require('react-desc');
|
|
9
9
|
var ReactDOM = require('react-dom');
|
|
10
10
|
var dsSystem = require('@elliemae/ds-system');
|
|
11
|
-
var
|
|
12
|
-
var DSSeparator = require('@elliemae/ds-
|
|
11
|
+
var dsGrid = require('@elliemae/ds-grid');
|
|
12
|
+
var DSSeparator = require('@elliemae/ds-separator');
|
|
13
13
|
var blocks = require('./components/blocks.js');
|
|
14
14
|
var Header = require('./components/Header.js');
|
|
15
15
|
var Footer = require('./components/Footer.js');
|
|
@@ -23,18 +23,19 @@ var DSSeparator__default = /*#__PURE__*/_interopDefaultLegacy(DSSeparator);
|
|
|
23
23
|
|
|
24
24
|
var _DSSeparator, _DSSeparator2;
|
|
25
25
|
|
|
26
|
-
const DSModalSlide =
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
26
|
+
const DSModalSlide = _ref => {
|
|
27
|
+
let {
|
|
28
|
+
isOpen = false,
|
|
29
|
+
children,
|
|
30
|
+
getContainer,
|
|
31
|
+
centered = false,
|
|
32
|
+
fullWidth = false,
|
|
33
|
+
header = null,
|
|
34
|
+
footer = null,
|
|
35
|
+
fadeOut = 1500,
|
|
36
|
+
fadeIn = 1500,
|
|
37
|
+
overrideHeight = false
|
|
38
|
+
} = _ref;
|
|
38
39
|
const [isMoving, setMoving] = React.useState(false);
|
|
39
40
|
const [show, setShow] = React.useState(isOpen);
|
|
40
41
|
const [width, setWidth] = React.useState(50);
|
|
@@ -93,7 +94,7 @@ const DSModalSlide = ({
|
|
|
93
94
|
classProps: {
|
|
94
95
|
show: isOpen
|
|
95
96
|
}
|
|
96
|
-
}, void 0, /*#__PURE__*/_jsx__default["default"](
|
|
97
|
+
}, void 0, /*#__PURE__*/_jsx__default["default"](dsGrid.Grid, {
|
|
97
98
|
style: {
|
|
98
99
|
height: '100%',
|
|
99
100
|
width: '100%',
|
|
@@ -110,11 +111,11 @@ const DSModalSlide = ({
|
|
|
110
111
|
}), header && (_DSSeparator || (_DSSeparator = /*#__PURE__*/_jsx__default["default"](DSSeparator__default["default"], {
|
|
111
112
|
position: "initial",
|
|
112
113
|
type: "non-form"
|
|
113
|
-
}))), /*#__PURE__*/_jsx__default["default"](
|
|
114
|
+
}))), /*#__PURE__*/_jsx__default["default"](dsGrid.Grid, {
|
|
114
115
|
style: {
|
|
115
116
|
overflow: 'hidden'
|
|
116
117
|
}
|
|
117
|
-
}, void 0, /*#__PURE__*/_jsx__default["default"](
|
|
118
|
+
}, void 0, /*#__PURE__*/_jsx__default["default"](dsGrid.Grid, {
|
|
118
119
|
style: {
|
|
119
120
|
overflow: 'auto'
|
|
120
121
|
}
|
package/cjs/components/Footer.js
CHANGED
|
@@ -2,11 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
require('core-js/modules/esnext.async-iterator.filter.js');
|
|
6
|
+
require('core-js/modules/esnext.iterator.constructor.js');
|
|
7
|
+
require('core-js/modules/esnext.iterator.filter.js');
|
|
8
|
+
require('core-js/modules/esnext.async-iterator.for-each.js');
|
|
9
|
+
require('core-js/modules/esnext.iterator.for-each.js');
|
|
5
10
|
var _jsx = require('@babel/runtime/helpers/jsx');
|
|
6
11
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
7
12
|
require('react');
|
|
8
13
|
var reactDesc = require('react-desc');
|
|
9
|
-
var DSButton = require('@elliemae/ds-
|
|
14
|
+
var DSButton = require('@elliemae/ds-button');
|
|
10
15
|
var blocks = require('./blocks.js');
|
|
11
16
|
var jsxRuntime = require('react/jsx-runtime');
|
|
12
17
|
|
|
@@ -20,36 +25,39 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
20
25
|
|
|
21
26
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__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
27
|
|
|
23
|
-
const ModalFooter =
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
rejectProps = {
|
|
32
|
-
disabled: false
|
|
33
|
-
}
|
|
34
|
-
}) => /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
35
|
-
children: /*#__PURE__*/_jsx__default["default"](blocks.FooterWrapper, {}, void 0, !!onReject && /*#__PURE__*/jsxRuntime.jsx(DSButton__default["default"], _objectSpread({
|
|
36
|
-
buttonType: "secondary",
|
|
37
|
-
className: "action-reject",
|
|
38
|
-
containerProps: {
|
|
39
|
-
'data-testid': 'modal-footer-reject-btn'
|
|
28
|
+
const ModalFooter = _ref => {
|
|
29
|
+
let {
|
|
30
|
+
confirmLabel = 'Confirm',
|
|
31
|
+
rejectLabel = 'Cancel',
|
|
32
|
+
onConfirm,
|
|
33
|
+
onReject,
|
|
34
|
+
confirmProps = {
|
|
35
|
+
disabled: false
|
|
40
36
|
},
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
37
|
+
rejectProps = {
|
|
38
|
+
disabled: false
|
|
39
|
+
}
|
|
40
|
+
} = _ref;
|
|
41
|
+
return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
42
|
+
children: /*#__PURE__*/_jsx__default["default"](blocks.FooterWrapper, {}, void 0, !!onReject && /*#__PURE__*/jsxRuntime.jsx(DSButton__default["default"], _objectSpread({
|
|
43
|
+
buttonType: "secondary",
|
|
44
|
+
className: "action-reject",
|
|
45
|
+
containerProps: {
|
|
46
|
+
'data-testid': 'modal-footer-reject-btn'
|
|
47
|
+
},
|
|
48
|
+
labelText: rejectLabel,
|
|
49
|
+
onClick: onReject
|
|
50
|
+
}, rejectProps)), !!onConfirm && /*#__PURE__*/jsxRuntime.jsx(DSButton__default["default"], _objectSpread({
|
|
51
|
+
buttonType: "primary",
|
|
52
|
+
className: "action-confirm",
|
|
53
|
+
containerProps: {
|
|
54
|
+
'data-testid': 'modal-footer-confirm-btn'
|
|
55
|
+
},
|
|
56
|
+
labelText: confirmLabel,
|
|
57
|
+
onClick: onConfirm
|
|
58
|
+
}, confirmProps)))
|
|
59
|
+
});
|
|
60
|
+
};
|
|
53
61
|
|
|
54
62
|
const props = {
|
|
55
63
|
/**
|
package/cjs/components/Header.js
CHANGED
|
@@ -6,9 +6,9 @@ var _jsx = require('@babel/runtime/helpers/jsx');
|
|
|
6
6
|
require('react');
|
|
7
7
|
var reactDesc = require('react-desc');
|
|
8
8
|
var styled = require('styled-components');
|
|
9
|
-
var DSSeparator = require('@elliemae/ds-
|
|
10
|
-
var
|
|
11
|
-
var DSButton = require('@elliemae/ds-
|
|
9
|
+
var DSSeparator = require('@elliemae/ds-separator');
|
|
10
|
+
var dsIcons = require('@elliemae/ds-icons');
|
|
11
|
+
var DSButton = require('@elliemae/ds-button');
|
|
12
12
|
var blocks = require('./blocks.js');
|
|
13
13
|
|
|
14
14
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -16,30 +16,32 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
16
16
|
var _jsx__default = /*#__PURE__*/_interopDefaultLegacy(_jsx);
|
|
17
17
|
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
18
18
|
var DSSeparator__default = /*#__PURE__*/_interopDefaultLegacy(DSSeparator);
|
|
19
|
-
var Close__default = /*#__PURE__*/_interopDefaultLegacy(Close);
|
|
20
19
|
var DSButton__default = /*#__PURE__*/_interopDefaultLegacy(DSButton);
|
|
21
20
|
|
|
22
21
|
var _StyledSeparator, _Close;
|
|
23
22
|
|
|
24
|
-
const ModalHeader =
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
icon: _Close || (_Close = /*#__PURE__*/_jsx__default["default"](Close__default["default"], {
|
|
23
|
+
const ModalHeader = _ref => {
|
|
24
|
+
let {
|
|
25
|
+
title: headerTitle = '',
|
|
26
|
+
onClose = () => null,
|
|
27
|
+
toolbar = null
|
|
28
|
+
} = _ref;
|
|
29
|
+
return /*#__PURE__*/_jsx__default["default"](HeaderWrapper, {}, void 0, /*#__PURE__*/_jsx__default["default"](blocks.HeaderLeftSide, {}, void 0, /*#__PURE__*/_jsx__default["default"](blocks.Header, {}, void 0, /*#__PURE__*/_jsx__default["default"](blocks.Title, {}, void 0, headerTitle))), toolbar, toolbar && (_StyledSeparator || (_StyledSeparator = /*#__PURE__*/_jsx__default["default"](StyledSeparator, {
|
|
30
|
+
position: "initial",
|
|
31
|
+
margin: "none",
|
|
32
|
+
orientation: "vertical",
|
|
33
|
+
type: "non-form"
|
|
34
|
+
}))), /*#__PURE__*/_jsx__default["default"](StyledCloseButton, {
|
|
35
|
+
"data-testid": "modal-slider-header-close",
|
|
38
36
|
"aria-label": "Close modal slide",
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
37
|
+
buttonType: "text",
|
|
38
|
+
icon: _Close || (_Close = /*#__PURE__*/_jsx__default["default"](dsIcons.Close, {
|
|
39
|
+
"aria-label": "Close modal slide",
|
|
40
|
+
size: "s"
|
|
41
|
+
})),
|
|
42
|
+
onClick: onClose
|
|
43
|
+
}));
|
|
44
|
+
};
|
|
43
45
|
|
|
44
46
|
const HeaderWrapper = /*#__PURE__*/styled__default["default"].div.withConfig({
|
|
45
47
|
componentId: "sc-oxqqo8-0"
|
package/cjs/components/blocks.js
CHANGED
|
@@ -5,26 +5,35 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var dsClassnames = require('@elliemae/ds-classnames');
|
|
6
6
|
|
|
7
7
|
const blockName = 'modal-slide';
|
|
8
|
-
const Wrapper = dsClassnames.aggregatedClasses('div')(blockName, 'wrapper',
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
})
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
})
|
|
8
|
+
const Wrapper = dsClassnames.aggregatedClasses('div')(blockName, 'wrapper', _ref => {
|
|
9
|
+
let {
|
|
10
|
+
show,
|
|
11
|
+
centered
|
|
12
|
+
} = _ref;
|
|
13
|
+
return {
|
|
14
|
+
showing: show,
|
|
15
|
+
disappearing: !show,
|
|
16
|
+
centered
|
|
17
|
+
};
|
|
18
|
+
});
|
|
19
|
+
const Overlay = dsClassnames.aggregatedClasses('div')(blockName, 'overlay', _ref2 => {
|
|
20
|
+
let {
|
|
21
|
+
show
|
|
22
|
+
} = _ref2;
|
|
23
|
+
return {
|
|
24
|
+
showing: show,
|
|
25
|
+
disappearing: !show
|
|
26
|
+
};
|
|
27
|
+
});
|
|
28
|
+
const Content = dsClassnames.aggregatedClasses('div')(blockName, 'content', _ref3 => {
|
|
29
|
+
let {
|
|
30
|
+
show
|
|
31
|
+
} = _ref3;
|
|
32
|
+
return {
|
|
33
|
+
showing: show,
|
|
34
|
+
disappearing: !show
|
|
35
|
+
};
|
|
36
|
+
});
|
|
28
37
|
const Title = dsClassnames.aggregatedClasses('div')(blockName, 'title', () => ({}));
|
|
29
38
|
const BreadcrumTitle = dsClassnames.aggregatedClasses('div')(blockName, 'breadcrum-title', () => ({}));
|
|
30
39
|
const HeaderLeftSide = dsClassnames.aggregatedClasses('div')(blockName, 'header-left-side', () => ({}));
|
package/esm/DSModalSlide.js
CHANGED
|
@@ -4,26 +4,27 @@ import React, { useState, useCallback, useEffect } from 'react';
|
|
|
4
4
|
import { PropTypes, describe } from 'react-desc';
|
|
5
5
|
import ReactDOM from 'react-dom';
|
|
6
6
|
import { useTheme } from '@elliemae/ds-system';
|
|
7
|
-
import { Grid } from '@elliemae/ds-
|
|
8
|
-
import DSSeparator from '@elliemae/ds-
|
|
7
|
+
import { Grid } from '@elliemae/ds-grid';
|
|
8
|
+
import DSSeparator from '@elliemae/ds-separator';
|
|
9
9
|
import { Wrapper, Overlay, Content, ActualContent } from './components/blocks.js';
|
|
10
10
|
export { default as ModalHeader } from './components/Header.js';
|
|
11
11
|
export { default as ModalFooter } from './components/Footer.js';
|
|
12
12
|
|
|
13
13
|
var _DSSeparator, _DSSeparator2;
|
|
14
14
|
|
|
15
|
-
const DSModalSlide =
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
15
|
+
const DSModalSlide = _ref => {
|
|
16
|
+
let {
|
|
17
|
+
isOpen = false,
|
|
18
|
+
children,
|
|
19
|
+
getContainer,
|
|
20
|
+
centered = false,
|
|
21
|
+
fullWidth = false,
|
|
22
|
+
header = null,
|
|
23
|
+
footer = null,
|
|
24
|
+
fadeOut = 1500,
|
|
25
|
+
fadeIn = 1500,
|
|
26
|
+
overrideHeight = false
|
|
27
|
+
} = _ref;
|
|
27
28
|
const [isMoving, setMoving] = useState(false);
|
|
28
29
|
const [show, setShow] = useState(isOpen);
|
|
29
30
|
const [width, setWidth] = useState(50);
|
package/esm/components/Footer.js
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
|
+
import 'core-js/modules/esnext.async-iterator.filter.js';
|
|
2
|
+
import 'core-js/modules/esnext.iterator.constructor.js';
|
|
3
|
+
import 'core-js/modules/esnext.iterator.filter.js';
|
|
4
|
+
import 'core-js/modules/esnext.async-iterator.for-each.js';
|
|
5
|
+
import 'core-js/modules/esnext.iterator.for-each.js';
|
|
1
6
|
import _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 DSButton from '@elliemae/ds-
|
|
10
|
+
import DSButton from '@elliemae/ds-button';
|
|
6
11
|
import { FooterWrapper } from './blocks.js';
|
|
7
12
|
import { jsx, Fragment } from 'react/jsx-runtime';
|
|
8
13
|
|
|
@@ -10,36 +15,39 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
10
15
|
|
|
11
16
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
12
17
|
|
|
13
|
-
const ModalFooter =
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
rejectProps = {
|
|
22
|
-
disabled: false
|
|
23
|
-
}
|
|
24
|
-
}) => /*#__PURE__*/jsx(Fragment, {
|
|
25
|
-
children: /*#__PURE__*/_jsx(FooterWrapper, {}, void 0, !!onReject && /*#__PURE__*/jsx(DSButton, _objectSpread({
|
|
26
|
-
buttonType: "secondary",
|
|
27
|
-
className: "action-reject",
|
|
28
|
-
containerProps: {
|
|
29
|
-
'data-testid': 'modal-footer-reject-btn'
|
|
18
|
+
const ModalFooter = _ref => {
|
|
19
|
+
let {
|
|
20
|
+
confirmLabel = 'Confirm',
|
|
21
|
+
rejectLabel = 'Cancel',
|
|
22
|
+
onConfirm,
|
|
23
|
+
onReject,
|
|
24
|
+
confirmProps = {
|
|
25
|
+
disabled: false
|
|
30
26
|
},
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
27
|
+
rejectProps = {
|
|
28
|
+
disabled: false
|
|
29
|
+
}
|
|
30
|
+
} = _ref;
|
|
31
|
+
return /*#__PURE__*/jsx(Fragment, {
|
|
32
|
+
children: /*#__PURE__*/_jsx(FooterWrapper, {}, void 0, !!onReject && /*#__PURE__*/jsx(DSButton, _objectSpread({
|
|
33
|
+
buttonType: "secondary",
|
|
34
|
+
className: "action-reject",
|
|
35
|
+
containerProps: {
|
|
36
|
+
'data-testid': 'modal-footer-reject-btn'
|
|
37
|
+
},
|
|
38
|
+
labelText: rejectLabel,
|
|
39
|
+
onClick: onReject
|
|
40
|
+
}, rejectProps)), !!onConfirm && /*#__PURE__*/jsx(DSButton, _objectSpread({
|
|
41
|
+
buttonType: "primary",
|
|
42
|
+
className: "action-confirm",
|
|
43
|
+
containerProps: {
|
|
44
|
+
'data-testid': 'modal-footer-confirm-btn'
|
|
45
|
+
},
|
|
46
|
+
labelText: confirmLabel,
|
|
47
|
+
onClick: onConfirm
|
|
48
|
+
}, confirmProps)))
|
|
49
|
+
});
|
|
50
|
+
};
|
|
43
51
|
|
|
44
52
|
const props = {
|
|
45
53
|
/**
|
package/esm/components/Header.js
CHANGED
|
@@ -2,32 +2,35 @@ 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 DSSeparator from '@elliemae/ds-
|
|
6
|
-
import Close from '@elliemae/ds-icons
|
|
7
|
-
import DSButton from '@elliemae/ds-
|
|
5
|
+
import DSSeparator from '@elliemae/ds-separator';
|
|
6
|
+
import { Close } from '@elliemae/ds-icons';
|
|
7
|
+
import DSButton from '@elliemae/ds-button';
|
|
8
8
|
import { HeaderLeftSide, Header, Title } from './blocks.js';
|
|
9
9
|
|
|
10
10
|
var _StyledSeparator, _Close;
|
|
11
11
|
|
|
12
|
-
const ModalHeader =
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
icon: _Close || (_Close = /*#__PURE__*/_jsx(Close, {
|
|
12
|
+
const ModalHeader = _ref => {
|
|
13
|
+
let {
|
|
14
|
+
title: headerTitle = '',
|
|
15
|
+
onClose = () => null,
|
|
16
|
+
toolbar = null
|
|
17
|
+
} = _ref;
|
|
18
|
+
return /*#__PURE__*/_jsx(HeaderWrapper, {}, void 0, /*#__PURE__*/_jsx(HeaderLeftSide, {}, void 0, /*#__PURE__*/_jsx(Header, {}, void 0, /*#__PURE__*/_jsx(Title, {}, void 0, headerTitle))), toolbar, toolbar && (_StyledSeparator || (_StyledSeparator = /*#__PURE__*/_jsx(StyledSeparator, {
|
|
19
|
+
position: "initial",
|
|
20
|
+
margin: "none",
|
|
21
|
+
orientation: "vertical",
|
|
22
|
+
type: "non-form"
|
|
23
|
+
}))), /*#__PURE__*/_jsx(StyledCloseButton, {
|
|
24
|
+
"data-testid": "modal-slider-header-close",
|
|
26
25
|
"aria-label": "Close modal slide",
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
26
|
+
buttonType: "text",
|
|
27
|
+
icon: _Close || (_Close = /*#__PURE__*/_jsx(Close, {
|
|
28
|
+
"aria-label": "Close modal slide",
|
|
29
|
+
size: "s"
|
|
30
|
+
})),
|
|
31
|
+
onClick: onClose
|
|
32
|
+
}));
|
|
33
|
+
};
|
|
31
34
|
|
|
32
35
|
const HeaderWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
33
36
|
componentId: "sc-oxqqo8-0"
|
package/esm/components/blocks.js
CHANGED
|
@@ -1,26 +1,35 @@
|
|
|
1
1
|
import { aggregatedClasses } from '@elliemae/ds-classnames';
|
|
2
2
|
|
|
3
3
|
const blockName = 'modal-slide';
|
|
4
|
-
const Wrapper = aggregatedClasses('div')(blockName, 'wrapper',
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
})
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
})
|
|
4
|
+
const Wrapper = aggregatedClasses('div')(blockName, 'wrapper', _ref => {
|
|
5
|
+
let {
|
|
6
|
+
show,
|
|
7
|
+
centered
|
|
8
|
+
} = _ref;
|
|
9
|
+
return {
|
|
10
|
+
showing: show,
|
|
11
|
+
disappearing: !show,
|
|
12
|
+
centered
|
|
13
|
+
};
|
|
14
|
+
});
|
|
15
|
+
const Overlay = aggregatedClasses('div')(blockName, 'overlay', _ref2 => {
|
|
16
|
+
let {
|
|
17
|
+
show
|
|
18
|
+
} = _ref2;
|
|
19
|
+
return {
|
|
20
|
+
showing: show,
|
|
21
|
+
disappearing: !show
|
|
22
|
+
};
|
|
23
|
+
});
|
|
24
|
+
const Content = aggregatedClasses('div')(blockName, 'content', _ref3 => {
|
|
25
|
+
let {
|
|
26
|
+
show
|
|
27
|
+
} = _ref3;
|
|
28
|
+
return {
|
|
29
|
+
showing: show,
|
|
30
|
+
disappearing: !show
|
|
31
|
+
};
|
|
32
|
+
});
|
|
24
33
|
const Title = aggregatedClasses('div')(blockName, 'title', () => ({}));
|
|
25
34
|
const BreadcrumTitle = aggregatedClasses('div')(blockName, 'breadcrum-title', () => ({}));
|
|
26
35
|
const HeaderLeftSide = aggregatedClasses('div')(blockName, 'header-left-side', () => ({}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-modal-slide",
|
|
3
|
-
"version": "2.0.0-
|
|
3
|
+
"version": "2.0.0-rc.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Modal Slide",
|
|
6
6
|
"module": "./esm/index.js",
|
|
@@ -48,20 +48,21 @@
|
|
|
48
48
|
"build": "node ../../scripts/build/build.js"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@elliemae/ds-basic": "2.0.0-
|
|
52
|
-
"@elliemae/ds-classnames": "2.0.0-
|
|
51
|
+
"@elliemae/ds-basic": "2.0.0-rc.1",
|
|
52
|
+
"@elliemae/ds-classnames": "2.0.0-rc.1",
|
|
53
|
+
"@elliemae/ds-icons": "2.0.0-rc.1",
|
|
54
|
+
"@elliemae/ds-system": "2.0.0-rc.1",
|
|
53
55
|
"prop-types": "~15.7.2",
|
|
54
|
-
"react-
|
|
55
|
-
"react-modal": "~3.12.1"
|
|
56
|
+
"react-desc": "~4.1.3"
|
|
56
57
|
},
|
|
57
58
|
"devDependencies": {
|
|
58
|
-
"styled-components": "~5.3.
|
|
59
|
+
"styled-components": "~5.3.3"
|
|
59
60
|
},
|
|
60
61
|
"peerDependencies": {
|
|
61
62
|
"lodash": "~4.17.21",
|
|
62
63
|
"react": "~16.14.0",
|
|
63
64
|
"react-dom": "~16.14.0",
|
|
64
|
-
"styled-components": "^5.3.
|
|
65
|
+
"styled-components": "^5.3.3"
|
|
65
66
|
},
|
|
66
67
|
"publishConfig": {
|
|
67
68
|
"access": "public",
|