@invoicebox/ui 0.1.0-alpha.232 → 0.1.0-alpha.234
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.
|
@@ -49,6 +49,14 @@ var Drawer = exports.Drawer = function Drawer(_ref) {
|
|
|
49
49
|
}, [isOpen]);
|
|
50
50
|
if (!shouldRender) return null;
|
|
51
51
|
return /*#__PURE__*/_react["default"].createElement(S.BottomSheet, {
|
|
52
|
+
sibling: /*#__PURE__*/_react["default"].createElement("div", {
|
|
53
|
+
"data-rsbs-backdrop": "true",
|
|
54
|
+
onClick: function onClick(event) {
|
|
55
|
+
event.stopPropagation();
|
|
56
|
+
event.preventDefault();
|
|
57
|
+
onClose();
|
|
58
|
+
}
|
|
59
|
+
}),
|
|
52
60
|
open: isOpen,
|
|
53
61
|
onDismiss: onClose,
|
|
54
62
|
expandOnContentDrag: false,
|
|
@@ -13,7 +13,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
13
13
|
var BottomSheet = exports.BottomSheet = (0, _styledComponents["default"])(_reactSpringBottomSheet.BottomSheet).withConfig({
|
|
14
14
|
displayName: "styles__BottomSheet",
|
|
15
15
|
componentId: "sc-1kysg49-0"
|
|
16
|
-
})(["--rsbs-backdrop-bg:", ";--rsbs-bg:", ";--rsbs-overlay-rounded:10px;& [data-rsbs-overlay],[data-rsbs-backdrop]{z-index:9999;}&::after{z-index:9999;}[data-rsbs-header]{", " padding:0;border-top-left-radius:10px;border-top-right-radius:10px;}[data-rsbs-overlay]{", "}", ""], function (_ref) {
|
|
16
|
+
})(["--rsbs-backdrop-bg:", ";--rsbs-bg:", ";--rsbs-overlay-rounded:10px;& [data-rsbs-overlay],[data-rsbs-backdrop]{z-index:9999;}&::after{z-index:9999;}[data-rsbs-backdrop]:not(:first-child){display:none;}[data-rsbs-header]{", " padding:0;border-top-left-radius:10px;border-top-right-radius:10px;}[data-rsbs-overlay]{", "}", ""], function (_ref) {
|
|
17
17
|
var $palette = _ref.$palette;
|
|
18
18
|
return $palette.backdropBg;
|
|
19
19
|
}, function (_ref2) {
|
|
@@ -13,7 +13,7 @@ var visible = (0, _styledComponents.css)(["visibility:visible;opacity:1;transiti
|
|
|
13
13
|
var Wrapper = exports.Wrapper = _styledComponents["default"].div.withConfig({
|
|
14
14
|
displayName: "styles__Wrapper",
|
|
15
15
|
componentId: "sc-1f1enhf-0"
|
|
16
|
-
})(["padding:", ";overflow:hidden;border-radius:20px;box-shadow:0 10px 17px ", ";background:", ";min-width:", ";width:", ";position:absolute;left:", ";right:", ";z-index:", ";", ";", ";", ";"], function (_ref) {
|
|
16
|
+
})(["padding:", ";overflow:hidden;border-radius:20px;box-shadow:0 10px 17px ", ";background:", ";outline:1px solid ", ";min-width:", ";width:", ";position:absolute;left:", ";right:", ";z-index:", ";", ";", ";", ";"], function (_ref) {
|
|
17
17
|
var $usePadding = _ref.$usePadding;
|
|
18
18
|
return $usePadding ? '8px 0;' : 'none';
|
|
19
19
|
}, function (_ref2) {
|
|
@@ -23,28 +23,31 @@ var Wrapper = exports.Wrapper = _styledComponents["default"].div.withConfig({
|
|
|
23
23
|
var $palette = _ref3.$palette;
|
|
24
24
|
return $palette.bg;
|
|
25
25
|
}, function (_ref4) {
|
|
26
|
-
var $
|
|
27
|
-
return $
|
|
26
|
+
var $palette = _ref4.$palette;
|
|
27
|
+
return $palette.bg;
|
|
28
28
|
}, function (_ref5) {
|
|
29
|
-
var $
|
|
30
|
-
return $
|
|
29
|
+
var $minWidth = _ref5.$minWidth;
|
|
30
|
+
return $minWidth;
|
|
31
31
|
}, function (_ref6) {
|
|
32
|
-
var $
|
|
33
|
-
return $
|
|
32
|
+
var $width = _ref6.$width;
|
|
33
|
+
return $width;
|
|
34
34
|
}, function (_ref7) {
|
|
35
|
-
var $
|
|
36
|
-
return $
|
|
35
|
+
var $positionLeft = _ref7.$positionLeft;
|
|
36
|
+
return $positionLeft;
|
|
37
37
|
}, function (_ref8) {
|
|
38
|
-
var $
|
|
39
|
-
return $
|
|
38
|
+
var $positionRight = _ref8.$positionRight;
|
|
39
|
+
return $positionRight;
|
|
40
40
|
}, function (_ref9) {
|
|
41
|
-
var $
|
|
42
|
-
return $
|
|
41
|
+
var $zIndex = _ref9.$zIndex;
|
|
42
|
+
return $zIndex !== null && $zIndex !== void 0 ? $zIndex : 5;
|
|
43
43
|
}, function (_ref10) {
|
|
44
|
-
var $
|
|
45
|
-
|
|
46
|
-
return $isAbove ? (0, _styledComponents.css)(["bottom:calc(100% + ", "px);"], $positionVertical) : (0, _styledComponents.css)(["top:calc(100% + ", "px);"], $positionVertical);
|
|
44
|
+
var $isVisible = _ref10.$isVisible;
|
|
45
|
+
return $isVisible ? visible : hidden;
|
|
47
46
|
}, function (_ref11) {
|
|
48
|
-
var $
|
|
47
|
+
var $isAbove = _ref11.$isAbove,
|
|
48
|
+
$positionVertical = _ref11.$positionVertical;
|
|
49
|
+
return $isAbove ? (0, _styledComponents.css)(["bottom:calc(100% + ", "px);"], $positionVertical) : (0, _styledComponents.css)(["top:calc(100% + ", "px);"], $positionVertical);
|
|
50
|
+
}, function (_ref12) {
|
|
51
|
+
var $translateY = _ref12.$translateY;
|
|
49
52
|
return (0, _styledComponents.css)(["transform:translateY(", ");"], $translateY);
|
|
50
53
|
});
|