mui-dialog 1.0.15 → 1.0.17
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/mui-dialog.es.js
CHANGED
|
@@ -1873,6 +1873,7 @@ const MuiDialog = (props) => {
|
|
|
1873
1873
|
const {
|
|
1874
1874
|
primaryCtaTitle,
|
|
1875
1875
|
secondaryCtaTitle,
|
|
1876
|
+
primaryCtaEndIcon,
|
|
1876
1877
|
isPrimaryCtaLoading = false,
|
|
1877
1878
|
isSecondaryCtaLoading = false,
|
|
1878
1879
|
isPrimaryCtaDisabled,
|
|
@@ -1983,6 +1984,7 @@ const MuiDialog = (props) => {
|
|
|
1983
1984
|
onClick: onPrimaryCtaClick,
|
|
1984
1985
|
loading: !!isPrimaryCtaLoading,
|
|
1985
1986
|
disabled: isPrimaryCtaDisabled !== void 0 ? isPrimaryCtaDisabled : !!(isSecondaryCtaLoading || isTertiaryCtaLoading),
|
|
1987
|
+
endIcon: primaryCtaEndIcon,
|
|
1986
1988
|
children: primaryCtaTitle
|
|
1987
1989
|
}
|
|
1988
1990
|
)
|
|
@@ -2013,6 +2015,7 @@ const MuiDialog = (props) => {
|
|
|
2013
2015
|
onClick: onPrimaryCtaClick,
|
|
2014
2016
|
loading: !!isPrimaryCtaLoading,
|
|
2015
2017
|
disabled: isPrimaryCtaDisabled !== void 0 ? isPrimaryCtaDisabled : !!(isSecondaryCtaLoading || isTertiaryCtaLoading),
|
|
2018
|
+
endIcon: primaryCtaEndIcon,
|
|
2016
2019
|
children: primaryCtaTitle
|
|
2017
2020
|
}
|
|
2018
2021
|
)
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { CONFIRMATION_SUBTYPES, INFORMATION_SUBTYPES, INPUT_SUBTYPES, MODAL_TYPES, ModalSize, TERTIARY_CTA_TYPES } from './muiDialog.types';
|
|
2
2
|
interface IActions {
|
|
3
3
|
primaryCtaTitle?: string;
|
|
4
|
+
primaryCtaEndIcon?: React.ReactNode;
|
|
4
5
|
secondaryCtaTitle?: string;
|
|
5
6
|
isPrimaryCtaLoading?: boolean;
|
|
6
7
|
isPrimaryCtaDisabled?: boolean;
|