@elliemae/ds-modal-slide 3.25.0-rc.1 → 3.26.0-next.2
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 +61 -109
- package/dist/cjs/DSModalSlide.js.map +3 -3
- package/dist/cjs/DSModalSlideDefinitions.js +58 -0
- package/dist/cjs/DSModalSlideDefinitions.js.map +7 -0
- package/dist/cjs/components/Footer.js +32 -69
- package/dist/cjs/components/Footer.js.map +2 -2
- package/dist/cjs/components/Header.js +23 -44
- package/dist/cjs/components/Header.js.map +3 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/react-desc-prop-types.js +150 -0
- package/dist/cjs/react-desc-prop-types.js.map +7 -0
- package/dist/cjs/styled.js +223 -0
- package/dist/cjs/styled.js.map +7 -0
- package/dist/esm/DSModalSlide.js +69 -110
- package/dist/esm/DSModalSlide.js.map +3 -3
- package/dist/esm/DSModalSlideDefinitions.js +28 -0
- package/dist/esm/DSModalSlideDefinitions.js.map +7 -0
- package/dist/esm/components/Footer.js +33 -70
- package/dist/esm/components/Footer.js.map +2 -2
- package/dist/esm/components/Header.js +31 -45
- package/dist/esm/components/Header.js.map +3 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/react-desc-prop-types.js +120 -0
- package/dist/esm/react-desc-prop-types.js.map +7 -0
- package/dist/esm/styled.js +193 -0
- package/dist/esm/styled.js.map +7 -0
- package/dist/types/DSModalSlide.d.ts +3 -36
- package/dist/types/DSModalSlideDefinitions.d.ts +19 -0
- package/dist/types/components/Footer.d.ts +3 -50
- package/dist/types/components/Header.d.ts +3 -21
- package/dist/types/index.d.ts +1 -0
- package/dist/types/react-desc-prop-types.d.ts +64 -0
- package/dist/types/styled.d.ts +43 -0
- package/package.json +10 -9
- package/dist/cjs/components/blocks.js +0 -66
- package/dist/cjs/components/blocks.js.map +0 -7
- package/dist/esm/components/blocks.js +0 -36
- package/dist/esm/components/blocks.js.map +0 -7
- package/dist/types/components/blocks.d.ts +0 -11
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { DSButtonV2 } from "@elliemae/ds-button-v2";
|
|
3
|
+
import { Grid } from "@elliemae/ds-grid";
|
|
4
|
+
import { DSSeparatorV2 } from "@elliemae/ds-separator";
|
|
5
|
+
import { styled, kfrm } from "@elliemae/ds-system";
|
|
6
|
+
import { DSModalSlideName, DSModalSlideSlots } from "./DSModalSlideDefinitions.js";
|
|
7
|
+
const overlayAnimation = kfrm`{
|
|
8
|
+
0% {
|
|
9
|
+
background: rgba(37, 41, 47, 0);
|
|
10
|
+
}
|
|
11
|
+
100% {
|
|
12
|
+
background: rgba(37, 41, 47, 0.25);
|
|
13
|
+
}
|
|
14
|
+
}`;
|
|
15
|
+
const overlayAnimationOut = kfrm`{
|
|
16
|
+
0% {
|
|
17
|
+
background: rgba(37, 41, 47, 0.25);
|
|
18
|
+
}
|
|
19
|
+
100% {
|
|
20
|
+
background: rgba(37, 41, 47, 0);
|
|
21
|
+
}
|
|
22
|
+
}`;
|
|
23
|
+
const contentAnimationOut = kfrm`{
|
|
24
|
+
0% {
|
|
25
|
+
transform: translateX(0);
|
|
26
|
+
}
|
|
27
|
+
100% {
|
|
28
|
+
transform: translateX(100%);
|
|
29
|
+
}
|
|
30
|
+
}`;
|
|
31
|
+
const contentAnimationIn = kfrm`{
|
|
32
|
+
0% {
|
|
33
|
+
transform: translateX(100%);
|
|
34
|
+
}
|
|
35
|
+
100% {
|
|
36
|
+
transform: translateX(0);
|
|
37
|
+
}
|
|
38
|
+
}`;
|
|
39
|
+
const StyledModalWrapper = styled("div", {
|
|
40
|
+
name: DSModalSlideName,
|
|
41
|
+
slot: DSModalSlideSlots.ROOT
|
|
42
|
+
})`
|
|
43
|
+
position: absolute;
|
|
44
|
+
display: flex;
|
|
45
|
+
height: calc(${(props) => props.height} * 1px);
|
|
46
|
+
width: 100%;
|
|
47
|
+
overflow: hidden;
|
|
48
|
+
top: 0;
|
|
49
|
+
left: 0;
|
|
50
|
+
z-index: 10;
|
|
51
|
+
|
|
52
|
+
.em-ds-modal-v2__modal-wrapper {
|
|
53
|
+
flex: 1;
|
|
54
|
+
padding: 2.46rem 0;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.em-ds-modal-v2__modal-title {
|
|
58
|
+
max-width: 80%;
|
|
59
|
+
margin: 0 auto;
|
|
60
|
+
}
|
|
61
|
+
`;
|
|
62
|
+
const StyledOverlay = styled("div", {
|
|
63
|
+
name: DSModalSlideName,
|
|
64
|
+
slot: DSModalSlideSlots.OVERLAY
|
|
65
|
+
})`
|
|
66
|
+
height: 100%;
|
|
67
|
+
width: 100%;
|
|
68
|
+
background: rgba(37, 41, 47, 0.25);
|
|
69
|
+
display: flex;
|
|
70
|
+
animation: ${(props) => props.disappearing ? overlayAnimationOut : overlayAnimation}
|
|
71
|
+
calc(${(props) => props.disappearing ? props.fadeOut : props.fadeIn} * 1ms) linear;
|
|
72
|
+
|
|
73
|
+
${(props) => props.showing && `display: flex;
|
|
74
|
+
height: 100%;`}
|
|
75
|
+
`;
|
|
76
|
+
const StyledContent = styled("div", { name: DSModalSlideName, slot: DSModalSlideSlots.CONTENT })`
|
|
77
|
+
height: calc(${(props) => props.height} * 1px);
|
|
78
|
+
background: neutral-000;
|
|
79
|
+
box-shadow:
|
|
80
|
+
0 6px 20px 0 rgba(0, 0, 0, 0.24),
|
|
81
|
+
0 8px 17px 0 rgba(0, 0, 0, 0.19);
|
|
82
|
+
width: calc(${(props) => props.width} * 1%);
|
|
83
|
+
margin-left: auto;
|
|
84
|
+
align-items: center;
|
|
85
|
+
flex-direction: column;
|
|
86
|
+
display: flex;
|
|
87
|
+
overflow-y: auto;
|
|
88
|
+
border: 1px solid neutral-300;
|
|
89
|
+
border-left: 2px solid neutral-300;
|
|
90
|
+
animation: ${(props) => props.disappearing ? contentAnimationOut : contentAnimationIn}
|
|
91
|
+
calc(${(props) => props.disappearing ? props.fadeOut / 2 : props.fadeIn / 2} * 1ms) linear;
|
|
92
|
+
.em-ds-separator-wrapper {
|
|
93
|
+
margin-top: unset;
|
|
94
|
+
}
|
|
95
|
+
`;
|
|
96
|
+
const StyledGridContent = styled(Grid)`
|
|
97
|
+
height: 100%;
|
|
98
|
+
width: 100%;
|
|
99
|
+
max-height: 100%;
|
|
100
|
+
overflow: hidden;
|
|
101
|
+
-webkit-backface-visibility: hidden;
|
|
102
|
+
backface-visibility: hidden;
|
|
103
|
+
-webkit-transform-style: preserve-3d;
|
|
104
|
+
transform-style: preserve-3d;
|
|
105
|
+
`;
|
|
106
|
+
const StyledTitle = styled("div", { name: DSModalSlideName, slot: DSModalSlideSlots.TITLE })``;
|
|
107
|
+
const StyledHeaderLeftSide = styled("div", { name: DSModalSlideName, slot: DSModalSlideSlots.HEADER_LEFT_SIDE })`
|
|
108
|
+
width: 100%;
|
|
109
|
+
display: flex;
|
|
110
|
+
flex-direction: row;
|
|
111
|
+
text-align: left;
|
|
112
|
+
padding: 0.61538rem 1.23077rem 0.61538rem 0;
|
|
113
|
+
height: 3.69231rem;
|
|
114
|
+
|
|
115
|
+
.em-ds-button {
|
|
116
|
+
.em-ds-icon {
|
|
117
|
+
fill: brand-primary-600;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
.close-button {
|
|
121
|
+
padding-left: 18px;
|
|
122
|
+
}
|
|
123
|
+
`;
|
|
124
|
+
const StyledActualContent = styled("div", { name: DSModalSlideName, slot: DSModalSlideSlots.ACTUAL_CONTENT })`
|
|
125
|
+
display: flex;
|
|
126
|
+
flex-direction: column;
|
|
127
|
+
`;
|
|
128
|
+
const StyledHeader = styled("div", { name: DSModalSlideName, slot: DSModalSlideSlots.HEADER })`
|
|
129
|
+
padding: 0 1.23077rem;
|
|
130
|
+
display: flex;
|
|
131
|
+
flex-direction: column;
|
|
132
|
+
justify-content: center;
|
|
133
|
+
|
|
134
|
+
${StyledTitle} {
|
|
135
|
+
font-size: 1.3846rem;
|
|
136
|
+
color: neutral-700;
|
|
137
|
+
}
|
|
138
|
+
`;
|
|
139
|
+
const StyledFooter = styled("div", { name: DSModalSlideName, slot: DSModalSlideSlots.FOOTER })``;
|
|
140
|
+
const StyledFooterWrapper = styled("div", { name: DSModalSlideName, slot: DSModalSlideSlots.FOOTER_WRAPPER })`
|
|
141
|
+
width: 100%;
|
|
142
|
+
display: flex;
|
|
143
|
+
flex-direction: row;
|
|
144
|
+
text-align: left;
|
|
145
|
+
align-items: center;
|
|
146
|
+
justify-content: flex-end;
|
|
147
|
+
padding: 0.61538rem 1.23077rem 0.61538rem 0;
|
|
148
|
+
height: 3.69231rem;
|
|
149
|
+
.em-ds-button {
|
|
150
|
+
margin-left: 1.23077rem;
|
|
151
|
+
}
|
|
152
|
+
`;
|
|
153
|
+
const HeaderWrapper = styled("div", { name: DSModalSlideName, slot: DSModalSlideSlots.HEADER_WRAPPER })`
|
|
154
|
+
display: flex;
|
|
155
|
+
justify-content: space-between;
|
|
156
|
+
width: 100%;
|
|
157
|
+
align-items: center;
|
|
158
|
+
height: 48px;
|
|
159
|
+
overflow: hidden;
|
|
160
|
+
`;
|
|
161
|
+
const StyledSeparator = styled(DSSeparatorV2, { name: DSModalSlideName, slot: DSModalSlideSlots.SEPARATOR })`
|
|
162
|
+
padding: ${(props) => props.theme.space.xs} 0;
|
|
163
|
+
position: initial;
|
|
164
|
+
margin: none;
|
|
165
|
+
`;
|
|
166
|
+
const StyledCloseButton = styled(DSButtonV2, { name: DSModalSlideName, slot: DSModalSlideSlots.CLOSE_BUTTON })`
|
|
167
|
+
margin: ${(props) => props.theme.space.xs};
|
|
168
|
+
`;
|
|
169
|
+
const StyledContentWrapper = styled(Grid, { name: DSModalSlideName, slot: DSModalSlideSlots.CONTENT_WRAPPER })`
|
|
170
|
+
overflow: auto;
|
|
171
|
+
&:focus,
|
|
172
|
+
&:focus-visible {
|
|
173
|
+
outline: 1px solid ${({ theme }) => theme.colors.brand["600"]};
|
|
174
|
+
outline-offset: -1px;
|
|
175
|
+
}
|
|
176
|
+
`;
|
|
177
|
+
export {
|
|
178
|
+
HeaderWrapper,
|
|
179
|
+
StyledActualContent,
|
|
180
|
+
StyledCloseButton,
|
|
181
|
+
StyledContent,
|
|
182
|
+
StyledContentWrapper,
|
|
183
|
+
StyledFooter,
|
|
184
|
+
StyledFooterWrapper,
|
|
185
|
+
StyledGridContent,
|
|
186
|
+
StyledHeader,
|
|
187
|
+
StyledHeaderLeftSide,
|
|
188
|
+
StyledModalWrapper,
|
|
189
|
+
StyledOverlay,
|
|
190
|
+
StyledSeparator,
|
|
191
|
+
StyledTitle
|
|
192
|
+
};
|
|
193
|
+
//# sourceMappingURL=styled.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/styled.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable max-lines */\nimport { DSButtonV2 } from '@elliemae/ds-button-v2';\nimport { Grid } from '@elliemae/ds-grid';\nimport { DSSeparatorV2 } from '@elliemae/ds-separator';\nimport { styled, kfrm } from '@elliemae/ds-system';\nimport { DSModalSlideName, DSModalSlideSlots } from './DSModalSlideDefinitions.js';\n\nconst overlayAnimation = kfrm`{\n 0% {\n background: rgba(37, 41, 47, 0);\n }\n 100% {\n background: rgba(37, 41, 47, 0.25);\n }\n}`;\n\nconst overlayAnimationOut = kfrm`{\n 0% {\n background: rgba(37, 41, 47, 0.25);\n }\n 100% {\n background: rgba(37, 41, 47, 0);\n }\n}`;\n\nconst contentAnimationOut = kfrm`{\n 0% {\n transform: translateX(0);\n }\n 100% {\n transform: translateX(100%);\n }\n}`;\n\nconst contentAnimationIn = kfrm`{\n 0% {\n transform: translateX(100%);\n }\n 100% {\n transform: translateX(0);\n }\n}`;\n\nexport const StyledModalWrapper = styled('div', {\n name: DSModalSlideName,\n slot: DSModalSlideSlots.ROOT,\n})<{ height: string | number }>`\n position: absolute;\n display: flex;\n height: calc(${(props) => props.height} * 1px);\n width: 100%;\n overflow: hidden;\n top: 0;\n left: 0;\n z-index: 10;\n\n .em-ds-modal-v2__modal-wrapper {\n flex: 1;\n padding: 2.46rem 0;\n }\n\n .em-ds-modal-v2__modal-title {\n max-width: 80%;\n margin: 0 auto;\n }\n`;\n\nexport const StyledOverlay = styled('div', {\n name: DSModalSlideName,\n slot: DSModalSlideSlots.OVERLAY,\n})<{ disappearing: boolean; showing: boolean; fadeIn: number; fadeOut: number }>`\n height: 100%;\n width: 100%;\n background: rgba(37, 41, 47, 0.25);\n display: flex;\n animation: ${(props) => (props.disappearing ? overlayAnimationOut : overlayAnimation)}\n calc(${(props) => (props.disappearing ? props.fadeOut : props.fadeIn)} * 1ms) linear;\n\n ${(props) =>\n props.showing &&\n `display: flex;\n height: 100%;`}\n`;\n\nexport const StyledContent = styled('div', { name: DSModalSlideName, slot: DSModalSlideSlots.CONTENT })<{\n height: number | string;\n width: number | string;\n disappearing: boolean;\n fadeIn: number;\n fadeOut: number;\n}>`\n height: calc(${(props) => props.height} * 1px);\n background: neutral-000;\n box-shadow:\n 0 6px 20px 0 rgba(0, 0, 0, 0.24),\n 0 8px 17px 0 rgba(0, 0, 0, 0.19);\n width: calc(${(props) => props.width} * 1%);\n margin-left: auto;\n align-items: center;\n flex-direction: column;\n display: flex;\n overflow-y: auto;\n border: 1px solid neutral-300;\n border-left: 2px solid neutral-300;\n animation: ${(props) => (props.disappearing ? contentAnimationOut : contentAnimationIn)}\n calc(${(props) => (props.disappearing ? props.fadeOut / 2 : props.fadeIn / 2)} * 1ms) linear;\n .em-ds-separator-wrapper {\n margin-top: unset;\n }\n`;\n\nexport const StyledGridContent = styled(Grid)`\n height: 100%;\n width: 100%;\n max-height: 100%;\n overflow: hidden;\n -webkit-backface-visibility: hidden;\n backface-visibility: hidden;\n -webkit-transform-style: preserve-3d;\n transform-style: preserve-3d;\n`;\n\nexport const StyledTitle = styled('div', { name: DSModalSlideName, slot: DSModalSlideSlots.TITLE })``;\n\nexport const StyledHeaderLeftSide = styled('div', { name: DSModalSlideName, slot: DSModalSlideSlots.HEADER_LEFT_SIDE })`\n width: 100%;\n display: flex;\n flex-direction: row;\n text-align: left;\n padding: 0.61538rem 1.23077rem 0.61538rem 0;\n height: 3.69231rem;\n\n .em-ds-button {\n .em-ds-icon {\n fill: brand-primary-600;\n }\n }\n .close-button {\n padding-left: 18px;\n }\n`;\n\nexport const StyledActualContent = styled('div', { name: DSModalSlideName, slot: DSModalSlideSlots.ACTUAL_CONTENT })`\n display: flex;\n flex-direction: column;\n`;\n\nexport const StyledHeader = styled('div', { name: DSModalSlideName, slot: DSModalSlideSlots.HEADER })`\n padding: 0 1.23077rem;\n display: flex;\n flex-direction: column;\n justify-content: center;\n\n ${StyledTitle} {\n font-size: 1.3846rem;\n color: neutral-700;\n }\n`;\n\nexport const StyledFooter = styled('div', { name: DSModalSlideName, slot: DSModalSlideSlots.FOOTER })``;\n\nexport const StyledFooterWrapper = styled('div', { name: DSModalSlideName, slot: DSModalSlideSlots.FOOTER_WRAPPER })`\n width: 100%;\n display: flex;\n flex-direction: row;\n text-align: left;\n align-items: center;\n justify-content: flex-end;\n padding: 0.61538rem 1.23077rem 0.61538rem 0;\n height: 3.69231rem;\n .em-ds-button {\n margin-left: 1.23077rem;\n }\n`;\n\nexport const HeaderWrapper = styled('div', { name: DSModalSlideName, slot: DSModalSlideSlots.HEADER_WRAPPER })`\n display: flex;\n justify-content: space-between;\n width: 100%;\n align-items: center;\n height: 48px;\n overflow: hidden;\n`;\n\nexport const StyledSeparator = styled(DSSeparatorV2, { name: DSModalSlideName, slot: DSModalSlideSlots.SEPARATOR })`\n padding: ${(props) => props.theme.space.xs} 0;\n position: initial;\n margin: none;\n`;\n\nexport const StyledCloseButton = styled(DSButtonV2, { name: DSModalSlideName, slot: DSModalSlideSlots.CLOSE_BUTTON })`\n margin: ${(props) => props.theme.space.xs};\n`;\n\nexport const StyledContentWrapper = styled(Grid, { name: DSModalSlideName, slot: DSModalSlideSlots.CONTENT_WRAPPER })`\n overflow: auto;\n &:focus,\n &:focus-visible {\n outline: 1px solid ${({ theme }) => theme.colors.brand['600']};\n outline-offset: -1px;\n }\n`;\n"],
|
|
5
|
+
"mappings": "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",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,44 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import ModalHeader from './components/Header.js';
|
|
3
3
|
import ModalFooter from './components/Footer.js';
|
|
4
|
+
import { type DSModalSlideT } from './react-desc-prop-types.js';
|
|
4
5
|
declare const DSModalSlide: {
|
|
5
|
-
(props:
|
|
6
|
-
propTypes: {
|
|
7
|
-
/**
|
|
8
|
-
* If the modal slide is centered or not
|
|
9
|
-
*/
|
|
10
|
-
centered: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
11
|
-
/**
|
|
12
|
-
* If the modal slide is visible or not
|
|
13
|
-
*/
|
|
14
|
-
isOpen: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
15
|
-
/**
|
|
16
|
-
* Main content of the modal
|
|
17
|
-
*/
|
|
18
|
-
children: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
19
|
-
/**
|
|
20
|
-
* If the modal slide takes the full width or not
|
|
21
|
-
*/
|
|
22
|
-
fullWidth: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
23
|
-
/**
|
|
24
|
-
* If the modal slide has a header, only available for full width option
|
|
25
|
-
*/
|
|
26
|
-
header: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
27
|
-
/**
|
|
28
|
-
* Ratio of fade out
|
|
29
|
-
*/
|
|
30
|
-
fadeOut: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
31
|
-
/**
|
|
32
|
-
* Ratio of fade in
|
|
33
|
-
*/
|
|
34
|
-
fadeIn: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
35
|
-
/**
|
|
36
|
-
* Override the panel height to scroll height of the container
|
|
37
|
-
*/
|
|
38
|
-
overrideHeight: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
39
|
-
};
|
|
6
|
+
(props: DSModalSlideT.Props): React.ReactPortal | null;
|
|
40
7
|
displayName: string;
|
|
41
8
|
};
|
|
42
|
-
declare const DSModalSlideWithSchema: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").DocumentedReactComponent<
|
|
9
|
+
declare const DSModalSlideWithSchema: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").DocumentedReactComponent<DSModalSlideT.Props>;
|
|
43
10
|
export { ModalHeader, ModalFooter, DSModalSlide, DSModalSlideWithSchema };
|
|
44
11
|
export default DSModalSlide;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const DSModalSlideName = "DSModalSlide";
|
|
2
|
+
export declare const DSModalSlideSlots: {
|
|
3
|
+
ROOT: string;
|
|
4
|
+
OVERLAY: string;
|
|
5
|
+
CONTENT: string;
|
|
6
|
+
TITLE: string;
|
|
7
|
+
HEADER_LEFT_SIDE: string;
|
|
8
|
+
ACTUAL_CONTENT: string;
|
|
9
|
+
HEADER: string;
|
|
10
|
+
FOOTER: string;
|
|
11
|
+
FOOTER_WRAPPER: string;
|
|
12
|
+
HEADER_WRAPPER: string;
|
|
13
|
+
SEPARATOR: string;
|
|
14
|
+
CLOSE_BUTTON: string;
|
|
15
|
+
CONTENT_WRAPPER: string;
|
|
16
|
+
};
|
|
17
|
+
export declare const DSModalSlideDataTestIds: {
|
|
18
|
+
CLOSE_BUTTON: string;
|
|
19
|
+
};
|
|
@@ -1,55 +1,8 @@
|
|
|
1
|
+
import { type DSModalSlideT } from '../react-desc-prop-types.js';
|
|
1
2
|
declare const ModalFooter: {
|
|
2
|
-
(
|
|
3
|
-
confirmLabel?: string | undefined;
|
|
4
|
-
rejectLabel?: string | undefined;
|
|
5
|
-
onConfirm: any;
|
|
6
|
-
onReject: any;
|
|
7
|
-
confirmProps?: {
|
|
8
|
-
disabled: boolean;
|
|
9
|
-
} | undefined;
|
|
10
|
-
rejectProps?: {
|
|
11
|
-
disabled: boolean;
|
|
12
|
-
} | undefined;
|
|
13
|
-
}): import("react/jsx-runtime.js").JSX.Element;
|
|
14
|
-
propTypes: {
|
|
15
|
-
/**
|
|
16
|
-
* Confirm Label
|
|
17
|
-
*/
|
|
18
|
-
confirmLabel: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
19
|
-
/**
|
|
20
|
-
* Reject Label
|
|
21
|
-
*/
|
|
22
|
-
rejectLabel: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
23
|
-
/**
|
|
24
|
-
* Callback
|
|
25
|
-
*/
|
|
26
|
-
onConfirm: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
27
|
-
/**
|
|
28
|
-
* Callback
|
|
29
|
-
*/
|
|
30
|
-
onReject: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
31
|
-
/**
|
|
32
|
-
* Extra DSButton props for confirm btn.
|
|
33
|
-
*/
|
|
34
|
-
confirmProps: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
35
|
-
/**
|
|
36
|
-
* Extra DSButton props for reject btn.
|
|
37
|
-
*/
|
|
38
|
-
rejectProps: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
39
|
-
};
|
|
3
|
+
(props: DSModalSlideT.FooterProps): import("react/jsx-runtime.js").JSX.Element;
|
|
40
4
|
displayName: string;
|
|
41
5
|
};
|
|
42
|
-
declare const DSModalSlideFooterWithSchema: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").DocumentedReactComponent<
|
|
43
|
-
confirmLabel?: string | undefined;
|
|
44
|
-
rejectLabel?: string | undefined;
|
|
45
|
-
onConfirm: any;
|
|
46
|
-
onReject: any;
|
|
47
|
-
confirmProps?: {
|
|
48
|
-
disabled: boolean;
|
|
49
|
-
} | undefined;
|
|
50
|
-
rejectProps?: {
|
|
51
|
-
disabled: boolean;
|
|
52
|
-
} | undefined;
|
|
53
|
-
}>;
|
|
6
|
+
declare const DSModalSlideFooterWithSchema: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").DocumentedReactComponent<DSModalSlideT.FooterProps>;
|
|
54
7
|
export { DSModalSlideFooterWithSchema };
|
|
55
8
|
export default ModalFooter;
|
|
@@ -1,26 +1,8 @@
|
|
|
1
|
+
import { type DSModalSlideT } from '../react-desc-prop-types.js';
|
|
1
2
|
declare const ModalHeader: {
|
|
2
|
-
(
|
|
3
|
-
innerRef?: null | undefined;
|
|
4
|
-
title?: string | undefined;
|
|
5
|
-
onClose?: (() => null) | undefined;
|
|
6
|
-
toolbar?: null | undefined;
|
|
7
|
-
}): import("react/jsx-runtime.js").JSX.Element;
|
|
8
|
-
propTypes: {
|
|
9
|
-
/** on modal close callback */
|
|
10
|
-
onClose: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
11
|
-
/** modal toolbar component */
|
|
12
|
-
toolbar: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
13
|
-
/** modal title */
|
|
14
|
-
title: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
15
|
-
innerRef: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
16
|
-
};
|
|
3
|
+
(props: DSModalSlideT.HeaderProps): import("react/jsx-runtime.js").JSX.Element;
|
|
17
4
|
displayName: string;
|
|
18
5
|
};
|
|
19
|
-
declare const DSModalSlideHeaderWithSchema: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").DocumentedReactComponent<
|
|
20
|
-
innerRef?: null | undefined;
|
|
21
|
-
title?: string | undefined;
|
|
22
|
-
onClose?: (() => null) | undefined;
|
|
23
|
-
toolbar?: null | undefined;
|
|
24
|
-
}>;
|
|
6
|
+
declare const DSModalSlideHeaderWithSchema: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").DocumentedReactComponent<DSModalSlideT.HeaderProps>;
|
|
25
7
|
export { DSModalSlideHeaderWithSchema };
|
|
26
8
|
export default ModalHeader;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -2,3 +2,4 @@ export * from './DSModalSlide.js';
|
|
|
2
2
|
export { default } from './DSModalSlide.js';
|
|
3
3
|
export { DSModalSlideHeaderWithSchema } from './components/Header.js';
|
|
4
4
|
export { DSModalSlideFooterWithSchema } from './components/Footer.js';
|
|
5
|
+
export type { DSModalSlideT } from './react-desc-prop-types.js';
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { GlobalAttributesT, XstyledProps, DSPropTypesSchema } from '@elliemae/ds-props-helpers';
|
|
3
|
+
export declare namespace DSModalSlideT {
|
|
4
|
+
type PropsT<D, R, O, E> = Partial<D> & R & O & Omit<GlobalAttributesT<E>, keyof D | keyof R | keyof O> & XstyledProps;
|
|
5
|
+
type InternalPropsT<D, R, O, E> = D & R & O & Omit<GlobalAttributesT<E>, keyof D | keyof R | keyof O> & XstyledProps;
|
|
6
|
+
interface RequiredProps {
|
|
7
|
+
getContainer: () => HTMLElement;
|
|
8
|
+
}
|
|
9
|
+
interface DefaultProps {
|
|
10
|
+
isOpen: boolean;
|
|
11
|
+
centered: boolean;
|
|
12
|
+
fullWidth: boolean;
|
|
13
|
+
fadeOut: number;
|
|
14
|
+
fadeIn: number;
|
|
15
|
+
overrideHeight: boolean;
|
|
16
|
+
}
|
|
17
|
+
interface OptionalProps {
|
|
18
|
+
header: JSX.Element;
|
|
19
|
+
footer: React.ReactNode;
|
|
20
|
+
children?: React.ReactNode;
|
|
21
|
+
innerRef?: React.MutableRefObject<HTMLDivElement | null> | React.RefCallback<HTMLDivElement>;
|
|
22
|
+
}
|
|
23
|
+
interface FooterRequiredProps {
|
|
24
|
+
}
|
|
25
|
+
interface FooterDefaultProps {
|
|
26
|
+
confirmLabel: string;
|
|
27
|
+
rejectLabel: string;
|
|
28
|
+
confirmProps: {
|
|
29
|
+
disabled: boolean;
|
|
30
|
+
};
|
|
31
|
+
rejectProps: {
|
|
32
|
+
disabled: boolean;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
interface FooterOptionalProps {
|
|
36
|
+
onConfirm: () => void;
|
|
37
|
+
onReject: () => void;
|
|
38
|
+
}
|
|
39
|
+
interface HeaderRequiredProps {
|
|
40
|
+
}
|
|
41
|
+
interface HeaderDefaultProps {
|
|
42
|
+
title: string;
|
|
43
|
+
onClose: () => void;
|
|
44
|
+
}
|
|
45
|
+
interface HeaderOptionalProps {
|
|
46
|
+
toolbar?: React.ReactNode;
|
|
47
|
+
innerRef?: React.MutableRefObject<HTMLButtonElement | null> | React.RefCallback<HTMLButtonElement>;
|
|
48
|
+
}
|
|
49
|
+
type Props = PropsT<DefaultProps, RequiredProps, OptionalProps, HTMLElement>;
|
|
50
|
+
type InternalProps = InternalPropsT<DefaultProps, RequiredProps, OptionalProps, HTMLElement>;
|
|
51
|
+
type HeaderProps = PropsT<HeaderDefaultProps, HeaderRequiredProps, HeaderOptionalProps, HTMLButtonElement>;
|
|
52
|
+
type HeaderInternalProps = InternalPropsT<HeaderDefaultProps, HeaderRequiredProps, HeaderOptionalProps, HTMLButtonElement>;
|
|
53
|
+
type FooterProps = PropsT<FooterDefaultProps, FooterRequiredProps, FooterOptionalProps, HTMLDivElement>;
|
|
54
|
+
type FooterInternalProps = InternalPropsT<FooterDefaultProps, FooterRequiredProps, FooterOptionalProps, HTMLDivElement>;
|
|
55
|
+
}
|
|
56
|
+
export declare const defaultProps: DSModalSlideT.DefaultProps;
|
|
57
|
+
export declare const headerDefaultProps: DSModalSlideT.HeaderDefaultProps;
|
|
58
|
+
export declare const footerDefaultProps: DSModalSlideT.FooterDefaultProps;
|
|
59
|
+
export declare const DSModalSlidePropTypes: DSPropTypesSchema<DSModalSlideT.Props>;
|
|
60
|
+
export declare const DSModalSlidePropTypesSchema: import("react").WeakValidationMap<DSModalSlideT.Props>;
|
|
61
|
+
export declare const DSModalSlideHeaderPropTypes: DSPropTypesSchema<DSModalSlideT.HeaderProps>;
|
|
62
|
+
export declare const DSModalSlideHeaderPropTypesSchema: import("react").WeakValidationMap<DSModalSlideT.HeaderProps>;
|
|
63
|
+
export declare const DSModalSlideFooterPropTypes: DSPropTypesSchema<DSModalSlideT.FooterProps>;
|
|
64
|
+
export declare const DSModalSlideFooterPropTypesSchema: import("react").WeakValidationMap<DSModalSlideT.FooterProps>;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StyledModalWrapper: import("styled-components").StyledComponent<"div", import("@elliemae/ds-system").Theme, {
|
|
3
|
+
height: string | number;
|
|
4
|
+
} & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<"div">, never>;
|
|
5
|
+
export declare const StyledOverlay: import("styled-components").StyledComponent<"div", import("@elliemae/ds-system").Theme, {
|
|
6
|
+
disappearing: boolean;
|
|
7
|
+
showing: boolean;
|
|
8
|
+
fadeIn: number;
|
|
9
|
+
fadeOut: number;
|
|
10
|
+
} & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<"div">, never>;
|
|
11
|
+
export declare const StyledContent: import("styled-components").StyledComponent<"div", import("@elliemae/ds-system").Theme, {
|
|
12
|
+
height: number | string;
|
|
13
|
+
width: number | string;
|
|
14
|
+
disappearing: boolean;
|
|
15
|
+
fadeIn: number;
|
|
16
|
+
fadeOut: number;
|
|
17
|
+
} & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<"div">, never>;
|
|
18
|
+
export declare const StyledGridContent: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid").DSGridT.Props & import("react").RefAttributes<HTMLDivElement>>, import("@elliemae/ds-system").Theme, object & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid").DSGridT.Props & import("react").RefAttributes<HTMLDivElement>>>, never>;
|
|
19
|
+
export declare const StyledTitle: import("styled-components").StyledComponent<"div", import("@elliemae/ds-system").Theme, object & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<"div">, never>;
|
|
20
|
+
export declare const StyledHeaderLeftSide: import("styled-components").StyledComponent<"div", import("@elliemae/ds-system").Theme, object & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<"div">, never>;
|
|
21
|
+
export declare const StyledActualContent: import("styled-components").StyledComponent<"div", import("@elliemae/ds-system").Theme, object & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<"div">, never>;
|
|
22
|
+
export declare const StyledHeader: import("styled-components").StyledComponent<"div", import("@elliemae/ds-system").Theme, {
|
|
23
|
+
[x: string]: any;
|
|
24
|
+
[x: number]: any;
|
|
25
|
+
[x: symbol]: any;
|
|
26
|
+
} & {
|
|
27
|
+
theme?: import("@elliemae/ds-system").Theme | undefined;
|
|
28
|
+
} & {
|
|
29
|
+
as?: string | import("react").ComponentType<any> | undefined;
|
|
30
|
+
forwardedAs?: string | import("react").ComponentType<any> | undefined;
|
|
31
|
+
} & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<"div">, never>;
|
|
32
|
+
export declare const StyledFooter: import("styled-components").StyledComponent<"div", import("@elliemae/ds-system").Theme, object & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<"div">, never>;
|
|
33
|
+
export declare const StyledFooterWrapper: import("styled-components").StyledComponent<"div", import("@elliemae/ds-system").Theme, object & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<"div">, never>;
|
|
34
|
+
export declare const HeaderWrapper: import("styled-components").StyledComponent<"div", import("@elliemae/ds-system").Theme, object & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<"div">, never>;
|
|
35
|
+
export declare const StyledSeparator: import("styled-components").StyledComponent<{
|
|
36
|
+
(props: import("@elliemae/ds-separator/dist/types/v2/react-desc-prop-types.js").DSSeparatorV2T.Props): JSX.Element;
|
|
37
|
+
displayName: string;
|
|
38
|
+
}, import("@elliemae/ds-system").Theme, object & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<{
|
|
39
|
+
(props: import("@elliemae/ds-separator/dist/types/v2/react-desc-prop-types.js").DSSeparatorV2T.Props): JSX.Element;
|
|
40
|
+
displayName: string;
|
|
41
|
+
}>, never>;
|
|
42
|
+
export declare const StyledCloseButton: import("styled-components").StyledComponent<import("react").ComponentType<import("@elliemae/ds-button-v2").DSButtonV2T.Props>, import("@elliemae/ds-system").Theme, object & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<import("react").ComponentType<import("@elliemae/ds-button-v2").DSButtonV2T.Props>>, never>;
|
|
43
|
+
export declare const StyledContentWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid").DSGridT.Props & import("react").RefAttributes<HTMLDivElement>>, import("@elliemae/ds-system").Theme, object & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid").DSGridT.Props & import("react").RefAttributes<HTMLDivElement>>>, never>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-modal-slide",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.26.0-next.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Modal Slide",
|
|
6
6
|
"files": [
|
|
@@ -51,18 +51,19 @@
|
|
|
51
51
|
"indent": 4
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@elliemae/ds-
|
|
55
|
-
"@elliemae/ds-
|
|
56
|
-
"@elliemae/ds-
|
|
57
|
-
"@elliemae/ds-
|
|
58
|
-
"@elliemae/ds-
|
|
59
|
-
"@elliemae/ds-
|
|
60
|
-
"@elliemae/ds-
|
|
54
|
+
"@elliemae/ds-classnames": "3.26.0-next.2",
|
|
55
|
+
"@elliemae/ds-grid": "3.26.0-next.2",
|
|
56
|
+
"@elliemae/ds-button-v2": "3.26.0-next.2",
|
|
57
|
+
"@elliemae/ds-separator": "3.26.0-next.2",
|
|
58
|
+
"@elliemae/ds-system": "3.26.0-next.2",
|
|
59
|
+
"@elliemae/ds-icons": "3.26.0-next.2",
|
|
60
|
+
"@elliemae/ds-props-helpers": "3.26.0-next.2"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@elliemae/pui-cli": "~9.0.0-next.31",
|
|
64
64
|
"styled-components": "~5.3.9",
|
|
65
|
-
"@elliemae/ds-
|
|
65
|
+
"@elliemae/ds-utilities": "3.26.0-next.2",
|
|
66
|
+
"@elliemae/ds-monorepo-devops": "3.26.0-next.2"
|
|
66
67
|
},
|
|
67
68
|
"peerDependencies": {
|
|
68
69
|
"lodash": "~4.17.21",
|
|
@@ -1,66 +0,0 @@
|
|
|
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_classnames = require("@elliemae/ds-classnames");
|
|
45
|
-
const blockName = "modal-slide";
|
|
46
|
-
const Wrapper = (0, import_ds_classnames.aggregatedClasses)("div")(blockName, "wrapper", ({ show, centered }) => ({
|
|
47
|
-
showing: show,
|
|
48
|
-
disappearing: !show,
|
|
49
|
-
centered
|
|
50
|
-
}));
|
|
51
|
-
const Overlay = (0, import_ds_classnames.aggregatedClasses)("div")(blockName, "overlay", ({ show }) => ({
|
|
52
|
-
showing: show,
|
|
53
|
-
disappearing: !show
|
|
54
|
-
}));
|
|
55
|
-
const Content = (0, import_ds_classnames.aggregatedClasses)("div")(blockName, "content", ({ show }) => ({
|
|
56
|
-
showing: show,
|
|
57
|
-
disappearing: !show
|
|
58
|
-
}));
|
|
59
|
-
const Title = (0, import_ds_classnames.aggregatedClasses)("div")(blockName, "title", () => ({}));
|
|
60
|
-
const BreadcrumTitle = (0, import_ds_classnames.aggregatedClasses)("div")(blockName, "breadcrum-title", () => ({}));
|
|
61
|
-
const HeaderLeftSide = (0, import_ds_classnames.aggregatedClasses)("div")(blockName, "header-left-side", () => ({}));
|
|
62
|
-
const ActualContent = (0, import_ds_classnames.aggregatedClasses)("div")(blockName, "actual-content", () => ({}));
|
|
63
|
-
const Header = (0, import_ds_classnames.aggregatedClasses)("div")(blockName, "header", () => ({}));
|
|
64
|
-
const Footer = (0, import_ds_classnames.aggregatedClasses)("div")(blockName, "footer", () => ({}));
|
|
65
|
-
const FooterWrapper = (0, import_ds_classnames.aggregatedClasses)("div")(blockName, "footer-wrapper", () => ({}));
|
|
66
|
-
//# sourceMappingURL=blocks.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/components/blocks.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["import { aggregatedClasses } from '@elliemae/ds-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,2BAAkC;AAElC,MAAM,YAAY;AAEX,MAAM,cAAU,wCAAkB,KAAK,EAAE,WAAW,WAAW,CAAC,EAAE,MAAM,SAAS,OAAO;AAAA,EAC7F,SAAS;AAAA,EACT,cAAc,CAAC;AAAA,EACf;AACF,EAAE;AAEK,MAAM,cAAU,wCAAkB,KAAK,EAAE,WAAW,WAAW,CAAC,EAAE,KAAK,OAAO;AAAA,EACnF,SAAS;AAAA,EACT,cAAc,CAAC;AACjB,EAAE;AAEK,MAAM,cAAU,wCAAkB,KAAK,EAAE,WAAW,WAAW,CAAC,EAAE,KAAK,OAAO;AAAA,EACnF,SAAS;AAAA,EACT,cAAc,CAAC;AACjB,EAAE;AAEK,MAAM,YAAQ,wCAAkB,KAAK,EAAE,WAAW,SAAS,OAAO,CAAC,EAAE;AAErE,MAAM,qBAAiB,wCAAkB,KAAK,EAAE,WAAW,mBAAmB,OAAO,CAAC,EAAE;AAExF,MAAM,qBAAiB,wCAAkB,KAAK,EAAE,WAAW,oBAAoB,OAAO,CAAC,EAAE;AAEzF,MAAM,oBAAgB,wCAAkB,KAAK,EAAE,WAAW,kBAAkB,OAAO,CAAC,EAAE;AACtF,MAAM,aAAS,wCAAkB,KAAK,EAAE,WAAW,UAAU,OAAO,CAAC,EAAE;AACvE,MAAM,aAAS,wCAAkB,KAAK,EAAE,WAAW,UAAU,OAAO,CAAC,EAAE;AAEvE,MAAM,oBAAgB,wCAAkB,KAAK,EAAE,WAAW,kBAAkB,OAAO,CAAC,EAAE;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
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
|