@elliemae/ds-modal-slide 3.70.0-next.2 → 3.70.0-next.20

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.
Files changed (61) hide show
  1. package/dist/cjs/DSModalSlide.js +45 -22
  2. package/dist/cjs/DSModalSlide.js.map +2 -2
  3. package/dist/cjs/constants/index.js +7 -3
  4. package/dist/cjs/constants/index.js.map +3 -3
  5. package/dist/cjs/index.js.map +1 -1
  6. package/dist/cjs/parts/DSModalFooter/react-desc-prop-types.js +2 -2
  7. package/dist/cjs/parts/DSModalFooter/react-desc-prop-types.js.map +2 -2
  8. package/dist/cjs/parts/DSModalFooter/typescript-testing/slot-props.js +36 -0
  9. package/dist/cjs/parts/DSModalFooter/typescript-testing/slot-props.js.map +7 -0
  10. package/dist/cjs/parts/DSModalHeader/DSModalHeader.js +10 -3
  11. package/dist/cjs/parts/DSModalHeader/DSModalHeader.js.map +2 -2
  12. package/dist/cjs/parts/DSModalHeader/constants/index.js +2 -0
  13. package/dist/cjs/parts/DSModalHeader/constants/index.js.map +2 -2
  14. package/dist/cjs/parts/DSModalHeader/react-desc-prop-types.js.map +2 -2
  15. package/dist/cjs/parts/DSModalHeader/typescript-testing/slot-props.js +42 -0
  16. package/dist/cjs/parts/DSModalHeader/typescript-testing/slot-props.js.map +7 -0
  17. package/dist/cjs/react-desc-prop-types.js +2 -0
  18. package/dist/cjs/react-desc-prop-types.js.map +3 -3
  19. package/dist/cjs/styled.js +20 -4
  20. package/dist/cjs/styled.js.map +2 -2
  21. package/dist/cjs/typescript-testing/slot-props.js +46 -0
  22. package/dist/cjs/typescript-testing/slot-props.js.map +7 -0
  23. package/dist/esm/DSModalSlide.js +49 -24
  24. package/dist/esm/DSModalSlide.js.map +2 -2
  25. package/dist/esm/constants/index.js +7 -3
  26. package/dist/esm/constants/index.js.map +3 -3
  27. package/dist/esm/index.js.map +1 -1
  28. package/dist/esm/parts/DSModalFooter/react-desc-prop-types.js +4 -4
  29. package/dist/esm/parts/DSModalFooter/react-desc-prop-types.js.map +2 -2
  30. package/dist/esm/parts/DSModalFooter/typescript-testing/slot-props.js +13 -0
  31. package/dist/esm/parts/DSModalFooter/typescript-testing/slot-props.js.map +7 -0
  32. package/dist/esm/parts/DSModalHeader/DSModalHeader.js +11 -4
  33. package/dist/esm/parts/DSModalHeader/DSModalHeader.js.map +2 -2
  34. package/dist/esm/parts/DSModalHeader/constants/index.js +2 -0
  35. package/dist/esm/parts/DSModalHeader/constants/index.js.map +2 -2
  36. package/dist/esm/parts/DSModalHeader/react-desc-prop-types.js.map +2 -2
  37. package/dist/esm/parts/DSModalHeader/typescript-testing/slot-props.js +19 -0
  38. package/dist/esm/parts/DSModalHeader/typescript-testing/slot-props.js.map +7 -0
  39. package/dist/esm/react-desc-prop-types.js +8 -1
  40. package/dist/esm/react-desc-prop-types.js.map +3 -3
  41. package/dist/esm/styled.js +20 -4
  42. package/dist/esm/styled.js.map +2 -2
  43. package/dist/esm/typescript-testing/slot-props.js +23 -0
  44. package/dist/esm/typescript-testing/slot-props.js.map +7 -0
  45. package/dist/types/constants/index.d.ts +16 -12
  46. package/dist/types/parts/DSModalFooter/react-desc-prop-types.d.ts +8 -1
  47. package/dist/types/parts/DSModalHeader/constants/index.d.ts +2 -0
  48. package/dist/types/parts/DSModalHeader/react-desc-prop-types.d.ts +8 -0
  49. package/dist/types/react-desc-prop-types.d.ts +16 -2
  50. package/dist/types/styled.d.ts +15 -1
  51. package/dist/types/tests/DSModalSlide.a11y.test.d.ts +1 -0
  52. package/dist/types/tests/DSModalSlide.api.test.d.ts +1 -0
  53. package/dist/types/tests/DSModalSlide.data-testid.test.d.ts +1 -0
  54. package/dist/types/tests/DSModalSlide.events.test.d.ts +1 -0
  55. package/dist/types/tests/DSModalSlide.exports.test.d.ts +1 -0
  56. package/dist/types/tests/DSModalSlide.get-owner-props-arguments.test.d.ts +1 -0
  57. package/dist/types/tests/DSModalSlide.keyboard.test.d.ts +1 -0
  58. package/dist/types/typescript-testing/slot-props.d.ts +1 -0
  59. package/package.json +9 -9
  60. /package/dist/types/{tests/DSModalSLide.axe.test.d.ts → parts/DSModalFooter/typescript-testing/slot-props.d.ts} +0 -0
  61. /package/dist/types/{tests/DSModalSlide.test.d.ts → parts/DSModalHeader/typescript-testing/slot-props.d.ts} +0 -0
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/react-desc-prop-types.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-redundant-type-constituents */\n/* eslint-disable @typescript-eslint/no-empty-interface */\nimport type { GlobalAttributesT, XstyledProps, DSPropTypesSchema } from '@elliemae/ds-props-helpers';\nimport { PropTypes, globalAttributesPropTypes, xstyledPropTypes } from '@elliemae/ds-props-helpers';\n\nexport declare namespace DSModalSlideT {\n type PropsT<D, R, O, E> = Partial<D> & R & O & Omit<GlobalAttributesT<E>, keyof D | keyof R | keyof O> & XstyledProps;\n type InternalPropsT<D, R, O, E> = D & R & O & Omit<GlobalAttributesT<E>, keyof D | keyof R | keyof O> & XstyledProps;\n\n export interface RequiredProps {\n getContainer: () => HTMLElement;\n }\n\n export interface DefaultProps {\n isOpen: boolean;\n centered: boolean;\n fullWidth: boolean;\n fadeOut: number;\n fadeIn: number;\n overrideHeight: boolean;\n onClose: () => void;\n }\n\n export interface OptionalProps {\n header?: JSX.Element;\n footer?: React.ReactNode;\n children?: React.ReactNode;\n innerRef?: React.MutableRefObject<HTMLDivElement | null> | React.RefCallback<HTMLDivElement>;\n }\n\n export type Props = PropsT<DefaultProps, RequiredProps, OptionalProps, HTMLElement>;\n\n export type InternalProps = InternalPropsT<DefaultProps, RequiredProps, OptionalProps, HTMLElement>;\n}\n\nexport const defaultProps: DSModalSlideT.DefaultProps = {\n isOpen: false,\n centered: false,\n fullWidth: false,\n fadeOut: 1500,\n fadeIn: 1500,\n overrideHeight: false,\n onClose: () => {},\n};\n\nexport const DSModalSlidePropTypes: DSPropTypesSchema<DSModalSlideT.Props> = {\n ...globalAttributesPropTypes,\n ...xstyledPropTypes,\n /**\n * If the modal slide is centered or not\n */\n centered: PropTypes.bool.description('If the modal slide is centered or not'),\n /**\n * If the modal slide is visible or not\n */\n isOpen: PropTypes.bool.description('If the modal slide is visible or not'),\n /**\n * Main content of the modal\n */\n children: PropTypes.oneOfType([PropTypes.node]).isRequired.description('Main content of the modal'),\n /**\n * If the modal slide takes the full width or not\n */\n fullWidth: PropTypes.bool.description('If the modal slide takes the full width or not'),\n /**\n * If the modal slide has a header, only available for full width option\n */\n header: PropTypes.element.description('If the modal slide has a header, only available for full width option'),\n /**\n * If the modal slide has a footer\n */\n footer: PropTypes.element.description('If the modal slide has a footer'),\n /**\n * Ratio of fade out\n */\n fadeOut: PropTypes.number.description('Ratio of fade out'),\n /**\n * Ratio of fade in\n */\n fadeIn: PropTypes.number.description('Ratio of fade in'),\n /**\n * Override the panel height to scroll height of the container\n */\n overrideHeight: PropTypes.bool.description('Override the panel height to scroll height of the container'),\n getContainer: PropTypes.func.description('Should return the container of the modal slide').isRequired,\n innerRef: PropTypes.oneOfType([PropTypes.func, PropTypes.object]).description('Ref to the modal slide'),\n onClose: PropTypes.func.description('On modal slide close callback'),\n};\n\nexport const DSModalSlidePropTypesSchema =\n DSModalSlidePropTypes as unknown as React.WeakValidationMap<DSModalSlideT.Props>;\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACGvB,SAAS,WAAW,2BAA2B,wBAAwB;AAgChE,MAAM,eAA2C;AAAA,EACtD,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,WAAW;AAAA,EACX,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,gBAAgB;AAAA,EAChB,SAAS,MAAM;AAAA,EAAC;AAClB;AAEO,MAAM,wBAAgE;AAAA,EAC3E,GAAG;AAAA,EACH,GAAG;AAAA;AAAA;AAAA;AAAA,EAIH,UAAU,UAAU,KAAK,YAAY,uCAAuC;AAAA;AAAA;AAAA;AAAA,EAI5E,QAAQ,UAAU,KAAK,YAAY,sCAAsC;AAAA;AAAA;AAAA;AAAA,EAIzE,UAAU,UAAU,UAAU,CAAC,UAAU,IAAI,CAAC,EAAE,WAAW,YAAY,2BAA2B;AAAA;AAAA;AAAA;AAAA,EAIlG,WAAW,UAAU,KAAK,YAAY,gDAAgD;AAAA;AAAA;AAAA;AAAA,EAItF,QAAQ,UAAU,QAAQ,YAAY,uEAAuE;AAAA;AAAA;AAAA;AAAA,EAI7G,QAAQ,UAAU,QAAQ,YAAY,iCAAiC;AAAA;AAAA;AAAA;AAAA,EAIvE,SAAS,UAAU,OAAO,YAAY,mBAAmB;AAAA;AAAA;AAAA;AAAA,EAIzD,QAAQ,UAAU,OAAO,YAAY,kBAAkB;AAAA;AAAA;AAAA;AAAA,EAIvD,gBAAgB,UAAU,KAAK,YAAY,6DAA6D;AAAA,EACxG,cAAc,UAAU,KAAK,YAAY,gDAAgD,EAAE;AAAA,EAC3F,UAAU,UAAU,UAAU,CAAC,UAAU,MAAM,UAAU,MAAM,CAAC,EAAE,YAAY,wBAAwB;AAAA,EACtG,SAAS,UAAU,KAAK,YAAY,+BAA+B;AACrE;AAEO,MAAM,8BACX;",
3
+ "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/react-desc-prop-types.ts"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-redundant-type-constituents */\n/* eslint-disable @typescript-eslint/no-empty-interface */\nimport type { GlobalAttributesT, XstyledProps, DSPropTypesSchema } from '@elliemae/ds-props-helpers';\nimport {\n PropTypes,\n getPropsPerSlotPropTypes,\n globalAttributesPropTypes,\n xstyledPropTypes,\n} from '@elliemae/ds-props-helpers';\nimport { type TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';\nimport { DSModalSlideName, MODAL_SLIDE_SLOTS } from './constants/index.js';\n\nexport declare namespace DSModalSlideT {\n type PropsT<D, R, O, E> = Partial<D> & R & O & Omit<GlobalAttributesT<E>, keyof D | keyof R | keyof O> & XstyledProps;\n type InternalPropsT<D, R, O, E> = D & R & O & Omit<GlobalAttributesT<E>, keyof D | keyof R | keyof O> & XstyledProps;\n\n export interface RequiredProps {\n getContainer: () => HTMLElement;\n }\n\n export interface DefaultProps {\n isOpen: boolean;\n centered: boolean;\n fullWidth: boolean;\n fadeOut: number;\n fadeIn: number;\n overrideHeight: boolean;\n onClose: () => void;\n }\n\n export interface OptionalProps\n extends TypescriptHelpersT.PropsForGlobalOnSlots<typeof DSModalSlideName, typeof MODAL_SLIDE_SLOTS> {\n header?: React.ReactElement;\n footer?: React.ReactNode;\n children?: React.ReactNode;\n innerRef?: React.MutableRefObject<HTMLDivElement | null> | React.RefCallback<HTMLDivElement>;\n }\n\n export type Props = PropsT<DefaultProps, RequiredProps, OptionalProps, HTMLElement>;\n\n export type InternalProps = InternalPropsT<DefaultProps, RequiredProps, OptionalProps, HTMLElement>;\n}\n\nexport const defaultProps: DSModalSlideT.DefaultProps = {\n isOpen: false,\n centered: false,\n fullWidth: false,\n fadeOut: 1500,\n fadeIn: 1500,\n overrideHeight: false,\n onClose: () => {},\n};\n\nexport declare namespace DSModalSlideT {\n export type SlotFunctionArguments = {\n dsModalslideRoot: () => object;\n dsModalslideOverlay: () => object;\n dsModalslideContent: () => object;\n dsModalslideActualContent: () => object;\n dsModalslideHeaderSeparator: () => object;\n dsModalslideFooterSeparator: () => object;\n dsModalslideContentWrapper: () => object;\n dsModalslideGridContent: () => object;\n };\n}\n\nexport const DSModalSlidePropTypes: DSPropTypesSchema<DSModalSlideT.Props> = {\n ...getPropsPerSlotPropTypes(DSModalSlideName, MODAL_SLIDE_SLOTS),\n ...globalAttributesPropTypes,\n ...xstyledPropTypes,\n /**\n * If the modal slide is centered or not\n */\n centered: PropTypes.bool.description('If the modal slide is centered or not'),\n /**\n * If the modal slide is visible or not\n */\n isOpen: PropTypes.bool.description('If the modal slide is visible or not'),\n /**\n * Main content of the modal\n */\n children: PropTypes.oneOfType([PropTypes.node]).isRequired.description('Main content of the modal'),\n /**\n * If the modal slide takes the full width or not\n */\n fullWidth: PropTypes.bool.description('If the modal slide takes the full width or not'),\n /**\n * If the modal slide has a header, only available for full width option\n */\n header: PropTypes.element.description('If the modal slide has a header, only available for full width option'),\n /**\n * If the modal slide has a footer\n */\n footer: PropTypes.element.description('If the modal slide has a footer'),\n /**\n * Ratio of fade out\n */\n fadeOut: PropTypes.number.description('Ratio of fade out'),\n /**\n * Ratio of fade in\n */\n fadeIn: PropTypes.number.description('Ratio of fade in'),\n /**\n * Override the panel height to scroll height of the container\n */\n overrideHeight: PropTypes.bool.description('Override the panel height to scroll height of the container'),\n getContainer: PropTypes.func.description('Should return the container of the modal slide').isRequired,\n innerRef: PropTypes.oneOfType([PropTypes.func, PropTypes.object]).description('Ref to the modal slide'),\n onClose: PropTypes.func.description('On modal slide close callback'),\n};\n\nexport const DSModalSlidePropTypesSchema =\n DSModalSlidePropTypes as unknown as React.WeakValidationMap<DSModalSlideT.Props>;\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACGvB;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAEP,SAAS,kBAAkB,yBAAyB;AAiC7C,MAAM,eAA2C;AAAA,EACtD,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,WAAW;AAAA,EACX,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,gBAAgB;AAAA,EAChB,SAAS,MAAM;AAAA,EAAC;AAClB;AAeO,MAAM,wBAAgE;AAAA,EAC3E,GAAG,yBAAyB,kBAAkB,iBAAiB;AAAA,EAC/D,GAAG;AAAA,EACH,GAAG;AAAA;AAAA;AAAA;AAAA,EAIH,UAAU,UAAU,KAAK,YAAY,uCAAuC;AAAA;AAAA;AAAA;AAAA,EAI5E,QAAQ,UAAU,KAAK,YAAY,sCAAsC;AAAA;AAAA;AAAA;AAAA,EAIzE,UAAU,UAAU,UAAU,CAAC,UAAU,IAAI,CAAC,EAAE,WAAW,YAAY,2BAA2B;AAAA;AAAA;AAAA;AAAA,EAIlG,WAAW,UAAU,KAAK,YAAY,gDAAgD;AAAA;AAAA;AAAA;AAAA,EAItF,QAAQ,UAAU,QAAQ,YAAY,uEAAuE;AAAA;AAAA;AAAA;AAAA,EAI7G,QAAQ,UAAU,QAAQ,YAAY,iCAAiC;AAAA;AAAA;AAAA;AAAA,EAIvE,SAAS,UAAU,OAAO,YAAY,mBAAmB;AAAA;AAAA;AAAA;AAAA,EAIzD,QAAQ,UAAU,OAAO,YAAY,kBAAkB;AAAA;AAAA;AAAA;AAAA,EAIvD,gBAAgB,UAAU,KAAK,YAAY,6DAA6D;AAAA,EACxG,cAAc,UAAU,KAAK,YAAY,gDAAgD,EAAE;AAAA,EAC3F,UAAU,UAAU,UAAU,CAAC,UAAU,MAAM,UAAU,MAAM,CAAC,EAAE,YAAY,wBAAwB;AAAA,EACtG,SAAS,UAAU,KAAK,YAAY,+BAA+B;AACrE;AAEO,MAAM,8BACX;",
6
6
  "names": []
7
7
  }
