@invoicebox/ui 0.1.0-alpha.158 → 0.1.0-alpha.159
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.
|
@@ -20,7 +20,8 @@ var Drawer = exports.Drawer = function Drawer(_ref) {
|
|
|
20
20
|
onClose = _ref.onClose,
|
|
21
21
|
_ref$isPadding = _ref.isPadding,
|
|
22
22
|
isPadding = _ref$isPadding === void 0 ? true : _ref$isPadding,
|
|
23
|
-
initialFocusRef = _ref.initialFocusRef
|
|
23
|
+
initialFocusRef = _ref.initialFocusRef,
|
|
24
|
+
overflow = _ref.overflow;
|
|
24
25
|
var palette = (0, _palette.useComponentPalette)('drawer');
|
|
25
26
|
return /*#__PURE__*/_react["default"].createElement(S.BottomSheet, {
|
|
26
27
|
open: isOpen,
|
|
@@ -34,8 +35,10 @@ var Drawer = exports.Drawer = function Drawer(_ref) {
|
|
|
34
35
|
variant: "headline4"
|
|
35
36
|
}, title)),
|
|
36
37
|
$isHaveHeader: !!title,
|
|
37
|
-
$palette: palette
|
|
38
|
+
$palette: palette,
|
|
39
|
+
$overflow: overflow
|
|
38
40
|
}, /*#__PURE__*/_react["default"].createElement(S.Body, {
|
|
41
|
+
$overflow: overflow,
|
|
39
42
|
$isPadding: isPadding,
|
|
40
43
|
$isErrorBorder: isErrorBorder,
|
|
41
44
|
$errorColor: palette.error
|
|
@@ -26,6 +26,7 @@ export declare const BottomSheet: import("styled-components/dist/types").IStyled
|
|
|
26
26
|
}, {
|
|
27
27
|
$isHaveHeader: boolean;
|
|
28
28
|
$palette: TDrawerPalette;
|
|
29
|
+
$overflow?: string | undefined;
|
|
29
30
|
}>> & string & Omit<import("react").ForwardRefExoticComponent<{
|
|
30
31
|
children: import("react").ReactNode;
|
|
31
32
|
sibling?: import("react").ReactNode;
|
|
@@ -54,4 +55,5 @@ export declare const Body: import("styled-components/dist/types").IStyledCompone
|
|
|
54
55
|
$isErrorBorder?: boolean | undefined;
|
|
55
56
|
$isPadding: boolean;
|
|
56
57
|
$errorColor: string;
|
|
58
|
+
$overflow?: string | undefined;
|
|
57
59
|
}>> & string;
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
7
|
exports.Title = exports.BottomSheet = exports.Body = void 0;
|
|
7
|
-
var _styledComponents =
|
|
8
|
+
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
8
9
|
var _reactSpringBottomSheet = require("react-spring-bottom-sheet");
|
|
9
10
|
require("react-spring-bottom-sheet/dist/style.css");
|
|
10
|
-
function
|
|
11
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
12
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
11
13
|
var BottomSheet = exports.BottomSheet = (0, _styledComponents["default"])(_reactSpringBottomSheet.BottomSheet).withConfig({
|
|
12
14
|
displayName: "styles__BottomSheet",
|
|
13
15
|
componentId: "sc-1kysg49-0"
|
|
14
|
-
})(["--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-header]{", " padding:0;border-top-left-radius:10px;border-top-right-radius:10px;}[data-rsbs-overlay]{", "}", ""], function (_ref) {
|
|
15
17
|
var $palette = _ref.$palette;
|
|
16
18
|
return $palette.backdropBg;
|
|
17
19
|
}, function (_ref2) {
|
|
@@ -23,22 +25,28 @@ var BottomSheet = exports.BottomSheet = (0, _styledComponents["default"])(_react
|
|
|
23
25
|
}, function (_ref4) {
|
|
24
26
|
var $isHaveHeader = _ref4.$isHaveHeader;
|
|
25
27
|
return !$isHaveHeader && "\n margin-bottom: -20px;\n ";
|
|
28
|
+
}, function (_ref5) {
|
|
29
|
+
var $overflow = _ref5.$overflow;
|
|
30
|
+
return $overflow && (0, _styledComponents.css)(["[data-rsbs-content]{overflow:visible;}[data-rsbs-scroll]{overflow:visible;}"]);
|
|
26
31
|
});
|
|
27
32
|
var Title = exports.Title = _styledComponents["default"].div.withConfig({
|
|
28
33
|
displayName: "styles__Title",
|
|
29
34
|
componentId: "sc-1kysg49-1"
|
|
30
|
-
})(["padding:30px;background-color:", ";border-radius:inherit;"], function (
|
|
31
|
-
var $bg =
|
|
35
|
+
})(["padding:30px;background-color:", ";border-radius:inherit;"], function (_ref6) {
|
|
36
|
+
var $bg = _ref6.$bg;
|
|
32
37
|
return $bg;
|
|
33
38
|
});
|
|
34
39
|
var Body = exports.Body = _styledComponents["default"].div.withConfig({
|
|
35
40
|
displayName: "styles__Body",
|
|
36
41
|
componentId: "sc-1kysg49-2"
|
|
37
|
-
})(["position:relative;overflow:
|
|
38
|
-
var $
|
|
39
|
-
|
|
42
|
+
})(["position:relative;overflow:", ";flex:1;border-radius:10px 10px 0 0;", " ", ";"], function (_ref7) {
|
|
43
|
+
var $overflow = _ref7.$overflow;
|
|
44
|
+
return $overflow || 'auto';
|
|
45
|
+
}, function (_ref8) {
|
|
46
|
+
var $isErrorBorder = _ref8.$isErrorBorder,
|
|
47
|
+
$errorColor = _ref8.$errorColor;
|
|
40
48
|
return $isErrorBorder && "border-top: 2px solid ".concat($errorColor, ";");
|
|
41
|
-
}, function (
|
|
42
|
-
var $isPadding =
|
|
49
|
+
}, function (_ref9) {
|
|
50
|
+
var $isPadding = _ref9.$isPadding;
|
|
43
51
|
return $isPadding && 'padding: 32px 16px 36px';
|
|
44
52
|
});
|