@sendoutcards/quantum-design-ui 1.8.28 → 1.8.29
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
|
@@ -13213,7 +13213,8 @@ var Tooltip = function (_a) {
|
|
|
13213
13213
|
horizontal: 'x1'
|
|
13214
13214
|
},
|
|
13215
13215
|
boxShadow: tooltip.boxShadow,
|
|
13216
|
-
zIndex: zIndex
|
|
13216
|
+
zIndex: zIndex,
|
|
13217
|
+
position: "relative"
|
|
13217
13218
|
}, jsx(Text, {
|
|
13218
13219
|
type: "footnote",
|
|
13219
13220
|
color: background === 'light' ? 'primaryBody' : 'inverseBody',
|
|
@@ -15918,8 +15919,9 @@ var Drawer = function (_a) {
|
|
|
15918
15919
|
closedValue = _a.closedValue,
|
|
15919
15920
|
_k = _a.tabMode,
|
|
15920
15921
|
tabMode = _k === void 0 ? 'light' : _k,
|
|
15921
|
-
_l = _a.
|
|
15922
|
-
|
|
15922
|
+
_l = _a.shouldHideScroll,
|
|
15923
|
+
shouldHideScroll = _l === void 0 ? false : _l,
|
|
15924
|
+
backgroundColor = _a.backgroundColor;
|
|
15923
15925
|
var drawer = useEntities().drawer;
|
|
15924
15926
|
var isHorizontal = location === 'left' || location === 'right';
|
|
15925
15927
|
var isVertical = location === 'top' || location === 'bottom';
|
|
@@ -15960,6 +15962,10 @@ var Drawer = function (_a) {
|
|
|
15960
15962
|
};
|
|
15961
15963
|
}
|
|
15962
15964
|
};
|
|
15965
|
+
var backgroundStyle = {
|
|
15966
|
+
backgroundColor: backgroundColor === 'blurredGlass' ? 'rgba(255, 255, 255, 0.2)' : 'initial',
|
|
15967
|
+
backdropFilter: backgroundColor === 'blurredGlass' ? 'blur(10px)' : 'none'
|
|
15968
|
+
};
|
|
15963
15969
|
return jsx(Div, {
|
|
15964
15970
|
css: styles$p.drawerContainer(location, drawer),
|
|
15965
15971
|
width: isHorizontal ? openValue + "px" : '100%',
|
|
@@ -15972,20 +15978,19 @@ var Drawer = function (_a) {
|
|
|
15972
15978
|
transition: softSpringTransition,
|
|
15973
15979
|
outset: (_b = {}, _b[location] = offset + "px", _b),
|
|
15974
15980
|
inset: inset !== null && inset !== void 0 ? inset : drawer.defaultInset,
|
|
15981
|
+
backgroundColor: backgroundColor !== null && backgroundColor !== void 0 ? backgroundColor : '#fff',
|
|
15975
15982
|
zIndex: zIndex,
|
|
15976
|
-
style: {
|
|
15977
|
-
x: isHorizontal ? handleXY : 0,
|
|
15978
|
-
y: isVertical ? handleXY : 0
|
|
15979
|
-
},
|
|
15983
|
+
style: __assign({}, backgroundStyle),
|
|
15980
15984
|
boxShadow: location === 'bottom' ? drawer.bottomDirectionShadow : drawer.boxShadow,
|
|
15981
15985
|
whileHover: {
|
|
15982
15986
|
boxShadow: location === 'bottom' ? drawer.hoverBottomDirectionShadow : drawer.hoverBoxShadow
|
|
15983
15987
|
}
|
|
15984
15988
|
}, jsx(Div, {
|
|
15985
|
-
css: styles$p.childContainer(
|
|
15989
|
+
css: styles$p.childContainer(shouldHideScroll),
|
|
15986
15990
|
overflow: overflow,
|
|
15987
15991
|
height: "100%",
|
|
15988
|
-
width: "100%"
|
|
15992
|
+
width: "100%",
|
|
15993
|
+
backgroundColor: backgroundColor !== null && backgroundColor !== void 0 ? backgroundColor : '#fff'
|
|
15989
15994
|
}, children), showTab && jsx(Div, {
|
|
15990
15995
|
backgroundColor: drawer.tab[tabMode].backgroundColor,
|
|
15991
15996
|
css: styles$p.drawerTab(location, openValue),
|
|
@@ -17,6 +17,7 @@ export declare type DrawerProps = {
|
|
|
17
17
|
overflow?: Overflow;
|
|
18
18
|
closedValue?: number;
|
|
19
19
|
tabMode?: 'dark' | 'light';
|
|
20
|
-
|
|
20
|
+
shouldHideScroll?: boolean;
|
|
21
|
+
backgroundColor?: string | 'blurredGlass';
|
|
21
22
|
};
|
|
22
|
-
export declare const Drawer: ({ children, location, isOpen, isTabHidden, onClick, openValue, offset, zIndex, showTab, inset, overflow, closedValue, tabMode,
|
|
23
|
+
export declare const Drawer: ({ children, location, isOpen, isTabHidden, onClick, openValue, offset, zIndex, showTab, inset, overflow, closedValue, tabMode, shouldHideScroll, backgroundColor, }: DrawerProps) => JSX.Element;
|
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>>;
|