@@ -82,7 +82,10 @@ const StyledContent = styled("div", { name: DSModalSlideName, slot: MODAL_SLIDE_
82
82
  animation: ${(props) => props.disappearing ? contentAnimationOut : contentAnimationIn}
83
83
  calc(${(props) => props.disappearing ? props.fadeOut / 2 : props.fadeIn / 2} * 1ms) linear;
84
84
  `;
85
- const StyledGridContent = styled(Grid)`
85
+ const StyledGridContent = styled(Grid, {
86
+ name: DSModalSlideName,
87
+ slot: MODAL_SLIDE_SLOTS.GRID_CONTENT
88
+ })`
86
89
  height: 100%;
87
90
  width: 100%;
88
91
  max-height: 100%;
@@ -138,7 +141,18 @@ const HeaderWrapper = styled("div", { name: DSModalSlideName, slot: MODAL_HEADER
138
141
  overflow: hidden;
139
142
  padding: ${(props) => props.theme.space.xxs} ${(props) => props.theme.space.xs};
140
143
  `;
141
- const StyledSeparator = styled(DSSeparatorV2, { name: DSModalSlideName, slot: MODAL_SLIDE_SLOTS.SEPARATOR })`
144
+ const StyledHeaderSeparator = styled(DSSeparatorV2, {
145
+ name: DSModalSlideName,
146
+ slot: MODAL_SLIDE_SLOTS.HEADER_SEPARATOR
147
+ })``;
148
+ const StyledFooterSeparator = styled(DSSeparatorV2, {
149
+ name: DSModalSlideName,
150
+ slot: MODAL_SLIDE_SLOTS.FOOTER_SEPARATOR
151
+ })``;
152
+ const StyledToolbarSeparator = styled(DSSeparatorV2, {
153
+ name: DSModalSlideName,
154
+ slot: MODAL_HEADER_SLOTS.TOOLBAR_SEPARATOR
155
+ })`
142
156
  height: 33%;
143
157
  background: ${(props) => props.theme.colors.neutral["300"]};
144
158
  `;
@@ -173,14 +187,16 @@ export {
173
187
  StyledConfirmButton,
174
188
  StyledContent,
175
189
  StyledContentWrapper,
190
+ StyledFooterSeparator,
176
191
  StyledFooterWrapper,
177
192
  StyledGridContent,
178
193
  StyledHeader,
179
194
  StyledHeaderLeftSide,
195
+ StyledHeaderSeparator,
180
196
  StyledModalWrapper,
181
197
  StyledOverlay,
182
198
  StyledRejectButton,
183
- StyledSeparator,
184
- StyledTitle
199
+ StyledTitle,
200
+ StyledToolbarSeparator
185
201
  };
186
202
  //# sourceMappingURL=styled.js.map
@@ -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`;\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;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;AAOjC,MAAM,gBAAgB,OAAO,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AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAc7G,MAAM,gBAAgB,OAAO,OAAO,EAAE,MAAM,kBAAkB,MAAM,mBAAmB,eAAe,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aAMjG,CAAC,UAAU,MAAM,MAAM,MAAM,GAAG,IAAI,CAAC,UAAU,MAAM,MAAM,MAAM,EAAE;AAAA;AAGzE,MAAM,kBAAkB,OAAO,eAAe,EAAE,MAAM,kBAAkB,MAAM,kBAAkB,UAAU,CAAC;AAAA;AAAA,gBAElG,CAAC,UAAU,MAAM,MAAM,OAAO,QAAQ,KAAK,CAAC;AAAA;AAGrD,MAAM,oBAAoB,OAAO,YAAY;AAAA,EAClD,MAAM;AAAA,EACN,MAAM,mBAAmB;AAC3B,CAAC;AAEM,MAAM,uBAAuB,OAAO,MAAM,EAAE,MAAM,kBAAkB,MAAM,kBAAkB,gBAAgB,CAAC;AAAA;AAAA;AAAA;AAAA,yBAI3F,CAAC,EAAE,MAAM,MAAM,MAAM,OAAO,MAAM,KAAK,CAAC;AAAA;AAAA;AAAA;AAK1D,MAAM,qBAAqB,OAAO,YAAY;AAAA,EACnD,MAAM;AAAA,EACN,MAAM,mBAAmB;AAC3B,CAAC;AAAA;AAAA;AAIM,MAAM,sBAAsB,OAAO,YAAY;AAAA,EACpD,MAAM;AAAA,EACN,MAAM,mBAAmB;AAC3B,CAAC;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 name: DSModalSlideName,\n slot: MODAL_SLIDE_SLOTS.GRID_CONTENT,\n})`\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 StyledHeaderSeparator = styled(DSSeparatorV2, {\n name: DSModalSlideName,\n slot: MODAL_SLIDE_SLOTS.HEADER_SEPARATOR,\n})``;\n\nexport const StyledFooterSeparator = styled(DSSeparatorV2, {\n name: DSModalSlideName,\n slot: MODAL_SLIDE_SLOTS.FOOTER_SEPARATOR,\n})``;\n\nexport const StyledToolbarSeparator = styled(DSSeparatorV2, {\n name: DSModalSlideName,\n slot: MODAL_HEADER_SLOTS.TOOLBAR_SEPARATOR,\n})`\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;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AM,MAAM,MAAM,OAAO,MAAM,KAAK,CAAC;AAAA;AAAA;AAAA;AAK1D,MAAM,qBAAqB,OAAO,YAAY;AAAA,EACnD,MAAM;AAAA,EACN,MAAM,mBAAmB;AAC3B,CAAC;AAAA;AAAA;AAIM,MAAM,sBAAsB,OAAO,YAAY;AAAA,EACpD,MAAM;AAAA,EACN,MAAM,mBAAmB;AAC3B,CAAC;AAAA;AAAA;",
6
6
  "names": []
