@sendoutcards/quantum-design-ui 1.7.92 → 1.7.94
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
|
@@ -14237,7 +14237,10 @@ var Sheet = function (_a) {
|
|
|
14237
14237
|
_d = _a.hasOverlay,
|
|
14238
14238
|
hasOverlay = _d === void 0 ? true : _d,
|
|
14239
14239
|
snapTo = _a.snapTo,
|
|
14240
|
-
setSnapTo = _a.setSnapTo
|
|
14240
|
+
setSnapTo = _a.setSnapTo,
|
|
14241
|
+
width = _a.width,
|
|
14242
|
+
inset = _a.inset,
|
|
14243
|
+
outset = _a.outset; // TODO's
|
|
14241
14244
|
|
|
14242
14245
|
/**
|
|
14243
14246
|
* 1. Hook up child scrolling when scrolling is enabled
|
|
@@ -14479,8 +14482,8 @@ var Sheet = function (_a) {
|
|
|
14479
14482
|
}), jsx(Div, {
|
|
14480
14483
|
id: "sheetWrapper",
|
|
14481
14484
|
width: {
|
|
14482
|
-
xSmall: '100%',
|
|
14483
|
-
medium: 'calc(100% - 32px)'
|
|
14485
|
+
xSmall: width !== null && width !== void 0 ? width : '100%',
|
|
14486
|
+
medium: width !== null && width !== void 0 ? width : 'calc(100% - 32px)'
|
|
14484
14487
|
},
|
|
14485
14488
|
maxWidth: backgroundElement ? '1026px' : '768px',
|
|
14486
14489
|
minWidth: "320px",
|
|
@@ -14494,7 +14497,9 @@ var Sheet = function (_a) {
|
|
|
14494
14497
|
flexDirection: {
|
|
14495
14498
|
xSmall: 'column',
|
|
14496
14499
|
medium: 'row'
|
|
14497
|
-
}
|
|
14500
|
+
},
|
|
14501
|
+
inset: inset,
|
|
14502
|
+
outset: outset
|
|
14498
14503
|
}, !isMobile && !!setIsOpen && jsx(CloseButton, {
|
|
14499
14504
|
onClose: function () {
|
|
14500
14505
|
return setIsOpen(false);
|
|
@@ -24148,7 +24153,11 @@ var UpsaleSheet = function (_a) {
|
|
|
24148
24153
|
removeSelectedOption = _a.removeSelectedOption,
|
|
24149
24154
|
successComponent = _a.successComponent,
|
|
24150
24155
|
_b = _a.zIndex,
|
|
24151
|
-
zIndex = _b === void 0 ? 103 : _b
|
|
24156
|
+
zIndex = _b === void 0 ? 103 : _b,
|
|
24157
|
+
// SOC Nav is 102
|
|
24158
|
+
width = _a.width,
|
|
24159
|
+
inset = _a.inset,
|
|
24160
|
+
outset = _a.outset;
|
|
24152
24161
|
|
|
24153
24162
|
var _c = React.useState(''),
|
|
24154
24163
|
expandedOption = _c[0],
|
|
@@ -24175,7 +24184,10 @@ var UpsaleSheet = function (_a) {
|
|
|
24175
24184
|
},
|
|
24176
24185
|
draggable: true,
|
|
24177
24186
|
initialSnapPoint: "description",
|
|
24178
|
-
zIndex: zIndex
|
|
24187
|
+
zIndex: zIndex,
|
|
24188
|
+
width: width,
|
|
24189
|
+
inset: inset,
|
|
24190
|
+
outset: outset
|
|
24179
24191
|
}, successComponent ? jsx(Flex, {
|
|
24180
24192
|
justifyContent: 'center',
|
|
24181
24193
|
alignItems: 'center',
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React, { FC } from 'react';
|
|
2
2
|
import { BackgroundColor } from "../../helpers/hoc-types/hocBaseUnion";
|
|
3
|
+
import { HOCSpacingKeys, LiteralUnion, SpacingDirection } from "../../helpers/hoc-types/entityValueTypes";
|
|
3
4
|
declare type SnapToStateType = string | number | undefined;
|
|
4
5
|
export declare type SheetProps = {
|
|
5
6
|
isOpen: boolean;
|
|
@@ -17,6 +18,9 @@ export declare type SheetProps = {
|
|
|
17
18
|
hasOverlay?: boolean;
|
|
18
19
|
snapTo?: string | number;
|
|
19
20
|
setSnapTo?: React.Dispatch<React.SetStateAction<SnapToStateType>>;
|
|
21
|
+
width?: string;
|
|
22
|
+
inset?: SpacingDirection | LiteralUnion<HOCSpacingKeys>;
|
|
23
|
+
outset?: SpacingDirection | LiteralUnion<HOCSpacingKeys>;
|
|
20
24
|
};
|
|
21
25
|
export declare const Sheet: FC<SheetProps>;
|
|
22
26
|
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React, { FC } from 'react';
|
|
2
2
|
import { OptionSubmitType } from '../../../../organisms/radioOptionList/radioOptionList';
|
|
3
3
|
import { RadioOptionCardProps } from '../../../../organisms/radioCard/radioCard';
|
|
4
|
+
import { HOCSpacingKeys, LiteralUnion, SpacingDirection } from "../../../../helpers/hoc-types/entityValueTypes";
|
|
4
5
|
declare type ExpandedOptionChild = {
|
|
5
6
|
expandedChild?: React.ReactNode;
|
|
6
7
|
};
|
|
@@ -26,6 +27,9 @@ export declare type UpsaleSheetProps = {
|
|
|
26
27
|
removeSelectedOption?: () => void;
|
|
27
28
|
successComponent?: React.ReactNode;
|
|
28
29
|
zIndex?: number;
|
|
30
|
+
width?: string;
|
|
31
|
+
inset?: SpacingDirection | LiteralUnion<HOCSpacingKeys>;
|
|
32
|
+
outset?: SpacingDirection | LiteralUnion<HOCSpacingKeys>;
|
|
29
33
|
};
|
|
30
34
|
export declare const UpsaleSheet: FC<UpsaleSheetProps>;
|
|
31
35
|
export {};
|