@elliemae/ds-legacy-modal-slide 1.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.
@@ -0,0 +1,229 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var DSModalSlide_exports = {};
30
+ __export(DSModalSlide_exports, {
31
+ DSModalSlide: () => DSModalSlide,
32
+ DSModalSlideWithSchema: () => DSModalSlideWithSchema,
33
+ ModalFooter: () => import_Footer.default,
34
+ ModalHeader: () => import_Header.default,
35
+ default: () => DSModalSlide_default
36
+ });
37
+ module.exports = __toCommonJS(DSModalSlide_exports);
38
+ var React = __toESM(require("react"));
39
+ var import_jsx_runtime = require("react/jsx-runtime");
40
+ var import_react = __toESM(require("react"));
41
+ var import_ds_legacy_props_helpers = require("@elliemae/ds-legacy-props-helpers");
42
+ var import_lodash = require("lodash");
43
+ var import_react_dom = __toESM(require("react-dom"));
44
+ var import_ds_legacy_system = require("@elliemae/ds-legacy-system");
45
+ var import_ds_legacy_grid = require("@elliemae/ds-legacy-grid");
46
+ var import_ds_legacy_separator = __toESM(require("@elliemae/ds-legacy-separator"));
47
+ var import_blocks = require("./components/blocks.js");
48
+ var import_Header = __toESM(require("./components/Header.js"));
49
+ var import_Footer = __toESM(require("./components/Footer.js"));
50
+ const StyledWrapper = (0, import_ds_legacy_system.styled)(import_ds_legacy_grid.Grid)`
51
+ overflow: auto;
52
+ &:focus,
53
+ &:focus-visible {
54
+ outline: 1px solid ${({ theme }) => theme.colors.brand["600"]};
55
+ outline-offset: -1px;
56
+ }
57
+ `;
58
+ const ModalSlideAnimationFix = import_ds_legacy_system.styled.div`
59
+ .em-ds-modal-slide__overlay--disappearing,
60
+ .em-ds-modal-slide__content--disappearing {
61
+ animation-fill-mode: forwards;
62
+ }
63
+ `;
64
+ const DSModalSlide = (props2) => {
65
+ const {
66
+ isOpen = false,
67
+ children,
68
+ getContainer,
69
+ centered = false,
70
+ fullWidth = false,
71
+ header = null,
72
+ footer = null,
73
+ fadeOut = 1500,
74
+ fadeIn = 1500,
75
+ overrideHeight = false,
76
+ innerRef = null
77
+ } = props2;
78
+ const [isMoving, setMoving] = (0, import_react.useState)(false);
79
+ const [show, setShow] = (0, import_react.useState)(isOpen);
80
+ const [width, setWidth] = (0, import_react.useState)(50);
81
+ const [height, setHeight] = (0, import_react.useState)("100%");
82
+ const theme = (0, import_ds_legacy_system.useTheme)();
83
+ const contentRows = [...header ? ["auto", "1px"] : [], "1fr", ...footer ? ["1px", theme.space.m] : []];
84
+ const globalAttrs = (0, import_ds_legacy_props_helpers.useGetGlobalAttributes)(props2);
85
+ const updateShow = (0, import_react.useCallback)(() => {
86
+ if (fullWidth)
87
+ setWidth(100);
88
+ else
89
+ setWidth(50);
90
+ if (isOpen !== show) {
91
+ setMoving(true);
92
+ if (isOpen) {
93
+ setShow(isOpen);
94
+ }
95
+ }
96
+ }, [isOpen, fullWidth, isMoving]);
97
+ (0, import_react.useEffect)(updateShow, [isOpen, fullWidth]);
98
+ const container = getContainer();
99
+ const handleHeight = (0, import_react.useCallback)(() => {
100
+ const newHeight = overrideHeight && container.scrollHeight > container.getBoundingClientRect().height ? container.scrollHeight : container.getBoundingClientRect().height;
101
+ setHeight(newHeight);
102
+ }, [container, overrideHeight]);
103
+ const onChangeParent = (0, import_react.useMemo)(() => (0, import_lodash.debounce)(handleHeight, 300, { leading: true }), [handleHeight]);
104
+ (0, import_react.useEffect)(() => {
105
+ const resizeObserver = new ResizeObserver(() => onChangeParent());
106
+ if (container) {
107
+ resizeObserver.observe(container);
108
+ if (!container.style.position) {
109
+ container.style.position = "relative";
110
+ }
111
+ onChangeParent();
112
+ }
113
+ return () => {
114
+ if (container)
115
+ resizeObserver.unobserve(container);
116
+ };
117
+ }, [container, onChangeParent]);
118
+ if (!show)
119
+ return null;
120
+ if (!container)
121
+ return null;
122
+ const handleAnimationEnd = () => {
123
+ setMoving(false);
124
+ if (!isOpen)
125
+ setShow(isOpen);
126
+ };
127
+ return import_react_dom.default.createPortal(
128
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ModalSlideAnimationFix, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
129
+ import_blocks.Wrapper,
130
+ {
131
+ ...globalAttrs,
132
+ classProps: {
133
+ show: isOpen,
134
+ centered
135
+ },
136
+ style: {
137
+ "--height": height,
138
+ "--fade-in": fadeIn,
139
+ "--fade-out": fadeOut,
140
+ "--width": width,
141
+ left: 0
142
+ },
143
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
144
+ import_blocks.Overlay,
145
+ {
146
+ classProps: {
147
+ show: isOpen
148
+ },
149
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
150
+ import_blocks.Content,
151
+ {
152
+ onAnimationEnd: handleAnimationEnd,
153
+ classProps: {
154
+ show: isOpen
155
+ },
156
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
157
+ import_ds_legacy_grid.Grid,
158
+ {
159
+ style: {
160
+ height: "100%",
161
+ width: "100%",
162
+ maxHeight: "100%",
163
+ overflow: "hidden",
164
+ "-webkit-backface-visibility": "hidden",
165
+ "backface-visibility": "hidden",
166
+ "-webkit-transform-style": "preserve-3d"
167
+ },
168
+ rows: contentRows,
169
+ "data-testid": "ds-modal-slide",
170
+ children: [
171
+ header && import_react.default.cloneElement(header, { fullWidth }),
172
+ header && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_legacy_separator.default, { position: "initial", type: "non-form" }),
173
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_legacy_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 }) }) }),
174
+ footer && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_legacy_separator.default, { position: "initial", type: "non-form" }),
175
+ footer
176
+ ]
177
+ }
178
+ )
179
+ }
180
+ )
181
+ }
182
+ )
183
+ }
184
+ ) }),
185
+ container
186
+ );
187
+ };
188
+ const props = {
189
+ /**
190
+ * If the modal slide is centered or not
191
+ */
192
+ centered: import_ds_legacy_props_helpers.PropTypes.bool.description("If the modal slide is centered or not"),
193
+ /**
194
+ * If the modal slide is visible or not
195
+ */
196
+ isOpen: import_ds_legacy_props_helpers.PropTypes.bool.description("If the modal slide is visible or not"),
197
+ /**
198
+ * Main content of the modal
199
+ */
200
+ children: import_ds_legacy_props_helpers.PropTypes.oneOfType([import_ds_legacy_props_helpers.PropTypes.element, import_ds_legacy_props_helpers.PropTypes.string, import_ds_legacy_props_helpers.PropTypes.any]).isRequired.description(
201
+ "Main content of the modal"
202
+ ),
203
+ /**
204
+ * If the modal slide takes the full width or not
205
+ */
206
+ fullWidth: import_ds_legacy_props_helpers.PropTypes.bool.description("If the modal slide takes the full width or not"),
207
+ /**
208
+ * If the modal slide has a header, only available for full width option
209
+ */
210
+ header: import_ds_legacy_props_helpers.PropTypes.element.description("If the modal slide has a header, only available for full width option"),
211
+ /**
212
+ * Ratio of fade out
213
+ */
214
+ fadeOut: import_ds_legacy_props_helpers.PropTypes.number.description("Ratio of fade out"),
215
+ /**
216
+ * Ratio of fade in
217
+ */
218
+ fadeIn: import_ds_legacy_props_helpers.PropTypes.number.description("Ratio of fade in"),
219
+ /**
220
+ * Override the panel height to scroll height of the container
221
+ */
222
+ overrideHeight: import_ds_legacy_props_helpers.PropTypes.bool.description("Override the panel height to scroll height of the container")
223
+ };
224
+ DSModalSlide.propTypes = props;
225
+ DSModalSlide.displayName = "DSModalSlide";
226
+ const DSModalSlideWithSchema = (0, import_ds_legacy_props_helpers.describe)(DSModalSlide);
227
+ DSModalSlideWithSchema.propTypes = props;
228
+ var DSModalSlide_default = DSModalSlide;
229
+ //# sourceMappingURL=DSModalSlide.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/DSModalSlide.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["/* eslint-disable max-statements */\n/* eslint-disable max-lines */\nimport React, { useState, useEffect, useCallback, useMemo } from 'react';\nimport { PropTypes, describe, useGetGlobalAttributes } from '@elliemae/ds-legacy-props-helpers';\nimport { debounce } from 'lodash';\nimport ReactDOM from 'react-dom';\nimport { useTheme, styled } from '@elliemae/ds-legacy-system';\nimport { Grid } from '@elliemae/ds-legacy-grid';\nimport DSSeparator from '@elliemae/ds-legacy-separator';\nimport { Wrapper, Overlay, Content, ActualContent } from './components/blocks.js';\nimport ModalHeader from './components/Header.js';\nimport ModalFooter from './components/Footer.js';\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// js engine and css engine can't be guaranteed to be in sync due to how they run on different threads in the browsers\n// this means that in some edge-cases react may have \"out-dated\" information like \"isMoving\" in this case\n// this can cause some animation frame to have the animation \"after\" end but before react has updated the state\n// if the css animation is not configured to stay in the end state,\n// in those edge-cases,\n// the animation will \"jump\" back to the start and cause a flicker\n// this is the fix for that, it's an hack because the component is still css classname based\n// when we re-do the modal slide, we should integrate this as the styled component css itself instead of this extra wrapper\nconst ModalSlideAnimationFix = styled.div`\n .em-ds-modal-slide__overlay--disappearing,\n .em-ds-modal-slide__content--disappearing {\n animation-fill-mode: forwards;\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 [height, setHeight] = useState('100%');\n const theme = useTheme();\n const contentRows = [...(header ? ['auto', '1px'] : []), '1fr', ...(footer ? ['1px', theme.space.m] : [])];\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 const container = getContainer();\n\n const handleHeight = useCallback(() => {\n const newHeight =\n overrideHeight && container.scrollHeight > container.getBoundingClientRect().height\n ? container.scrollHeight\n : container.getBoundingClientRect().height;\n setHeight(newHeight);\n }, [container, overrideHeight]);\n\n const onChangeParent = useMemo(() => debounce(handleHeight, 300, { leading: true }), [handleHeight]);\n\n useEffect(() => {\n const resizeObserver = new ResizeObserver(() => onChangeParent());\n if (container) {\n resizeObserver.observe(container);\n if (!container.style.position) {\n container.style.position = 'relative';\n }\n onChangeParent();\n }\n return () => {\n if (container) resizeObserver.unobserve(container);\n };\n }, [container, onChangeParent]);\n\n if (!show) return null;\n if (!container) return null;\n\n const handleAnimationEnd = () => {\n setMoving(false);\n if (!isOpen) setShow(isOpen);\n };\n\n return ReactDOM.createPortal(\n <ModalSlideAnimationFix>\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 left: 0,\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 </ModalSlideAnimationFix>,\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": "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",
6
+ "names": ["ModalFooter", "ModalHeader", "props", "ReactDOM", "React", "DSSeparator"]
7
+ }
@@ -0,0 +1,112 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var Footer_exports = {};
30
+ __export(Footer_exports, {
31
+ DSModalSlideFooterWithSchema: () => DSModalSlideFooterWithSchema,
32
+ default: () => Footer_default
33
+ });
34
+ module.exports = __toCommonJS(Footer_exports);
35
+ var React = __toESM(require("react"));
36
+ var import_jsx_runtime = require("react/jsx-runtime");
37
+ var import_ds_legacy_props_helpers = require("@elliemae/ds-legacy-props-helpers");
38
+ var import_ds_legacy_button_v2 = require("@elliemae/ds-legacy-button-v2");
39
+ var import_blocks = require("./blocks.js");
40
+ const ModalFooter = ({
41
+ confirmLabel = "Confirm",
42
+ rejectLabel = "Cancel",
43
+ onConfirm,
44
+ onReject,
45
+ confirmProps = {
46
+ disabled: false
47
+ },
48
+ rejectProps = {
49
+ disabled: false
50
+ }
51
+ }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_blocks.FooterWrapper, { children: [
52
+ !!onReject && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
53
+ import_ds_legacy_button_v2.DSButtonV2,
54
+ {
55
+ buttonType: "outline",
56
+ className: "action-reject",
57
+ "data-testid": "modal-footer-reject-btn",
58
+ onClick: onReject,
59
+ ...rejectProps,
60
+ ml: "xs",
61
+ children: rejectLabel
62
+ }
63
+ ),
64
+ !!onConfirm && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
65
+ import_ds_legacy_button_v2.DSButtonV2,
66
+ {
67
+ buttonType: "filled",
68
+ className: "action-confirm",
69
+ "data-testid": "modal-footer-confirm-btn",
70
+ onClick: onConfirm,
71
+ ...confirmProps,
72
+ ml: "xs",
73
+ children: confirmLabel
74
+ }
75
+ )
76
+ ] }) });
77
+ const props = {
78
+ /**
79
+ * Confirm Label
80
+ */
81
+ confirmLabel: import_ds_legacy_props_helpers.PropTypes.string.description("Confirm Label"),
82
+ /**
83
+ * Reject Label
84
+ */
85
+ rejectLabel: import_ds_legacy_props_helpers.PropTypes.string.description("Reject Label"),
86
+ /**
87
+ * Callback
88
+ */
89
+ onConfirm: import_ds_legacy_props_helpers.PropTypes.func.description("Callback"),
90
+ /**
91
+ * Callback
92
+ */
93
+ onReject: import_ds_legacy_props_helpers.PropTypes.func.description("Callback"),
94
+ /**
95
+ * Extra DSButton props for confirm btn.
96
+ */
97
+ confirmProps: import_ds_legacy_props_helpers.PropTypes.shape({
98
+ disabled: import_ds_legacy_props_helpers.PropTypes.bool
99
+ }).description("Extra DSButton props for confirm btn."),
100
+ /**
101
+ * Extra DSButton props for reject btn.
102
+ */
103
+ rejectProps: import_ds_legacy_props_helpers.PropTypes.shape({
104
+ disabled: import_ds_legacy_props_helpers.PropTypes.bool
105
+ }).description("Extra DSButton props for reject btn.")
106
+ };
107
+ ModalFooter.propTypes = props;
108
+ ModalFooter.displayName = "ModalFooter";
109
+ const DSModalSlideFooterWithSchema = (0, import_ds_legacy_props_helpers.describe)(ModalFooter);
110
+ DSModalSlideFooterWithSchema.propTypes = props;
111
+ var Footer_default = ModalFooter;
112
+ //# sourceMappingURL=Footer.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/components/Footer.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["import React from 'react';\nimport { PropTypes, describe } from '@elliemae/ds-legacy-props-helpers';\nimport { DSButtonV2 } from '@elliemae/ds-legacy-button-v2';\nimport { FooterWrapper } from './blocks.js';\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 <DSButtonV2\n buttonType=\"outline\"\n className=\"action-reject\"\n data-testid=\"modal-footer-reject-btn\"\n onClick={onReject}\n {...rejectProps}\n ml=\"xs\"\n >\n {rejectLabel}\n </DSButtonV2>\n )}\n {!!onConfirm && (\n <DSButtonV2\n buttonType=\"filled\"\n className=\"action-confirm\"\n data-testid=\"modal-footer-confirm-btn\"\n onClick={onConfirm}\n {...confirmProps}\n ml=\"xs\"\n >\n {confirmLabel}\n </DSButtonV2>\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", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADiBrB;AAhBF,qCAAoC;AACpC,iCAA2B;AAC3B,oBAA8B;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,2EACE,uDAAC,+BACE;AAAA,GAAC,CAAC,YACD;AAAA,IAAC;AAAA;AAAA,MACC,YAAW;AAAA,MACX,WAAU;AAAA,MACV,eAAY;AAAA,MACZ,SAAS;AAAA,MACR,GAAG;AAAA,MACJ,IAAG;AAAA,MAEF;AAAA;AAAA,EACH;AAAA,EAED,CAAC,CAAC,aACD;AAAA,IAAC;AAAA;AAAA,MACC,YAAW;AAAA,MACX,WAAU;AAAA,MACV,eAAY;AAAA,MACZ,SAAS;AAAA,MACR,GAAG;AAAA,MACJ,IAAG;AAAA,MAEF;AAAA;AAAA,EACH;AAAA,GAEJ,GACF;AAGF,MAAM,QAAQ;AAAA;AAAA;AAAA;AAAA,EAIZ,cAAc,yCAAU,OAAO,YAAY,eAAe;AAAA;AAAA;AAAA;AAAA,EAI1D,aAAa,yCAAU,OAAO,YAAY,cAAc;AAAA;AAAA;AAAA;AAAA,EAIxD,WAAW,yCAAU,KAAK,YAAY,UAAU;AAAA;AAAA;AAAA;AAAA,EAIhD,UAAU,yCAAU,KAAK,YAAY,UAAU;AAAA;AAAA;AAAA;AAAA,EAI/C,cAAc,yCAAU,MAAM;AAAA,IAC5B,UAAU,yCAAU;AAAA,EACtB,CAAC,EAAE,YAAY,uCAAuC;AAAA;AAAA;AAAA;AAAA,EAItD,aAAa,yCAAU,MAAM;AAAA,IAC3B,UAAU,yCAAU;AAAA,EACtB,CAAC,EAAE,YAAY,sCAAsC;AACvD;AAEA,YAAY,YAAY;AACxB,YAAY,cAAc;AAC1B,MAAM,mCAA+B,yCAAS,WAAW;AACzD,6BAA6B,YAAY;AAIzC,IAAO,iBAAQ;",
6
+ "names": []
7
+ }
@@ -0,0 +1,87 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var Header_exports = {};
30
+ __export(Header_exports, {
31
+ DSModalSlideHeaderWithSchema: () => DSModalSlideHeaderWithSchema,
32
+ default: () => Header_default
33
+ });
34
+ module.exports = __toCommonJS(Header_exports);
35
+ var React = __toESM(require("react"));
36
+ var import_jsx_runtime = require("react/jsx-runtime");
37
+ var import_ds_legacy_props_helpers = require("@elliemae/ds-legacy-props-helpers");
38
+ var import_ds_legacy_system = require("@elliemae/ds-legacy-system");
39
+ var import_ds_legacy_separator = __toESM(require("@elliemae/ds-legacy-separator"));
40
+ var import_ds_legacy_icons = require("@elliemae/ds-legacy-icons");
41
+ var import_ds_legacy_button_v2 = require("@elliemae/ds-legacy-button-v2");
42
+ var import_blocks = require("./blocks.js");
43
+ const ModalHeader = ({ innerRef = null, title: headerTitle = "", onClose = () => null, toolbar = null }) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(HeaderWrapper, { children: [
44
+ /* @__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 }) }) }),
45
+ toolbar,
46
+ toolbar && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyledSeparator, { position: "initial", margin: "none", orientation: "vertical", type: "non-form" }),
47
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
48
+ StyledCloseButton,
49
+ {
50
+ "data-testid": "modal-slider-header-close",
51
+ "aria-label": "Close modal slide",
52
+ buttonType: "icon",
53
+ onClick: onClose,
54
+ innerRef,
55
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_legacy_icons.Close, { "aria-label": "Close modal slide", size: "s" })
56
+ }
57
+ )
58
+ ] });
59
+ const HeaderWrapper = import_ds_legacy_system.styled.div`
60
+ display: flex;
61
+ justify-content: space-between;
62
+ width: 100%;
63
+ align-items: center;
64
+ height: 48px;
65
+ overflow: hidden;
66
+ `;
67
+ const StyledSeparator = (0, import_ds_legacy_system.styled)(import_ds_legacy_separator.default)`
68
+ padding: ${(props2) => props2.theme.space.xs} 0;
69
+ `;
70
+ const StyledCloseButton = (0, import_ds_legacy_system.styled)(import_ds_legacy_button_v2.DSButtonV2)`
71
+ margin: ${(props2) => props2.theme.space.xs};
72
+ `;
73
+ const props = {
74
+ /** on modal close callback */
75
+ onClose: import_ds_legacy_props_helpers.PropTypes.func.description("on modal close callback"),
76
+ /** modal toolbar component */
77
+ toolbar: import_ds_legacy_props_helpers.PropTypes.node.description("modal toolbar comoponent"),
78
+ /** modal title */
79
+ title: import_ds_legacy_props_helpers.PropTypes.string.description("modal title"),
80
+ innerRef: import_ds_legacy_props_helpers.PropTypes.func.description("button close ref ")
81
+ };
82
+ ModalHeader.propTypes = props;
83
+ ModalHeader.displayName = "ModalHeader";
84
+ const DSModalSlideHeaderWithSchema = (0, import_ds_legacy_props_helpers.describe)(ModalHeader);
85
+ DSModalSlideHeaderWithSchema.propTypes = props;
86
+ var Header_default = ModalHeader;
87
+ //# sourceMappingURL=Header.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/components/Header.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["import React from 'react';\nimport { PropTypes, describe } from '@elliemae/ds-legacy-props-helpers';\nimport { styled } from '@elliemae/ds-legacy-system';\nimport DSSeparator from '@elliemae/ds-legacy-separator';\nimport { Close } from '@elliemae/ds-legacy-icons';\nimport { DSButtonV2 } from '@elliemae/ds-legacy-button-v2';\nimport { Header, HeaderLeftSide, Title } from './blocks.js';\n\nconst ModalHeader = ({ innerRef = null, 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=\"icon\"\n onClick={onClose}\n innerRef={innerRef}\n >\n {<Close aria-label=\"Close modal slide\" size=\"s\" />}\n </StyledCloseButton>\n </HeaderWrapper>\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(DSButtonV2)`\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;ADSrB;AARF,qCAAoC;AACpC,8BAAuB;AACvB,iCAAwB;AACxB,6BAAsB;AACtB,iCAA2B;AAC3B,oBAA8C;AAE9C,MAAM,cAAc,CAAC,EAAE,WAAW,MAAM,OAAO,cAAc,IAAI,UAAU,MAAM,MAAM,UAAU,KAAK,MACpG,6CAAC,iBACC;AAAA,8CAAC,gCACC,sDAAC,wBACC,sDAAC,uBAAO,uBAAY,GACtB,GACF;AAAA,EACC;AAAA,EACA,WAAW,4CAAC,mBAAgB,UAAS,WAAU,QAAO,QAAO,aAAY,YAAW,MAAK,YAAW;AAAA,EACrG;AAAA,IAAC;AAAA;AAAA,MACC,eAAY;AAAA,MACZ,cAAW;AAAA,MACX,YAAW;AAAA,MACX,SAAS;AAAA,MACT;AAAA,MAEC,sDAAC,gCAAM,cAAW,qBAAoB,MAAK,KAAI;AAAA;AAAA,EAClD;AAAA,GACF;AAGF,MAAM,gBAAgB,+BAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAS7B,MAAM,sBAAkB,gCAAO,2BAAAA,OAAW;AAAA,aAC7B,CAACC,WAAUA,OAAM,MAAM,MAAM;AAAA;AAG1C,MAAM,wBAAoB,gCAAO,qCAAU;AAAA,YAC/B,CAACA,WAAUA,OAAM,MAAM,MAAM;AAAA;AAGzC,MAAM,QAAQ;AAAA;AAAA,EAEZ,SAAS,yCAAU,KAAK,YAAY,yBAAyB;AAAA;AAAA,EAE7D,SAAS,yCAAU,KAAK,YAAY,0BAA0B;AAAA;AAAA,EAE9D,OAAO,yCAAU,OAAO,YAAY,aAAa;AAAA,EACjD,UAAU,yCAAU,KAAK,YAAY,mBAAmB;AAC1D;AAEA,YAAY,YAAY;AACxB,YAAY,cAAc;AAC1B,MAAM,mCAA+B,yCAAS,WAAW;AACzD,6BAA6B,YAAY;AAIzC,IAAO,iBAAQ;",
6
+ "names": ["DSSeparator", "props"]
7
+ }
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var blocks_exports = {};
30
+ __export(blocks_exports, {
31
+ ActualContent: () => ActualContent,
32
+ BreadcrumTitle: () => BreadcrumTitle,
33
+ Content: () => Content,
34
+ Footer: () => Footer,
35
+ FooterWrapper: () => FooterWrapper,
36
+ Header: () => Header,
37
+ HeaderLeftSide: () => HeaderLeftSide,
38
+ Overlay: () => Overlay,
39
+ Title: () => Title,
40
+ Wrapper: () => Wrapper
41
+ });
42
+ module.exports = __toCommonJS(blocks_exports);
43
+ var React = __toESM(require("react"));
44
+ var import_ds_legacy_classnames = require("@elliemae/ds-legacy-classnames");
45
+ const blockName = "modal-slide";
46
+ const Wrapper = (0, import_ds_legacy_classnames.aggregatedClasses)("div")(blockName, "wrapper", ({ show, centered }) => ({
47
+ showing: show,
48
+ disappearing: !show,
49
+ centered
50
+ }));
51
+ const Overlay = (0, import_ds_legacy_classnames.aggregatedClasses)("div")(blockName, "overlay", ({ show }) => ({
52
+ showing: show,
53
+ disappearing: !show
54
+ }));
55
+ const Content = (0, import_ds_legacy_classnames.aggregatedClasses)("div")(blockName, "content", ({ show }) => ({
56
+ showing: show,
57
+ disappearing: !show
58
+ }));
59
+ const Title = (0, import_ds_legacy_classnames.aggregatedClasses)("div")(blockName, "title", () => ({}));
60
+ const BreadcrumTitle = (0, import_ds_legacy_classnames.aggregatedClasses)("div")(blockName, "breadcrum-title", () => ({}));
61
+ const HeaderLeftSide = (0, import_ds_legacy_classnames.aggregatedClasses)("div")(blockName, "header-left-side", () => ({}));
62
+ const ActualContent = (0, import_ds_legacy_classnames.aggregatedClasses)("div")(blockName, "actual-content", () => ({}));
63
+ const Header = (0, import_ds_legacy_classnames.aggregatedClasses)("div")(blockName, "header", () => ({}));
64
+ const Footer = (0, import_ds_legacy_classnames.aggregatedClasses)("div")(blockName, "footer", () => ({}));
65
+ const FooterWrapper = (0, import_ds_legacy_classnames.aggregatedClasses)("div")(blockName, "footer-wrapper", () => ({}));
66
+ //# sourceMappingURL=blocks.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/components/blocks.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["import { aggregatedClasses } from '@elliemae/ds-legacy-classnames';\n\nconst blockName = 'modal-slide';\n\nexport const Wrapper = aggregatedClasses('div')(blockName, 'wrapper', ({ show, centered }) => ({\n showing: show,\n disappearing: !show,\n centered,\n}));\n\nexport const Overlay = aggregatedClasses('div')(blockName, 'overlay', ({ show }) => ({\n showing: show,\n disappearing: !show,\n}));\n\nexport const Content = aggregatedClasses('div')(blockName, 'content', ({ show }) => ({\n showing: show,\n disappearing: !show,\n}));\n\nexport const Title = aggregatedClasses('div')(blockName, 'title', () => ({}));\n\nexport const BreadcrumTitle = aggregatedClasses('div')(blockName, 'breadcrum-title', () => ({}));\n\nexport const HeaderLeftSide = aggregatedClasses('div')(blockName, 'header-left-side', () => ({}));\n\nexport const ActualContent = aggregatedClasses('div')(blockName, 'actual-content', () => ({}));\nexport const Header = aggregatedClasses('div')(blockName, 'header', () => ({}));\nexport const Footer = aggregatedClasses('div')(blockName, 'footer', () => ({}));\n\nexport const FooterWrapper = aggregatedClasses('div')(blockName, 'footer-wrapper', () => ({}));\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,kCAAkC;AAElC,MAAM,YAAY;AAEX,MAAM,cAAU,+CAAkB,KAAK,EAAE,WAAW,WAAW,CAAC,EAAE,MAAM,SAAS,OAAO;AAAA,EAC7F,SAAS;AAAA,EACT,cAAc,CAAC;AAAA,EACf;AACF,EAAE;AAEK,MAAM,cAAU,+CAAkB,KAAK,EAAE,WAAW,WAAW,CAAC,EAAE,KAAK,OAAO;AAAA,EACnF,SAAS;AAAA,EACT,cAAc,CAAC;AACjB,EAAE;AAEK,MAAM,cAAU,+CAAkB,KAAK,EAAE,WAAW,WAAW,CAAC,EAAE,KAAK,OAAO;AAAA,EACnF,SAAS;AAAA,EACT,cAAc,CAAC;AACjB,EAAE;AAEK,MAAM,YAAQ,+CAAkB,KAAK,EAAE,WAAW,SAAS,OAAO,CAAC,EAAE;AAErE,MAAM,qBAAiB,+CAAkB,KAAK,EAAE,WAAW,mBAAmB,OAAO,CAAC,EAAE;AAExF,MAAM,qBAAiB,+CAAkB,KAAK,EAAE,WAAW,oBAAoB,OAAO,CAAC,EAAE;AAEzF,MAAM,oBAAgB,+CAAkB,KAAK,EAAE,WAAW,kBAAkB,OAAO,CAAC,EAAE;AACtF,MAAM,aAAS,+CAAkB,KAAK,EAAE,WAAW,UAAU,OAAO,CAAC,EAAE;AACvE,MAAM,aAAS,+CAAkB,KAAK,EAAE,WAAW,UAAU,OAAO,CAAC,EAAE;AAEvE,MAAM,oBAAgB,+CAAkB,KAAK,EAAE,WAAW,kBAAkB,OAAO,CAAC,EAAE;",
6
+ "names": []
7
+ }
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
21
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
22
+ // If the importer is in node compatibility mode or this is not an ESM
23
+ // file that has been converted to a CommonJS file using a Babel-
24
+ // compatible transform (i.e. "__esModule" has not been set), then set
25
+ // "default" to the CommonJS "module.exports" for node compatibility.
26
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
27
+ mod
28
+ ));
29
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
30
+ var src_exports = {};
31
+ __export(src_exports, {
32
+ DSModalSlideFooterWithSchema: () => import_Footer.DSModalSlideFooterWithSchema,
33
+ DSModalSlideHeaderWithSchema: () => import_Header.DSModalSlideHeaderWithSchema,
34
+ default: () => import_DSModalSlide.default
35
+ });
36
+ module.exports = __toCommonJS(src_exports);
37
+ var React = __toESM(require("react"));
38
+ __reExport(src_exports, require("./DSModalSlide.js"), module.exports);
39
+ var import_DSModalSlide = __toESM(require("./DSModalSlide.js"));
40
+ var import_Header = require("./components/Header.js");
41
+ var import_Footer = require("./components/Footer.js");
42
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/index.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["export * from './DSModalSlide.js';\nexport { default } from './DSModalSlide.js';\nexport { DSModalSlideHeaderWithSchema } from './components/Header.js';\nexport { DSModalSlideFooterWithSchema } from './components/Footer.js';\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,wBAAc,8BAAd;AACA,0BAAwB;AACxB,oBAA6C;AAC7C,oBAA6C;",
6
+ "names": []
7
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "type": "commonjs",
3
+ "sideEffects": [
4
+ "*.css",
5
+ "*.scss"
6
+ ]
7
+ }