@elliemae/ds-modal-slide 3.12.0-rc.1 → 3.12.0-rc.3
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/dist/cjs/DSModalSlide.js +53 -57
- package/dist/cjs/DSModalSlide.js.map +1 -1
- package/dist/cjs/components/Footer.js +24 -22
- package/dist/cjs/components/Footer.js.map +1 -1
- package/dist/cjs/components/Header.js +11 -24
- package/dist/cjs/components/Header.js.map +1 -1
- package/dist/esm/DSModalSlide.js +53 -57
- package/dist/esm/DSModalSlide.js.map +1 -1
- package/dist/esm/components/Footer.js +24 -22
- package/dist/esm/components/Footer.js.map +1 -1
- package/dist/esm/components/Header.js +11 -24
- package/dist/esm/components/Header.js.map +1 -1
- package/package.json +8 -8
package/dist/cjs/DSModalSlide.js
CHANGED
|
@@ -101,66 +101,62 @@ const DSModalSlide = (props2) => {
|
|
|
101
101
|
container.style.position = "relative";
|
|
102
102
|
}
|
|
103
103
|
return import_react_dom.default.createPortal(
|
|
104
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
centered
|
|
109
|
-
},
|
|
110
|
-
style: {
|
|
111
|
-
"--height": height,
|
|
112
|
-
"--fade-in": fadeIn,
|
|
113
|
-
"--fade-out": fadeOut,
|
|
114
|
-
"--width": width
|
|
115
|
-
},
|
|
116
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_blocks.Overlay, {
|
|
104
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
105
|
+
import_blocks.Wrapper,
|
|
106
|
+
{
|
|
107
|
+
...globalAttrs,
|
|
117
108
|
classProps: {
|
|
118
|
-
show: isOpen
|
|
109
|
+
show: isOpen,
|
|
110
|
+
centered
|
|
119
111
|
},
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
"-webkit-backface-visibility": "hidden",
|
|
132
|
-
"backface-visibility": "hidden",
|
|
133
|
-
"-webkit-transform-style": "preserve-3d"
|
|
112
|
+
style: {
|
|
113
|
+
"--height": height,
|
|
114
|
+
"--fade-in": fadeIn,
|
|
115
|
+
"--fade-out": fadeOut,
|
|
116
|
+
"--width": width
|
|
117
|
+
},
|
|
118
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
119
|
+
import_blocks.Overlay,
|
|
120
|
+
{
|
|
121
|
+
classProps: {
|
|
122
|
+
show: isOpen
|
|
134
123
|
},
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
124
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
125
|
+
import_blocks.Content,
|
|
126
|
+
{
|
|
127
|
+
onAnimationEnd: handleAnimationEnd,
|
|
128
|
+
classProps: {
|
|
129
|
+
show: isOpen
|
|
130
|
+
},
|
|
131
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
132
|
+
import_ds_grid.Grid,
|
|
133
|
+
{
|
|
134
|
+
style: {
|
|
135
|
+
height: "100%",
|
|
136
|
+
width: "100%",
|
|
137
|
+
maxHeight: "100%",
|
|
138
|
+
overflow: "hidden",
|
|
139
|
+
"-webkit-backface-visibility": "hidden",
|
|
140
|
+
"backface-visibility": "hidden",
|
|
141
|
+
"-webkit-transform-style": "preserve-3d"
|
|
142
|
+
},
|
|
143
|
+
rows: contentRows,
|
|
144
|
+
"data-testid": "ds-modal-slide",
|
|
145
|
+
children: [
|
|
146
|
+
header && import_react.default.cloneElement(header, { fullWidth }),
|
|
147
|
+
header && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_separator.default, { position: "initial", type: "non-form" }),
|
|
148
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_grid.Grid, { style: { overflow: "hidden" }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyledWrapper, { ref: innerRef, tabIndex: 0, role: "contentinfo", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_blocks.ActualContent, { children }) }) }),
|
|
149
|
+
footer && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_separator.default, { position: "initial", type: "non-form" }),
|
|
150
|
+
footer
|
|
151
|
+
]
|
|
152
|
+
}
|
|
153
|
+
)
|
|
154
|
+
}
|
|
155
|
+
)
|
|
156
|
+
}
|
|
157
|
+
)
|
|
158
|
+
}
|
|
159
|
+
),
|
|
164
160
|
container
|
|
165
161
|
);
|
|
166
162
|
};
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/DSModalSlide.tsx", "../../../../scripts/build/transpile/react-shim.js"],
|
|
4
4
|
"sourcesContent": ["/* eslint-disable max-lines */\nimport React, { useState, useEffect, useCallback } from 'react';\nimport { PropTypes, describe, useGetGlobalAttributes } from '@elliemae/ds-utilities';\nimport ReactDOM from 'react-dom';\nimport { useTheme, styled } from '@elliemae/ds-system';\nimport { Grid } from '@elliemae/ds-grid';\nimport DSSeparator from '@elliemae/ds-separator';\nimport { Wrapper, Overlay, Content, ActualContent } from './components/blocks';\nimport ModalHeader from './components/Header';\nimport ModalFooter from './components/Footer';\n\nconst StyledWrapper = styled(Grid)`\n overflow: auto;\n &:focus,\n &:focus-visible {\n outline: 1px solid ${({ theme }) => theme.colors.brand['600']};\n outline-offset: -1px;\n }\n`;\n// eslint-disable-next-line complexity\nconst DSModalSlide = (props) => {\n const {\n isOpen = false,\n children,\n getContainer,\n centered = false,\n fullWidth = false,\n header = null,\n footer = null,\n fadeOut = 1500,\n fadeIn = 1500,\n overrideHeight = false,\n innerRef = null,\n } = props;\n const [isMoving, setMoving] = useState(false);\n const [show, setShow] = useState(isOpen);\n const [width, setWidth] = useState(50);\n const theme = useTheme();\n const contentRows = [...(header ? ['auto', '1px'] : []), '1fr', ...(footer ? ['1px', theme.space.m] : [])];\n\n const globalAttrs = useGetGlobalAttributes(props);\n const updateShow = useCallback(() => {\n if (fullWidth) setWidth(100);\n else setWidth(50);\n if (isOpen !== show) {\n setMoving(true);\n if (isOpen) {\n setShow(isOpen);\n }\n }\n }, [isOpen, fullWidth, isMoving]);\n\n useEffect(updateShow, [isOpen, fullWidth]);\n\n if (!show) return null;\n\n const container = getContainer();\n if (!container) return null;\n\n const handleAnimationEnd = () => {\n setMoving(false);\n if (!isOpen) setShow(isOpen);\n };\n\n let { height } = container.getBoundingClientRect();\n if (overrideHeight && container.scrollHeight > height) {\n height = container.scrollHeight;\n }\n if (!container.style.position) {\n container.style.position = 'relative';\n }\n\n return ReactDOM.createPortal(\n <Wrapper\n {...globalAttrs}\n classProps={{\n show: isOpen,\n centered,\n }}\n style={{\n '--height': height,\n '--fade-in': fadeIn,\n '--fade-out': fadeOut,\n '--width': width,\n }}\n >\n <Overlay\n classProps={{\n show: isOpen,\n }}\n >\n <Content\n onAnimationEnd={handleAnimationEnd}\n classProps={{\n show: isOpen,\n }}\n >\n <Grid\n style={{\n height: '100%',\n width: '100%',\n maxHeight: '100%',\n overflow: 'hidden',\n '-webkit-backface-visibility': 'hidden',\n 'backface-visibility': 'hidden',\n '-webkit-transform-style': 'preserve-3d',\n }}\n rows={contentRows}\n data-testid=\"ds-modal-slide\"\n >\n {header && React.cloneElement(header, { fullWidth })}\n {header && <DSSeparator position=\"initial\" type=\"non-form\" />}\n <Grid style={{ overflow: 'hidden' }}>\n <StyledWrapper ref={innerRef} tabIndex={0} role=\"contentinfo\">\n <ActualContent>{children}</ActualContent>\n </StyledWrapper>\n </Grid>\n {footer && <DSSeparator position=\"initial\" type=\"non-form\" />}\n {footer}\n </Grid>\n </Content>\n </Overlay>\n </Wrapper>,\n container,\n );\n};\n\nconst props = {\n /**\n * If the modal slide is centered or not\n */\n centered: PropTypes.bool.description('If the modal slide is centered or not'),\n /**\n * If the modal slide is visible or not\n */\n isOpen: PropTypes.bool.description('If the modal slide is visible or not'),\n /**\n * Main content of the modal\n */\n children: PropTypes.oneOfType([PropTypes.element, PropTypes.string, PropTypes.any]).isRequired.description(\n 'Main content of the modal',\n ),\n /**\n * If the modal slide takes the full width or not\n */\n fullWidth: PropTypes.bool.description('If the modal slide takes the full width or not'),\n /**\n * If the modal slide has a header, only available for full width option\n */\n header: PropTypes.element.description('If the modal slide has a header, only available for full width option'),\n /**\n * Ratio of fade out\n */\n fadeOut: PropTypes.number.description('Ratio of fade out'),\n /**\n * Ratio of fade in\n */\n fadeIn: PropTypes.number.description('Ratio of fade in'),\n /**\n * Override the panel height to scroll height of the container\n */\n overrideHeight: PropTypes.bool.description('Override the panel height to scroll height of the container'),\n};\n\nDSModalSlide.propTypes = props;\nDSModalSlide.displayName = 'DSModalSlide';\nconst DSModalSlideWithSchema = describe(DSModalSlide);\nDSModalSlideWithSchema.propTypes = props;\n\nexport { ModalHeader, ModalFooter, DSModalSlide, DSModalSlideWithSchema };\n\nexport default DSModalSlide;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA,mCAAAA;AAAA,EAAA,iCAAAC;AAAA,EAAA;AAAA;AAAA;ACAA,YAAuB;ADiGb;AAhGV,mBAAwD;AACxD,0BAA4D;AAC5D,uBAAqB;AACrB,uBAAiC;AACjC,qBAAqB;AACrB,0BAAwB;AACxB,oBAAyD;A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
|
|
44
44
|
rejectProps = {
|
|
45
45
|
disabled: false
|
|
46
46
|
}
|
|
47
|
-
}) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
}
|
|
47
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_blocks.FooterWrapper, { children: [
|
|
48
|
+
!!onReject && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
49
|
+
import_ds_button.default,
|
|
50
|
+
{
|
|
51
|
+
buttonType: "secondary",
|
|
52
|
+
className: "action-reject",
|
|
53
|
+
containerProps: { "data-testid": "modal-footer-reject-btn" },
|
|
54
|
+
labelText: rejectLabel,
|
|
55
|
+
onClick: onReject,
|
|
56
|
+
...rejectProps
|
|
57
|
+
}
|
|
58
|
+
),
|
|
59
|
+
!!onConfirm && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
60
|
+
import_ds_button.default,
|
|
61
|
+
{
|
|
62
|
+
buttonType: "primary",
|
|
63
|
+
className: "action-confirm",
|
|
64
|
+
containerProps: { "data-testid": "modal-footer-confirm-btn" },
|
|
65
|
+
labelText: confirmLabel,
|
|
66
|
+
onClick: onConfirm,
|
|
67
|
+
...confirmProps
|
|
68
|
+
}
|
|
69
|
+
)
|
|
70
|
+
] }) });
|
|
69
71
|
const props = {
|
|
70
72
|
confirmLabel: import_ds_utilities.PropTypes.string.description("Confirm Label"),
|
|
71
73
|
rejectLabel: import_ds_utilities.PropTypes.string.description("Reject Label"),
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/components/Footer.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
4
|
"sourcesContent": ["import React from 'react';\nimport { PropTypes, describe } from '@elliemae/ds-utilities';\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;\nModalFooter.displayName = 'ModalFooter';\nconst DSModalSlideFooterWithSchema = describe(ModalFooter);\nDSModalSlideFooterWithSchema.propTypes = props;\n\nexport { DSModalSlideFooterWithSchema };\n\nexport default ModalFooter;\n",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AAY,cAAc;AAAA,EAIxD,WAAW,8BAAU,KAAK,YAAY,UAAU;AAAA,EAIhD,UAAU,8BAAU,KAAK,YAAY,UAAU;AAAA,EAI/C,cAAc,8BAAU,MAAM;AAAA,IAC5B,UAAU,8BAAU;AAAA,EACtB,CAAC,EAAE,YAAY,uCAAuC;AAAA,EAItD,aAAa,8BAAU,MAAM;AAAA,IAC3B,UAAU,8BAAU;AAAA,EACtB,CAAC,EAAE,YAAY,sCAAsC;AACvD;AAEA,YAAY,YAAY;AACxB,YAAY,cAAc;AAC1B,MAAM,mCAA+B,8BAAS,WAAW;AACzD,6BAA6B,YAAY;AAIzC,IAAO,iBAAQ;",
|
|
6
6
|
"names": ["DSButton"]
|
|
7
7
|
}
|
|
@@ -37,35 +37,22 @@ var import_ds_icons = require("@elliemae/ds-icons");
|
|
|
37
37
|
var import_ds_button = __toESM(require("@elliemae/ds-button"));
|
|
38
38
|
var import_blocks = require("./blocks");
|
|
39
39
|
const ModalHeader = ({ innerRef = null, title: headerTitle = "", onClose = () => null, toolbar = null }) => {
|
|
40
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(HeaderWrapper, {
|
|
41
|
-
children:
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
})
|
|
48
|
-
}),
|
|
49
|
-
toolbar,
|
|
50
|
-
toolbar && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyledSeparator, {
|
|
51
|
-
position: "initial",
|
|
52
|
-
margin: "none",
|
|
53
|
-
orientation: "vertical",
|
|
54
|
-
type: "non-form"
|
|
55
|
-
}),
|
|
56
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyledCloseButton, {
|
|
40
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(HeaderWrapper, { children: [
|
|
41
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_blocks.HeaderLeftSide, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_blocks.Header, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_blocks.Title, { children: headerTitle }) }) }),
|
|
42
|
+
toolbar,
|
|
43
|
+
toolbar && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyledSeparator, { position: "initial", margin: "none", orientation: "vertical", type: "non-form" }),
|
|
44
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
45
|
+
StyledCloseButton,
|
|
46
|
+
{
|
|
57
47
|
"data-testid": "modal-slider-header-close",
|
|
58
48
|
"aria-label": "Close modal slide",
|
|
59
49
|
buttonType: "text",
|
|
60
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_icons.Close, {
|
|
61
|
-
"aria-label": "Close modal slide",
|
|
62
|
-
size: "s"
|
|
63
|
-
}),
|
|
50
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_icons.Close, { "aria-label": "Close modal slide", size: "s" }),
|
|
64
51
|
onClick: onClose,
|
|
65
52
|
innerRef
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
});
|
|
53
|
+
}
|
|
54
|
+
)
|
|
55
|
+
] });
|
|
69
56
|
};
|
|
70
57
|
const HeaderWrapper = import_ds_system.styled.div`
|
|
71
58
|
display: flex;
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/components/Header.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
4
|
"sourcesContent": ["import React from 'react';\nimport { PropTypes, describe } from '@elliemae/ds-utilities';\nimport { styled } from '@elliemae/ds-system';\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 = ({ innerRef = null, title: headerTitle = '', onClose = () => null, toolbar = null }) => {\n return (\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 innerRef={innerRef}\n />\n </HeaderWrapper>\n );\n};\n\nconst HeaderWrapper = styled.div`\n display: flex;\n justify-content: space-between;\n width: 100%;\n align-items: center;\n height: 48px;\n overflow: hidden;\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 innerRef: PropTypes.func.description('button close ref '),\n};\n\nModalHeader.propTypes = props;\nModalHeader.displayName = 'ModalHeader';\nconst DSModalSlideHeaderWithSchema = describe(ModalHeader);\nDSModalSlideHeaderWithSchema.propTypes = props;\n\nexport { DSModalSlideHeaderWithSchema };\n\nexport default ModalHeader;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADUnB;AATJ,0BAAoC;AACpC,uBAAuB;AACvB,0BAAwB;AACxB,sBAAsB;AACtB,uBAAqB;AACrB,oBAA8C;AAE9C,MAAM,cAAc,CAAC,EAAE,WAAW,MAAM,OAAO,cAAc,IAAI,UAAU,MAAM,MAAM,UAAU,KAAK,MAAM;AAC1G,SACE,6CAAC
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;A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}
|
package/dist/esm/DSModalSlide.js
CHANGED
|
@@ -68,66 +68,62 @@ const DSModalSlide = (props2) => {
|
|
|
68
68
|
container.style.position = "relative";
|
|
69
69
|
}
|
|
70
70
|
return ReactDOM.createPortal(
|
|
71
|
-
/* @__PURE__ */ jsx(
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
centered
|
|
76
|
-
},
|
|
77
|
-
style: {
|
|
78
|
-
"--height": height,
|
|
79
|
-
"--fade-in": fadeIn,
|
|
80
|
-
"--fade-out": fadeOut,
|
|
81
|
-
"--width": width
|
|
82
|
-
},
|
|
83
|
-
children: /* @__PURE__ */ jsx(Overlay, {
|
|
71
|
+
/* @__PURE__ */ jsx(
|
|
72
|
+
Wrapper,
|
|
73
|
+
{
|
|
74
|
+
...globalAttrs,
|
|
84
75
|
classProps: {
|
|
85
|
-
show: isOpen
|
|
76
|
+
show: isOpen,
|
|
77
|
+
centered
|
|
86
78
|
},
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
"-webkit-backface-visibility": "hidden",
|
|
99
|
-
"backface-visibility": "hidden",
|
|
100
|
-
"-webkit-transform-style": "preserve-3d"
|
|
79
|
+
style: {
|
|
80
|
+
"--height": height,
|
|
81
|
+
"--fade-in": fadeIn,
|
|
82
|
+
"--fade-out": fadeOut,
|
|
83
|
+
"--width": width
|
|
84
|
+
},
|
|
85
|
+
children: /* @__PURE__ */ jsx(
|
|
86
|
+
Overlay,
|
|
87
|
+
{
|
|
88
|
+
classProps: {
|
|
89
|
+
show: isOpen
|
|
101
90
|
},
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
91
|
+
children: /* @__PURE__ */ jsx(
|
|
92
|
+
Content,
|
|
93
|
+
{
|
|
94
|
+
onAnimationEnd: handleAnimationEnd,
|
|
95
|
+
classProps: {
|
|
96
|
+
show: isOpen
|
|
97
|
+
},
|
|
98
|
+
children: /* @__PURE__ */ jsxs(
|
|
99
|
+
Grid,
|
|
100
|
+
{
|
|
101
|
+
style: {
|
|
102
|
+
height: "100%",
|
|
103
|
+
width: "100%",
|
|
104
|
+
maxHeight: "100%",
|
|
105
|
+
overflow: "hidden",
|
|
106
|
+
"-webkit-backface-visibility": "hidden",
|
|
107
|
+
"backface-visibility": "hidden",
|
|
108
|
+
"-webkit-transform-style": "preserve-3d"
|
|
109
|
+
},
|
|
110
|
+
rows: contentRows,
|
|
111
|
+
"data-testid": "ds-modal-slide",
|
|
112
|
+
children: [
|
|
113
|
+
header && React2.cloneElement(header, { fullWidth }),
|
|
114
|
+
header && /* @__PURE__ */ jsx(DSSeparator, { position: "initial", type: "non-form" }),
|
|
115
|
+
/* @__PURE__ */ jsx(Grid, { style: { overflow: "hidden" }, children: /* @__PURE__ */ jsx(StyledWrapper, { ref: innerRef, tabIndex: 0, role: "contentinfo", children: /* @__PURE__ */ jsx(ActualContent, { children }) }) }),
|
|
116
|
+
footer && /* @__PURE__ */ jsx(DSSeparator, { position: "initial", type: "non-form" }),
|
|
117
|
+
footer
|
|
118
|
+
]
|
|
119
|
+
}
|
|
120
|
+
)
|
|
121
|
+
}
|
|
122
|
+
)
|
|
123
|
+
}
|
|
124
|
+
)
|
|
125
|
+
}
|
|
126
|
+
),
|
|
131
127
|
container
|
|
132
128
|
);
|
|
133
129
|
};
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/DSModalSlide.tsx"],
|
|
4
4
|
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable max-lines */\nimport React, { useState, useEffect, useCallback } from 'react';\nimport { PropTypes, describe, useGetGlobalAttributes } from '@elliemae/ds-utilities';\nimport ReactDOM from 'react-dom';\nimport { useTheme, styled } from '@elliemae/ds-system';\nimport { Grid } from '@elliemae/ds-grid';\nimport DSSeparator from '@elliemae/ds-separator';\nimport { Wrapper, Overlay, Content, ActualContent } from './components/blocks';\nimport ModalHeader from './components/Header';\nimport ModalFooter from './components/Footer';\n\nconst StyledWrapper = styled(Grid)`\n overflow: auto;\n &:focus,\n &:focus-visible {\n outline: 1px solid ${({ theme }) => theme.colors.brand['600']};\n outline-offset: -1px;\n }\n`;\n// eslint-disable-next-line complexity\nconst DSModalSlide = (props) => {\n const {\n isOpen = false,\n children,\n getContainer,\n centered = false,\n fullWidth = false,\n header = null,\n footer = null,\n fadeOut = 1500,\n fadeIn = 1500,\n overrideHeight = false,\n innerRef = null,\n } = props;\n const [isMoving, setMoving] = useState(false);\n const [show, setShow] = useState(isOpen);\n const [width, setWidth] = useState(50);\n const theme = useTheme();\n const contentRows = [...(header ? ['auto', '1px'] : []), '1fr', ...(footer ? ['1px', theme.space.m] : [])];\n\n const globalAttrs = useGetGlobalAttributes(props);\n const updateShow = useCallback(() => {\n if (fullWidth) setWidth(100);\n else setWidth(50);\n if (isOpen !== show) {\n setMoving(true);\n if (isOpen) {\n setShow(isOpen);\n }\n }\n }, [isOpen, fullWidth, isMoving]);\n\n useEffect(updateShow, [isOpen, fullWidth]);\n\n if (!show) return null;\n\n const container = getContainer();\n if (!container) return null;\n\n const handleAnimationEnd = () => {\n setMoving(false);\n if (!isOpen) setShow(isOpen);\n };\n\n let { height } = container.getBoundingClientRect();\n if (overrideHeight && container.scrollHeight > height) {\n height = container.scrollHeight;\n }\n if (!container.style.position) {\n container.style.position = 'relative';\n }\n\n return ReactDOM.createPortal(\n <Wrapper\n {...globalAttrs}\n classProps={{\n show: isOpen,\n centered,\n }}\n style={{\n '--height': height,\n '--fade-in': fadeIn,\n '--fade-out': fadeOut,\n '--width': width,\n }}\n >\n <Overlay\n classProps={{\n show: isOpen,\n }}\n >\n <Content\n onAnimationEnd={handleAnimationEnd}\n classProps={{\n show: isOpen,\n }}\n >\n <Grid\n style={{\n height: '100%',\n width: '100%',\n maxHeight: '100%',\n overflow: 'hidden',\n '-webkit-backface-visibility': 'hidden',\n 'backface-visibility': 'hidden',\n '-webkit-transform-style': 'preserve-3d',\n }}\n rows={contentRows}\n data-testid=\"ds-modal-slide\"\n >\n {header && React.cloneElement(header, { fullWidth })}\n {header && <DSSeparator position=\"initial\" type=\"non-form\" />}\n <Grid style={{ overflow: 'hidden' }}>\n <StyledWrapper ref={innerRef} tabIndex={0} role=\"contentinfo\">\n <ActualContent>{children}</ActualContent>\n </StyledWrapper>\n </Grid>\n {footer && <DSSeparator position=\"initial\" type=\"non-form\" />}\n {footer}\n </Grid>\n </Content>\n </Overlay>\n </Wrapper>,\n container,\n );\n};\n\nconst props = {\n /**\n * If the modal slide is centered or not\n */\n centered: PropTypes.bool.description('If the modal slide is centered or not'),\n /**\n * If the modal slide is visible or not\n */\n isOpen: PropTypes.bool.description('If the modal slide is visible or not'),\n /**\n * Main content of the modal\n */\n children: PropTypes.oneOfType([PropTypes.element, PropTypes.string, PropTypes.any]).isRequired.description(\n 'Main content of the modal',\n ),\n /**\n * If the modal slide takes the full width or not\n */\n fullWidth: PropTypes.bool.description('If the modal slide takes the full width or not'),\n /**\n * If the modal slide has a header, only available for full width option\n */\n header: PropTypes.element.description('If the modal slide has a header, only available for full width option'),\n /**\n * Ratio of fade out\n */\n fadeOut: PropTypes.number.description('Ratio of fade out'),\n /**\n * Ratio of fade in\n */\n fadeIn: PropTypes.number.description('Ratio of fade in'),\n /**\n * Override the panel height to scroll height of the container\n */\n overrideHeight: PropTypes.bool.description('Override the panel height to scroll height of the container'),\n};\n\nDSModalSlide.propTypes = props;\nDSModalSlide.displayName = 'DSModalSlide';\nconst DSModalSlideWithSchema = describe(DSModalSlide);\nDSModalSlideWithSchema.propTypes = props;\n\nexport { ModalHeader, ModalFooter, DSModalSlide, DSModalSlideWithSchema };\n\nexport default DSModalSlide;\n"],
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACiGb,SAca,KAdb;AAhGV,OAAOA,UAAS,UAAU,WAAW,mBAAmB;AACxD,SAAS,WAAW,UAAU,8BAA8B;AAC5D,OAAO,cAAc;AACrB,SAAS,UAAU,cAAc;AACjC,SAAS,YAAY;AACrB,OAAO,iBAAiB;AACxB,SAAS,SAAS,SAAS,SAAS,qBAAqB;AACzD,OAAO,iBAAiB;AACxB,OAAO,iBAAiB;AAExB,MAAM,gBAAgB,OAAO,IAAI;AAAA;AAAA;AAAA;AAAA,yBAIR,CAAC,EAAE,MAAM,MAAM,MAAM,OAAO,MAAM;AAAA;AAAA;AAAA;AAK3D,MAAM,eAAe,CAACC,WAAU;AAC9B,QAAM;AAAA,IACJ,SAAS;AAAA,IACT;AAAA,IACA;AAAA,IACA,WAAW;AAAA,IACX,YAAY;AAAA,IACZ,SAAS;AAAA,IACT,SAAS;AAAA,IACT,UAAU;AAAA,IACV,SAAS;AAAA,IACT,iBAAiB;AAAA,IACjB,WAAW;AAAA,EACb,IAAIA;AACJ,QAAM,CAAC,UAAU,SAAS,IAAI,SAAS,KAAK;AAC5C,QAAM,CAAC,MAAM,OAAO,IAAI,SAAS,MAAM;AACvC,QAAM,CAAC,OAAO,QAAQ,IAAI,SAAS,EAAE;AACrC,QAAM,QAAQ,SAAS;AACvB,QAAM,cAAc,CAAC,GAAI,SAAS,CAAC,QAAQ,KAAK,IAAI,CAAC,GAAI,OAAO,GAAI,SAAS,CAAC,OAAO,MAAM,MAAM,CAAC,IAAI,CAAC,CAAE;AAEzG,QAAM,cAAc,uBAAuBA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QAAQ,UAAU,QAAQ,YAAY,uEAAuE;AAAA,EAI7G,SAAS,UAAU,OAAO,YAAY,mBAAmB;AAAA,EAIzD,QAAQ,UAAU,OAAO,YAAY,kBAAkB;AAAA,EAIvD,gBAAgB,UAAU,KAAK,YAAY,6DAA6D;AAC1G;AAEA,aAAa,YAAY;AACzB,aAAa,cAAc;AAC3B,MAAM,yBAAyB,SAAS,YAAY;AACpD,uBAAuB,YAAY;AAInC,IAAO,uBAAQ;",
|
|
6
6
|
"names": ["React", "props"]
|
|
7
7
|
}
|
|
@@ -14,28 +14,30 @@ const ModalFooter = ({
|
|
|
14
14
|
rejectProps = {
|
|
15
15
|
disabled: false
|
|
16
16
|
}
|
|
17
|
-
}) => /* @__PURE__ */ jsx(Fragment, {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}
|
|
17
|
+
}) => /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs(FooterWrapper, { children: [
|
|
18
|
+
!!onReject && /* @__PURE__ */ jsx(
|
|
19
|
+
DSButton,
|
|
20
|
+
{
|
|
21
|
+
buttonType: "secondary",
|
|
22
|
+
className: "action-reject",
|
|
23
|
+
containerProps: { "data-testid": "modal-footer-reject-btn" },
|
|
24
|
+
labelText: rejectLabel,
|
|
25
|
+
onClick: onReject,
|
|
26
|
+
...rejectProps
|
|
27
|
+
}
|
|
28
|
+
),
|
|
29
|
+
!!onConfirm && /* @__PURE__ */ jsx(
|
|
30
|
+
DSButton,
|
|
31
|
+
{
|
|
32
|
+
buttonType: "primary",
|
|
33
|
+
className: "action-confirm",
|
|
34
|
+
containerProps: { "data-testid": "modal-footer-confirm-btn" },
|
|
35
|
+
labelText: confirmLabel,
|
|
36
|
+
onClick: onConfirm,
|
|
37
|
+
...confirmProps
|
|
38
|
+
}
|
|
39
|
+
)
|
|
40
|
+
] }) });
|
|
39
41
|
const props = {
|
|
40
42
|
confirmLabel: PropTypes.string.description("Confirm Label"),
|
|
41
43
|
rejectLabel: PropTypes.string.description("Reject Label"),
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/components/Footer.tsx"],
|
|
4
4
|
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { PropTypes, describe } from '@elliemae/ds-utilities';\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;\nModalFooter.displayName = 'ModalFooter';\nconst DSModalSlideFooterWithSchema = describe(ModalFooter);\nDSModalSlideFooterWithSchema.propTypes = props;\n\nexport { DSModalSlideFooterWithSchema };\n\nexport default ModalFooter;\n"],
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACiBrB,mBAGM,KAFJ,YADF;AAhBF,SAAS,WAAW,gBAAgB;AACpC,OAAO,cAAc;AACrB,SAAS,qBAAqB;AAE9B,MAAM,cAAc,CAAC;AAAA,EACnB,eAAe;AAAA,EACf,cAAc;AAAA,EACd;AAAA,EACA;AAAA,EACA,eAAe;AAAA,IACb,UAAU;AAAA,EACZ;AAAA,EACA,cAAc;AAAA,IACZ,UAAU;AAAA,EACZ;AACF,MACE
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACiBrB,mBAGM,KAFJ,YADF;AAhBF,SAAS,WAAW,gBAAgB;AACpC,OAAO,cAAc;AACrB,SAAS,qBAAqB;AAE9B,MAAM,cAAc,CAAC;AAAA,EACnB,eAAe;AAAA,EACf,cAAc;AAAA,EACd;AAAA,EACA;AAAA,EACA,eAAe;AAAA,IACb,UAAU;AAAA,EACZ;AAAA,EACA,cAAc;AAAA,IACZ,UAAU;AAAA,EACZ;AACF,MACE,gCACE,+BAAC,iBACE;AAAA,GAAC,CAAC,YACD;AAAA,IAAC;AAAA;AAAA,MACC,YAAW;AAAA,MACX,WAAU;AAAA,MACV,gBAAgB,EAAE,eAAe,0BAA0B;AAAA,MAC3D,WAAW;AAAA,MACX,SAAS;AAAA,MACR,GAAG;AAAA;AAAA,EACN;AAAA,EAED,CAAC,CAAC,aACD;AAAA,IAAC;AAAA;AAAA,MACC,YAAW;AAAA,MACX,WAAU;AAAA,MACV,gBAAgB,EAAE,eAAe,2BAA2B;AAAA,MAC5D,WAAW;AAAA,MACX,SAAS;AAAA,MACR,GAAG;AAAA;AAAA,EACN;AAAA,GAEJ,GACF;AAGF,MAAM,QAAQ;AAAA,EAIZ,cAAc,UAAU,OAAO,YAAY,eAAe;AAAA,EAI1D,aAAa,UAAU,OAAO,YAAY,cAAc;AAAA,EAIxD,WAAW,UAAU,KAAK,YAAY,UAAU;AAAA,EAIhD,UAAU,UAAU,KAAK,YAAY,UAAU;AAAA,EAI/C,cAAc,UAAU,MAAM;AAAA,IAC5B,UAAU,UAAU;AAAA,EACtB,CAAC,EAAE,YAAY,uCAAuC;AAAA,EAItD,aAAa,UAAU,MAAM;AAAA,IAC3B,UAAU,UAAU;AAAA,EACtB,CAAC,EAAE,YAAY,sCAAsC;AACvD;AAEA,YAAY,YAAY;AACxB,YAAY,cAAc;AAC1B,MAAM,+BAA+B,SAAS,WAAW;AACzD,6BAA6B,YAAY;AAIzC,IAAO,iBAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -7,35 +7,22 @@ import { Close } from "@elliemae/ds-icons";
|
|
|
7
7
|
import DSButton from "@elliemae/ds-button";
|
|
8
8
|
import { Header, HeaderLeftSide, Title } from "./blocks";
|
|
9
9
|
const ModalHeader = ({ innerRef = null, title: headerTitle = "", onClose = () => null, toolbar = null }) => {
|
|
10
|
-
return /* @__PURE__ */ jsxs(HeaderWrapper, {
|
|
11
|
-
children:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
})
|
|
18
|
-
}),
|
|
19
|
-
toolbar,
|
|
20
|
-
toolbar && /* @__PURE__ */ jsx(StyledSeparator, {
|
|
21
|
-
position: "initial",
|
|
22
|
-
margin: "none",
|
|
23
|
-
orientation: "vertical",
|
|
24
|
-
type: "non-form"
|
|
25
|
-
}),
|
|
26
|
-
/* @__PURE__ */ jsx(StyledCloseButton, {
|
|
10
|
+
return /* @__PURE__ */ jsxs(HeaderWrapper, { children: [
|
|
11
|
+
/* @__PURE__ */ jsx(HeaderLeftSide, { children: /* @__PURE__ */ jsx(Header, { children: /* @__PURE__ */ jsx(Title, { children: headerTitle }) }) }),
|
|
12
|
+
toolbar,
|
|
13
|
+
toolbar && /* @__PURE__ */ jsx(StyledSeparator, { position: "initial", margin: "none", orientation: "vertical", type: "non-form" }),
|
|
14
|
+
/* @__PURE__ */ jsx(
|
|
15
|
+
StyledCloseButton,
|
|
16
|
+
{
|
|
27
17
|
"data-testid": "modal-slider-header-close",
|
|
28
18
|
"aria-label": "Close modal slide",
|
|
29
19
|
buttonType: "text",
|
|
30
|
-
icon: /* @__PURE__ */ jsx(Close, {
|
|
31
|
-
"aria-label": "Close modal slide",
|
|
32
|
-
size: "s"
|
|
33
|
-
}),
|
|
20
|
+
icon: /* @__PURE__ */ jsx(Close, { "aria-label": "Close modal slide", size: "s" }),
|
|
34
21
|
onClick: onClose,
|
|
35
22
|
innerRef
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
});
|
|
23
|
+
}
|
|
24
|
+
)
|
|
25
|
+
] });
|
|
39
26
|
};
|
|
40
27
|
const HeaderWrapper = styled.div`
|
|
41
28
|
display: flex;
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/components/Header.tsx"],
|
|
4
4
|
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { PropTypes, describe } from '@elliemae/ds-utilities';\nimport { styled } from '@elliemae/ds-system';\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 = ({ innerRef = null, title: headerTitle = '', onClose = () => null, toolbar = null }) => {\n return (\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 innerRef={innerRef}\n />\n </HeaderWrapper>\n );\n};\n\nconst HeaderWrapper = styled.div`\n display: flex;\n justify-content: space-between;\n width: 100%;\n align-items: center;\n height: 48px;\n overflow: hidden;\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 innerRef: PropTypes.func.description('button close ref '),\n};\n\nModalHeader.propTypes = props;\nModalHeader.displayName = 'ModalHeader';\nconst DSModalSlideHeaderWithSchema = describe(ModalHeader);\nDSModalSlideHeaderWithSchema.propTypes = props;\n\nexport { DSModalSlideHeaderWithSchema };\n\nexport default ModalHeader;\n"],
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACUnB,SAGM,KAHN;AATJ,SAAS,WAAW,gBAAgB;AACpC,SAAS,cAAc;AACvB,OAAO,iBAAiB;AACxB,SAAS,aAAa;AACtB,OAAO,cAAc;AACrB,SAAS,QAAQ,gBAAgB,aAAa;AAE9C,MAAM,cAAc,CAAC,EAAE,WAAW,MAAM,OAAO,cAAc,IAAI,UAAU,MAAM,MAAM,UAAU,KAAK,MAAM;AAC1G,SACE,qBAAC
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACUnB,SAGM,KAHN;AATJ,SAAS,WAAW,gBAAgB;AACpC,SAAS,cAAc;AACvB,OAAO,iBAAiB;AACxB,SAAS,aAAa;AACtB,OAAO,cAAc;AACrB,SAAS,QAAQ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12.0-rc.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Modal Slide",
|
|
6
6
|
"files": [
|
|
@@ -51,13 +51,13 @@
|
|
|
51
51
|
"indent": 4
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@elliemae/ds-button": "3.12.0-rc.
|
|
55
|
-
"@elliemae/ds-classnames": "3.12.0-rc.
|
|
56
|
-
"@elliemae/ds-grid": "3.12.0-rc.
|
|
57
|
-
"@elliemae/ds-icons": "3.12.0-rc.
|
|
58
|
-
"@elliemae/ds-separator": "3.12.0-rc.
|
|
59
|
-
"@elliemae/ds-system": "3.12.0-rc.
|
|
60
|
-
"@elliemae/ds-utilities": "3.12.0-rc.
|
|
54
|
+
"@elliemae/ds-button": "3.12.0-rc.3",
|
|
55
|
+
"@elliemae/ds-classnames": "3.12.0-rc.3",
|
|
56
|
+
"@elliemae/ds-grid": "3.12.0-rc.3",
|
|
57
|
+
"@elliemae/ds-icons": "3.12.0-rc.3",
|
|
58
|
+
"@elliemae/ds-separator": "3.12.0-rc.3",
|
|
59
|
+
"@elliemae/ds-system": "3.12.0-rc.3",
|
|
60
|
+
"@elliemae/ds-utilities": "3.12.0-rc.3"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@testing-library/react": "~12.1.3",
|