7
7
  }
@@ -0,0 +1,23 @@
1
+ import * as React from "react";
2
+ const SlotPropsAsObj = {
3
+ dsModalslideRoot: { "aria-label": "just a typescript test" },
4
+ dsModalslideOverlay: { "aria-label": "just a typescript test" },
5
+ dsModalslideContent: { "aria-label": "just a typescript test" },
6
+ dsModalslideActualContent: { "aria-label": "just a typescript test" },
7
+ dsModalslideHeaderSeparator: { "aria-label": "just a typescript test" },
8
+ dsModalslideFooterSeparator: { "aria-label": "just a typescript test" },
9
+ dsModalslideContentWrapper: { "aria-label": "just a typescript test" },
10
+ dsModalslideGridContent: { "aria-label": "just a typescript test" }
11
+ };
12
+ const SlotPropsAsFunctions = {
13
+ dsModalslideRoot: () => ({ "aria-label": "just a typescript test" }),
14
+ dsModalslideOverlay: () => ({ "aria-label": "just a typescript test" }),
15
+ dsModalslideContent: () => ({ "aria-label": "just a typescript test" }),
16
+ dsModalslideActualContent: () => ({ "aria-label": "just a typescript test" }),
17
+ dsModalslideHeaderSeparator: () => ({ "aria-label": "just a typescript test" }),
18
+ dsModalslideFooterSeparator: () => ({ "aria-label": "just a typescript test" }),
19
+ dsModalslideContentWrapper: () => ({ "aria-label": "just a typescript test" }),
20
+ dsModalslideGridContent: () => ({ "aria-label": "just a typescript test" })
21
+ };
22
+ const EnsureAllSlotsExistInSlotFunctionArguments = SlotPropsAsFunctions;
23
+ //# sourceMappingURL=slot-props.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/typescript-testing/slot-props.ts"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-unused-vars, no-unused-vars */\n\nimport type { TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';\n\nimport type { DSModalSlideT } from '../react-desc-prop-types.js';\nimport type { DSModalSlideName, MODAL_SLIDE_SLOTS } from '../constants/index.js';\n\nconst SlotPropsAsObj: Partial<DSModalSlideT.Props> = {\n dsModalslideRoot: { 'aria-label': 'just a typescript test' },\n dsModalslideOverlay: { 'aria-label': 'just a typescript test' },\n dsModalslideContent: { 'aria-label': 'just a typescript test' },\n dsModalslideActualContent: { 'aria-label': 'just a typescript test' },\n dsModalslideHeaderSeparator: { 'aria-label': 'just a typescript test' },\n dsModalslideFooterSeparator: { 'aria-label': 'just a typescript test' },\n dsModalslideContentWrapper: { 'aria-label': 'just a typescript test' },\n dsModalslideGridContent: { 'aria-label': 'just a typescript test' },\n};\n\nconst SlotPropsAsFunctions: DSModalSlideT.SlotFunctionArguments = {\n dsModalslideRoot: () => ({ 'aria-label': 'just a typescript test' }),\n dsModalslideOverlay: () => ({ 'aria-label': 'just a typescript test' }),\n dsModalslideContent: () => ({ 'aria-label': 'just a typescript test' }),\n dsModalslideActualContent: () => ({ 'aria-label': 'just a typescript test' }),\n dsModalslideHeaderSeparator: () => ({ 'aria-label': 'just a typescript test' }),\n dsModalslideFooterSeparator: () => ({ 'aria-label': 'just a typescript test' }),\n dsModalslideContentWrapper: () => ({ 'aria-label': 'just a typescript test' }),\n dsModalslideGridContent: () => ({ 'aria-label': 'just a typescript test' }),\n};\n\nconst EnsureAllSlotsExistInSlotFunctionArguments: Required<\n TypescriptHelpersT.PropsForSlots<typeof DSModalSlideName, typeof MODAL_SLIDE_SLOTS>\n> = SlotPropsAsFunctions;\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACOvB,MAAM,iBAA+C;AAAA,EACnD,kBAAkB,EAAE,cAAc,yBAAyB;AAAA,EAC3D,qBAAqB,EAAE,cAAc,yBAAyB;AAAA,EAC9D,qBAAqB,EAAE,cAAc,yBAAyB;AAAA,EAC9D,2BAA2B,EAAE,cAAc,yBAAyB;AAAA,EACpE,6BAA6B,EAAE,cAAc,yBAAyB;AAAA,EACtE,6BAA6B,EAAE,cAAc,yBAAyB;AAAA,EACtE,4BAA4B,EAAE,cAAc,yBAAyB;AAAA,EACrE,yBAAyB,EAAE,cAAc,yBAAyB;AACpE;AAEA,MAAM,uBAA4D;AAAA,EAChE,kBAAkB,OAAO,EAAE,cAAc,yBAAyB;AAAA,EAClE,qBAAqB,OAAO,EAAE,cAAc,yBAAyB;AAAA,EACrE,qBAAqB,OAAO,EAAE,cAAc,yBAAyB;AAAA,EACrE,2BAA2B,OAAO,EAAE,cAAc,yBAAyB;AAAA,EAC3E,6BAA6B,OAAO,EAAE,cAAc,yBAAyB;AAAA,EAC7E,6BAA6B,OAAO,EAAE,cAAc,yBAAyB;AAAA,EAC7E,4BAA4B,OAAO,EAAE,cAAc,yBAAyB;AAAA,EAC5E,yBAAyB,OAAO,EAAE,cAAc,yBAAyB;AAC3E;AAEA,MAAM,6CAEF;",
6
+ "names": []
7
+ }
@@ -1,17 +1,21 @@
1
1
  export declare const DSModalSlideName = "DSModalslide";
