@elliemae/ds-modal-slide 2.2.0-next.6 → 2.3.0-alpha.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 +111 -135
- package/cjs/DSModalSlide.js.map +7 -0
- package/cjs/components/Footer.js +77 -97
- package/cjs/components/Footer.js.map +7 -0
- package/cjs/components/Header.js +74 -65
- package/cjs/components/Header.js.map +7 -0
- package/cjs/components/blocks.js +63 -52
- package/cjs/components/blocks.js.map +7 -0
- package/cjs/index.js +40 -17
- package/cjs/index.js.map +7 -0
- package/esm/DSModalSlide.js +75 -113
- package/esm/DSModalSlide.js.map +7 -0
- package/esm/components/Footer.js +44 -82
- package/esm/components/Footer.js.map +7 -0
- package/esm/components/Header.js +44 -52
- package/esm/components/Header.js.map +7 -0
- package/esm/components/blocks.js +36 -41
- package/esm/components/blocks.js.map +7 -0
- package/esm/index.js +11 -3
- package/esm/index.js.map +7 -0
- package/package.json +7 -7
- package/types/DSModalSlide.d.ts +1 -12
- package/types/components/Footer.d.ts +1 -12
- package/types/components/Header.d.ts +1 -5
- package/types/index.d.ts +1 -1
package/esm/components/Footer.js
CHANGED
|
@@ -1,90 +1,52 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
-
};
|
|
51
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import React2 from "react";
|
|
3
|
+
import { PropTypes, describe } from "react-desc";
|
|
4
|
+
import DSButton from "@elliemae/ds-button";
|
|
5
|
+
import { FooterWrapper } from "./blocks";
|
|
6
|
+
const ModalFooter = ({
|
|
7
|
+
confirmLabel = "Confirm",
|
|
8
|
+
rejectLabel = "Cancel",
|
|
9
|
+
onConfirm,
|
|
10
|
+
onReject,
|
|
11
|
+
confirmProps = {
|
|
12
|
+
disabled: false
|
|
13
|
+
},
|
|
14
|
+
rejectProps = {
|
|
15
|
+
disabled: false
|
|
16
|
+
}
|
|
17
|
+
}) => /* @__PURE__ */ React2.createElement(React2.Fragment, null, /* @__PURE__ */ React2.createElement(FooterWrapper, null, !!onReject && /* @__PURE__ */ React2.createElement(DSButton, {
|
|
18
|
+
buttonType: "secondary",
|
|
19
|
+
className: "action-reject",
|
|
20
|
+
containerProps: { "data-testid": "modal-footer-reject-btn" },
|
|
21
|
+
labelText: rejectLabel,
|
|
22
|
+
onClick: onReject,
|
|
23
|
+
...rejectProps
|
|
24
|
+
}), !!onConfirm && /* @__PURE__ */ React2.createElement(DSButton, {
|
|
25
|
+
buttonType: "primary",
|
|
26
|
+
className: "action-confirm",
|
|
27
|
+
containerProps: { "data-testid": "modal-footer-confirm-btn" },
|
|
28
|
+
labelText: confirmLabel,
|
|
29
|
+
onClick: onConfirm,
|
|
30
|
+
...confirmProps
|
|
31
|
+
})));
|
|
52
32
|
const props = {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* Reject Label
|
|
60
|
-
*/
|
|
61
|
-
rejectLabel: PropTypes.string.description('Reject Label'),
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* Callback
|
|
65
|
-
*/
|
|
66
|
-
onConfirm: PropTypes.func.description('Callback'),
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* Callback
|
|
70
|
-
*/
|
|
71
|
-
onReject: PropTypes.func.description('Callback'),
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* Extra DSButton props for confirm btn.
|
|
75
|
-
*/
|
|
33
|
+
confirmLabel: PropTypes.string.description("Confirm Label"),
|
|
34
|
+
rejectLabel: PropTypes.string.description("Reject Label"),
|
|
35
|
+
onConfirm: PropTypes.func.description("Callback"),
|
|
36
|
+
onReject: PropTypes.func.description("Callback"),
|
|
76
37
|
confirmProps: PropTypes.shape({
|
|
77
38
|
disabled: PropTypes.bool
|
|
78
|
-
}).description(
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* Extra DSButton props for reject btn.
|
|
82
|
-
*/
|
|
39
|
+
}).description("Extra DSButton props for confirm btn."),
|
|
83
40
|
rejectProps: PropTypes.shape({
|
|
84
41
|
disabled: PropTypes.bool
|
|
85
|
-
}).description(
|
|
42
|
+
}).description("Extra DSButton props for reject btn.")
|
|
86
43
|
};
|
|
44
|
+
ModalFooter.propTypes = props;
|
|
87
45
|
const DSModalSlideFooterWithSchema = describe(ModalFooter);
|
|
88
46
|
DSModalSlideFooterWithSchema.propTypes = props;
|
|
89
|
-
|
|
90
|
-
export {
|
|
47
|
+
var Footer_default = ModalFooter;
|
|
48
|
+
export {
|
|
49
|
+
DSModalSlideFooterWithSchema,
|
|
50
|
+
Footer_default as default
|
|
51
|
+
};
|
|
52
|
+
//# sourceMappingURL=Footer.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/components/Footer.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { PropTypes, describe } from 'react-desc';\nimport DSButton from '@elliemae/ds-button';\nimport { FooterWrapper } from './blocks';\n\nconst ModalFooter = ({\n confirmLabel = 'Confirm',\n rejectLabel = 'Cancel',\n onConfirm,\n onReject,\n confirmProps = {\n disabled: false,\n },\n rejectProps = {\n disabled: false,\n },\n}) => (\n <>\n <FooterWrapper>\n {!!onReject && (\n <DSButton\n buttonType=\"secondary\"\n className=\"action-reject\"\n containerProps={{ 'data-testid': 'modal-footer-reject-btn' }}\n labelText={rejectLabel}\n onClick={onReject}\n {...rejectProps}\n />\n )}\n {!!onConfirm && (\n <DSButton\n buttonType=\"primary\"\n className=\"action-confirm\"\n containerProps={{ 'data-testid': 'modal-footer-confirm-btn' }}\n labelText={confirmLabel}\n onClick={onConfirm}\n {...confirmProps}\n />\n )}\n </FooterWrapper>\n </>\n);\n\nconst props = {\n /**\n * Confirm Label\n */\n confirmLabel: PropTypes.string.description('Confirm Label'),\n /**\n * Reject Label\n */\n rejectLabel: PropTypes.string.description('Reject Label'),\n /**\n * Callback\n */\n onConfirm: PropTypes.func.description('Callback'),\n /**\n * Callback\n */\n onReject: PropTypes.func.description('Callback'),\n /**\n * Extra DSButton props for confirm btn.\n */\n confirmProps: PropTypes.shape({\n disabled: PropTypes.bool,\n }).description('Extra DSButton props for confirm btn.'),\n /**\n * Extra DSButton props for reject btn.\n */\n rejectProps: PropTypes.shape({\n disabled: PropTypes.bool,\n }).description('Extra DSButton props for reject btn.'),\n};\n\nModalFooter.propTypes = props;\n\nconst DSModalSlideFooterWithSchema = describe(ModalFooter);\nDSModalSlideFooterWithSchema.propTypes = props;\n\nexport { DSModalSlideFooterWithSchema };\n\nexport default ModalFooter;\n"],
|
|
5
|
+
"mappings": "AAAA;ACAA;AACA;AACA;AACA;AAEA,MAAM,cAAc,CAAC;AAAA,EACnB,eAAe;AAAA,EACf,cAAc;AAAA,EACd;AAAA,EACA;AAAA,EACA,eAAe;AAAA,IACb,UAAU;AAAA;AAAA,EAEZ,cAAc;AAAA,IACZ,UAAU;AAAA;AAAA,MAGZ,4DACE,qCAAC,eAAD,MACG,CAAC,CAAC,YACD,qCAAC,UAAD;AAAA,EACE,YAAW;AAAA,EACX,WAAU;AAAA,EACV,gBAAgB,EAAE,eAAe;AAAA,EACjC,WAAW;AAAA,EACX,SAAS;AAAA,KACL;AAAA,IAGP,CAAC,CAAC,aACD,qCAAC,UAAD;AAAA,EACE,YAAW;AAAA,EACX,WAAU;AAAA,EACV,gBAAgB,EAAE,eAAe;AAAA,EACjC,WAAW;AAAA,EACX,SAAS;AAAA,KACL;AAAA;AAOd,MAAM,QAAQ;AAAA,EAIZ,cAAc,UAAU,OAAO,YAAY;AAAA,EAI3C,aAAa,UAAU,OAAO,YAAY;AAAA,EAI1C,WAAW,UAAU,KAAK,YAAY;AAAA,EAItC,UAAU,UAAU,KAAK,YAAY;AAAA,EAIrC,cAAc,UAAU,MAAM;AAAA,IAC5B,UAAU,UAAU;AAAA,KACnB,YAAY;AAAA,EAIf,aAAa,UAAU,MAAM;AAAA,IAC3B,UAAU,UAAU;AAAA,KACnB,YAAY;AAAA;AAGjB,YAAY,YAAY;AAExB,MAAM,+BAA+B,SAAS;AAC9C,6BAA6B,YAAY;AAIzC,IAAO,iBAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/esm/components/Header.js
CHANGED
|
@@ -1,57 +1,49 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { PropTypes, describe } from
|
|
4
|
-
import styled from
|
|
5
|
-
import DSSeparator from
|
|
6
|
-
import { Close } from
|
|
7
|
-
import DSButton from
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
position: "initial",
|
|
20
|
-
margin: "none",
|
|
21
|
-
orientation: "vertical",
|
|
22
|
-
type: "non-form"
|
|
23
|
-
}))), /*#__PURE__*/_jsx(StyledCloseButton, {
|
|
24
|
-
"data-testid": "modal-slider-header-close",
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import React2 from "react";
|
|
3
|
+
import { PropTypes, describe } from "react-desc";
|
|
4
|
+
import styled from "styled-components";
|
|
5
|
+
import DSSeparator from "@elliemae/ds-separator";
|
|
6
|
+
import { Close } from "@elliemae/ds-icons";
|
|
7
|
+
import DSButton from "@elliemae/ds-button";
|
|
8
|
+
import { Header, HeaderLeftSide, Title } from "./blocks";
|
|
9
|
+
const ModalHeader = ({ title: headerTitle = "", onClose = () => null, toolbar = null }) => /* @__PURE__ */ React2.createElement(HeaderWrapper, null, /* @__PURE__ */ React2.createElement(HeaderLeftSide, null, /* @__PURE__ */ React2.createElement(Header, null, /* @__PURE__ */ React2.createElement(Title, null, headerTitle))), toolbar, toolbar && /* @__PURE__ */ React2.createElement(StyledSeparator, {
|
|
10
|
+
position: "initial",
|
|
11
|
+
margin: "none",
|
|
12
|
+
orientation: "vertical",
|
|
13
|
+
type: "non-form"
|
|
14
|
+
}), /* @__PURE__ */ React2.createElement(StyledCloseButton, {
|
|
15
|
+
"data-testid": "modal-slider-header-close",
|
|
16
|
+
"aria-label": "Close modal slide",
|
|
17
|
+
buttonType: "text",
|
|
18
|
+
icon: /* @__PURE__ */ React2.createElement(Close, {
|
|
25
19
|
"aria-label": "Close modal slide",
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
componentId: "sc-oxqqo8-2"
|
|
43
|
-
})(["margin:", ";"], props => props.theme.space.xs);
|
|
20
|
+
size: "s"
|
|
21
|
+
}),
|
|
22
|
+
onClick: onClose
|
|
23
|
+
}));
|
|
24
|
+
const HeaderWrapper = styled.div`
|
|
25
|
+
display: flex;
|
|
26
|
+
justify-content: space-between;
|
|
27
|
+
width: 100%;
|
|
28
|
+
align-items: center;
|
|
29
|
+
`;
|
|
30
|
+
const StyledSeparator = styled(DSSeparator)`
|
|
31
|
+
padding: ${(props2) => props2.theme.space.xs} 0;
|
|
32
|
+
`;
|
|
33
|
+
const StyledCloseButton = styled(DSButton)`
|
|
34
|
+
margin: ${(props2) => props2.theme.space.xs};
|
|
35
|
+
`;
|
|
44
36
|
const props = {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
/** modal toolbar component */
|
|
49
|
-
toolbar: PropTypes.node.description('modal toolbar comoponent'),
|
|
50
|
-
|
|
51
|
-
/** modal title */
|
|
52
|
-
title: PropTypes.string.description('modal title')
|
|
37
|
+
onClose: PropTypes.func.description("on modal close callback"),
|
|
38
|
+
toolbar: PropTypes.node.description("modal toolbar comoponent"),
|
|
39
|
+
title: PropTypes.string.description("modal title")
|
|
53
40
|
};
|
|
41
|
+
ModalHeader.propTypes = props;
|
|
54
42
|
const DSModalSlideHeaderWithSchema = describe(ModalHeader);
|
|
55
43
|
DSModalSlideHeaderWithSchema.propTypes = props;
|
|
56
|
-
|
|
57
|
-
export {
|
|
44
|
+
var Header_default = ModalHeader;
|
|
45
|
+
export {
|
|
46
|
+
DSModalSlideHeaderWithSchema,
|
|
47
|
+
Header_default as default
|
|
48
|
+
};
|
|
49
|
+
//# sourceMappingURL=Header.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/components/Header.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { PropTypes, describe } from 'react-desc';\nimport styled from 'styled-components';\nimport DSSeparator from '@elliemae/ds-separator';\nimport { Close } from '@elliemae/ds-icons';\nimport DSButton from '@elliemae/ds-button';\nimport { Header, HeaderLeftSide, Title } from './blocks';\n\nconst ModalHeader = ({ title: headerTitle = '', onClose = () => null, toolbar = null }) => (\n <HeaderWrapper>\n <HeaderLeftSide>\n <Header>\n <Title>{headerTitle}</Title>\n </Header>\n </HeaderLeftSide>\n {toolbar}\n {toolbar && <StyledSeparator position=\"initial\" margin=\"none\" orientation=\"vertical\" type=\"non-form\" />}\n <StyledCloseButton\n data-testid=\"modal-slider-header-close\"\n aria-label=\"Close modal slide\"\n buttonType=\"text\"\n icon={<Close aria-label=\"Close modal slide\" size=\"s\" />}\n onClick={onClose}\n />\n </HeaderWrapper>\n);\n\nconst HeaderWrapper = styled.div`\n display: flex;\n justify-content: space-between;\n width: 100%;\n align-items: center;\n`;\n\nconst StyledSeparator = styled(DSSeparator)`\n padding: ${(props) => props.theme.space.xs} 0;\n`;\n\nconst StyledCloseButton = styled(DSButton)`\n margin: ${(props) => props.theme.space.xs};\n`;\n\nconst props = {\n /** on modal close callback */\n onClose: PropTypes.func.description('on modal close callback'),\n /** modal toolbar component */\n toolbar: PropTypes.node.description('modal toolbar comoponent'),\n /** modal title */\n title: PropTypes.string.description('modal title'),\n};\n\nModalHeader.propTypes = props;\n\nconst DSModalSlideHeaderWithSchema = describe(ModalHeader);\nDSModalSlideHeaderWithSchema.propTypes = props;\n\nexport { DSModalSlideHeaderWithSchema };\n\nexport default ModalHeader;\n"],
|
|
5
|
+
"mappings": "AAAA;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA,MAAM,cAAc,CAAC,EAAE,OAAO,cAAc,IAAI,UAAU,MAAM,MAAM,UAAU,WAC9E,qCAAC,eAAD,MACE,qCAAC,gBAAD,MACE,qCAAC,QAAD,MACE,qCAAC,OAAD,MAAQ,gBAGX,SACA,WAAW,qCAAC,iBAAD;AAAA,EAAiB,UAAS;AAAA,EAAU,QAAO;AAAA,EAAO,aAAY;AAAA,EAAW,MAAK;AAAA,IAC1F,qCAAC,mBAAD;AAAA,EACE,eAAY;AAAA,EACZ,cAAW;AAAA,EACX,YAAW;AAAA,EACX,MAAM,qCAAC,OAAD;AAAA,IAAO,cAAW;AAAA,IAAoB,MAAK;AAAA;AAAA,EACjD,SAAS;AAAA;AAKf,MAAM,gBAAgB,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAO7B,MAAM,kBAAkB,OAAO;AAAA,aAClB,CAAC,WAAU,OAAM,MAAM,MAAM;AAAA;AAG1C,MAAM,oBAAoB,OAAO;AAAA,YACrB,CAAC,WAAU,OAAM,MAAM,MAAM;AAAA;AAGzC,MAAM,QAAQ;AAAA,EAEZ,SAAS,UAAU,KAAK,YAAY;AAAA,EAEpC,SAAS,UAAU,KAAK,YAAY;AAAA,EAEpC,OAAO,UAAU,OAAO,YAAY;AAAA;AAGtC,YAAY,YAAY;AAExB,MAAM,+BAA+B,SAAS;AAC9C,6BAA6B,YAAY;AAIzC,IAAO,iBAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/esm/components/blocks.js
CHANGED
|
@@ -1,41 +1,36 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
const blockName =
|
|
4
|
-
const Wrapper = aggregatedClasses(
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
});
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
const Header = aggregatedClasses('div')(blockName, 'header', () => ({}));
|
|
38
|
-
const Footer = aggregatedClasses('div')(blockName, 'footer', () => ({}));
|
|
39
|
-
const FooterWrapper = aggregatedClasses('div')(blockName, 'footer-wrapper', () => ({}));
|
|
40
|
-
|
|
41
|
-
export { ActualContent, BreadcrumTitle, Content, Footer, FooterWrapper, Header, HeaderLeftSide, Overlay, Title, Wrapper };
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { aggregatedClasses } from "@elliemae/ds-classnames";
|
|
3
|
+
const blockName = "modal-slide";
|
|
4
|
+
const Wrapper = aggregatedClasses("div")(blockName, "wrapper", ({ show, centered }) => ({
|
|
5
|
+
showing: show,
|
|
6
|
+
disappearing: !show,
|
|
7
|
+
centered
|
|
8
|
+
}));
|
|
9
|
+
const Overlay = aggregatedClasses("div")(blockName, "overlay", ({ show }) => ({
|
|
10
|
+
showing: show,
|
|
11
|
+
disappearing: !show
|
|
12
|
+
}));
|
|
13
|
+
const Content = aggregatedClasses("div")(blockName, "content", ({ show }) => ({
|
|
14
|
+
showing: show,
|
|
15
|
+
disappearing: !show
|
|
16
|
+
}));
|
|
17
|
+
const Title = aggregatedClasses("div")(blockName, "title", () => ({}));
|
|
18
|
+
const BreadcrumTitle = aggregatedClasses("div")(blockName, "breadcrum-title", () => ({}));
|
|
19
|
+
const HeaderLeftSide = aggregatedClasses("div")(blockName, "header-left-side", () => ({}));
|
|
20
|
+
const ActualContent = aggregatedClasses("div")(blockName, "actual-content", () => ({}));
|
|
21
|
+
const Header = aggregatedClasses("div")(blockName, "header", () => ({}));
|
|
22
|
+
const Footer = aggregatedClasses("div")(blockName, "footer", () => ({}));
|
|
23
|
+
const FooterWrapper = aggregatedClasses("div")(blockName, "footer-wrapper", () => ({}));
|
|
24
|
+
export {
|
|
25
|
+
ActualContent,
|
|
26
|
+
BreadcrumTitle,
|
|
27
|
+
Content,
|
|
28
|
+
Footer,
|
|
29
|
+
FooterWrapper,
|
|
30
|
+
Header,
|
|
31
|
+
HeaderLeftSide,
|
|
32
|
+
Overlay,
|
|
33
|
+
Title,
|
|
34
|
+
Wrapper
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=blocks.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/components/blocks.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { aggregatedClasses } from '@elliemae/ds-classnames';\n\nconst blockName = 'modal-slide';\n\nexport const Wrapper = aggregatedClasses('div')(\n blockName,\n 'wrapper',\n ({ show, centered }) => ({\n showing: show,\n disappearing: !show,\n centered,\n }),\n);\n\nexport const Overlay = aggregatedClasses('div')(\n blockName,\n 'overlay',\n ({ show }) => ({\n showing: show,\n disappearing: !show,\n }),\n);\n\nexport const Content = aggregatedClasses('div')(\n blockName,\n 'content',\n ({ show }) => ({\n showing: show,\n disappearing: !show,\n }),\n);\n\nexport const Title = aggregatedClasses('div')(blockName, 'title', () => ({}));\n\nexport const BreadcrumTitle = aggregatedClasses('div')(\n blockName,\n 'breadcrum-title',\n () => ({}),\n);\n\nexport const HeaderLeftSide = aggregatedClasses('div')(\n blockName,\n 'header-left-side',\n () => ({}),\n);\n\nexport const ActualContent = aggregatedClasses('div')(\n blockName,\n 'actual-content',\n () => ({}),\n);\nexport const Header = aggregatedClasses('div')(blockName, 'header', () => ({}));\nexport const Footer = aggregatedClasses('div')(blockName, 'footer', () => ({}));\n\nexport const FooterWrapper = aggregatedClasses('div')(\n blockName,\n 'footer-wrapper',\n () => ({}),\n);\n"],
|
|
5
|
+
"mappings": "AAAA;ACAA;AAEA,MAAM,YAAY;AAEX,MAAM,UAAU,kBAAkB,OACvC,WACA,WACA,CAAC,EAAE,MAAM,eAAgB;AAAA,EACvB,SAAS;AAAA,EACT,cAAc,CAAC;AAAA,EACf;AAAA;AAIG,MAAM,UAAU,kBAAkB,OACvC,WACA,WACA,CAAC,EAAE,WAAY;AAAA,EACb,SAAS;AAAA,EACT,cAAc,CAAC;AAAA;AAIZ,MAAM,UAAU,kBAAkB,OACvC,WACA,WACA,CAAC,EAAE,WAAY;AAAA,EACb,SAAS;AAAA,EACT,cAAc,CAAC;AAAA;AAIZ,MAAM,QAAQ,kBAAkB,OAAO,WAAW,SAAS,MAAO;AAElE,MAAM,iBAAiB,kBAAkB,OAC9C,WACA,mBACA,MAAO;AAGF,MAAM,iBAAiB,kBAAkB,OAC9C,WACA,oBACA,MAAO;AAGF,MAAM,gBAAgB,kBAAkB,OAC7C,WACA,kBACA,MAAO;AAEF,MAAM,SAAS,kBAAkB,OAAO,WAAW,UAAU,MAAO;AACpE,MAAM,SAAS,kBAAkB,OAAO,WAAW,UAAU,MAAO;AAEpE,MAAM,gBAAgB,kBAAkB,OAC7C,WACA,kBACA,MAAO;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/esm/index.js
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export * from "./DSModalSlide";
|
|
3
|
+
import { default as default2 } from "./DSModalSlide";
|
|
4
|
+
import { DSModalSlideHeaderWithSchema } from "./components/Header";
|
|
5
|
+
import { DSModalSlideFooterWithSchema } from "./components/Footer";
|
|
6
|
+
export {
|
|
7
|
+
DSModalSlideFooterWithSchema,
|
|
8
|
+
DSModalSlideHeaderWithSchema,
|
|
9
|
+
default2 as default
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
package/esm/index.js.map
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/index.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export * from './DSModalSlide';\nexport { default } from './DSModalSlide';\nexport { DSModalSlideHeaderWithSchema } from './components/Header';\nexport { DSModalSlideFooterWithSchema } from './components/Footer';"],
|
|
5
|
+
"mappings": "AAAA;ACAA;AACA;AACA;AACA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-modal-slide",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0-alpha.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Modal Slide",
|
|
6
6
|
"module": "./esm/index.js",
|
|
@@ -48,12 +48,12 @@
|
|
|
48
48
|
"build": "node ../../scripts/build/build.js"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@elliemae/ds-button": "2.
|
|
52
|
-
"@elliemae/ds-classnames": "2.
|
|
53
|
-
"@elliemae/ds-grid": "2.
|
|
54
|
-
"@elliemae/ds-icons": "2.
|
|
55
|
-
"@elliemae/ds-separator": "2.
|
|
56
|
-
"@elliemae/ds-system": "2.
|
|
51
|
+
"@elliemae/ds-button": "2.3.0-alpha.1",
|
|
52
|
+
"@elliemae/ds-classnames": "2.3.0-alpha.1",
|
|
53
|
+
"@elliemae/ds-grid": "2.3.0-alpha.1",
|
|
54
|
+
"@elliemae/ds-icons": "2.3.0-alpha.1",
|
|
55
|
+
"@elliemae/ds-separator": "2.3.0-alpha.1",
|
|
56
|
+
"@elliemae/ds-system": "2.3.0-alpha.1",
|
|
57
57
|
"prop-types": "~15.7.2",
|
|
58
58
|
"react-desc": "~4.1.3"
|
|
59
59
|
},
|
package/types/DSModalSlide.d.ts
CHANGED
|
@@ -86,18 +86,7 @@ declare const DSModalSlide: {
|
|
|
86
86
|
};
|
|
87
87
|
};
|
|
88
88
|
declare const DSModalSlideWithSchema: {
|
|
89
|
-
(props?:
|
|
90
|
-
isOpen?: boolean | undefined;
|
|
91
|
-
children: any;
|
|
92
|
-
getContainer: any;
|
|
93
|
-
centered?: boolean | undefined;
|
|
94
|
-
fullWidth?: boolean | undefined;
|
|
95
|
-
header?: null | undefined;
|
|
96
|
-
footer?: null | undefined;
|
|
97
|
-
fadeOut?: number | undefined;
|
|
98
|
-
fadeIn?: number | undefined;
|
|
99
|
-
overrideHeight?: boolean | undefined;
|
|
100
|
-
} | undefined): JSX.Element;
|
|
89
|
+
(props?: unknown): JSX.Element;
|
|
101
90
|
propTypes: unknown;
|
|
102
91
|
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
103
92
|
};
|
|
@@ -71,18 +71,7 @@ declare const ModalFooter: {
|
|
|
71
71
|
};
|
|
72
72
|
};
|
|
73
73
|
declare const DSModalSlideFooterWithSchema: {
|
|
74
|
-
(props?:
|
|
75
|
-
confirmLabel?: string | undefined;
|
|
76
|
-
rejectLabel?: string | undefined;
|
|
77
|
-
onConfirm: any;
|
|
78
|
-
onReject: any;
|
|
79
|
-
confirmProps?: {
|
|
80
|
-
disabled: boolean;
|
|
81
|
-
} | undefined;
|
|
82
|
-
rejectProps?: {
|
|
83
|
-
disabled: boolean;
|
|
84
|
-
} | undefined;
|
|
85
|
-
} | undefined): JSX.Element;
|
|
74
|
+
(props?: unknown): JSX.Element;
|
|
86
75
|
propTypes: unknown;
|
|
87
76
|
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
88
77
|
};
|
|
@@ -31,11 +31,7 @@ declare const ModalHeader: {
|
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
33
|
declare const DSModalSlideHeaderWithSchema: {
|
|
34
|
-
(props?:
|
|
35
|
-
title?: string | undefined;
|
|
36
|
-
onClose?: (() => null) | undefined;
|
|
37
|
-
toolbar?: null | undefined;
|
|
38
|
-
} | undefined): JSX.Element;
|
|
34
|
+
(props?: unknown): JSX.Element;
|
|
39
35
|
propTypes: unknown;
|
|
40
36
|
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
41
37
|
};
|
package/types/index.d.ts
CHANGED