@sendoutcards/quantum-design-ui 1.8.21 → 1.8.22
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/index.es.js
CHANGED
|
@@ -20229,17 +20229,17 @@ var ConfirmDialog = function (_a) {
|
|
|
20229
20229
|
size: "small",
|
|
20230
20230
|
title: accept.title,
|
|
20231
20231
|
hover: !isPrimaryAccept,
|
|
20232
|
-
disabled: requireScroll ? isPrimaryAccept ? hasScrolled ? false : true : false : false
|
|
20232
|
+
disabled: accept.isDisabled || (requireScroll ? isPrimaryAccept ? hasScrolled ? false : true : false : false)
|
|
20233
20233
|
})), decline && jsx(Button, {
|
|
20234
20234
|
fullWidth: hasStackedActions,
|
|
20235
20235
|
id: decline.id,
|
|
20236
|
+
type: isPrimaryAccept ? 'shadow' : 'primary',
|
|
20237
|
+
outlined: isPrimaryAccept ? false : true,
|
|
20236
20238
|
onClick: decline.onClick,
|
|
20237
20239
|
size: "small",
|
|
20238
20240
|
title: decline.title,
|
|
20239
|
-
outlined: isPrimaryAccept ? false : true,
|
|
20240
|
-
type: isPrimaryAccept ? 'shadow' : 'primary',
|
|
20241
20241
|
hover: isPrimaryAccept,
|
|
20242
|
-
disabled: requireScroll ? isPrimaryAccept ? false : hasScrolled ? false : true : false
|
|
20242
|
+
disabled: decline.isDisabled || (requireScroll ? isPrimaryAccept ? false : hasScrolled ? false : true : false)
|
|
20243
20243
|
}))));
|
|
20244
20244
|
};
|
|
20245
20245
|
|
|
@@ -6,11 +6,13 @@ export declare type ConfirmDialogProps = {
|
|
|
6
6
|
title: string;
|
|
7
7
|
onClick: () => void;
|
|
8
8
|
id?: string;
|
|
9
|
+
isDisabled?: boolean;
|
|
9
10
|
};
|
|
10
11
|
decline?: {
|
|
11
12
|
title: string;
|
|
12
13
|
onClick: () => void;
|
|
13
14
|
id?: string;
|
|
15
|
+
isDisabled?: boolean;
|
|
14
16
|
};
|
|
15
17
|
title: string;
|
|
16
18
|
description: string;
|