@elliemae/ds-modal-slide 3.60.0-next.38 → 3.60.0-next.39
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/parts/DSModalFooter/DSModalFooter.js +2 -3
- package/dist/cjs/parts/DSModalFooter/DSModalFooter.js.map +2 -2
- package/dist/cjs/parts/DSModalFooter/constants/index.js +7 -1
- package/dist/cjs/parts/DSModalFooter/constants/index.js.map +2 -2
- package/dist/cjs/parts/DSModalHeader/DSModalHeader.js +7 -24
- package/dist/cjs/parts/DSModalHeader/DSModalHeader.js.map +2 -2
- package/dist/cjs/styled.js +6 -30
- package/dist/cjs/styled.js.map +2 -2
- package/dist/esm/parts/DSModalFooter/DSModalFooter.js +3 -4
- package/dist/esm/parts/DSModalFooter/DSModalFooter.js.map +2 -2
- package/dist/esm/parts/DSModalFooter/constants/index.js +7 -1
- package/dist/esm/parts/DSModalFooter/constants/index.js.map +2 -2
- package/dist/esm/parts/DSModalHeader/DSModalHeader.js +7 -24
- package/dist/esm/parts/DSModalHeader/DSModalHeader.js.map +2 -2
- package/dist/esm/styled.js +6 -30
- package/dist/esm/styled.js.map +2 -2
- package/dist/types/parts/DSModalFooter/constants/index.d.ts +3 -3
- package/package.json +9 -9
|
@@ -45,7 +45,6 @@ const DSModalFooter = (props) => {
|
|
|
45
45
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
46
46
|
import_styled.StyledFooterWrapper,
|
|
47
47
|
{
|
|
48
|
-
className: "em-ds-modal-slide__footer-wrapper",
|
|
49
48
|
"aria-label": "Modal Slide Footer",
|
|
50
49
|
getOwnerProps,
|
|
51
50
|
getOwnerPropsArguments,
|
|
@@ -54,8 +53,8 @@ const DSModalFooter = (props) => {
|
|
|
54
53
|
import_styled.StyledRejectButton,
|
|
55
54
|
{
|
|
56
55
|
buttonType: "outline",
|
|
57
|
-
className: "action-reject",
|
|
58
56
|
onClick: onReject,
|
|
57
|
+
"data-testid": import_constants.MODAL_FOOTER_DATA_TESTID.REJECT_BUTTON,
|
|
59
58
|
...rejectProps,
|
|
60
59
|
ml: "xs",
|
|
61
60
|
getOwnerProps,
|
|
@@ -67,7 +66,7 @@ const DSModalFooter = (props) => {
|
|
|
67
66
|
import_styled.StyledConfirmButton,
|
|
68
67
|
{
|
|
69
68
|
buttonType: "filled",
|
|
70
|
-
|
|
69
|
+
"data-testid": import_constants.MODAL_FOOTER_DATA_TESTID.CONFIRM_BUTTON,
|
|
71
70
|
onClick: onConfirm,
|
|
72
71
|
...confirmProps,
|
|
73
72
|
ml: "xs",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/parts/DSModalFooter/DSModalFooter.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["import React from 'react';\nimport { describe } from '@elliemae/ds-props-helpers';\nimport { type DSModalFooterT, DSModalFooterPropTypesSchema } from './react-desc-prop-types.js';\nimport { StyledFooterWrapper, StyledRejectButton, StyledConfirmButton } from '../../styled.js';\nimport { DSModalFooterName } from './constants/index.js';\nimport { useModalFooter } from './config/useModalFooter.js';\nconst DSModalFooter = (props: DSModalFooterT.Props) => {\n const { propsWithDefault, getOwnerProps, getOwnerPropsArguments } = useModalFooter(props);\n\n const { confirmLabel, rejectLabel, onConfirm, onReject, confirmProps, rejectProps } = propsWithDefault;\n\n return (\n <StyledFooterWrapper\n
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADYnB;AAXJ,8BAAyB;AACzB,mCAAkE;AAClE,oBAA6E;AAC7E,
|
|
4
|
+
"sourcesContent": ["import React from 'react';\nimport { describe } from '@elliemae/ds-props-helpers';\nimport { type DSModalFooterT, DSModalFooterPropTypesSchema } from './react-desc-prop-types.js';\nimport { StyledFooterWrapper, StyledRejectButton, StyledConfirmButton } from '../../styled.js';\nimport { DSModalFooterName, MODAL_FOOTER_DATA_TESTID } from './constants/index.js';\nimport { useModalFooter } from './config/useModalFooter.js';\nconst DSModalFooter = (props: DSModalFooterT.Props) => {\n const { propsWithDefault, getOwnerProps, getOwnerPropsArguments } = useModalFooter(props);\n\n const { confirmLabel, rejectLabel, onConfirm, onReject, confirmProps, rejectProps } = propsWithDefault;\n\n return (\n <StyledFooterWrapper\n aria-label=\"Modal Slide Footer\"\n getOwnerProps={getOwnerProps}\n getOwnerPropsArguments={getOwnerPropsArguments}\n >\n {!!onReject && (\n <StyledRejectButton\n buttonType=\"outline\"\n onClick={onReject}\n data-testid={MODAL_FOOTER_DATA_TESTID.REJECT_BUTTON}\n {...rejectProps}\n ml=\"xs\"\n getOwnerProps={getOwnerProps}\n getOwnerPropsArguments={getOwnerPropsArguments}\n >\n {rejectLabel}\n </StyledRejectButton>\n )}\n\n {!!onConfirm && (\n <StyledConfirmButton\n buttonType=\"filled\"\n data-testid={MODAL_FOOTER_DATA_TESTID.CONFIRM_BUTTON}\n onClick={onConfirm}\n {...confirmProps}\n ml=\"xs\"\n getOwnerProps={getOwnerProps}\n getOwnerPropsArguments={getOwnerPropsArguments}\n >\n {confirmLabel}\n </StyledConfirmButton>\n )}\n </StyledFooterWrapper>\n );\n};\n\nDSModalFooter.displayName = DSModalFooterName;\nconst DSModalFooterWithSchema = describe(DSModalFooter);\nDSModalFooterWithSchema.propTypes = DSModalFooterPropTypesSchema;\n\nexport { DSModalFooter, DSModalFooterWithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADYnB;AAXJ,8BAAyB;AACzB,mCAAkE;AAClE,oBAA6E;AAC7E,uBAA4D;AAC5D,4BAA+B;AAC/B,MAAM,gBAAgB,CAAC,UAAgC;AACrD,QAAM,EAAE,kBAAkB,eAAe,uBAAuB,QAAI,sCAAe,KAAK;AAExF,QAAM,EAAE,cAAc,aAAa,WAAW,UAAU,cAAc,YAAY,IAAI;AAEtF,SACE;AAAA,IAAC;AAAA;AAAA,MACC,cAAW;AAAA,MACX;AAAA,MACA;AAAA,MAEC;AAAA,SAAC,CAAC,YACD;AAAA,UAAC;AAAA;AAAA,YACC,YAAW;AAAA,YACX,SAAS;AAAA,YACT,eAAa,0CAAyB;AAAA,YACrC,GAAG;AAAA,YACJ,IAAG;AAAA,YACH;AAAA,YACA;AAAA,YAEC;AAAA;AAAA,QACH;AAAA,QAGD,CAAC,CAAC,aACD;AAAA,UAAC;AAAA;AAAA,YACC,YAAW;AAAA,YACX,eAAa,0CAAyB;AAAA,YACtC,SAAS;AAAA,YACR,GAAG;AAAA,YACJ,IAAG;AAAA,YACH;AAAA,YACA;AAAA,YAEC;AAAA;AAAA,QACH;AAAA;AAAA;AAAA,EAEJ;AAEJ;AAEA,cAAc,cAAc;AAC5B,MAAM,8BAA0B,kCAAS,aAAa;AACtD,wBAAwB,YAAY;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -43,5 +43,11 @@ const MODAL_FOOTER_SLOTS = {
|
|
|
43
43
|
REJECT_BUTTON: "reject-button",
|
|
44
44
|
FOOTER_WRAPPER: "footer-wrapper"
|
|
45
45
|
};
|
|
46
|
-
const MODAL_FOOTER_DATA_TESTID =
|
|
46
|
+
const MODAL_FOOTER_DATA_TESTID = {
|
|
47
|
+
...(0, import_ds_system.slotObjectToDataTestIds)(import_constants.DSModalSlideName, MODAL_FOOTER_SLOTS),
|
|
48
|
+
// legacy test ids - keeping them around to avoid breaking changes
|
|
49
|
+
// https://jira.elliemae.io/browse/PUI-18013
|
|
50
|
+
REJECT_BUTTON: "modal-footer-reject-btn",
|
|
51
|
+
CONFIRM_BUTTON: "modal-footer-confirm-btn"
|
|
52
|
+
};
|
|
47
53
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../src/parts/DSModalFooter/constants/index.ts", "../../../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["import { slotObjectToDataTestIds } from '@elliemae/ds-system';\nimport { DSModalSlideName } from '../../../constants/index.js';\nexport { DSModalSlideName };\n\nexport const DSModalFooterName = 'DSModalFooter';\n\nexport const MODAL_FOOTER_SLOTS = {\n CONFIRM_BUTTON: 'confirm-button',\n REJECT_BUTTON: 'reject-button',\n FOOTER_WRAPPER: 'footer-wrapper',\n} as const;\n\nexport const MODAL_FOOTER_DATA_TESTID = slotObjectToDataTestIds(DSModalSlideName, MODAL_FOOTER_SLOTS);\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,uBAAwC;AACxC,uBAAiC;AAG1B,MAAM,oBAAoB;AAE1B,MAAM,qBAAqB;AAAA,EAChC,gBAAgB;AAAA,EAChB,eAAe;AAAA,EACf,gBAAgB;AAClB;AAEO,MAAM
|
|
4
|
+
"sourcesContent": ["import { slotObjectToDataTestIds } from '@elliemae/ds-system';\nimport { DSModalSlideName } from '../../../constants/index.js';\nexport { DSModalSlideName };\n\nexport const DSModalFooterName = 'DSModalFooter';\n\nexport const MODAL_FOOTER_SLOTS = {\n CONFIRM_BUTTON: 'confirm-button',\n REJECT_BUTTON: 'reject-button',\n FOOTER_WRAPPER: 'footer-wrapper',\n} as const;\n\nexport const MODAL_FOOTER_DATA_TESTID = {\n ...slotObjectToDataTestIds(DSModalSlideName, MODAL_FOOTER_SLOTS),\n // legacy test ids - keeping them around to avoid breaking changes\n // https://jira.elliemae.io/browse/PUI-18013\n REJECT_BUTTON: 'modal-footer-reject-btn',\n CONFIRM_BUTTON: 'modal-footer-confirm-btn',\n};\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,uBAAwC;AACxC,uBAAiC;AAG1B,MAAM,oBAAoB;AAE1B,MAAM,qBAAqB;AAAA,EAChC,gBAAgB;AAAA,EAChB,eAAe;AAAA,EACf,gBAAgB;AAClB;AAEO,MAAM,2BAA2B;AAAA,EACtC,OAAG,0CAAwB,mCAAkB,kBAAkB;AAAA;AAAA;AAAA,EAG/D,eAAe;AAAA,EACf,gBAAgB;AAClB;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -50,33 +50,16 @@ const DSModalHeader = (props) => {
|
|
|
50
50
|
getOwnerProps,
|
|
51
51
|
getOwnerPropsArguments,
|
|
52
52
|
children: [
|
|
53
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
54
|
-
import_styled.
|
|
53
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled.StyledHeaderLeftSide, { getOwnerProps, getOwnerPropsArguments, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled.StyledHeader, { getOwnerProps, getOwnerPropsArguments, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
54
|
+
import_styled.StyledTitle,
|
|
55
55
|
{
|
|
56
|
-
|
|
56
|
+
id: modalTitleId,
|
|
57
|
+
variant: headingLevel,
|
|
57
58
|
getOwnerProps,
|
|
58
59
|
getOwnerPropsArguments,
|
|
59
|
-
children:
|
|
60
|
-
import_styled.StyledHeader,
|
|
61
|
-
{
|
|
62
|
-
className: "em-ds-modal-slide__header",
|
|
63
|
-
getOwnerProps,
|
|
64
|
-
getOwnerPropsArguments,
|
|
65
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
66
|
-
import_styled.StyledTitle,
|
|
67
|
-
{
|
|
68
|
-
id: modalTitleId,
|
|
69
|
-
variant: headingLevel,
|
|
70
|
-
className: "em-ds-modal-slide__title",
|
|
71
|
-
getOwnerProps,
|
|
72
|
-
getOwnerPropsArguments,
|
|
73
|
-
children: title
|
|
74
|
-
}
|
|
75
|
-
)
|
|
76
|
-
}
|
|
77
|
-
)
|
|
60
|
+
children: title
|
|
78
61
|
}
|
|
79
|
-
),
|
|
62
|
+
) }) }),
|
|
80
63
|
toolbar,
|
|
81
64
|
toolbar && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled.StyledSeparator, { isVertical: true }),
|
|
82
65
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
@@ -89,7 +72,7 @@ const DSModalHeader = (props) => {
|
|
|
89
72
|
innerRef,
|
|
90
73
|
getOwnerProps,
|
|
91
74
|
getOwnerPropsArguments,
|
|
92
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_icons.Close, { "aria-label": "Close modal slide", size: "s" })
|
|
75
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_icons.Close, { "aria-label": "Close modal slide", size: "s", color: ["brand-primary", "600"] })
|
|
93
76
|
}
|
|
94
77
|
)
|
|
95
78
|
]
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/parts/DSModalHeader/DSModalHeader.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["import React from 'react';\nimport { describe } from '@elliemae/ds-props-helpers';\nimport { Close } from '@elliemae/ds-icons';\nimport { type DSModalHeaderT, DSModalHeaderPropTypesSchema } from './react-desc-prop-types.js';\nimport { useModalHeader } from './config/useModalHeader.js';\nimport { MODAL_HEADER_DATA_TESTID, DSModalHeaderName } from './constants/index.js';\nimport {\n StyledHeader,\n StyledHeaderLeftSide,\n StyledTitle,\n HeaderWrapper,\n StyledSeparator,\n StyledCloseButton,\n} from '../../styled.js';\n\nconst DSModalHeader: React.ComponentType<DSModalHeaderT.Props> = (props) => {\n const { propsWithDefault, getOwnerProps, getOwnerPropsArguments } = useModalHeader(props);\n\n const { innerRef, title, onClose, toolbar, headingLevel, modalTitleId } = propsWithDefault;\n\n return (\n <HeaderWrapper\n aria-label=\"Modal Slide Header\"\n getOwnerProps={getOwnerProps}\n getOwnerPropsArguments={getOwnerPropsArguments}\n >\n <StyledHeaderLeftSide
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADqBnB;AApBJ,8BAAyB;AACzB,sBAAsB;AACtB,mCAAkE;AAClE,4BAA+B;AAC/B,uBAA4D;AAC5D,oBAOO;AAEP,MAAM,gBAA2D,CAAC,UAAU;AAC1E,QAAM,EAAE,kBAAkB,eAAe,uBAAuB,QAAI,sCAAe,KAAK;AAExF,QAAM,EAAE,UAAU,OAAO,SAAS,SAAS,cAAc,aAAa,IAAI;AAE1E,SACE;AAAA,IAAC;AAAA;AAAA,MACC,cAAW;AAAA,MACX;AAAA,MACA;AAAA,MAEA;AAAA
|
|
4
|
+
"sourcesContent": ["import React from 'react';\nimport { describe } from '@elliemae/ds-props-helpers';\nimport { Close } from '@elliemae/ds-icons';\nimport { type DSModalHeaderT, DSModalHeaderPropTypesSchema } from './react-desc-prop-types.js';\nimport { useModalHeader } from './config/useModalHeader.js';\nimport { MODAL_HEADER_DATA_TESTID, DSModalHeaderName } from './constants/index.js';\nimport {\n StyledHeader,\n StyledHeaderLeftSide,\n StyledTitle,\n HeaderWrapper,\n StyledSeparator,\n StyledCloseButton,\n} from '../../styled.js';\n\nconst DSModalHeader: React.ComponentType<DSModalHeaderT.Props> = (props) => {\n const { propsWithDefault, getOwnerProps, getOwnerPropsArguments } = useModalHeader(props);\n\n const { innerRef, title, onClose, toolbar, headingLevel, modalTitleId } = propsWithDefault;\n\n return (\n <HeaderWrapper\n aria-label=\"Modal Slide Header\"\n getOwnerProps={getOwnerProps}\n getOwnerPropsArguments={getOwnerPropsArguments}\n >\n <StyledHeaderLeftSide getOwnerProps={getOwnerProps} getOwnerPropsArguments={getOwnerPropsArguments}>\n <StyledHeader getOwnerProps={getOwnerProps} getOwnerPropsArguments={getOwnerPropsArguments}>\n <StyledTitle\n id={modalTitleId}\n variant={headingLevel}\n getOwnerProps={getOwnerProps}\n getOwnerPropsArguments={getOwnerPropsArguments}\n >\n {title}\n </StyledTitle>\n </StyledHeader>\n </StyledHeaderLeftSide>\n\n {toolbar}\n\n {toolbar && <StyledSeparator isVertical />}\n\n <StyledCloseButton\n data-testid={MODAL_HEADER_DATA_TESTID.CLOSE_BUTTON}\n aria-label=\"Close modal slide\"\n buttonType=\"icon\"\n onClick={onClose}\n innerRef={innerRef}\n getOwnerProps={getOwnerProps}\n getOwnerPropsArguments={getOwnerPropsArguments}\n >\n <Close aria-label=\"Close modal slide\" size=\"s\" color={['brand-primary', '600']} />\n </StyledCloseButton>\n </HeaderWrapper>\n );\n};\n\nDSModalHeader.displayName = DSModalHeaderName;\nconst DSModalHeaderWithSchema = describe(DSModalHeader);\nDSModalHeaderWithSchema.propTypes = DSModalHeaderPropTypesSchema;\n\nexport { DSModalHeader, DSModalHeaderWithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADqBnB;AApBJ,8BAAyB;AACzB,sBAAsB;AACtB,mCAAkE;AAClE,4BAA+B;AAC/B,uBAA4D;AAC5D,oBAOO;AAEP,MAAM,gBAA2D,CAAC,UAAU;AAC1E,QAAM,EAAE,kBAAkB,eAAe,uBAAuB,QAAI,sCAAe,KAAK;AAExF,QAAM,EAAE,UAAU,OAAO,SAAS,SAAS,cAAc,aAAa,IAAI;AAE1E,SACE;AAAA,IAAC;AAAA;AAAA,MACC,cAAW;AAAA,MACX;AAAA,MACA;AAAA,MAEA;AAAA,oDAAC,sCAAqB,eAA8B,wBAClD,sDAAC,8BAAa,eAA8B,wBAC1C;AAAA,UAAC;AAAA;AAAA,YACC,IAAI;AAAA,YACJ,SAAS;AAAA,YACT;AAAA,YACA;AAAA,YAEC;AAAA;AAAA,QACH,GACF,GACF;AAAA,QAEC;AAAA,QAEA,WAAW,4CAAC,iCAAgB,YAAU,MAAC;AAAA,QAExC;AAAA,UAAC;AAAA;AAAA,YACC,eAAa,0CAAyB;AAAA,YACtC,cAAW;AAAA,YACX,YAAW;AAAA,YACX,SAAS;AAAA,YACT;AAAA,YACA;AAAA,YACA;AAAA,YAEA,sDAAC,yBAAM,cAAW,qBAAoB,MAAK,KAAI,OAAO,CAAC,iBAAiB,KAAK,GAAG;AAAA;AAAA,QAClF;AAAA;AAAA;AAAA,EACF;AAEJ;AAEA,cAAc,cAAc;AAC5B,MAAM,8BAA0B,kCAAS,aAAa;AACtD,wBAAwB,YAAY;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/cjs/styled.js
CHANGED
|
@@ -97,16 +97,6 @@ const StyledModalWrapper = (0, import_ds_system.styled)("div", {
|
|
|
97
97
|
top: 0;
|
|
98
98
|
left: 0;
|
|
99
99
|
z-index: 10;
|
|
100
|
-
|
|
101
|
-
.em-ds-modal-v2__modal-wrapper {
|
|
102
|
-
flex: 1;
|
|
103
|
-
padding: 2.46rem 0;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
.em-ds-modal-v2__modal-title {
|
|
107
|
-
max-width: 80%;
|
|
108
|
-
margin: 0 auto;
|
|
109
|
-
}
|
|
110
100
|
`;
|
|
111
101
|
const StyledOverlay = (0, import_ds_system.styled)("div", {
|
|
112
102
|
name: import_constants.DSModalSlideName,
|
|
@@ -138,9 +128,6 @@ const StyledContent = (0, import_ds_system.styled)("div", { name: import_constan
|
|
|
138
128
|
border-left: 2px solid neutral-300;
|
|
139
129
|
animation: ${(props) => props.disappearing ? contentAnimationOut : contentAnimationIn}
|
|
140
130
|
calc(${(props) => props.disappearing ? props.fadeOut / 2 : props.fadeIn / 2} * 1ms) linear;
|
|
141
|
-
.em-ds-separator-wrapper {
|
|
142
|
-
margin-top: unset;
|
|
143
|
-
}
|
|
144
131
|
`;
|
|
145
132
|
const StyledGridContent = (0, import_ds_system.styled)(import_ds_grid.Grid)`
|
|
146
133
|
height: 100%;
|
|
@@ -163,21 +150,10 @@ const StyledHeaderLeftSide = (0, import_ds_system.styled)("div", {
|
|
|
163
150
|
slot: import_constants3.MODAL_HEADER_SLOTS.HEADER_LEFT_SIDE
|
|
164
151
|
})`
|
|
165
152
|
width: 100%;
|
|
153
|
+
height: 100%;
|
|
166
154
|
display: flex;
|
|
167
155
|
flex-direction: row;
|
|
168
156
|
text-align: left;
|
|
169
|
-
padding: 0.61538rem 1.23077rem 0.61538rem 0;
|
|
170
|
-
min-height: 3.69231rem;
|
|
171
|
-
height: auto;
|
|
172
|
-
|
|
173
|
-
.em-ds-button {
|
|
174
|
-
.em-ds-icon {
|
|
175
|
-
fill: brand-primary-600;
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
.close-button {
|
|
179
|
-
padding-left: 18px;
|
|
180
|
-
}
|
|
181
157
|
`;
|
|
182
158
|
const StyledActualContent = (0, import_ds_system.styled)("div", { name: import_constants.DSModalSlideName, slot: import_constants.MODAL_SLIDE_SLOTS.ACTUAL_CONTENT })`
|
|
183
159
|
display: flex;
|
|
@@ -206,17 +182,17 @@ const HeaderWrapper = (0, import_ds_system.styled)("div", { name: import_constan
|
|
|
206
182
|
justify-content: space-between;
|
|
207
183
|
width: 100%;
|
|
208
184
|
align-items: flex-start;
|
|
209
|
-
min-height: 48px;
|
|
210
|
-
height: auto;
|
|
211
185
|
overflow: hidden;
|
|
186
|
+
padding: ${(props) => props.theme.space.xxs} ${(props) => props.theme.space.xs};
|
|
212
187
|
`;
|
|
213
188
|
const StyledSeparator = (0, import_ds_system.styled)(import_ds_separator.DSSeparatorV2, { name: import_constants.DSModalSlideName, slot: import_constants.MODAL_SLIDE_SLOTS.SEPARATOR })`
|
|
214
189
|
height: 33%;
|
|
215
190
|
background: ${(props) => props.theme.colors.neutral["300"]};
|
|
216
191
|
`;
|
|
217
|
-
const StyledCloseButton = (0, import_ds_system.styled)(import_ds_button_v2.DSButtonV3, {
|
|
218
|
-
|
|
219
|
-
|
|
192
|
+
const StyledCloseButton = (0, import_ds_system.styled)(import_ds_button_v2.DSButtonV3, {
|
|
193
|
+
name: import_constants.DSModalSlideName,
|
|
194
|
+
slot: import_constants3.MODAL_HEADER_SLOTS.CLOSE_BUTTON
|
|
195
|
+
})``;
|
|
220
196
|
const StyledContentWrapper = (0, import_ds_system.styled)(import_ds_grid.Grid, { name: import_constants.DSModalSlideName, slot: import_constants.MODAL_SLIDE_SLOTS.CONTENT_WRAPPER })`
|
|
221
197
|
overflow: auto;
|
|
222
198
|
&:focus,
|
package/dist/cjs/styled.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/styled.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["/* eslint-disable max-lines */\nimport { DSButtonV3 } 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 { DSTypography } from '@elliemae/ds-typography';\nimport { DSModalSlideName, MODAL_SLIDE_SLOTS } from './constants/index.js';\nimport { MODAL_FOOTER_SLOTS } from './parts/DSModalFooter/constants/index.js';\nimport { MODAL_HEADER_SLOTS } from './parts/DSModalHeader/constants/index.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: MODAL_SLIDE_SLOTS.ROOT,\n})<{ height: string | number }>`\n position: absolute;\n display: flex;\n height: calc(${(props) => props.height} * 1px);\n width: 100%;\n top: 0;\n left: 0;\n z-index: 10;\n
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADCvB,0BAA2B;AAC3B,qBAAqB;AACrB,0BAA8B;AAC9B,uBAA6B;AAC7B,2BAA6B;AAC7B,uBAAoD;AACpD,IAAAA,oBAAmC;AACnC,IAAAA,oBAAmC;AAEnC,MAAM,mBAAmB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASzB,MAAM,sBAAsB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAS5B,MAAM,sBAAsB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAS5B,MAAM,qBAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASpB,MAAM,yBAAqB,yBAAO,OAAO;AAAA,EAC9C,MAAM;AAAA,EACN,MAAM,mCAAkB;AAC1B,CAAC;AAAA;AAAA;AAAA,iBAGgB,CAAC,UAAU,MAAM,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;
|
|
4
|
+
"sourcesContent": ["/* eslint-disable max-lines */\nimport { DSButtonV3 } 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 { DSTypography } from '@elliemae/ds-typography';\nimport { DSModalSlideName, MODAL_SLIDE_SLOTS } from './constants/index.js';\nimport { MODAL_FOOTER_SLOTS } from './parts/DSModalFooter/constants/index.js';\nimport { MODAL_HEADER_SLOTS } from './parts/DSModalHeader/constants/index.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: MODAL_SLIDE_SLOTS.ROOT,\n})<{ height: string | number }>`\n position: absolute;\n display: flex;\n height: calc(${(props) => props.height} * 1px);\n width: 100%;\n top: 0;\n left: 0;\n z-index: 10;\n`;\n\nexport const StyledOverlay = styled('div', {\n name: DSModalSlideName,\n slot: MODAL_SLIDE_SLOTS.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: MODAL_SLIDE_SLOTS.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`;\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(DSTypography, { name: DSModalSlideName, slot: MODAL_HEADER_SLOTS.TITLE })`\n font-size: 1.3846rem;\n color: neutral-700;\n white-space: normal;\n word-break: break-word;\n`;\n\nexport const StyledHeaderLeftSide = styled('div', {\n name: DSModalSlideName,\n slot: MODAL_HEADER_SLOTS.HEADER_LEFT_SIDE,\n})`\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: row;\n text-align: left;\n`;\n\nexport const StyledActualContent = styled('div', { name: DSModalSlideName, slot: MODAL_SLIDE_SLOTS.ACTUAL_CONTENT })`\n display: flex;\n flex-direction: column;\n`;\n\nexport const StyledHeader = styled('div', { name: DSModalSlideName, slot: MODAL_HEADER_SLOTS.HEADER })`\n display: flex;\n flex-direction: column;\n justify-content: center;\n`;\n\nexport const StyledFooterWrapper = styled('div', { name: DSModalSlideName, slot: MODAL_FOOTER_SLOTS.FOOTER_WRAPPER })`\n width: 100%;\n height: auto;\n display: flex;\n flex-wrap: wrap;\n text-align: left;\n align-items: center;\n justify-content: flex-end;\n padding: 0.61538rem 1.23077rem 0 0;\n .em-ds-button {\n margin-left: 1.23077rem;\n }\n`;\n\nexport const HeaderWrapper = styled('div', { name: DSModalSlideName, slot: MODAL_HEADER_SLOTS.HEADER_WRAPPER })`\n display: flex;\n justify-content: space-between;\n width: 100%;\n align-items: flex-start;\n overflow: hidden;\n padding: ${(props) => props.theme.space.xxs} ${(props) => props.theme.space.xs};\n`;\n\nexport const StyledSeparator = styled(DSSeparatorV2, { name: DSModalSlideName, slot: MODAL_SLIDE_SLOTS.SEPARATOR })`\n height: 33%;\n background: ${(props) => props.theme.colors.neutral['300']};\n`;\n\nexport const StyledCloseButton = styled(DSButtonV3, {\n name: DSModalSlideName,\n slot: MODAL_HEADER_SLOTS.CLOSE_BUTTON,\n})``;\n\nexport const StyledContentWrapper = styled(Grid, { name: DSModalSlideName, slot: MODAL_SLIDE_SLOTS.CONTENT_WRAPPER })`\n overflow: auto;\n &:focus,\n &:focus-visible {\n outline: 2px solid ${({ theme }) => theme.colors.brand['600']};\n outline-offset: -2px;\n }\n`;\n\nexport const StyledRejectButton = styled(DSButtonV3, {\n name: DSModalSlideName,\n slot: MODAL_FOOTER_SLOTS.REJECT_BUTTON,\n})`\n margin-bottom: 0.61538rem;\n`;\n\nexport const StyledConfirmButton = styled(DSButtonV3, {\n name: DSModalSlideName,\n slot: MODAL_FOOTER_SLOTS.CONFIRM_BUTTON,\n})`\n margin-bottom: 0.61538rem;\n`;\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;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADCvB,0BAA2B;AAC3B,qBAAqB;AACrB,0BAA8B;AAC9B,uBAA6B;AAC7B,2BAA6B;AAC7B,uBAAoD;AACpD,IAAAA,oBAAmC;AACnC,IAAAA,oBAAmC;AAEnC,MAAM,mBAAmB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASzB,MAAM,sBAAsB;AAAA;A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ACpD,MAAM;AAAA,EACN,MAAM,qCAAmB;AAC3B,CAAC;AAAA;AAAA;",
|
|
6
6
|
"names": ["import_constants"]
|
|
7
7
|
}
|
|
@@ -3,7 +3,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { describe } from "@elliemae/ds-props-helpers";
|
|
4
4
|
import { DSModalFooterPropTypesSchema } from "./react-desc-prop-types.js";
|
|
5
5
|
import { StyledFooterWrapper, StyledRejectButton, StyledConfirmButton } from "../../styled.js";
|
|
6
|
-
import { DSModalFooterName } from "./constants/index.js";
|
|
6
|
+
import { DSModalFooterName, MODAL_FOOTER_DATA_TESTID } from "./constants/index.js";
|
|
7
7
|
import { useModalFooter } from "./config/useModalFooter.js";
|
|
8
8
|
const DSModalFooter = (props) => {
|
|
9
9
|
const { propsWithDefault, getOwnerProps, getOwnerPropsArguments } = useModalFooter(props);
|
|
@@ -11,7 +11,6 @@ const DSModalFooter = (props) => {
|
|
|
11
11
|
return /* @__PURE__ */ jsxs(
|
|
12
12
|
StyledFooterWrapper,
|
|
13
13
|
{
|
|
14
|
-
className: "em-ds-modal-slide__footer-wrapper",
|
|
15
14
|
"aria-label": "Modal Slide Footer",
|
|
16
15
|
getOwnerProps,
|
|
17
16
|
getOwnerPropsArguments,
|
|
@@ -20,8 +19,8 @@ const DSModalFooter = (props) => {
|
|
|
20
19
|
StyledRejectButton,
|
|
21
20
|
{
|
|
22
21
|
buttonType: "outline",
|
|
23
|
-
className: "action-reject",
|
|
24
22
|
onClick: onReject,
|
|
23
|
+
"data-testid": MODAL_FOOTER_DATA_TESTID.REJECT_BUTTON,
|
|
25
24
|
...rejectProps,
|
|
26
25
|
ml: "xs",
|
|
27
26
|
getOwnerProps,
|
|
@@ -33,7 +32,7 @@ const DSModalFooter = (props) => {
|
|
|
33
32
|
StyledConfirmButton,
|
|
34
33
|
{
|
|
35
34
|
buttonType: "filled",
|
|
36
|
-
|
|
35
|
+
"data-testid": MODAL_FOOTER_DATA_TESTID.CONFIRM_BUTTON,
|
|
37
36
|
onClick: onConfirm,
|
|
38
37
|
...confirmProps,
|
|
39
38
|
ml: "xs",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/parts/DSModalFooter/DSModalFooter.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { describe } from '@elliemae/ds-props-helpers';\nimport { type DSModalFooterT, DSModalFooterPropTypesSchema } from './react-desc-prop-types.js';\nimport { StyledFooterWrapper, StyledRejectButton, StyledConfirmButton } from '../../styled.js';\nimport { DSModalFooterName } from './constants/index.js';\nimport { useModalFooter } from './config/useModalFooter.js';\nconst DSModalFooter = (props: DSModalFooterT.Props) => {\n const { propsWithDefault, getOwnerProps, getOwnerPropsArguments } = useModalFooter(props);\n\n const { confirmLabel, rejectLabel, onConfirm, onReject, confirmProps, rejectProps } = propsWithDefault;\n\n return (\n <StyledFooterWrapper\n
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACYnB,
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { describe } from '@elliemae/ds-props-helpers';\nimport { type DSModalFooterT, DSModalFooterPropTypesSchema } from './react-desc-prop-types.js';\nimport { StyledFooterWrapper, StyledRejectButton, StyledConfirmButton } from '../../styled.js';\nimport { DSModalFooterName, MODAL_FOOTER_DATA_TESTID } from './constants/index.js';\nimport { useModalFooter } from './config/useModalFooter.js';\nconst DSModalFooter = (props: DSModalFooterT.Props) => {\n const { propsWithDefault, getOwnerProps, getOwnerPropsArguments } = useModalFooter(props);\n\n const { confirmLabel, rejectLabel, onConfirm, onReject, confirmProps, rejectProps } = propsWithDefault;\n\n return (\n <StyledFooterWrapper\n aria-label=\"Modal Slide Footer\"\n getOwnerProps={getOwnerProps}\n getOwnerPropsArguments={getOwnerPropsArguments}\n >\n {!!onReject && (\n <StyledRejectButton\n buttonType=\"outline\"\n onClick={onReject}\n data-testid={MODAL_FOOTER_DATA_TESTID.REJECT_BUTTON}\n {...rejectProps}\n ml=\"xs\"\n getOwnerProps={getOwnerProps}\n getOwnerPropsArguments={getOwnerPropsArguments}\n >\n {rejectLabel}\n </StyledRejectButton>\n )}\n\n {!!onConfirm && (\n <StyledConfirmButton\n buttonType=\"filled\"\n data-testid={MODAL_FOOTER_DATA_TESTID.CONFIRM_BUTTON}\n onClick={onConfirm}\n {...confirmProps}\n ml=\"xs\"\n getOwnerProps={getOwnerProps}\n getOwnerPropsArguments={getOwnerPropsArguments}\n >\n {confirmLabel}\n </StyledConfirmButton>\n )}\n </StyledFooterWrapper>\n );\n};\n\nDSModalFooter.displayName = DSModalFooterName;\nconst DSModalFooterWithSchema = describe(DSModalFooter);\nDSModalFooterWithSchema.propTypes = DSModalFooterPropTypesSchema;\n\nexport { DSModalFooter, DSModalFooterWithSchema };\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACYnB,SAMI,KANJ;AAXJ,SAAS,gBAAgB;AACzB,SAA8B,oCAAoC;AAClE,SAAS,qBAAqB,oBAAoB,2BAA2B;AAC7E,SAAS,mBAAmB,gCAAgC;AAC5D,SAAS,sBAAsB;AAC/B,MAAM,gBAAgB,CAAC,UAAgC;AACrD,QAAM,EAAE,kBAAkB,eAAe,uBAAuB,IAAI,eAAe,KAAK;AAExF,QAAM,EAAE,cAAc,aAAa,WAAW,UAAU,cAAc,YAAY,IAAI;AAEtF,SACE;AAAA,IAAC;AAAA;AAAA,MACC,cAAW;AAAA,MACX;AAAA,MACA;AAAA,MAEC;AAAA,SAAC,CAAC,YACD;AAAA,UAAC;AAAA;AAAA,YACC,YAAW;AAAA,YACX,SAAS;AAAA,YACT,eAAa,yBAAyB;AAAA,YACrC,GAAG;AAAA,YACJ,IAAG;AAAA,YACH;AAAA,YACA;AAAA,YAEC;AAAA;AAAA,QACH;AAAA,QAGD,CAAC,CAAC,aACD;AAAA,UAAC;AAAA;AAAA,YACC,YAAW;AAAA,YACX,eAAa,yBAAyB;AAAA,YACtC,SAAS;AAAA,YACR,GAAG;AAAA,YACJ,IAAG;AAAA,YACH;AAAA,YACA;AAAA,YAEC;AAAA;AAAA,QACH;AAAA;AAAA;AAAA,EAEJ;AAEJ;AAEA,cAAc,cAAc;AAC5B,MAAM,0BAA0B,SAAS,aAAa;AACtD,wBAAwB,YAAY;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -7,7 +7,13 @@ const MODAL_FOOTER_SLOTS = {
|
|
|
7
7
|
REJECT_BUTTON: "reject-button",
|
|
8
8
|
FOOTER_WRAPPER: "footer-wrapper"
|
|
9
9
|
};
|
|
10
|
-
const MODAL_FOOTER_DATA_TESTID =
|
|
10
|
+
const MODAL_FOOTER_DATA_TESTID = {
|
|
11
|
+
...slotObjectToDataTestIds(DSModalSlideName, MODAL_FOOTER_SLOTS),
|
|
12
|
+
// legacy test ids - keeping them around to avoid breaking changes
|
|
13
|
+
// https://jira.elliemae.io/browse/PUI-18013
|
|
14
|
+
REJECT_BUTTON: "modal-footer-reject-btn",
|
|
15
|
+
CONFIRM_BUTTON: "modal-footer-confirm-btn"
|
|
16
|
+
};
|
|
11
17
|
export {
|
|
12
18
|
DSModalFooterName,
|
|
13
19
|
DSModalSlideName,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../../../../scripts/build/transpile/react-shim.js", "../../../../../src/parts/DSModalFooter/constants/index.ts"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { slotObjectToDataTestIds } from '@elliemae/ds-system';\nimport { DSModalSlideName } from '../../../constants/index.js';\nexport { DSModalSlideName };\n\nexport const DSModalFooterName = 'DSModalFooter';\n\nexport const MODAL_FOOTER_SLOTS = {\n CONFIRM_BUTTON: 'confirm-button',\n REJECT_BUTTON: 'reject-button',\n FOOTER_WRAPPER: 'footer-wrapper',\n} as const;\n\nexport const MODAL_FOOTER_DATA_TESTID = slotObjectToDataTestIds(DSModalSlideName, MODAL_FOOTER_SLOTS);\n"],
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,+BAA+B;AACxC,SAAS,wBAAwB;AAG1B,MAAM,oBAAoB;AAE1B,MAAM,qBAAqB;AAAA,EAChC,gBAAgB;AAAA,EAChB,eAAe;AAAA,EACf,gBAAgB;AAClB;AAEO,MAAM,2BAA2B,wBAAwB,kBAAkB,kBAAkB;",
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { slotObjectToDataTestIds } from '@elliemae/ds-system';\nimport { DSModalSlideName } from '../../../constants/index.js';\nexport { DSModalSlideName };\n\nexport const DSModalFooterName = 'DSModalFooter';\n\nexport const MODAL_FOOTER_SLOTS = {\n CONFIRM_BUTTON: 'confirm-button',\n REJECT_BUTTON: 'reject-button',\n FOOTER_WRAPPER: 'footer-wrapper',\n} as const;\n\nexport const MODAL_FOOTER_DATA_TESTID = {\n ...slotObjectToDataTestIds(DSModalSlideName, MODAL_FOOTER_SLOTS),\n // legacy test ids - keeping them around to avoid breaking changes\n // https://jira.elliemae.io/browse/PUI-18013\n REJECT_BUTTON: 'modal-footer-reject-btn',\n CONFIRM_BUTTON: 'modal-footer-confirm-btn',\n};\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,+BAA+B;AACxC,SAAS,wBAAwB;AAG1B,MAAM,oBAAoB;AAE1B,MAAM,qBAAqB;AAAA,EAChC,gBAAgB;AAAA,EAChB,eAAe;AAAA,EACf,gBAAgB;AAClB;AAEO,MAAM,2BAA2B;AAAA,EACtC,GAAG,wBAAwB,kBAAkB,kBAAkB;AAAA;AAAA;AAAA,EAG/D,eAAe;AAAA,EACf,gBAAgB;AAClB;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -23,33 +23,16 @@ const DSModalHeader = (props) => {
|
|
|
23
23
|
getOwnerProps,
|
|
24
24
|
getOwnerPropsArguments,
|
|
25
25
|
children: [
|
|
26
|
-
/* @__PURE__ */ jsx(
|
|
27
|
-
|
|
26
|
+
/* @__PURE__ */ jsx(StyledHeaderLeftSide, { getOwnerProps, getOwnerPropsArguments, children: /* @__PURE__ */ jsx(StyledHeader, { getOwnerProps, getOwnerPropsArguments, children: /* @__PURE__ */ jsx(
|
|
27
|
+
StyledTitle,
|
|
28
28
|
{
|
|
29
|
-
|
|
29
|
+
id: modalTitleId,
|
|
30
|
+
variant: headingLevel,
|
|
30
31
|
getOwnerProps,
|
|
31
32
|
getOwnerPropsArguments,
|
|
32
|
-
children:
|
|
33
|
-
StyledHeader,
|
|
34
|
-
{
|
|
35
|
-
className: "em-ds-modal-slide__header",
|
|
36
|
-
getOwnerProps,
|
|
37
|
-
getOwnerPropsArguments,
|
|
38
|
-
children: /* @__PURE__ */ jsx(
|
|
39
|
-
StyledTitle,
|
|
40
|
-
{
|
|
41
|
-
id: modalTitleId,
|
|
42
|
-
variant: headingLevel,
|
|
43
|
-
className: "em-ds-modal-slide__title",
|
|
44
|
-
getOwnerProps,
|
|
45
|
-
getOwnerPropsArguments,
|
|
46
|
-
children: title
|
|
47
|
-
}
|
|
48
|
-
)
|
|
49
|
-
}
|
|
50
|
-
)
|
|
33
|
+
children: title
|
|
51
34
|
}
|
|
52
|
-
),
|
|
35
|
+
) }) }),
|
|
53
36
|
toolbar,
|
|
54
37
|
toolbar && /* @__PURE__ */ jsx(StyledSeparator, { isVertical: true }),
|
|
55
38
|
/* @__PURE__ */ jsx(
|
|
@@ -62,7 +45,7 @@ const DSModalHeader = (props) => {
|
|
|
62
45
|
innerRef,
|
|
63
46
|
getOwnerProps,
|
|
64
47
|
getOwnerPropsArguments,
|
|
65
|
-
children: /* @__PURE__ */ jsx(Close, { "aria-label": "Close modal slide", size: "s" })
|
|
48
|
+
children: /* @__PURE__ */ jsx(Close, { "aria-label": "Close modal slide", size: "s", color: ["brand-primary", "600"] })
|
|
66
49
|
}
|
|
67
50
|
)
|
|
68
51
|
]
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/parts/DSModalHeader/DSModalHeader.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { describe } from '@elliemae/ds-props-helpers';\nimport { Close } from '@elliemae/ds-icons';\nimport { type DSModalHeaderT, DSModalHeaderPropTypesSchema } from './react-desc-prop-types.js';\nimport { useModalHeader } from './config/useModalHeader.js';\nimport { MODAL_HEADER_DATA_TESTID, DSModalHeaderName } from './constants/index.js';\nimport {\n StyledHeader,\n StyledHeaderLeftSide,\n StyledTitle,\n HeaderWrapper,\n StyledSeparator,\n StyledCloseButton,\n} from '../../styled.js';\n\nconst DSModalHeader: React.ComponentType<DSModalHeaderT.Props> = (props) => {\n const { propsWithDefault, getOwnerProps, getOwnerPropsArguments } = useModalHeader(props);\n\n const { innerRef, title, onClose, toolbar, headingLevel, modalTitleId } = propsWithDefault;\n\n return (\n <HeaderWrapper\n aria-label=\"Modal Slide Header\"\n getOwnerProps={getOwnerProps}\n getOwnerPropsArguments={getOwnerPropsArguments}\n >\n <StyledHeaderLeftSide
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACqBnB,
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { describe } from '@elliemae/ds-props-helpers';\nimport { Close } from '@elliemae/ds-icons';\nimport { type DSModalHeaderT, DSModalHeaderPropTypesSchema } from './react-desc-prop-types.js';\nimport { useModalHeader } from './config/useModalHeader.js';\nimport { MODAL_HEADER_DATA_TESTID, DSModalHeaderName } from './constants/index.js';\nimport {\n StyledHeader,\n StyledHeaderLeftSide,\n StyledTitle,\n HeaderWrapper,\n StyledSeparator,\n StyledCloseButton,\n} from '../../styled.js';\n\nconst DSModalHeader: React.ComponentType<DSModalHeaderT.Props> = (props) => {\n const { propsWithDefault, getOwnerProps, getOwnerPropsArguments } = useModalHeader(props);\n\n const { innerRef, title, onClose, toolbar, headingLevel, modalTitleId } = propsWithDefault;\n\n return (\n <HeaderWrapper\n aria-label=\"Modal Slide Header\"\n getOwnerProps={getOwnerProps}\n getOwnerPropsArguments={getOwnerPropsArguments}\n >\n <StyledHeaderLeftSide getOwnerProps={getOwnerProps} getOwnerPropsArguments={getOwnerPropsArguments}>\n <StyledHeader getOwnerProps={getOwnerProps} getOwnerPropsArguments={getOwnerPropsArguments}>\n <StyledTitle\n id={modalTitleId}\n variant={headingLevel}\n getOwnerProps={getOwnerProps}\n getOwnerPropsArguments={getOwnerPropsArguments}\n >\n {title}\n </StyledTitle>\n </StyledHeader>\n </StyledHeaderLeftSide>\n\n {toolbar}\n\n {toolbar && <StyledSeparator isVertical />}\n\n <StyledCloseButton\n data-testid={MODAL_HEADER_DATA_TESTID.CLOSE_BUTTON}\n aria-label=\"Close modal slide\"\n buttonType=\"icon\"\n onClick={onClose}\n innerRef={innerRef}\n getOwnerProps={getOwnerProps}\n getOwnerPropsArguments={getOwnerPropsArguments}\n >\n <Close aria-label=\"Close modal slide\" size=\"s\" color={['brand-primary', '600']} />\n </StyledCloseButton>\n </HeaderWrapper>\n );\n};\n\nDSModalHeader.displayName = DSModalHeaderName;\nconst DSModalHeaderWithSchema = describe(DSModalHeader);\nDSModalHeaderWithSchema.propTypes = DSModalHeaderPropTypesSchema;\n\nexport { DSModalHeader, DSModalHeaderWithSchema };\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACqBnB,SAOM,KAPN;AApBJ,SAAS,gBAAgB;AACzB,SAAS,aAAa;AACtB,SAA8B,oCAAoC;AAClE,SAAS,sBAAsB;AAC/B,SAAS,0BAA0B,yBAAyB;AAC5D;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAEP,MAAM,gBAA2D,CAAC,UAAU;AAC1E,QAAM,EAAE,kBAAkB,eAAe,uBAAuB,IAAI,eAAe,KAAK;AAExF,QAAM,EAAE,UAAU,OAAO,SAAS,SAAS,cAAc,aAAa,IAAI;AAE1E,SACE;AAAA,IAAC;AAAA;AAAA,MACC,cAAW;AAAA,MACX;AAAA,MACA;AAAA,MAEA;AAAA,4BAAC,wBAAqB,eAA8B,wBAClD,8BAAC,gBAAa,eAA8B,wBAC1C;AAAA,UAAC;AAAA;AAAA,YACC,IAAI;AAAA,YACJ,SAAS;AAAA,YACT;AAAA,YACA;AAAA,YAEC;AAAA;AAAA,QACH,GACF,GACF;AAAA,QAEC;AAAA,QAEA,WAAW,oBAAC,mBAAgB,YAAU,MAAC;AAAA,QAExC;AAAA,UAAC;AAAA;AAAA,YACC,eAAa,yBAAyB;AAAA,YACtC,cAAW;AAAA,YACX,YAAW;AAAA,YACX,SAAS;AAAA,YACT;AAAA,YACA;AAAA,YACA;AAAA,YAEA,8BAAC,SAAM,cAAW,qBAAoB,MAAK,KAAI,OAAO,CAAC,iBAAiB,KAAK,GAAG;AAAA;AAAA,QAClF;AAAA;AAAA;AAAA,EACF;AAEJ;AAEA,cAAc,cAAc;AAC5B,MAAM,0BAA0B,SAAS,aAAa;AACtD,wBAAwB,YAAY;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/esm/styled.js
CHANGED
|
@@ -50,16 +50,6 @@ const StyledModalWrapper = styled("div", {
|
|
|
50
50
|
top: 0;
|
|
51
51
|
left: 0;
|
|
52
52
|
z-index: 10;
|
|
53
|
-
|
|
54
|
-
.em-ds-modal-v2__modal-wrapper {
|
|
55
|
-
flex: 1;
|
|
56
|
-
padding: 2.46rem 0;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.em-ds-modal-v2__modal-title {
|
|
60
|
-
max-width: 80%;
|
|
61
|
-
margin: 0 auto;
|
|
62
|
-
}
|
|
63
53
|
`;
|
|
64
54
|
const StyledOverlay = styled("div", {
|
|
65
55
|
name: DSModalSlideName,
|
|
@@ -91,9 +81,6 @@ const StyledContent = styled("div", { name: DSModalSlideName, slot: MODAL_SLIDE_
|
|
|
91
81
|
border-left: 2px solid neutral-300;
|
|
92
82
|
animation: ${(props) => props.disappearing ? contentAnimationOut : contentAnimationIn}
|
|
93
83
|
calc(${(props) => props.disappearing ? props.fadeOut / 2 : props.fadeIn / 2} * 1ms) linear;
|
|
94
|
-
.em-ds-separator-wrapper {
|
|
95
|
-
margin-top: unset;
|
|
96
|
-
}
|
|
97
84
|
`;
|
|
98
85
|
const StyledGridContent = styled(Grid)`
|
|
99
86
|
height: 100%;
|
|
@@ -116,21 +103,10 @@ const StyledHeaderLeftSide = styled("div", {
|
|
|
116
103
|
slot: MODAL_HEADER_SLOTS.HEADER_LEFT_SIDE
|
|
117
104
|
})`
|
|
118
105
|
width: 100%;
|
|
106
|
+
height: 100%;
|
|
119
107
|
display: flex;
|
|
120
108
|
flex-direction: row;
|
|
121
109
|
text-align: left;
|
|
122
|
-
padding: 0.61538rem 1.23077rem 0.61538rem 0;
|
|
123
|
-
min-height: 3.69231rem;
|
|
124
|
-
height: auto;
|
|
125
|
-
|
|
126
|
-
.em-ds-button {
|
|
127
|
-
.em-ds-icon {
|
|
128
|
-
fill: brand-primary-600;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
.close-button {
|
|
132
|
-
padding-left: 18px;
|
|
133
|
-
}
|
|
134
110
|
`;
|
|
135
111
|
const StyledActualContent = styled("div", { name: DSModalSlideName, slot: MODAL_SLIDE_SLOTS.ACTUAL_CONTENT })`
|
|
136
112
|
display: flex;
|
|
@@ -159,17 +135,17 @@ const HeaderWrapper = styled("div", { name: DSModalSlideName, slot: MODAL_HEADER
|
|
|
159
135
|
justify-content: space-between;
|
|
160
136
|
width: 100%;
|
|
161
137
|
align-items: flex-start;
|
|
162
|
-
min-height: 48px;
|
|
163
|
-
height: auto;
|
|
164
138
|
overflow: hidden;
|
|
139
|
+
padding: ${(props) => props.theme.space.xxs} ${(props) => props.theme.space.xs};
|
|
165
140
|
`;
|
|
166
141
|
const StyledSeparator = styled(DSSeparatorV2, { name: DSModalSlideName, slot: MODAL_SLIDE_SLOTS.SEPARATOR })`
|
|
167
142
|
height: 33%;
|
|
168
143
|
background: ${(props) => props.theme.colors.neutral["300"]};
|
|
169
144
|
`;
|
|
170
|
-
const StyledCloseButton = styled(DSButtonV3, {
|
|
171
|
-
|
|
172
|
-
|
|
145
|
+
const StyledCloseButton = styled(DSButtonV3, {
|
|
146
|
+
name: DSModalSlideName,
|
|
147
|
+
slot: MODAL_HEADER_SLOTS.CLOSE_BUTTON
|
|
148
|
+
})``;
|
|
173
149
|
const StyledContentWrapper = styled(Grid, { name: DSModalSlideName, slot: MODAL_SLIDE_SLOTS.CONTENT_WRAPPER })`
|
|
174
150
|
overflow: auto;
|
|
175
151
|
&:focus,
|
package/dist/esm/styled.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
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 { DSButtonV3 } 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 { DSTypography } from '@elliemae/ds-typography';\nimport { DSModalSlideName, MODAL_SLIDE_SLOTS } from './constants/index.js';\nimport { MODAL_FOOTER_SLOTS } from './parts/DSModalFooter/constants/index.js';\nimport { MODAL_HEADER_SLOTS } from './parts/DSModalHeader/constants/index.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: MODAL_SLIDE_SLOTS.ROOT,\n})<{ height: string | number }>`\n position: absolute;\n display: flex;\n height: calc(${(props) => props.height} * 1px);\n width: 100%;\n top: 0;\n left: 0;\n z-index: 10;\n
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACCvB,SAAS,kBAAkB;AAC3B,SAAS,YAAY;AACrB,SAAS,qBAAqB;AAC9B,SAAS,QAAQ,YAAY;AAC7B,SAAS,oBAAoB;AAC7B,SAAS,kBAAkB,yBAAyB;AACpD,SAAS,0BAA0B;AACnC,SAAS,0BAA0B;AAEnC,MAAM,mBAAmB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASzB,MAAM,sBAAsB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAS5B,MAAM,sBAAsB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAS5B,MAAM,qBAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASpB,MAAM,qBAAqB,OAAO,OAAO;AAAA,EAC9C,MAAM;AAAA,EACN,MAAM,kBAAkB;AAC1B,CAAC;AAAA;AAAA;AAAA,iBAGgB,CAAC,UAAU,MAAM,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable max-lines */\nimport { DSButtonV3 } 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 { DSTypography } from '@elliemae/ds-typography';\nimport { DSModalSlideName, MODAL_SLIDE_SLOTS } from './constants/index.js';\nimport { MODAL_FOOTER_SLOTS } from './parts/DSModalFooter/constants/index.js';\nimport { MODAL_HEADER_SLOTS } from './parts/DSModalHeader/constants/index.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: MODAL_SLIDE_SLOTS.ROOT,\n})<{ height: string | number }>`\n position: absolute;\n display: flex;\n height: calc(${(props) => props.height} * 1px);\n width: 100%;\n top: 0;\n left: 0;\n z-index: 10;\n`;\n\nexport const StyledOverlay = styled('div', {\n name: DSModalSlideName,\n slot: MODAL_SLIDE_SLOTS.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: MODAL_SLIDE_SLOTS.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`;\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(DSTypography, { name: DSModalSlideName, slot: MODAL_HEADER_SLOTS.TITLE })`\n font-size: 1.3846rem;\n color: neutral-700;\n white-space: normal;\n word-break: break-word;\n`;\n\nexport const StyledHeaderLeftSide = styled('div', {\n name: DSModalSlideName,\n slot: MODAL_HEADER_SLOTS.HEADER_LEFT_SIDE,\n})`\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: row;\n text-align: left;\n`;\n\nexport const StyledActualContent = styled('div', { name: DSModalSlideName, slot: MODAL_SLIDE_SLOTS.ACTUAL_CONTENT })`\n display: flex;\n flex-direction: column;\n`;\n\nexport const StyledHeader = styled('div', { name: DSModalSlideName, slot: MODAL_HEADER_SLOTS.HEADER })`\n display: flex;\n flex-direction: column;\n justify-content: center;\n`;\n\nexport const StyledFooterWrapper = styled('div', { name: DSModalSlideName, slot: MODAL_FOOTER_SLOTS.FOOTER_WRAPPER })`\n width: 100%;\n height: auto;\n display: flex;\n flex-wrap: wrap;\n text-align: left;\n align-items: center;\n justify-content: flex-end;\n padding: 0.61538rem 1.23077rem 0 0;\n .em-ds-button {\n margin-left: 1.23077rem;\n }\n`;\n\nexport const HeaderWrapper = styled('div', { name: DSModalSlideName, slot: MODAL_HEADER_SLOTS.HEADER_WRAPPER })`\n display: flex;\n justify-content: space-between;\n width: 100%;\n align-items: flex-start;\n overflow: hidden;\n padding: ${(props) => props.theme.space.xxs} ${(props) => props.theme.space.xs};\n`;\n\nexport const StyledSeparator = styled(DSSeparatorV2, { name: DSModalSlideName, slot: MODAL_SLIDE_SLOTS.SEPARATOR })`\n height: 33%;\n background: ${(props) => props.theme.colors.neutral['300']};\n`;\n\nexport const StyledCloseButton = styled(DSButtonV3, {\n name: DSModalSlideName,\n slot: MODAL_HEADER_SLOTS.CLOSE_BUTTON,\n})``;\n\nexport const StyledContentWrapper = styled(Grid, { name: DSModalSlideName, slot: MODAL_SLIDE_SLOTS.CONTENT_WRAPPER })`\n overflow: auto;\n &:focus,\n &:focus-visible {\n outline: 2px solid ${({ theme }) => theme.colors.brand['600']};\n outline-offset: -2px;\n }\n`;\n\nexport const StyledRejectButton = styled(DSButtonV3, {\n name: DSModalSlideName,\n slot: MODAL_FOOTER_SLOTS.REJECT_BUTTON,\n})`\n margin-bottom: 0.61538rem;\n`;\n\nexport const StyledConfirmButton = styled(DSButtonV3, {\n name: DSModalSlideName,\n slot: MODAL_FOOTER_SLOTS.CONFIRM_BUTTON,\n})`\n margin-bottom: 0.61538rem;\n`;\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACCvB,SAAS,kBAAkB;AAC3B,SAAS,YAAY;AACrB,SAAS,qBAAqB;AAC9B,SAAS,QAAQ,YAAY;AAC7B,SAAS,oBAAoB;AAC7B,SAAS,kBAAkB,yBAAyB;AACpD,SAAS,0BAA0B;AACnC,SAAS,0BAA0B;AAEnC,MAAM,mBAAmB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASzB,MAAM,sBAAsB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAS5B,MAAM,sBAAsB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAS5B,MAAM,qBAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA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apper";
|
|
8
8
|
};
|
|
9
9
|
export declare const MODAL_FOOTER_DATA_TESTID: {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
REJECT_BUTTON: string;
|
|
11
|
+
CONFIRM_BUTTON: string;
|
|
12
|
+
FOOTER_WRAPPER: "ds-modalslide-footer-wrapper";
|
|
13
13
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-modal-slide",
|
|
3
|
-
"version": "3.60.0-next.
|
|
3
|
+
"version": "3.60.0-next.39",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Modal Slide",
|
|
6
6
|
"files": [
|
|
@@ -36,18 +36,18 @@
|
|
|
36
36
|
"indent": 4
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@elliemae/ds-
|
|
40
|
-
"@elliemae/ds-
|
|
41
|
-
"@elliemae/ds-
|
|
42
|
-
"@elliemae/ds-
|
|
43
|
-
"@elliemae/ds-separator": "3.60.0-next.
|
|
44
|
-
"@elliemae/ds-system": "3.60.0-next.
|
|
39
|
+
"@elliemae/ds-grid": "3.60.0-next.39",
|
|
40
|
+
"@elliemae/ds-button-v2": "3.60.0-next.39",
|
|
41
|
+
"@elliemae/ds-icons": "3.60.0-next.39",
|
|
42
|
+
"@elliemae/ds-props-helpers": "3.60.0-next.39",
|
|
43
|
+
"@elliemae/ds-separator": "3.60.0-next.39",
|
|
44
|
+
"@elliemae/ds-system": "3.60.0-next.39"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"jest": "^30.0.0",
|
|
48
48
|
"styled-components": "~5.3.9",
|
|
49
|
-
"@elliemae/ds-monorepo-devops": "3.60.0-next.
|
|
50
|
-
"@elliemae/ds-test-utils": "3.60.0-next.
|
|
49
|
+
"@elliemae/ds-monorepo-devops": "3.60.0-next.39",
|
|
50
|
+
"@elliemae/ds-test-utils": "3.60.0-next.39"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"lodash-es": "^4.17.21",
|