2
2
  export declare const MODAL_SLIDE_SLOTS: {
3
- ROOT: string;
4
- OVERLAY: string;
5
- CONTENT: string;
6
- ACTUAL_CONTENT: string;
7
- SEPARATOR: string;
8
- CONTENT_WRAPPER: string;
3
+ readonly ROOT: "root";
4
+ readonly OVERLAY: "overlay";
5
+ readonly CONTENT: "content";
6
+ readonly ACTUAL_CONTENT: "actual-content";
7
+ readonly HEADER_SEPARATOR: "header-separator";
8
+ readonly FOOTER_SEPARATOR: "footer-separator";
9
+ readonly CONTENT_WRAPPER: "content-wrapper";
10
+ readonly GRID_CONTENT: "grid-content";
9
11
  };
10
12
  export declare const MODAL_SLIDE_DATA_TESTID: {
11
- ROOT: `ds-modalslide-${string}`;
12
- OVERLAY: `ds-modalslide-${string}`;
13
- CONTENT: `ds-modalslide-${string}`;
14
- ACTUAL_CONTENT: `ds-modalslide-${string}`;
15
- SEPARATOR: `ds-modalslide-${string}`;
16
- CONTENT_WRAPPER: `ds-modalslide-${string}`;
13
+ GRID_CONTENT: string;
14
+ ROOT: "ds-modalslide-root";
15
+ OVERLAY: "ds-modalslide-overlay";
16
+ CONTENT: "ds-modalslide-content";
17
+ ACTUAL_CONTENT: "ds-modalslide-actual-content";
18
+ HEADER_SEPARATOR: "ds-modalslide-header-separator";
19
+ FOOTER_SEPARATOR: "ds-modalslide-footer-separator";
20
+ CONTENT_WRAPPER: "ds-modalslide-content-wrapper";
17
21
  };
