@sendoutcards/quantum-design-ui 1.8.4 → 1.8.5
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
|
@@ -24355,7 +24355,7 @@ var UpsaleOptions = function (_a) {
|
|
|
24355
24355
|
height: "100%",
|
|
24356
24356
|
position: "relative",
|
|
24357
24357
|
width: "100%"
|
|
24358
|
-
}, jsx(Div, null, shouldShowCheckoutScreen &&
|
|
24358
|
+
}, jsx(Div, null, shouldShowCheckoutScreen && removeSelectedOption &&
|
|
24359
24359
|
// Back Button
|
|
24360
24360
|
jsx(Div, {
|
|
24361
24361
|
outset: {
|
|
@@ -24464,8 +24464,9 @@ var UpsaleDialog = function (_a) {
|
|
|
24464
24464
|
submitAction = _a.submitAction,
|
|
24465
24465
|
acceptSelectedAction = _a.acceptSelectedAction,
|
|
24466
24466
|
shouldHideSendFreeCard = _a.shouldHideSendFreeCard,
|
|
24467
|
-
upsaleBanner = _a.upsaleBanner
|
|
24468
|
-
|
|
24467
|
+
upsaleBanner = _a.upsaleBanner,
|
|
24468
|
+
checkoutOnly = _a.checkoutOnly;
|
|
24469
|
+
var _e = React.useState(checkoutOnly !== null && checkoutOnly !== void 0 ? checkoutOnly : false),
|
|
24469
24470
|
shouldShowCheckoutView = _e[0],
|
|
24470
24471
|
setShouldShowCheckoutView = _e[1];
|
|
24471
24472
|
var _f = useResizeObserver(),
|
|
@@ -34,5 +34,6 @@ export declare type UpsaleDialogProps = {
|
|
|
34
34
|
acceptSelectedAction?: AcceptSelectedOptionType;
|
|
35
35
|
shouldHideSendFreeCard?: boolean;
|
|
36
36
|
upsaleBanner?: React.ReactNode;
|
|
37
|
+
checkoutOnly?: boolean;
|
|
37
38
|
} & UpsaleOptionsType;
|
|
38
39
|
export declare const UpsaleDialog: FC<UpsaleDialogProps>;
|
|
@@ -18,7 +18,7 @@ export declare type UpsaleOptionsType = {
|
|
|
18
18
|
selectableOptions: UpsaleOptionType[];
|
|
19
19
|
selectedOption: string;
|
|
20
20
|
handleSelectedOption: (optionId: string) => void;
|
|
21
|
-
removeSelectedOption
|
|
21
|
+
removeSelectedOption?: () => void;
|
|
22
22
|
children: React.ReactNode;
|
|
23
23
|
activeSelectedOption?: UpsaleOptionType;
|
|
24
24
|
};
|