@sendoutcards/quantum-design-ui 1.7.79 → 1.7.80
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
|
@@ -20446,12 +20446,14 @@ var ConfirmDialog = function (_a) {
|
|
|
20446
20446
|
requireScroll = _a.requireScroll,
|
|
20447
20447
|
_c = _a.maxWidth,
|
|
20448
20448
|
maxWidth = _c === void 0 ? '552px' : _c,
|
|
20449
|
+
_d = _a.hasStackedActions,
|
|
20450
|
+
hasStackedActions = _d === void 0 ? false : _d,
|
|
20449
20451
|
maxHeight = _a.maxHeight;
|
|
20450
20452
|
var isPrimaryAccept = primaryAction === 'accept' ? true : false;
|
|
20451
20453
|
|
|
20452
|
-
var
|
|
20453
|
-
hasScrolled =
|
|
20454
|
-
setHasScrolled =
|
|
20454
|
+
var _e = useState(false),
|
|
20455
|
+
hasScrolled = _e[0],
|
|
20456
|
+
setHasScrolled = _e[1];
|
|
20455
20457
|
|
|
20456
20458
|
var handleScroll = function (progress) {
|
|
20457
20459
|
if (progress === 1) {
|
|
@@ -20484,7 +20486,7 @@ var ConfirmDialog = function (_a) {
|
|
|
20484
20486
|
content: description,
|
|
20485
20487
|
type: "caption",
|
|
20486
20488
|
color: "primaryBody"
|
|
20487
|
-
}))), jsx(Flex, {
|
|
20489
|
+
}))), jsx(Flex, null, additionalLink && jsx(Flex, {
|
|
20488
20490
|
flexDirection: {
|
|
20489
20491
|
xSmall: additionalLink ? 'column-reverse' : 'row',
|
|
20490
20492
|
small: 'row'
|
|
@@ -20493,12 +20495,12 @@ var ConfirmDialog = function (_a) {
|
|
|
20493
20495
|
xSmall: 'center',
|
|
20494
20496
|
small: additionalLink ? 'space-between' : 'flex-end'
|
|
20495
20497
|
},
|
|
20496
|
-
|
|
20498
|
+
outset: {
|
|
20497
20499
|
top: 'x3'
|
|
20498
20500
|
},
|
|
20499
20501
|
alignItems: 'center'
|
|
20500
|
-
},
|
|
20501
|
-
|
|
20502
|
+
}, jsx(Anchor, {
|
|
20503
|
+
outset: {
|
|
20502
20504
|
top: {
|
|
20503
20505
|
xSmall: 'x2',
|
|
20504
20506
|
small: 'x0'
|
|
@@ -20510,29 +20512,40 @@ var ConfirmDialog = function (_a) {
|
|
|
20510
20512
|
color: "anchorBlue",
|
|
20511
20513
|
cursor: "pointer",
|
|
20512
20514
|
isDecorated: true
|
|
20513
|
-
}), jsx(Flex, {
|
|
20514
|
-
|
|
20515
|
-
|
|
20516
|
-
|
|
20515
|
+
})), jsx(Flex, {
|
|
20516
|
+
width: "100%",
|
|
20517
|
+
justifyContent: hasStackedActions ? 'center' : isPrimaryAccept ? 'flex-start' : 'flex-end',
|
|
20518
|
+
outset: hasStackedActions ? {
|
|
20519
|
+
vertical: 'x2'
|
|
20520
|
+
} : {
|
|
20521
|
+
horizontal: 'x2'
|
|
20522
|
+
},
|
|
20523
|
+
flexDirection: hasStackedActions ? isPrimaryAccept ? 'column-reverse' : 'column' : isPrimaryAccept ? 'row-reverse' : 'row'
|
|
20524
|
+
}, jsx(Flex, {
|
|
20525
|
+
outset: hasStackedActions ? {
|
|
20526
|
+
vertical: 'x2'
|
|
20527
|
+
} : {
|
|
20517
20528
|
horizontal: 'x2'
|
|
20518
20529
|
}
|
|
20519
20530
|
}, jsx(Button, {
|
|
20531
|
+
fullWidth: hasStackedActions,
|
|
20520
20532
|
id: accept.id,
|
|
20521
20533
|
type: isPrimaryAccept ? 'primary' : 'shadow',
|
|
20522
|
-
outlined: isPrimaryAccept
|
|
20534
|
+
outlined: isPrimaryAccept,
|
|
20523
20535
|
onClick: accept.onClick,
|
|
20524
20536
|
size: "small",
|
|
20525
20537
|
title: accept.title,
|
|
20526
|
-
hover: isPrimaryAccept
|
|
20538
|
+
hover: !isPrimaryAccept,
|
|
20527
20539
|
disabled: requireScroll ? isPrimaryAccept ? hasScrolled ? false : true : false : false
|
|
20528
20540
|
})), decline && jsx(Button, {
|
|
20541
|
+
fullWidth: hasStackedActions,
|
|
20529
20542
|
id: decline.id,
|
|
20530
20543
|
onClick: decline.onClick,
|
|
20531
20544
|
size: "small",
|
|
20532
20545
|
title: decline.title,
|
|
20533
20546
|
outlined: isPrimaryAccept ? false : true,
|
|
20534
20547
|
type: isPrimaryAccept ? 'shadow' : 'primary',
|
|
20535
|
-
hover: isPrimaryAccept
|
|
20548
|
+
hover: isPrimaryAccept,
|
|
20536
20549
|
disabled: requireScroll ? isPrimaryAccept ? false : hasScrolled ? false : true : false
|
|
20537
20550
|
}))));
|
|
20538
20551
|
};
|
package/package.json
CHANGED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { HOCBaseProps } from "../../helpers/hoc-types/hocBasePropTypes";
|
|
3
|
-
import { HOCMotionProps } from "../../helpers/hoc-types/hocMotionTypes";
|
|
4
|
-
export declare type DivProps = {
|
|
5
|
-
children?: React.ReactNode;
|
|
6
|
-
outsideClick?: () => void;
|
|
7
|
-
clickElementBypass?: string;
|
|
8
|
-
} & HOCBaseProps & HOCMotionProps;
|
|
9
|
-
export declare const Companion: React.ForwardRefExoticComponent<{
|
|
10
|
-
children?: React.ReactNode;
|
|
11
|
-
outsideClick?: (() => void) | undefined;
|
|
12
|
-
clickElementBypass?: string | undefined;
|
|
13
|
-
} & HOCBaseProps & {
|
|
14
|
-
className?: string | undefined;
|
|
15
|
-
motionKey?: string | number | undefined;
|
|
16
|
-
id?: string | undefined;
|
|
17
|
-
} & import("framer-motion").MotionProps & React.RefAttributes<HTMLDivElement>>;
|