@@ -1,4 +1,6 @@
1
1
  import type { GlobalAttributesT, XstyledProps, DSPropTypesSchema, ValidationMap } from '@elliemae/ds-props-helpers';
2
+ import { type TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';
3
+ import { DSModalSlideName, MODAL_FOOTER_SLOTS } from './constants/index.js';
2
4
  export declare namespace DSModalFooterT {
3
5
  interface RequiredProps {
4
6
  }
@@ -15,7 +17,12 @@ export declare namespace DSModalFooterT {
15
17
  applyAriaDisabled?: boolean;
16
18
  };
17
19
  }
18
- interface OptionalProps {
20
+ type SlotFunctionArguments = {
21
+ dsModalslideConfirmButton: () => object;
22
+ dsModalslideRejectButton: () => object;
23
+ dsModalslideFooterWrapper: () => object;
24
+ };
25
+ interface OptionalProps extends TypescriptHelpersT.PropsForGlobalOnSlots<typeof DSModalSlideName, typeof MODAL_FOOTER_SLOTS> {
19
26
  onConfirm?: () => void;
20
27
  onReject?: () => void;
21
28
  }
@@ -6,6 +6,7 @@ export declare const MODAL_HEADER_SLOTS: {
6
6
  readonly HEADER_LEFT_SIDE: "header-left-side";
7
7
  readonly HEADER: "header";
8
8
  readonly HEADER_WRAPPER: "header-wrapper";
9
+ readonly TOOLBAR_SEPARATOR: "toolbar-separator";
9
10
  readonly CLOSE_BUTTON: "close-button";
10
11
  };
11
12
  export declare const MODAL_HEADER_DATA_TESTID: {
@@ -14,4 +15,5 @@ export declare const MODAL_HEADER_DATA_TESTID: {
14
15
  HEADER_LEFT_SIDE: "ds-modalslide-header-left-side";
15
16
  HEADER: "ds-modalslide-header";
16
17
  HEADER_WRAPPER: "ds-modalslide-header-wrapper";
18
+ TOOLBAR_SEPARATOR: "ds-modalslide-toolbar-separator";
17
19
  };
@@ -11,6 +11,14 @@ export declare namespace DSModalHeaderT {
11
11
  headingLevel: DSTypographyT.HeadingVariants;
12
12
  modalTitleId: string;
13
13
  }
14
+ type SlotFunctionArguments = {
15
+ dsModalslideTitle: () => object;
16
+ dsModalslideHeaderLeftSide: () => object;
17
+ dsModalslideHeader: () => object;
18
+ dsModalslideHeaderWrapper: () => object;
19
+ dsModalslideToolbarSeparator: () => object;
20
+ dsModalslideCloseButton: () => object;
21
+ };
14
22
  interface OptionalProps extends TypescriptHelpersT.PropsForGlobalOnSlots<typeof DSModalSlideName, typeof MODAL_HEADER_SLOTS> {
15
23
  toolbar?: React.ReactNode;
16
24
  innerRef?: React.MutableRefObject<HTMLButtonElement | null> | React.RefCallback<HTMLButtonElement>;
@@ -1,4 +1,6 @@
1
1
  import type { GlobalAttributesT, XstyledProps, DSPropTypesSchema } from '@elliemae/ds-props-helpers';
2
+ import { type TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';
3
+ import { DSModalSlideName, MODAL_SLIDE_SLOTS } from './constants/index.js';
2
4
  export declare namespace DSModalSlideT {
3
5
  type PropsT<D, R, O, E> = Partial<D> & R & O & Omit<GlobalAttributesT<E>, keyof D | keyof R | keyof O> & XstyledProps;
4
6
  type InternalPropsT<D, R, O, E> = D & R & O & Omit<GlobalAttributesT<E>, keyof D | keyof R | keyof O> & XstyledProps;
@@ -14,8 +16,8 @@ export declare namespace DSModalSlideT {
14
16
  overrideHeight: boolean;
15
17
  onClose: () => void;
16
18
  }
17
- interface OptionalProps {
18
- header?: JSX.Element;
19
+ interface OptionalProps extends TypescriptHelpersT.PropsForGlobalOnSlots<typeof DSModalSlideName, typeof MODAL_SLIDE_SLOTS> {
20
+ header?: React.ReactElement;
19
21
  footer?: React.ReactNode;
20
22
  children?: React.ReactNode;
21
23
  innerRef?: React.MutableRefObject<HTMLDivElement | null> | React.RefCallback<HTMLDivElement>;
@@ -24,5 +26,17 @@ export declare namespace DSModalSlideT {
24
26
  type InternalProps = InternalPropsT<DefaultProps, RequiredProps, OptionalProps, HTMLElement>;
25
27
  }
26
28
  export declare const defaultProps: DSModalSlideT.DefaultProps;
29
+ export declare namespace DSModalSlideT {
30
+ type SlotFunctionArguments = {
31
+ dsModalslideRoot: () => object;
32
+ dsModalslideOverlay: () => object;
33
+ dsModalslideContent: () => object;
34
+ dsModalslideActualContent: () => object;
35
+ dsModalslideHeaderSeparator: () => object;
36
+ dsModalslideFooterSeparator: () => object;
37
+ dsModalslideContentWrapper: () => object;
38
+ dsModalslideGridContent: () => object;
39
+ };
40
+ }
27
41
  export declare const DSModalSlidePropTypes: DSPropTypesSchema<DSModalSlideT.Props>;
28
42
  export declare const DSModalSlidePropTypesSchema: React.WeakValidationMap<DSModalSlideT.Props>;
@@ -21,7 +21,21 @@ export declare const StyledActualContent: import("styled-components").StyledComp
21
21
  export declare const StyledHeader: import("styled-components").StyledComponent<"div", import("@elliemae/ds-system").Theme, object & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<"div">, never>;
22
22
  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>;
23
23
  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>;
24
- export declare const StyledSeparator: import("styled-components").StyledComponent<{
24
+ export declare const StyledHeaderSeparator: import("styled-components").StyledComponent<{
25
+ (props: import("@elliemae/ds-separator").DSSeparatorV2T.Props): JSX.Element;
26
+ displayName: string;
27
+ }, import("@elliemae/ds-system").Theme, object & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<{
28
+ (props: import("@elliemae/ds-separator").DSSeparatorV2T.Props): JSX.Element;
29
+ displayName: string;
30
+ }>, never>;
31
+ export declare const StyledFooterSeparator: import("styled-components").StyledComponent<{
32
+ (props: import("@elliemae/ds-separator").DSSeparatorV2T.Props): JSX.Element;
33
+ displayName: string;
34
+ }, import("@elliemae/ds-system").Theme, object & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<{
35
+ (props: import("@elliemae/ds-separator").DSSeparatorV2T.Props): JSX.Element;
36
+ displayName: string;
37
+ }>, never>;
38
+ export declare const StyledToolbarSeparator: import("styled-components").StyledComponent<{
25
39
  (props: import("@elliemae/ds-separator").DSSeparatorV2T.Props): JSX.Element;
26
40
  displayName: string;
27
41
  }, import("@elliemae/ds-system").Theme, object & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<{
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-modal-slide",
3
- "version": "3.70.0-next.2",
3
+ "version": "3.70.0-next.20",
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-button-v2": "3.70.0-next.2",
40
- "@elliemae/ds-grid": "3.70.0-next.2",
41
- "@elliemae/ds-separator": "3.70.0-next.2",
42
- "@elliemae/ds-icons": "3.70.0-next.2",
43
- "@elliemae/ds-props-helpers": "3.70.0-next.2",
44
- "@elliemae/ds-system": "3.70.0-next.2"
39
+ "@elliemae/ds-grid": "3.70.0-next.20",
40
+ "@elliemae/ds-button-v2": "3.70.0-next.20",
41
+ "@elliemae/ds-icons": "3.70.0-next.20",
42
+ "@elliemae/ds-props-helpers": "3.70.0-next.20",
43
+ "@elliemae/ds-separator": "3.70.0-next.20",
44
+ "@elliemae/ds-system": "3.70.0-next.20"
45
45
  },
46
46
  "devDependencies": {
47
47
  "jest": "^30.0.0",
48
48
  "styled-components": "~5.3.9",
49
- "@elliemae/ds-monorepo-devops": "3.70.0-next.2",
50
- "@elliemae/ds-test-utils": "3.70.0-next.2"
49
+ "@elliemae/ds-test-utils": "3.70.0-next.20",
50
+ "@elliemae/ds-monorepo-devops": "3.70.0-next.20"
51
51
  },
52
52
  "peerDependencies": {
53
53
  "lodash-es": "^4.17.21",