@elliemae/ds-dialog 3.60.0-next.9 → 3.70.0-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/config/useDialog.js +1 -1
- package/dist/cjs/config/useDialog.js.map +2 -2
- package/dist/cjs/constants/index.js +54 -0
- package/dist/cjs/constants/index.js.map +7 -0
- package/dist/cjs/index.js +27 -50
- package/dist/cjs/index.js.map +2 -2
- package/dist/cjs/parts/DSDialogAddon/DSDialogAddon.js +48 -0
- package/dist/cjs/parts/DSDialogAddon/DSDialogAddon.js.map +7 -0
- package/dist/cjs/parts/DSDialogAddon/constants/index.js +43 -0
- package/dist/cjs/parts/DSDialogAddon/constants/index.js.map +7 -0
- package/dist/cjs/parts/DSDialogAddon/index.js +42 -0
- package/dist/cjs/parts/DSDialogAddon/index.js.map +7 -0
- package/dist/cjs/parts/DSDialogAddon/react-desc-prop-types.js +45 -0
- package/dist/cjs/parts/DSDialogAddon/react-desc-prop-types.js.map +7 -0
- package/dist/cjs/{DSDialogDatatestid.js → parts/DSDialogAddon/styled.js} +11 -9
- package/dist/cjs/parts/DSDialogAddon/styled.js.map +7 -0
- package/dist/cjs/parts/DSDialogBody/DSDialogBody.js +48 -0
- package/dist/cjs/parts/DSDialogBody/DSDialogBody.js.map +7 -0
- package/dist/cjs/parts/DSDialogBody/constants/index.js +43 -0
- package/dist/cjs/parts/DSDialogBody/constants/index.js.map +7 -0
- package/dist/cjs/parts/DSDialogBody/index.js +42 -0
- package/dist/cjs/parts/DSDialogBody/index.js.map +7 -0
- package/dist/cjs/parts/DSDialogBody/react-desc-prop-types.js +46 -0
- package/dist/cjs/parts/DSDialogBody/react-desc-prop-types.js.map +7 -0
- package/dist/cjs/parts/DSDialogBody/styled.js +45 -0
- package/dist/cjs/parts/DSDialogBody/styled.js.map +7 -0
- package/dist/cjs/parts/{dialogContent → DSDialogContent}/DSDialogContent.js +12 -6
- package/dist/cjs/parts/DSDialogContent/DSDialogContent.js.map +7 -0
- package/dist/cjs/parts/{dialogContent → DSDialogContent}/useDialogContent.js +11 -3
- package/dist/cjs/parts/DSDialogContent/useDialogContent.js.map +7 -0
- package/dist/cjs/parts/DSDialogDefaultLayout/DSDialogDefaultLayout.js +55 -0
- package/dist/cjs/parts/DSDialogDefaultLayout/DSDialogDefaultLayout.js.map +7 -0
- package/dist/cjs/parts/DSDialogDefaultLayout/constants/index.js +43 -0
- package/dist/cjs/parts/DSDialogDefaultLayout/constants/index.js.map +7 -0
- package/dist/cjs/parts/DSDialogDefaultLayout/index.js +42 -0
- package/dist/cjs/parts/DSDialogDefaultLayout/index.js.map +7 -0
- package/dist/cjs/parts/DSDialogDefaultLayout/react-desc-prop-types.js +46 -0
- package/dist/cjs/parts/DSDialogDefaultLayout/react-desc-prop-types.js.map +7 -0
- package/dist/cjs/parts/DSDialogDefaultLayout/styled.js +52 -0
- package/dist/cjs/parts/DSDialogDefaultLayout/styled.js.map +7 -0
- package/dist/cjs/parts/DSDialogFooter/DSDialogFooter.js +48 -0
- package/dist/cjs/parts/DSDialogFooter/DSDialogFooter.js.map +7 -0
- package/dist/cjs/parts/DSDialogFooter/constants/index.js +43 -0
- package/dist/cjs/parts/DSDialogFooter/constants/index.js.map +7 -0
- package/dist/cjs/parts/DSDialogFooter/index.js +42 -0
- package/dist/cjs/parts/DSDialogFooter/index.js.map +7 -0
- package/dist/cjs/parts/DSDialogFooter/react-desc-prop-types.js +46 -0
- package/dist/cjs/parts/DSDialogFooter/react-desc-prop-types.js.map +7 -0
- package/dist/cjs/parts/DSDialogFooter/styled.js +50 -0
- package/dist/cjs/parts/DSDialogFooter/styled.js.map +7 -0
- package/dist/cjs/parts/DSDialogHeader/DSDialogHeader.js +48 -0
- package/dist/cjs/parts/DSDialogHeader/DSDialogHeader.js.map +7 -0
- package/dist/cjs/parts/DSDialogHeader/constants/index.js +43 -0
- package/dist/cjs/parts/DSDialogHeader/constants/index.js.map +7 -0
- package/dist/cjs/parts/DSDialogHeader/index.js +42 -0
- package/dist/cjs/parts/DSDialogHeader/index.js.map +7 -0
- package/dist/cjs/parts/DSDialogHeader/react-desc-prop-types.js +46 -0
- package/dist/cjs/parts/DSDialogHeader/react-desc-prop-types.js.map +7 -0
- package/dist/cjs/parts/DSDialogHeader/styled.js +57 -0
- package/dist/cjs/parts/DSDialogHeader/styled.js.map +7 -0
- package/dist/cjs/parts/DSDialogPortal.js +1 -1
- package/dist/cjs/parts/DSDialogPortal.js.map +1 -1
- package/dist/cjs/parts/DSDialogPrimaryMessage/DSDialogPrimaryMessage.js +55 -0
- package/dist/cjs/parts/DSDialogPrimaryMessage/DSDialogPrimaryMessage.js.map +7 -0
- package/dist/cjs/parts/DSDialogPrimaryMessage/constants/index.js +43 -0
- package/dist/cjs/parts/DSDialogPrimaryMessage/constants/index.js.map +7 -0
- package/dist/cjs/parts/DSDialogPrimaryMessage/index.js +42 -0
- package/dist/cjs/parts/DSDialogPrimaryMessage/index.js.map +7 -0
- package/dist/cjs/parts/DSDialogPrimaryMessage/react-desc-prop-types.js +46 -0
- package/dist/cjs/parts/DSDialogPrimaryMessage/react-desc-prop-types.js.map +7 -0
- package/dist/cjs/parts/DSDialogPrimaryMessage/styled.js +43 -0
- package/dist/cjs/parts/DSDialogPrimaryMessage/styled.js.map +7 -0
- package/dist/cjs/parts/DSDialogSecondaryMessage/DSDialogSecondaryMessage.js +55 -0
- package/dist/cjs/parts/DSDialogSecondaryMessage/DSDialogSecondaryMessage.js.map +7 -0
- package/dist/cjs/parts/DSDialogSecondaryMessage/constants/index.js +46 -0
- package/dist/cjs/parts/DSDialogSecondaryMessage/constants/index.js.map +7 -0
- package/dist/cjs/parts/DSDialogSecondaryMessage/index.js +42 -0
- package/dist/cjs/parts/DSDialogSecondaryMessage/index.js.map +7 -0
- package/dist/cjs/parts/DSDialogSecondaryMessage/react-desc-prop-types.js +46 -0
- package/dist/cjs/parts/DSDialogSecondaryMessage/react-desc-prop-types.js.map +7 -0
- package/dist/cjs/parts/DSDialogSecondaryMessage/styled.js +43 -0
- package/dist/cjs/parts/DSDialogSecondaryMessage/styled.js.map +7 -0
- package/dist/cjs/parts/DSDialogSeparator/DSDialogSeparator.js +48 -0
- package/dist/cjs/parts/DSDialogSeparator/DSDialogSeparator.js.map +7 -0
- package/dist/cjs/parts/DSDialogSeparator/constants/index.js +43 -0
- package/dist/cjs/parts/DSDialogSeparator/constants/index.js.map +7 -0
- package/dist/cjs/parts/DSDialogSeparator/index.js +42 -0
- package/dist/cjs/parts/DSDialogSeparator/index.js.map +7 -0
- package/dist/cjs/parts/DSDialogSeparator/react-desc-prop-types.js +46 -0
- package/dist/cjs/parts/DSDialogSeparator/react-desc-prop-types.js.map +7 -0
- package/dist/cjs/parts/DSDialogSeparator/styled.js +46 -0
- package/dist/cjs/parts/DSDialogSeparator/styled.js.map +7 -0
- package/dist/cjs/parts/DSDialogTitle/DSDialogTitle.js +48 -0
- package/dist/cjs/parts/DSDialogTitle/DSDialogTitle.js.map +7 -0
- package/dist/cjs/parts/DSDialogTitle/constants/index.js +43 -0
- package/dist/cjs/parts/DSDialogTitle/constants/index.js.map +7 -0
- package/dist/cjs/parts/DSDialogTitle/index.js +42 -0
- package/dist/cjs/parts/DSDialogTitle/index.js.map +7 -0
- package/dist/cjs/parts/DSDialogTitle/react-desc-prop-types.js +46 -0
- package/dist/cjs/parts/DSDialogTitle/react-desc-prop-types.js.map +7 -0
- package/dist/cjs/parts/DSDialogTitle/styled.js +49 -0
- package/dist/cjs/parts/DSDialogTitle/styled.js.map +7 -0
- package/dist/cjs/parts/index.js +106 -0
- package/dist/cjs/parts/index.js.map +7 -0
- package/dist/cjs/parts/useDialogOwnerProps.js +47 -0
- package/dist/cjs/parts/useDialogOwnerProps.js.map +7 -0
- package/dist/cjs/react-desc-prop-types.js +2 -0
- package/dist/cjs/react-desc-prop-types.js.map +2 -2
- package/dist/cjs/styles.js +12 -75
- package/dist/cjs/styles.js.map +2 -2
- package/dist/esm/config/useDialog.js +2 -2
- package/dist/esm/config/useDialog.js.map +2 -2
- package/dist/esm/constants/index.js +24 -0
- package/dist/esm/constants/index.js.map +7 -0
- package/dist/esm/index.js +21 -34
- package/dist/esm/index.js.map +2 -2
- package/dist/esm/parts/DSDialogAddon/DSDialogAddon.js +18 -0
- package/dist/esm/parts/DSDialogAddon/DSDialogAddon.js.map +7 -0
- package/dist/esm/parts/DSDialogAddon/constants/index.js +13 -0
- package/dist/esm/parts/DSDialogAddon/constants/index.js.map +7 -0
- package/dist/esm/parts/DSDialogAddon/index.js +12 -0
- package/dist/esm/parts/DSDialogAddon/index.js.map +7 -0
- package/dist/esm/parts/DSDialogAddon/react-desc-prop-types.js +15 -0
- package/dist/esm/parts/DSDialogAddon/react-desc-prop-types.js.map +7 -0
- package/dist/esm/parts/DSDialogAddon/styled.js +11 -0
- package/dist/esm/parts/DSDialogAddon/styled.js.map +7 -0
- package/dist/esm/parts/DSDialogBody/DSDialogBody.js +18 -0
- package/dist/esm/parts/DSDialogBody/DSDialogBody.js.map +7 -0
- package/dist/esm/parts/DSDialogBody/constants/index.js +13 -0
- package/dist/esm/parts/DSDialogBody/constants/index.js.map +7 -0
- package/dist/esm/parts/DSDialogBody/index.js +12 -0
- package/dist/esm/parts/DSDialogBody/index.js.map +7 -0
- package/dist/esm/parts/DSDialogBody/react-desc-prop-types.js +16 -0
- package/dist/esm/parts/DSDialogBody/react-desc-prop-types.js.map +7 -0
- package/dist/esm/parts/DSDialogBody/styled.js +15 -0
- package/dist/esm/parts/DSDialogBody/styled.js.map +7 -0
- package/dist/esm/parts/{dialogContent → DSDialogContent}/DSDialogContent.js +10 -4
- package/dist/esm/parts/DSDialogContent/DSDialogContent.js.map +7 -0
- package/dist/esm/parts/DSDialogContent/useDialogContent.js +36 -0
- package/dist/esm/parts/DSDialogContent/useDialogContent.js.map +7 -0
- package/dist/esm/parts/DSDialogDefaultLayout/DSDialogDefaultLayout.js +25 -0
- package/dist/esm/parts/DSDialogDefaultLayout/DSDialogDefaultLayout.js.map +7 -0
- package/dist/esm/parts/DSDialogDefaultLayout/constants/index.js +13 -0
- package/dist/esm/parts/DSDialogDefaultLayout/constants/index.js.map +7 -0
- package/dist/esm/parts/DSDialogDefaultLayout/index.js +12 -0
- package/dist/esm/parts/DSDialogDefaultLayout/index.js.map +7 -0
- package/dist/esm/parts/DSDialogDefaultLayout/react-desc-prop-types.js +16 -0
- package/dist/esm/parts/DSDialogDefaultLayout/react-desc-prop-types.js.map +7 -0
- package/dist/esm/parts/DSDialogDefaultLayout/styled.js +22 -0
- package/dist/esm/parts/DSDialogDefaultLayout/styled.js.map +7 -0
- package/dist/esm/parts/DSDialogFooter/DSDialogFooter.js +18 -0
- package/dist/esm/parts/DSDialogFooter/DSDialogFooter.js.map +7 -0
- package/dist/esm/parts/DSDialogFooter/constants/index.js +13 -0
- package/dist/esm/parts/DSDialogFooter/constants/index.js.map +7 -0
- package/dist/esm/parts/DSDialogFooter/index.js +12 -0
- package/dist/esm/parts/DSDialogFooter/index.js.map +7 -0
- package/dist/esm/parts/DSDialogFooter/react-desc-prop-types.js +16 -0
- package/dist/esm/parts/DSDialogFooter/react-desc-prop-types.js.map +7 -0
- package/dist/esm/parts/DSDialogFooter/styled.js +20 -0
- package/dist/esm/parts/DSDialogFooter/styled.js.map +7 -0
- package/dist/esm/parts/DSDialogHeader/DSDialogHeader.js +18 -0
- package/dist/esm/parts/DSDialogHeader/DSDialogHeader.js.map +7 -0
- package/dist/esm/parts/DSDialogHeader/constants/index.js +13 -0
- package/dist/esm/parts/DSDialogHeader/constants/index.js.map +7 -0
- package/dist/esm/parts/DSDialogHeader/index.js +12 -0
- package/dist/esm/parts/DSDialogHeader/index.js.map +7 -0
- package/dist/esm/parts/DSDialogHeader/react-desc-prop-types.js +16 -0
- package/dist/esm/parts/DSDialogHeader/react-desc-prop-types.js.map +7 -0
- package/dist/esm/parts/DSDialogHeader/styled.js +27 -0
- package/dist/esm/parts/DSDialogHeader/styled.js.map +7 -0
- package/dist/esm/parts/DSDialogPortal.js +1 -1
- package/dist/esm/parts/DSDialogPortal.js.map +1 -1
- package/dist/esm/parts/DSDialogPrimaryMessage/DSDialogPrimaryMessage.js +25 -0
- package/dist/esm/parts/DSDialogPrimaryMessage/DSDialogPrimaryMessage.js.map +7 -0
- package/dist/esm/parts/DSDialogPrimaryMessage/constants/index.js +13 -0
- package/dist/esm/parts/DSDialogPrimaryMessage/constants/index.js.map +7 -0
- package/dist/esm/parts/DSDialogPrimaryMessage/index.js +12 -0
- package/dist/esm/parts/DSDialogPrimaryMessage/index.js.map +7 -0
- package/dist/esm/parts/DSDialogPrimaryMessage/react-desc-prop-types.js +16 -0
- package/dist/esm/parts/DSDialogPrimaryMessage/react-desc-prop-types.js.map +7 -0
- package/dist/esm/parts/DSDialogPrimaryMessage/styled.js +13 -0
- package/dist/esm/parts/DSDialogPrimaryMessage/styled.js.map +7 -0
- package/dist/esm/parts/DSDialogSecondaryMessage/DSDialogSecondaryMessage.js +25 -0
- package/dist/esm/parts/DSDialogSecondaryMessage/DSDialogSecondaryMessage.js.map +7 -0
- package/dist/esm/parts/DSDialogSecondaryMessage/constants/index.js +16 -0
- package/dist/esm/parts/DSDialogSecondaryMessage/constants/index.js.map +7 -0
- package/dist/esm/parts/DSDialogSecondaryMessage/index.js +12 -0
- package/dist/esm/parts/DSDialogSecondaryMessage/index.js.map +7 -0
- package/dist/esm/parts/DSDialogSecondaryMessage/react-desc-prop-types.js +16 -0
- package/dist/esm/parts/DSDialogSecondaryMessage/react-desc-prop-types.js.map +7 -0
- package/dist/esm/parts/DSDialogSecondaryMessage/styled.js +13 -0
- package/dist/esm/parts/DSDialogSecondaryMessage/styled.js.map +7 -0
- package/dist/esm/parts/DSDialogSeparator/DSDialogSeparator.js +18 -0
- package/dist/esm/parts/DSDialogSeparator/DSDialogSeparator.js.map +7 -0
- package/dist/esm/parts/DSDialogSeparator/constants/index.js +13 -0
- package/dist/esm/parts/DSDialogSeparator/constants/index.js.map +7 -0
- package/dist/esm/parts/DSDialogSeparator/index.js +12 -0
- package/dist/esm/parts/DSDialogSeparator/index.js.map +7 -0
- package/dist/esm/parts/DSDialogSeparator/react-desc-prop-types.js +16 -0
- package/dist/esm/parts/DSDialogSeparator/react-desc-prop-types.js.map +7 -0
- package/dist/esm/parts/DSDialogSeparator/styled.js +16 -0
- package/dist/esm/parts/DSDialogSeparator/styled.js.map +7 -0
- package/dist/esm/parts/DSDialogTitle/DSDialogTitle.js +18 -0
- package/dist/esm/parts/DSDialogTitle/DSDialogTitle.js.map +7 -0
- package/dist/esm/parts/DSDialogTitle/constants/index.js +13 -0
- package/dist/esm/parts/DSDialogTitle/constants/index.js.map +7 -0
- package/dist/esm/parts/DSDialogTitle/index.js +12 -0
- package/dist/esm/parts/DSDialogTitle/index.js.map +7 -0
- package/dist/esm/parts/DSDialogTitle/react-desc-prop-types.js +16 -0
- package/dist/esm/parts/DSDialogTitle/react-desc-prop-types.js.map +7 -0
- package/dist/esm/parts/DSDialogTitle/styled.js +19 -0
- package/dist/esm/parts/DSDialogTitle/styled.js.map +7 -0
- package/dist/esm/parts/index.js +100 -0
- package/dist/esm/parts/index.js.map +7 -0
- package/dist/esm/parts/useDialogOwnerProps.js +17 -0
- package/dist/esm/parts/useDialogOwnerProps.js.map +7 -0
- package/dist/esm/react-desc-prop-types.js +3 -1
- package/dist/esm/react-desc-prop-types.js.map +2 -2
- package/dist/esm/styles.js +13 -76
- package/dist/esm/styles.js.map +2 -2
- package/dist/types/constants/index.d.ts +28 -0
- package/dist/types/index.d.ts +3 -13
- package/dist/types/parts/DSDialogAddon/DSDialogAddon.d.ts +5 -0
- package/dist/types/parts/DSDialogAddon/constants/index.d.ts +8 -0
- package/dist/types/parts/DSDialogAddon/index.d.ts +3 -0
- package/dist/types/parts/DSDialogAddon/react-desc-prop-types.d.ts +18 -0
- package/dist/types/parts/DSDialogAddon/styled.d.ts +1 -0
- package/dist/types/parts/DSDialogBody/DSDialogBody.d.ts +5 -0
- package/dist/types/parts/DSDialogBody/constants/index.d.ts +8 -0
- package/dist/types/parts/DSDialogBody/index.d.ts +3 -0
- package/dist/types/parts/DSDialogBody/react-desc-prop-types.d.ts +18 -0
- package/dist/types/parts/DSDialogBody/styled.d.ts +1 -0
- package/dist/types/parts/{dialogContent → DSDialogContent}/useDialogContent.d.ts +2 -1
- package/dist/types/parts/DSDialogDefaultLayout/DSDialogDefaultLayout.d.ts +5 -0
- package/dist/types/parts/DSDialogDefaultLayout/constants/index.d.ts +8 -0
- package/dist/types/parts/DSDialogDefaultLayout/index.d.ts +3 -0
- package/dist/types/parts/DSDialogDefaultLayout/react-desc-prop-types.d.ts +18 -0
- package/dist/types/parts/DSDialogDefaultLayout/styled.d.ts +3 -0
- package/dist/types/parts/DSDialogFooter/DSDialogFooter.d.ts +5 -0
- package/dist/types/parts/DSDialogFooter/constants/index.d.ts +8 -0
- package/dist/types/parts/DSDialogFooter/index.d.ts +3 -0
- package/dist/types/parts/DSDialogFooter/react-desc-prop-types.d.ts +18 -0
- package/dist/types/parts/DSDialogFooter/styled.d.ts +1 -0
- package/dist/types/parts/DSDialogHeader/DSDialogHeader.d.ts +5 -0
- package/dist/types/parts/DSDialogHeader/constants/index.d.ts +8 -0
- package/dist/types/parts/DSDialogHeader/index.d.ts +3 -0
- package/dist/types/parts/DSDialogHeader/react-desc-prop-types.d.ts +18 -0
- package/dist/types/parts/DSDialogHeader/styled.d.ts +4 -0
- package/dist/types/parts/DSDialogPrimaryMessage/DSDialogPrimaryMessage.d.ts +5 -0
- package/dist/types/parts/DSDialogPrimaryMessage/constants/index.d.ts +8 -0
- package/dist/types/parts/DSDialogPrimaryMessage/index.d.ts +3 -0
- package/dist/types/parts/DSDialogPrimaryMessage/react-desc-prop-types.d.ts +18 -0
- package/dist/types/parts/DSDialogPrimaryMessage/styled.d.ts +1 -0
- package/dist/types/parts/DSDialogSecondaryMessage/DSDialogSecondaryMessage.d.ts +5 -0
- package/dist/types/parts/DSDialogSecondaryMessage/constants/index.d.ts +8 -0
- package/dist/types/parts/DSDialogSecondaryMessage/index.d.ts +3 -0
- package/dist/types/parts/DSDialogSecondaryMessage/react-desc-prop-types.d.ts +18 -0
- package/dist/types/parts/DSDialogSecondaryMessage/styled.d.ts +1 -0
- package/dist/types/parts/DSDialogSeparator/DSDialogSeparator.d.ts +5 -0
- package/dist/types/parts/DSDialogSeparator/constants/index.d.ts +8 -0
- package/dist/types/parts/DSDialogSeparator/index.d.ts +3 -0
- package/dist/types/parts/DSDialogSeparator/react-desc-prop-types.d.ts +18 -0
- package/dist/types/parts/DSDialogSeparator/styled.d.ts +3 -0
- package/dist/types/parts/DSDialogTitle/DSDialogTitle.d.ts +5 -0
- package/dist/types/parts/DSDialogTitle/constants/index.d.ts +8 -0
- package/dist/types/parts/DSDialogTitle/index.d.ts +3 -0
- package/dist/types/parts/DSDialogTitle/react-desc-prop-types.d.ts +18 -0
- package/dist/types/parts/DSDialogTitle/styled.d.ts +1 -0
- package/dist/types/parts/index.d.ts +27 -0
- package/dist/types/parts/useDialogOwnerProps.d.ts +4 -0
- package/dist/types/react-desc-prop-types.d.ts +13 -1
- package/dist/types/styles.d.ts +0 -16
- package/dist/types/tests/DSDialog.data-testid.test.d.ts +1 -0
- package/dist/types/tests/DSDialog.events.test.d.ts +1 -0
- package/dist/types/tests/DSDialog.exports.test.d.ts +1 -0
- package/dist/types/tests/DSDialog.keyboard.test.d.ts +1 -0
- package/dist/types/tests/playwright/DSDialog.on-click-outside.test.playwright.d.ts +1 -0
- package/dist/types/tests/playwright/DSDialogOnClickOutsideRenderer.d.ts +2 -0
- package/package.json +28 -27
- package/dist/cjs/DSDialogDatatestid.js.map +0 -7
- package/dist/cjs/parts/dialogContent/DSDialogContent.js.map +0 -7
- package/dist/cjs/parts/dialogContent/useDialogContent.js.map +0 -7
- package/dist/esm/DSDialogDatatestid.js +0 -9
- package/dist/esm/DSDialogDatatestid.js.map +0 -7
- package/dist/esm/parts/dialogContent/DSDialogContent.js.map +0 -7
- package/dist/esm/parts/dialogContent/useDialogContent.js +0 -28
- package/dist/esm/parts/dialogContent/useDialogContent.js.map +0 -7
- package/dist/types/DSDialogDatatestid.d.ts +0 -4
- /package/dist/types/parts/{dialogContent → DSDialogContent}/DSDialogContent.d.ts +0 -0
- /package/dist/types/tests/{DSDialog.test.d.ts → DSDialog.PUI-7832.test.d.ts} +0 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var DSDialogBody_exports = {};
|
|
30
|
+
__export(DSDialogBody_exports, {
|
|
31
|
+
DIALOG_BODY_DATA_TESTID: () => import_constants.DIALOG_BODY_DATA_TESTID,
|
|
32
|
+
DIALOG_BODY_SLOTS: () => import_constants.DIALOG_BODY_SLOTS,
|
|
33
|
+
DSDialogBody: () => import_DSDialogBody.DSDialogBody,
|
|
34
|
+
DSDialogBodyPropTypes: () => import_react_desc_prop_types.DSDialogBodyPropTypes,
|
|
35
|
+
DSDialogBodyWithSchema: () => import_DSDialogBody.DSDialogBodyWithSchema
|
|
36
|
+
});
|
|
37
|
+
module.exports = __toCommonJS(DSDialogBody_exports);
|
|
38
|
+
var React = __toESM(require("react"));
|
|
39
|
+
var import_constants = require("./constants/index.js");
|
|
40
|
+
var import_DSDialogBody = require("./DSDialogBody.js");
|
|
41
|
+
var import_react_desc_prop_types = require("./react-desc-prop-types.js");
|
|
42
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/parts/DSDialogBody/index.ts", "../../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
+
"sourcesContent": ["export { DIALOG_BODY_DATA_TESTID, DIALOG_BODY_SLOTS } from './constants/index.js';\nexport { DSDialogBody, DSDialogBodyWithSchema } from './DSDialogBody.js';\nexport { type DSDialogBodyT, DSDialogBodyPropTypes } from './react-desc-prop-types.js';\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,uBAA2D;AAC3D,0BAAqD;AACrD,mCAA0D;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var react_desc_prop_types_exports = {};
|
|
30
|
+
__export(react_desc_prop_types_exports, {
|
|
31
|
+
DSDialogBodyPropTypes: () => DSDialogBodyPropTypes,
|
|
32
|
+
DSDialogBodyPropTypesSchema: () => DSDialogBodyPropTypesSchema,
|
|
33
|
+
defaultProps: () => defaultProps
|
|
34
|
+
});
|
|
35
|
+
module.exports = __toCommonJS(react_desc_prop_types_exports);
|
|
36
|
+
var React = __toESM(require("react"));
|
|
37
|
+
var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
|
|
38
|
+
var import_constants = require("./constants/index.js");
|
|
39
|
+
const defaultProps = {};
|
|
40
|
+
const DSDialogBodyPropTypes = {
|
|
41
|
+
...(0, import_ds_props_helpers.getPropsPerSlotPropTypes)(import_constants.DSDialogName, import_constants.DIALOG_BODY_SLOTS),
|
|
42
|
+
...import_ds_props_helpers.globalAttributesPropTypes,
|
|
43
|
+
...import_ds_props_helpers.xstyledPropTypes
|
|
44
|
+
};
|
|
45
|
+
const DSDialogBodyPropTypesSchema = DSDialogBodyPropTypes;
|
|
46
|
+
//# sourceMappingURL=react-desc-prop-types.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/parts/DSDialogBody/react-desc-prop-types.ts", "../../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
+
"sourcesContent": ["/* eslint-disable @typescript-eslint/no-empty-interface */\nimport type { DSPropTypesSchema, GlobalAttributesT, ValidationMap, XstyledProps } from '@elliemae/ds-props-helpers';\nimport { getPropsPerSlotPropTypes, globalAttributesPropTypes, xstyledPropTypes } from '@elliemae/ds-props-helpers';\nimport { type TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';\nimport { DIALOG_BODY_SLOTS, DSDialogName } from './constants/index.js';\n\nexport declare namespace DSDialogBodyT {\n export interface RequiredProps {}\n\n export interface DefaultProps {}\n\n export interface OptionalProps\n extends TypescriptHelpersT.PropsForGlobalOnSlots<typeof DSDialogName, typeof DIALOG_BODY_SLOTS> {}\n\n export interface Props\n extends OptionalProps,\n Omit<GlobalAttributesT<HTMLDivElement>, keyof XstyledProps>,\n XstyledProps,\n RequiredProps {}\n\n export interface InternalProps\n extends DefaultProps,\n OptionalProps,\n Omit<GlobalAttributesT<HTMLDivElement>, keyof XstyledProps>,\n XstyledProps,\n RequiredProps {}\n}\n\nexport const defaultProps: DSDialogBodyT.DefaultProps = {};\n\nexport const DSDialogBodyPropTypes: DSPropTypesSchema<DSDialogBodyT.Props> = {\n ...getPropsPerSlotPropTypes(DSDialogName, DIALOG_BODY_SLOTS),\n ...globalAttributesPropTypes,\n ...xstyledPropTypes,\n};\n\nexport const DSDialogBodyPropTypesSchema = DSDialogBodyPropTypes as unknown as ValidationMap<DSDialogBodyT.Props>;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADEvB,8BAAsF;AAEtF,uBAAgD;AAwBzC,MAAM,eAA2C,CAAC;AAElD,MAAM,wBAAgE;AAAA,EAC3E,OAAG,kDAAyB,+BAAc,kCAAiB;AAAA,EAC3D,GAAG;AAAA,EACH,GAAG;AACL;AAEO,MAAM,8BAA8B;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var styled_exports = {};
|
|
30
|
+
__export(styled_exports, {
|
|
31
|
+
StyledDialogBody: () => StyledDialogBody
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(styled_exports);
|
|
34
|
+
var React = __toESM(require("react"));
|
|
35
|
+
var import_ds_system = require("@elliemae/ds-system");
|
|
36
|
+
var import_constants = require("./constants/index.js");
|
|
37
|
+
const StyledDialogBody = (0, import_ds_system.styled)("div", {
|
|
38
|
+
name: import_constants.DSDialogName,
|
|
39
|
+
slot: import_constants.DIALOG_BODY_SLOTS.ROOT
|
|
40
|
+
})`
|
|
41
|
+
padding: ${({ theme }) => theme.space.xs};
|
|
42
|
+
overflow-y: auto;
|
|
43
|
+
${import_ds_system.xStyledCommonProps}
|
|
44
|
+
`;
|
|
45
|
+
//# sourceMappingURL=styled.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/parts/DSDialogBody/styled.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
+
"sourcesContent": ["import { styled, xStyledCommonProps } from '@elliemae/ds-system';\nimport { DIALOG_BODY_SLOTS, DSDialogName } from './constants/index.js';\n\nexport const StyledDialogBody = styled('div', {\n name: DSDialogName,\n slot: DIALOG_BODY_SLOTS.ROOT,\n})`\n padding: ${({ theme }) => theme.space.xs};\n overflow-y: auto;\n ${xStyledCommonProps}\n`;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,uBAA2C;AAC3C,uBAAgD;AAEzC,MAAM,uBAAmB,yBAAO,OAAO;AAAA,EAC5C,MAAM;AAAA,EACN,MAAM,mCAAkB;AAC1B,CAAC;AAAA,aACY,CAAC,EAAE,MAAM,MAAM,MAAM,MAAM,EAAE;AAAA;AAAA,IAEtC,mCAAkB;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -37,17 +37,18 @@ var import_react = require("react");
|
|
|
37
37
|
var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
|
|
38
38
|
var import_styles = require("../../styles.js");
|
|
39
39
|
var import_utils = require("../../utils.js");
|
|
40
|
-
var
|
|
40
|
+
var import_constants = require("../../constants/index.js");
|
|
41
41
|
var import_DSDialogCTX = require("../../DSDialogCTX.js");
|
|
42
42
|
var import_useDialogContent = require("./useDialogContent.js");
|
|
43
43
|
const DSDialogContent = () => {
|
|
44
|
-
const {
|
|
44
|
+
const { handleBackgroundMouseDown, handleBackgroundMouseUp, handleOnKeyDown } = (0, import_useDialogContent.useDialogContent)();
|
|
45
45
|
const { props, containerRef, portalInfo, portalClassName } = (0, import_react.useContext)(import_DSDialogCTX.DSDialogContext);
|
|
46
46
|
const { removeAutoFocus, zIndex, centered, size, width, children, ...rest } = props;
|
|
47
47
|
const { className, ...restOfGlobalAttributes } = (0, import_ds_props_helpers.useGetGlobalAttributes)(props, {
|
|
48
|
-
onClick: handleOutsideClick,
|
|
49
48
|
onKeyDown: handleOnKeyDown
|
|
50
49
|
});
|
|
50
|
+
const getOwnerProps = (0, import_react.useCallback)(() => props, [props]);
|
|
51
|
+
const getOwnerPropsArguments = (0, import_react.useCallback)(() => ({}), []);
|
|
51
52
|
const refCallback = (0, import_react.useCallback)(
|
|
52
53
|
(_ref) => {
|
|
53
54
|
if (_ref) {
|
|
@@ -61,9 +62,12 @@ const DSDialogContent = () => {
|
|
|
61
62
|
import_styles.StyledDialogBackground,
|
|
62
63
|
{
|
|
63
64
|
className,
|
|
64
|
-
|
|
65
|
+
onMouseDown: handleBackgroundMouseDown,
|
|
66
|
+
onMouseUp: handleBackgroundMouseUp,
|
|
65
67
|
"data-portalbg": true,
|
|
66
|
-
"data-testid":
|
|
68
|
+
"data-testid": import_constants.DSDialogDatatestid.BACKGROUND,
|
|
69
|
+
getOwnerProps,
|
|
70
|
+
getOwnerPropsArguments,
|
|
67
71
|
zIndex,
|
|
68
72
|
children: [
|
|
69
73
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styles.PortalStyles, { portalInfo, portalClassName }),
|
|
@@ -77,7 +81,9 @@ const DSDialogContent = () => {
|
|
|
77
81
|
onKeyDown: handleOnKeyDown,
|
|
78
82
|
...(0, import_utils.getSpaceProps)(rest),
|
|
79
83
|
centered,
|
|
80
|
-
"data-testid":
|
|
84
|
+
"data-testid": import_constants.DSDialogDatatestid.CONTAINER,
|
|
85
|
+
getOwnerProps,
|
|
86
|
+
getOwnerPropsArguments,
|
|
81
87
|
...restOfGlobalAttributes,
|
|
82
88
|
size,
|
|
83
89
|
width,
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/parts/DSDialogContent/DSDialogContent.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
+
"sourcesContent": ["import React, { useCallback, useContext } from 'react';\nimport { useGetGlobalAttributes } from '@elliemae/ds-props-helpers';\nimport { PortalStyles, StyledDialogBackground, StyledDialogContainer } from '../../styles.js';\nimport { getSpaceProps } from '../../utils.js';\nimport { DSDialogDatatestid } from '../../constants/index.js';\nimport { DSDialogContext } from '../../DSDialogCTX.js';\nimport { useDialogContent } from './useDialogContent.js';\n\nexport const DSDialogContent = () => {\n const { handleBackgroundMouseDown, handleBackgroundMouseUp, handleOnKeyDown } = useDialogContent();\n const { props, containerRef, portalInfo, portalClassName } = useContext(DSDialogContext);\n\n const { removeAutoFocus, zIndex, centered, size, width, children, ...rest } = props;\n\n const { className, ...restOfGlobalAttributes } = useGetGlobalAttributes(props, {\n onKeyDown: handleOnKeyDown,\n });\n\n const getOwnerProps = useCallback(() => props, [props]);\n const getOwnerPropsArguments = useCallback(() => ({}), []);\n\n const refCallback = useCallback(\n (_ref: HTMLDivElement | null) => {\n if (_ref) {\n containerRef.current = _ref;\n if (!removeAutoFocus) _ref.focus();\n }\n },\n [containerRef, removeAutoFocus],\n );\n\n return (\n <StyledDialogBackground\n className={className}\n onMouseDown={handleBackgroundMouseDown}\n onMouseUp={handleBackgroundMouseUp}\n data-portalbg\n data-testid={DSDialogDatatestid.BACKGROUND}\n getOwnerProps={getOwnerProps}\n getOwnerPropsArguments={getOwnerPropsArguments}\n zIndex={zIndex}\n >\n <PortalStyles portalInfo={portalInfo} portalClassName={portalClassName} />\n <StyledDialogContainer\n role=\"dialog\"\n aria-modal\n innerRef={refCallback}\n tabIndex={!removeAutoFocus ? 0 : undefined}\n onKeyDown={handleOnKeyDown}\n {...getSpaceProps(rest as unknown as Record<string, unknown>)}\n centered={centered}\n data-testid={DSDialogDatatestid.CONTAINER}\n getOwnerProps={getOwnerProps}\n getOwnerPropsArguments={getOwnerPropsArguments}\n {...restOfGlobalAttributes}\n size={size}\n width={width}\n >\n {children}\n </StyledDialogContainer>\n </StyledDialogBackground>\n );\n};\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADgCnB;AAhCJ,mBAA+C;AAC/C,8BAAuC;AACvC,oBAA4E;AAC5E,mBAA8B;AAC9B,uBAAmC;AACnC,yBAAgC;AAChC,8BAAiC;AAE1B,MAAM,kBAAkB,MAAM;AACnC,QAAM,EAAE,2BAA2B,yBAAyB,gBAAgB,QAAI,0CAAiB;AACjG,QAAM,EAAE,OAAO,cAAc,YAAY,gBAAgB,QAAI,yBAAW,kCAAe;AAEvF,QAAM,EAAE,iBAAiB,QAAQ,UAAU,MAAM,OAAO,UAAU,GAAG,KAAK,IAAI;AAE9E,QAAM,EAAE,WAAW,GAAG,uBAAuB,QAAI,gDAAuB,OAAO;AAAA,IAC7E,WAAW;AAAA,EACb,CAAC;AAED,QAAM,oBAAgB,0BAAY,MAAM,OAAO,CAAC,KAAK,CAAC;AACtD,QAAM,6BAAyB,0BAAY,OAAO,CAAC,IAAI,CAAC,CAAC;AAEzD,QAAM,kBAAc;AAAA,IAClB,CAAC,SAAgC;AAC/B,UAAI,MAAM;AACR,qBAAa,UAAU;AACvB,YAAI,CAAC,gBAAiB,MAAK,MAAM;AAAA,MACnC;AAAA,IACF;AAAA,IACA,CAAC,cAAc,eAAe;AAAA,EAChC;AAEA,SACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA,aAAa;AAAA,MACb,WAAW;AAAA,MACX,iBAAa;AAAA,MACb,eAAa,oCAAmB;AAAA,MAChC;AAAA,MACA;AAAA,MACA;AAAA,MAEA;AAAA,oDAAC,8BAAa,YAAwB,iBAAkC;AAAA,QACxE;AAAA,UAAC;AAAA;AAAA,YACC,MAAK;AAAA,YACL,cAAU;AAAA,YACV,UAAU;AAAA,YACV,UAAU,CAAC,kBAAkB,IAAI;AAAA,YACjC,WAAW;AAAA,YACV,OAAG,4BAAc,IAA0C;AAAA,YAC5D;AAAA,YACA,eAAa,oCAAmB;AAAA,YAChC;AAAA,YACA;AAAA,YACC,GAAG;AAAA,YACJ;AAAA,YACA;AAAA,YAEC;AAAA;AAAA,QACH;AAAA;AAAA;AAAA,EACF;AAEJ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -38,9 +38,16 @@ const useDialogContent = () => {
|
|
|
38
38
|
const {
|
|
39
39
|
props: { onClickOutside, onClose }
|
|
40
40
|
} = (0, import_react.useContext)(import_DSDialogCTX.DSDialogContext);
|
|
41
|
-
const
|
|
41
|
+
const mouseDownOnOverlayRef = (0, import_react.useRef)(false);
|
|
42
|
+
const handleBackgroundMouseDown = (0, import_react.useCallback)((e) => {
|
|
43
|
+
mouseDownOnOverlayRef.current = Boolean(e.target.dataset.portalbg);
|
|
44
|
+
}, []);
|
|
45
|
+
const handleBackgroundMouseUp = (0, import_react.useCallback)(
|
|
42
46
|
(e) => {
|
|
43
|
-
if (e.target.dataset.portalbg)
|
|
47
|
+
if (mouseDownOnOverlayRef.current && e.target.dataset.portalbg) {
|
|
48
|
+
onClickOutside();
|
|
49
|
+
}
|
|
50
|
+
mouseDownOnOverlayRef.current = false;
|
|
44
51
|
},
|
|
45
52
|
[onClickOutside]
|
|
46
53
|
);
|
|
@@ -51,7 +58,8 @@ const useDialogContent = () => {
|
|
|
51
58
|
[onClose]
|
|
52
59
|
);
|
|
53
60
|
return {
|
|
54
|
-
|
|
61
|
+
handleBackgroundMouseDown,
|
|
62
|
+
handleBackgroundMouseUp,
|
|
55
63
|
handleOnKeyDown
|
|
56
64
|
};
|
|
57
65
|
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/parts/DSDialogContent/useDialogContent.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
+
"sourcesContent": ["import type React from 'react';\nimport { useCallback, useContext, useRef } from 'react';\nimport { DSDialogContext } from '../../DSDialogCTX.js';\n\nexport const useDialogContent = () => {\n const {\n props: { onClickOutside, onClose },\n } = useContext(DSDialogContext);\n\n /**\n * PUI-15050 https://jira.elliemae.io/browse/PUI-15050\n * Tracks whether the current press sequence started on the overlay.\n * onClickOutside fires only when both mousedown AND mouseup land on the overlay,\n * preventing false triggers when the user presses the overlay and releases inside the dialog.\n *\n * Lifecycle note: this ref is intentionally not reset on dialog close because DSDialogContent\n * is fully unmounted when isOpen=false (via DSDialogPortal returning null). The ref is\n * destroyed with the component, so stale state across open/close cycles is not possible.\n */\n\n const mouseDownOnOverlayRef = useRef(false);\n\n const handleBackgroundMouseDown = useCallback((e: React.MouseEvent) => {\n mouseDownOnOverlayRef.current = Boolean((e.target as HTMLElement).dataset.portalbg);\n }, []);\n\n const handleBackgroundMouseUp = useCallback(\n (e: React.MouseEvent) => {\n if (mouseDownOnOverlayRef.current && (e.target as HTMLElement).dataset.portalbg) {\n onClickOutside();\n }\n mouseDownOnOverlayRef.current = false;\n },\n [onClickOutside],\n );\n\n const handleOnKeyDown = useCallback(\n (e: React.KeyboardEvent) => {\n if (e.key === 'Escape') onClose();\n },\n [onClose],\n );\n\n return {\n handleBackgroundMouseDown,\n handleBackgroundMouseUp,\n handleOnKeyDown,\n };\n};\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADCvB,mBAAgD;AAChD,yBAAgC;AAEzB,MAAM,mBAAmB,MAAM;AACpC,QAAM;AAAA,IACJ,OAAO,EAAE,gBAAgB,QAAQ;AAAA,EACnC,QAAI,yBAAW,kCAAe;AAa9B,QAAM,4BAAwB,qBAAO,KAAK;AAE1C,QAAM,gCAA4B,0BAAY,CAAC,MAAwB;AACrE,0BAAsB,UAAU,QAAS,EAAE,OAAuB,QAAQ,QAAQ;AAAA,EACpF,GAAG,CAAC,CAAC;AAEL,QAAM,8BAA0B;AAAA,IAC9B,CAAC,MAAwB;AACvB,UAAI,sBAAsB,WAAY,EAAE,OAAuB,QAAQ,UAAU;AAC/E,uBAAe;AAAA,MACjB;AACA,4BAAsB,UAAU;AAAA,IAClC;AAAA,IACA,CAAC,cAAc;AAAA,EACjB;AAEA,QAAM,sBAAkB;AAAA,IACtB,CAAC,MAA2B;AAC1B,UAAI,EAAE,QAAQ,SAAU,SAAQ;AAAA,IAClC;AAAA,IACA,CAAC,OAAO;AAAA,EACV;AAEA,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var DSDialogDefaultLayout_exports = {};
|
|
30
|
+
__export(DSDialogDefaultLayout_exports, {
|
|
31
|
+
DSDialogDefaultLayout: () => DSDialogDefaultLayout,
|
|
32
|
+
DSDialogDefaultLayoutWithSchema: () => DSDialogDefaultLayoutWithSchema
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(DSDialogDefaultLayout_exports);
|
|
35
|
+
var React = __toESM(require("react"));
|
|
36
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
37
|
+
var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
|
|
38
|
+
var import_useDialogOwnerProps = require("../useDialogOwnerProps.js");
|
|
39
|
+
var import_react_desc_prop_types = require("./react-desc-prop-types.js");
|
|
40
|
+
var import_styled = require("./styled.js");
|
|
41
|
+
const DSDialogDefaultLayout = (props) => {
|
|
42
|
+
const { getOwnerProps, getOwnerPropsArguments } = (0, import_useDialogOwnerProps.useDialogOwnerProps)(props);
|
|
43
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
44
|
+
import_styled.StyledDialogDefaultLayout,
|
|
45
|
+
{
|
|
46
|
+
...props,
|
|
47
|
+
getOwnerProps,
|
|
48
|
+
getOwnerPropsArguments
|
|
49
|
+
}
|
|
50
|
+
);
|
|
51
|
+
};
|
|
52
|
+
DSDialogDefaultLayout.displayName = "DSDialogDefaultLayout";
|
|
53
|
+
const DSDialogDefaultLayoutWithSchema = (0, import_ds_props_helpers.describe)(DSDialogDefaultLayout);
|
|
54
|
+
DSDialogDefaultLayoutWithSchema.propTypes = import_react_desc_prop_types.DSDialogDefaultLayoutPropTypesSchema;
|
|
55
|
+
//# sourceMappingURL=DSDialogDefaultLayout.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/parts/DSDialogDefaultLayout/DSDialogDefaultLayout.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
+
"sourcesContent": ["import React from 'react';\nimport { describe } from '@elliemae/ds-props-helpers';\nimport { useDialogOwnerProps } from '../useDialogOwnerProps.js';\nimport { type DSDialogDefaultLayoutT, DSDialogDefaultLayoutPropTypesSchema } from './react-desc-prop-types.js';\nimport { StyledDialogDefaultLayout } from './styled.js';\n\nconst DSDialogDefaultLayout: React.ComponentType<DSDialogDefaultLayoutT.Props> = (props) => {\n const { getOwnerProps, getOwnerPropsArguments } = useDialogOwnerProps(props);\n\n return (\n <StyledDialogDefaultLayout\n {...props}\n getOwnerProps={getOwnerProps}\n getOwnerPropsArguments={getOwnerPropsArguments}\n />\n );\n};\n\nDSDialogDefaultLayout.displayName = 'DSDialogDefaultLayout';\nconst DSDialogDefaultLayoutWithSchema = describe(DSDialogDefaultLayout);\nDSDialogDefaultLayoutWithSchema.propTypes = DSDialogDefaultLayoutPropTypesSchema;\n\nexport { DSDialogDefaultLayout, DSDialogDefaultLayoutWithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADUnB;AATJ,8BAAyB;AACzB,iCAAoC;AACpC,mCAAkF;AAClF,oBAA0C;AAE1C,MAAM,wBAA2E,CAAC,UAAU;AAC1F,QAAM,EAAE,eAAe,uBAAuB,QAAI,gDAAoB,KAAK;AAE3E,SACE;AAAA,IAAC;AAAA;AAAA,MACE,GAAG;AAAA,MACJ;AAAA,MACA;AAAA;AAAA,EACF;AAEJ;AAEA,sBAAsB,cAAc;AACpC,MAAM,sCAAkC,kCAAS,qBAAqB;AACtE,gCAAgC,YAAY;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var constants_exports = {};
|
|
30
|
+
__export(constants_exports, {
|
|
31
|
+
DIALOG_DEFAULT_LAYOUT_DATA_TESTID: () => DIALOG_DEFAULT_LAYOUT_DATA_TESTID,
|
|
32
|
+
DIALOG_DEFAULT_LAYOUT_SLOTS: () => DIALOG_DEFAULT_LAYOUT_SLOTS,
|
|
33
|
+
DSDialogName: () => import_constants.DSDialogName
|
|
34
|
+
});
|
|
35
|
+
module.exports = __toCommonJS(constants_exports);
|
|
36
|
+
var React = __toESM(require("react"));
|
|
37
|
+
var import_ds_system = require("@elliemae/ds-system");
|
|
38
|
+
var import_constants = require("../../../constants/index.js");
|
|
39
|
+
const DIALOG_DEFAULT_LAYOUT_SLOTS = {
|
|
40
|
+
ROOT: "default-layout"
|
|
41
|
+
};
|
|
42
|
+
const DIALOG_DEFAULT_LAYOUT_DATA_TESTID = (0, import_ds_system.slotObjectToDataTestIds)(import_constants.DSDialogName, DIALOG_DEFAULT_LAYOUT_SLOTS);
|
|
43
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../src/parts/DSDialogDefaultLayout/constants/index.ts", "../../../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
+
"sourcesContent": ["import { slotObjectToDataTestIds } from '@elliemae/ds-system';\nimport { DSDialogName } from '../../../constants/index.js';\n\nexport const DIALOG_DEFAULT_LAYOUT_SLOTS = {\n ROOT: 'default-layout',\n} as const;\n\nexport const DIALOG_DEFAULT_LAYOUT_DATA_TESTID = slotObjectToDataTestIds(DSDialogName, DIALOG_DEFAULT_LAYOUT_SLOTS);\nexport { DSDialogName };\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,uBAAwC;AACxC,uBAA6B;AAEtB,MAAM,8BAA8B;AAAA,EACzC,MAAM;AACR;AAEO,MAAM,wCAAoC,0CAAwB,+BAAc,2BAA2B;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var DSDialogDefaultLayout_exports = {};
|
|
30
|
+
__export(DSDialogDefaultLayout_exports, {
|
|
31
|
+
DIALOG_DEFAULT_LAYOUT_DATA_TESTID: () => import_constants.DIALOG_DEFAULT_LAYOUT_DATA_TESTID,
|
|
32
|
+
DIALOG_DEFAULT_LAYOUT_SLOTS: () => import_constants.DIALOG_DEFAULT_LAYOUT_SLOTS,
|
|
33
|
+
DSDialogDefaultLayout: () => import_DSDialogDefaultLayout.DSDialogDefaultLayout,
|
|
34
|
+
DSDialogDefaultLayoutPropTypes: () => import_react_desc_prop_types.DSDialogDefaultLayoutPropTypes,
|
|
35
|
+
DSDialogDefaultLayoutWithSchema: () => import_DSDialogDefaultLayout.DSDialogDefaultLayoutWithSchema
|
|
36
|
+
});
|
|
37
|
+
module.exports = __toCommonJS(DSDialogDefaultLayout_exports);
|
|
38
|
+
var React = __toESM(require("react"));
|
|
39
|
+
var import_constants = require("./constants/index.js");
|
|
40
|
+
var import_DSDialogDefaultLayout = require("./DSDialogDefaultLayout.js");
|
|
41
|
+
var import_react_desc_prop_types = require("./react-desc-prop-types.js");
|
|
42
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/parts/DSDialogDefaultLayout/index.ts", "../../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
+
"sourcesContent": ["export { DIALOG_DEFAULT_LAYOUT_DATA_TESTID, DIALOG_DEFAULT_LAYOUT_SLOTS } from './constants/index.js';\nexport { DSDialogDefaultLayout, DSDialogDefaultLayoutWithSchema } from './DSDialogDefaultLayout.js';\nexport { type DSDialogDefaultLayoutT, DSDialogDefaultLayoutPropTypes } from './react-desc-prop-types.js';\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,uBAA+E;AAC/E,mCAAuE;AACvE,mCAA4E;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var react_desc_prop_types_exports = {};
|
|
30
|
+
__export(react_desc_prop_types_exports, {
|
|
31
|
+
DSDialogDefaultLayoutPropTypes: () => DSDialogDefaultLayoutPropTypes,
|
|
32
|
+
DSDialogDefaultLayoutPropTypesSchema: () => DSDialogDefaultLayoutPropTypesSchema,
|
|
33
|
+
defaultProps: () => defaultProps
|
|
34
|
+
});
|
|
35
|
+
module.exports = __toCommonJS(react_desc_prop_types_exports);
|
|
36
|
+
var React = __toESM(require("react"));
|
|
37
|
+
var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
|
|
38
|
+
var import_constants = require("./constants/index.js");
|
|
39
|
+
const defaultProps = {};
|
|
40
|
+
const DSDialogDefaultLayoutPropTypes = {
|
|
41
|
+
...(0, import_ds_props_helpers.getPropsPerSlotPropTypes)(import_constants.DSDialogName, import_constants.DIALOG_DEFAULT_LAYOUT_SLOTS),
|
|
42
|
+
...import_ds_props_helpers.globalAttributesPropTypes,
|
|
43
|
+
...import_ds_props_helpers.xstyledPropTypes
|
|
44
|
+
};
|
|
45
|
+
const DSDialogDefaultLayoutPropTypesSchema = DSDialogDefaultLayoutPropTypes;
|
|
46
|
+
//# sourceMappingURL=react-desc-prop-types.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/parts/DSDialogDefaultLayout/react-desc-prop-types.ts", "../../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
+
"sourcesContent": ["/* eslint-disable @typescript-eslint/no-empty-interface */\nimport type { DSPropTypesSchema, GlobalAttributesT, ValidationMap, XstyledProps } from '@elliemae/ds-props-helpers';\nimport { getPropsPerSlotPropTypes, globalAttributesPropTypes, xstyledPropTypes } from '@elliemae/ds-props-helpers';\nimport { type TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';\nimport { DIALOG_DEFAULT_LAYOUT_SLOTS, DSDialogName } from './constants/index.js';\n\nexport declare namespace DSDialogDefaultLayoutT {\n export interface RequiredProps {}\n\n export interface DefaultProps {}\n\n export interface OptionalProps\n extends TypescriptHelpersT.PropsForGlobalOnSlots<typeof DSDialogName, typeof DIALOG_DEFAULT_LAYOUT_SLOTS> {}\n\n export interface Props\n extends OptionalProps,\n Omit<GlobalAttributesT<HTMLDivElement>, keyof XstyledProps>,\n XstyledProps,\n RequiredProps {}\n\n export interface InternalProps\n extends DefaultProps,\n OptionalProps,\n Omit<GlobalAttributesT<HTMLDivElement>, keyof XstyledProps>,\n XstyledProps,\n RequiredProps {}\n}\n\nexport const defaultProps: DSDialogDefaultLayoutT.DefaultProps = {};\n\nexport const DSDialogDefaultLayoutPropTypes: DSPropTypesSchema<DSDialogDefaultLayoutT.Props> = {\n ...getPropsPerSlotPropTypes(DSDialogName, DIALOG_DEFAULT_LAYOUT_SLOTS),\n ...globalAttributesPropTypes,\n ...xstyledPropTypes,\n};\n\nexport const DSDialogDefaultLayoutPropTypesSchema =\n DSDialogDefaultLayoutPropTypes as unknown as ValidationMap<DSDialogDefaultLayoutT.Props>;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADEvB,8BAAsF;AAEtF,uBAA0D;AAwBnD,MAAM,eAAoD,CAAC;AAE3D,MAAM,iCAAkF;AAAA,EAC7F,OAAG,kDAAyB,+BAAc,4CAA2B;AAAA,EACrE,GAAG;AAAA,EACH,GAAG;AACL;AAEO,MAAM,uCACX;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var styled_exports = {};
|
|
30
|
+
__export(styled_exports, {
|
|
31
|
+
StyledDialogDefaultLayout: () => StyledDialogDefaultLayout
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(styled_exports);
|
|
34
|
+
var React = __toESM(require("react"));
|
|
35
|
+
var import_ds_system = require("@elliemae/ds-system");
|
|
36
|
+
var import_styled = require("../DSDialogSecondaryMessage/styled.js");
|
|
37
|
+
var import_constants = require("./constants/index.js");
|
|
38
|
+
const StyledDialogDefaultLayout = (0, import_ds_system.styled)("div", {
|
|
39
|
+
name: import_constants.DSDialogName,
|
|
40
|
+
slot: import_constants.DIALOG_DEFAULT_LAYOUT_SLOTS.ROOT
|
|
41
|
+
})`
|
|
42
|
+
display: grid;
|
|
43
|
+
grid-auto-flow: row;
|
|
44
|
+
justify-items: center;
|
|
45
|
+
align-items: center;
|
|
46
|
+
grid-gap: ${({ theme }) => theme.space.xxs};
|
|
47
|
+
|
|
48
|
+
${import_styled.StyledDialogSecondaryMessage} {
|
|
49
|
+
text-align: center;
|
|
50
|
+
}
|
|
51
|
+
`;
|
|
52
|
+
//# sourceMappingURL=styled.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/parts/DSDialogDefaultLayout/styled.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
+
"sourcesContent": ["import { styled } from '@elliemae/ds-system';\nimport { StyledDialogSecondaryMessage } from '../DSDialogSecondaryMessage/styled.js';\nimport { DIALOG_DEFAULT_LAYOUT_SLOTS, DSDialogName } from './constants/index.js';\n\nexport const StyledDialogDefaultLayout = styled('div', {\n name: DSDialogName,\n slot: DIALOG_DEFAULT_LAYOUT_SLOTS.ROOT,\n})<React.PropsWithChildren>`\n display: grid;\n grid-auto-flow: row;\n justify-items: center;\n align-items: center;\n grid-gap: ${({ theme }) => theme.space.xxs};\n\n ${StyledDialogSecondaryMessage} {\n text-align: center;\n }\n`;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,uBAAuB;AACvB,oBAA6C;AAC7C,uBAA0D;AAEnD,MAAM,gCAA4B,yBAAO,OAAO;AAAA,EACrD,MAAM;AAAA,EACN,MAAM,6CAA4B;AACpC,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA,cAKa,CAAC,EAAE,MAAM,MAAM,MAAM,MAAM,GAAG;AAAA;AAAA,IAExC,0CAA4B;AAAA;AAAA;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var DSDialogFooter_exports = {};
|
|
30
|
+
__export(DSDialogFooter_exports, {
|
|
31
|
+
DSDialogFooter: () => DSDialogFooter,
|
|
32
|
+
DSDialogFooterWithSchema: () => DSDialogFooterWithSchema
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(DSDialogFooter_exports);
|
|
35
|
+
var React = __toESM(require("react"));
|
|
36
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
37
|
+
var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
|
|
38
|
+
var import_useDialogOwnerProps = require("../useDialogOwnerProps.js");
|
|
39
|
+
var import_react_desc_prop_types = require("./react-desc-prop-types.js");
|
|
40
|
+
var import_styled = require("./styled.js");
|
|
41
|
+
const DSDialogFooter = (props) => {
|
|
42
|
+
const { getOwnerProps, getOwnerPropsArguments } = (0, import_useDialogOwnerProps.useDialogOwnerProps)(props);
|
|
43
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled.StyledDialogFooter, { ...props, getOwnerProps, getOwnerPropsArguments });
|
|
44
|
+
};
|
|
45
|
+
DSDialogFooter.displayName = "DSDialogFooter";
|
|
46
|
+
const DSDialogFooterWithSchema = (0, import_ds_props_helpers.describe)(DSDialogFooter);
|
|
47
|
+
DSDialogFooterWithSchema.propTypes = import_react_desc_prop_types.DSDialogFooterPropTypesSchema;
|
|
48
|
+
//# sourceMappingURL=DSDialogFooter.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/parts/DSDialogFooter/DSDialogFooter.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
+
"sourcesContent": ["import React from 'react';\nimport { describe } from '@elliemae/ds-props-helpers';\nimport { useDialogOwnerProps } from '../useDialogOwnerProps.js';\nimport { type DSDialogFooterT, DSDialogFooterPropTypesSchema } from './react-desc-prop-types.js';\nimport { StyledDialogFooter } from './styled.js';\n\nconst DSDialogFooter: React.ComponentType<DSDialogFooterT.Props> = (props) => {\n const { getOwnerProps, getOwnerPropsArguments } = useDialogOwnerProps(props);\n\n return (\n <StyledDialogFooter {...props} getOwnerProps={getOwnerProps} getOwnerPropsArguments={getOwnerPropsArguments} />\n );\n};\n\nDSDialogFooter.displayName = 'DSDialogFooter';\nconst DSDialogFooterWithSchema = describe(DSDialogFooter);\nDSDialogFooterWithSchema.propTypes = DSDialogFooterPropTypesSchema;\n\nexport { DSDialogFooter, DSDialogFooterWithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADUnB;AATJ,8BAAyB;AACzB,iCAAoC;AACpC,mCAAoE;AACpE,oBAAmC;AAEnC,MAAM,iBAA6D,CAAC,UAAU;AAC5E,QAAM,EAAE,eAAe,uBAAuB,QAAI,gDAAoB,KAAK;AAE3E,SACE,4CAAC,oCAAoB,GAAG,OAAO,eAA8B,wBAAgD;AAEjH;AAEA,eAAe,cAAc;AAC7B,MAAM,+BAA2B,kCAAS,cAAc;AACxD,yBAAyB,YAAY;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|