@sendoutcards/quantum-design-ui 1.8.2 → 1.8.3
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
|
@@ -24449,14 +24449,16 @@ var UpsaleDialog = function (_a) {
|
|
|
24449
24449
|
submitAction = _a.submitAction,
|
|
24450
24450
|
acceptSelectedAction = _a.acceptSelectedAction,
|
|
24451
24451
|
shouldHideSendFreeCard = _a.shouldHideSendFreeCard,
|
|
24452
|
-
upsaleBanner = _a.upsaleBanner
|
|
24453
|
-
|
|
24454
|
-
|
|
24455
|
-
|
|
24456
|
-
|
|
24457
|
-
|
|
24458
|
-
|
|
24459
|
-
|
|
24452
|
+
upsaleBanner = _a.upsaleBanner,
|
|
24453
|
+
_e = _a.defaultActiveKeys,
|
|
24454
|
+
defaultActiveKeys = _e === void 0 ? [1] : _e;
|
|
24455
|
+
var _f = React.useState(false),
|
|
24456
|
+
shouldShowCheckoutView = _f[0],
|
|
24457
|
+
setShouldShowCheckoutView = _f[1];
|
|
24458
|
+
var _g = useResizeObserver(),
|
|
24459
|
+
ref = _g.ref,
|
|
24460
|
+
width = _g.width,
|
|
24461
|
+
height = _g.height;
|
|
24460
24462
|
var dialogFooterHeight = shouldHideSendFreeCard ? '120px' : '170px';
|
|
24461
24463
|
var device = useWindowSize().width;
|
|
24462
24464
|
var isMobile = device <= 910;
|
|
@@ -24583,7 +24585,7 @@ var UpsaleDialog = function (_a) {
|
|
|
24583
24585
|
top: '1.4rem'
|
|
24584
24586
|
}
|
|
24585
24587
|
}, jsx(Accordion, {
|
|
24586
|
-
defaultActiveKeys:
|
|
24588
|
+
defaultActiveKeys: defaultActiveKeys,
|
|
24587
24589
|
arrowLocation: "right",
|
|
24588
24590
|
background: "background",
|
|
24589
24591
|
inset: "x0",
|
|
@@ -0,0 +1,17 @@
|
|
|
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>>;
|
|
@@ -34,5 +34,6 @@ export declare type UpsaleDialogProps = {
|
|
|
34
34
|
acceptSelectedAction?: AcceptSelectedOptionType;
|
|
35
35
|
shouldHideSendFreeCard?: boolean;
|
|
36
36
|
upsaleBanner?: React.ReactNode;
|
|
37
|
+
defaultActiveKeys?: (number | string)[];
|
|
37
38
|
} & UpsaleOptionsType;
|
|
38
39
|
export declare const UpsaleDialog: FC<UpsaleDialogProps>;
|