@qiwi/pijma-desktop 1.160.7 → 1.161.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qiwi/pijma-desktop",
3
- "version": "1.160.7",
3
+ "version": "1.161.0",
4
4
  "type": "module",
5
5
  "main": "./target/es5/index.js",
6
6
  "module": "./target/es6/index.js",
@@ -8,6 +8,7 @@ export interface DropDownProps {
8
8
  maxWidth?: Value;
9
9
  rootClose?: boolean;
10
10
  stub?: boolean;
11
+ placement?: OverlayProps['placement'];
11
12
  target: OverlayProps['target'];
12
13
  container: OverlayProps['container'];
13
14
  children: ReactElement;
@@ -36,7 +36,7 @@ var Transition = function(props) {
36
36
  };
37
37
  Transition.displayName = "Transition";
38
38
  var DropDown = function(_param) {
39
- var show = _param.show, offset = _param.offset, width = _param.width, minWidth = _param.minWidth, maxWidth = _param.maxWidth, _param_rootClose = _param.rootClose, rootClose = _param_rootClose === void 0 ? true : _param_rootClose, _param_stub = _param.stub, stub = _param_stub === void 0 ? false : _param_stub, target = _param.target, container = _param.container, onHide = _param.onHide, children = _param.children, rest = _object_without_properties_loose._(_param, [
39
+ var show = _param.show, offset = _param.offset, width = _param.width, minWidth = _param.minWidth, maxWidth = _param.maxWidth, _param_rootClose = _param.rootClose, rootClose = _param_rootClose === void 0 ? true : _param_rootClose, _param_stub = _param.stub, stub = _param_stub === void 0 ? false : _param_stub, _param_placement = _param.placement, placement = _param_placement === void 0 ? "bottom" : _param_placement, target = _param.target, container = _param.container, onHide = _param.onHide, children = _param.children, rest = _object_without_properties_loose._(_param, [
40
40
  "show",
41
41
  "offset",
42
42
  "width",
@@ -44,6 +44,7 @@ var DropDown = function(_param) {
44
44
  "maxWidth",
45
45
  "rootClose",
46
46
  "stub",
47
+ "placement",
47
48
  "target",
48
49
  "container",
49
50
  "onHide",
@@ -54,7 +55,7 @@ var DropDown = function(_param) {
54
55
  children: children
55
56
  }) : /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.Overlay, {
56
57
  show: show,
57
- placement: "bottom",
58
+ placement: placement,
58
59
  target: target,
59
60
  container: container,
60
61
  rootClose: rootClose,
@@ -17,12 +17,12 @@ const Transition = (props)=>/*#__PURE__*/ _jsx(SimpleTransition, {
17
17
  })
18
18
  });
19
19
  Transition.displayName = 'Transition';
20
- export const DropDown = ({ show , offset , width , minWidth , maxWidth , rootClose =true , stub =false , target , container , onHide , children , ...rest })=>stub ? /*#__PURE__*/ _jsx(Box, {
20
+ export const DropDown = ({ show , offset , width , minWidth , maxWidth , rootClose =true , stub =false , placement ='bottom' , target , container , onHide , children , ...rest })=>stub ? /*#__PURE__*/ _jsx(Box, {
21
21
  display: "none",
22
22
  children: children
23
23
  }) : /*#__PURE__*/ _jsx(Overlay, {
24
24
  show: show,
25
- placement: "bottom",
25
+ placement: placement,
26
26
  target: target,
27
27
  container: container,
28
28
  rootClose: rootClose,