@salutejs/plasma-new-hope 0.67.0-dev.0 → 0.67.1-canary.1104.8453426367.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. package/cjs/components/Dropdown/Dropdown.js +2 -1
  2. package/cjs/components/Dropdown/Dropdown.js.map +1 -1
  3. package/cjs/components/Popover/Popover.js +46 -31
  4. package/cjs/components/Popover/Popover.js.map +1 -1
  5. package/es/components/Dropdown/Dropdown.js +2 -1
  6. package/es/components/Dropdown/Dropdown.js.map +1 -1
  7. package/es/components/Popover/Popover.js +46 -31
  8. package/es/components/Popover/Popover.js.map +1 -1
  9. package/package.json +2 -2
  10. package/styled-components/cjs/components/Dropdown/Dropdown.js +2 -1
  11. package/styled-components/cjs/components/Popover/Popover.js +46 -31
  12. package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Normal/Dropdown.stories.tsx +1 -1
  13. package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Tight/Dropdown.stories.tsx +1 -1
  14. package/styled-components/cjs/examples/plasma_b2c/components/Popover/Popover.stories.tsx +7 -0
  15. package/styled-components/cjs/examples/plasma_web/components/Dropdown/Normal/Dropdown.stories.tsx +1 -1
  16. package/styled-components/cjs/examples/plasma_web/components/Dropdown/Tight/Dropdown.stories.tsx +1 -1
  17. package/styled-components/es/components/Dropdown/Dropdown.js +2 -1
  18. package/styled-components/es/components/Popover/Popover.js +46 -31
  19. package/styled-components/es/examples/plasma_b2c/components/Dropdown/Normal/Dropdown.stories.tsx +1 -1
  20. package/styled-components/es/examples/plasma_b2c/components/Dropdown/Tight/Dropdown.stories.tsx +1 -1
  21. package/styled-components/es/examples/plasma_b2c/components/Popover/Popover.stories.tsx +7 -0
  22. package/styled-components/es/examples/plasma_web/components/Dropdown/Normal/Dropdown.stories.tsx +1 -1
  23. package/styled-components/es/examples/plasma_web/components/Dropdown/Tight/Dropdown.stories.tsx +1 -1
  24. package/types/components/Combobox/Combobox.styles.d.ts +8 -2
  25. package/types/components/Combobox/Combobox.styles.d.ts.map +1 -1
  26. package/types/components/Dropdown/Dropdown.d.ts.map +1 -1
  27. package/types/components/Dropdown/Dropdown.styles.d.ts +7 -1
  28. package/types/components/Dropdown/Dropdown.styles.d.ts.map +1 -1
  29. package/types/components/Popover/Popover.d.ts +2 -2
  30. package/types/components/Popover/Popover.d.ts.map +1 -1
  31. package/types/components/Popover/Popover.types.d.ts +19 -14
  32. package/types/components/Popover/Popover.types.d.ts.map +1 -1
  33. package/types/components/Select/Select.styles.d.ts +8 -2
  34. package/types/components/Select/Select.styles.d.ts.map +1 -1
  35. package/types/examples/plasma_b2c/components/Popover/Popover.d.ts +7 -1
  36. package/types/examples/plasma_b2c/components/Popover/Popover.d.ts.map +1 -1
  37. package/types/examples/plasma_web/components/Popover/Popover.d.ts +7 -1
  38. package/types/examples/plasma_web/components/Popover/Popover.d.ts.map +1 -1
  39. package/types/examples/sds_engineer/components/Popover/Popover.d.ts +7 -1
  40. package/types/examples/sds_engineer/components/Popover/Popover.d.ts.map +1 -1
@@ -13,7 +13,7 @@ var _utils = /*#__PURE__*/require("../../utils");
13
13
  var _base = /*#__PURE__*/require("./variations/_view/base");
14
14
  var _Popover = /*#__PURE__*/require("./Popover.styles");
15
15
  var _Popover2 = /*#__PURE__*/require("./Popover.tokens");
16
- var _excluded = ["target", "children", "isOpen", "trigger", "hasArrow", "frame", "className", "placement", "offset", "zIndex", "isFocusTrapped", "closeOnOverlayClick", "closeOnEsc", "preventOverflow", "usePortal", "view", "onToggle"];
16
+ var _excluded = ["target", "children", "isOpen", "trigger", "hasArrow", "frame", "className", "placement", "offset", "zIndex", "isFocusTrapped", "closeOnEsc", "preventOverflow", "usePortal", "view", "onToggle"];
17
17
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
18
18
  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); }
19
19
  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 && Object.prototype.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; }
@@ -39,33 +39,41 @@ var POPOVER_PORTAL_ID = exports.POPOVER_PORTAL_ID = 'plasma-popover-root';
39
39
  * и вызова по клику либо ховеру.
40
40
  */
41
41
  var popoverRoot = exports.popoverRoot = function popoverRoot(Root) {
42
- return /*#__PURE__*/(0, _react.forwardRef)(function (_ref, outerRootRef) {
43
- var target = _ref.target,
44
- children = _ref.children,
45
- isOpen = _ref.isOpen,
46
- trigger = _ref.trigger,
47
- hasArrow = _ref.hasArrow,
48
- _ref$frame = _ref.frame,
49
- frame = _ref$frame === void 0 ? 'document' : _ref$frame,
50
- className = _ref.className,
51
- _ref$placement = _ref.placement,
52
- placement = _ref$placement === void 0 ? 'auto' : _ref$placement,
53
- _ref$offset = _ref.offset,
54
- offset = _ref$offset === void 0 ? [0, 0] : _ref$offset,
55
- zIndex = _ref.zIndex,
56
- _ref$isFocusTrapped = _ref.isFocusTrapped,
57
- isFocusTrapped = _ref$isFocusTrapped === void 0 ? true : _ref$isFocusTrapped,
58
- _ref$closeOnOverlayCl = _ref.closeOnOverlayClick,
59
- closeOnOverlayClick = _ref$closeOnOverlayCl === void 0 ? true : _ref$closeOnOverlayCl,
60
- _ref$closeOnEsc = _ref.closeOnEsc,
61
- closeOnEsc = _ref$closeOnEsc === void 0 ? true : _ref$closeOnEsc,
62
- _ref$preventOverflow = _ref.preventOverflow,
63
- preventOverflow = _ref$preventOverflow === void 0 ? true : _ref$preventOverflow,
64
- _ref$usePortal = _ref.usePortal,
65
- usePortal = _ref$usePortal === void 0 ? false : _ref$usePortal,
66
- view = _ref.view,
67
- onToggle = _ref.onToggle,
68
- rest = _objectWithoutProperties(_ref, _excluded);
42
+ return /*#__PURE__*/(0, _react.forwardRef)(function (props, outerRootRef) {
43
+ var _placement$;
44
+ var target = props.target,
45
+ children = props.children,
46
+ isOpen = props.isOpen,
47
+ _props$trigger = props.trigger,
48
+ trigger = _props$trigger === void 0 ? 'click' : _props$trigger,
49
+ hasArrow = props.hasArrow,
50
+ _props$frame = props.frame,
51
+ frame = _props$frame === void 0 ? 'document' : _props$frame,
52
+ className = props.className,
53
+ _props$placement = props.placement,
54
+ placement = _props$placement === void 0 ? 'auto' : _props$placement,
55
+ _props$offset = props.offset,
56
+ offset = _props$offset === void 0 ? [0, 0] : _props$offset,
57
+ zIndex = props.zIndex,
58
+ _props$isFocusTrapped = props.isFocusTrapped,
59
+ isFocusTrapped = _props$isFocusTrapped === void 0 ? true : _props$isFocusTrapped,
60
+ _props$closeOnEsc = props.closeOnEsc,
61
+ closeOnEsc = _props$closeOnEsc === void 0 ? true : _props$closeOnEsc,
62
+ _props$preventOverflo = props.preventOverflow,
63
+ preventOverflow = _props$preventOverflo === void 0 ? true : _props$preventOverflo,
64
+ _props$usePortal = props.usePortal,
65
+ usePortal = _props$usePortal === void 0 ? false : _props$usePortal,
66
+ view = props.view,
67
+ onToggle = props.onToggle,
68
+ rest = _objectWithoutProperties(props, _excluded);
69
+ var closeOnOverlayClick = true;
70
+ var closeOnBeyondTargetHover = true;
71
+ if (props.trigger === 'click' && props.closeOnOverlayClick === false) {
72
+ closeOnOverlayClick = false;
73
+ }
74
+ if (props.trigger === 'hover' && props.closeOnBeyondTargetHover === false) {
75
+ closeOnBeyondTargetHover = false;
76
+ }
69
77
  var rootRef = (0, _react.useRef)(null);
70
78
  var popoverRef = (0, _react.useRef)(null);
71
79
  var handleRef = (0, _plasmaCore.useForkRef)(rootRef, outerRootRef);
@@ -86,7 +94,9 @@ var popoverRoot = exports.popoverRoot = function popoverRoot(Root) {
86
94
  opacity: isOpen ? 1 : 0
87
95
  };
88
96
  var _usePopper = (0, _reactPopper.usePopper)(rootRef.current, popoverRef.current, {
89
- placement: isAutoArray ? 'auto' : placement,
97
+ // TODO: #1121
98
+ // eslint-disable-next-line no-nested-ternary
99
+ placement: isAutoArray ? (_placement$ = placement[0]) !== null && _placement$ !== void 0 && _placement$.endsWith('start') ? 'auto-start' : 'auto' : placement,
90
100
  modifiers: [{
91
101
  name: 'preventOverflow',
92
102
  options: {
@@ -222,10 +232,15 @@ var popoverRoot = exports.popoverRoot = function popoverRoot(Root) {
222
232
  }, target), children && portalRef.current && /*#__PURE__*/_reactDom["default"].createPortal( /*#__PURE__*/_react["default"].createElement(Root, _extends({
223
233
  view: view,
224
234
  className: className
225
- }, rest), /*#__PURE__*/_react["default"].createElement(_Popover.StyledPopover, _extends({}, attributes.popper, {
235
+ }, rest, {
236
+ onMouseEnter: closeOnBeyondTargetHover ? undefined : onMouseEnter,
237
+ onMouseLeave: closeOnBeyondTargetHover ? undefined : onMouseEnter
238
+ }), /*#__PURE__*/_react["default"].createElement(_Popover.StyledPopover, _extends({}, attributes.popper, {
226
239
  className: _Popover2.classes.root,
227
240
  ref: popoverForkRef,
228
- style: _objectSpread(_objectSpread({}, styles.popper), initialStyles),
241
+ style: _objectSpread(_objectSpread(_objectSpread({}, styles.popper), {
242
+ display: isOpen ? 'block' : 'none'
243
+ }), initialStyles),
229
244
  zIndex: zIndex
230
245
  }), hasArrow && /*#__PURE__*/_react["default"].createElement(_Popover.StyledArrow, _extends({
231
246
  className: _Popover2.classes.arrow,
@@ -51,7 +51,7 @@ const meta: Meta<StoryDropdownProps> = {
51
51
  closeOnEsc: true,
52
52
  isFocusTrapped: true,
53
53
  skidding: 0,
54
- distance: 6,
54
+ distance: 0,
55
55
  },
56
56
  };
57
57
 
@@ -51,7 +51,7 @@ const meta: Meta<StoryDropdownProps> = {
51
51
  closeOnEsc: true,
52
52
  isFocusTrapped: true,
53
53
  skidding: 0,
54
- distance: 6,
54
+ distance: 0,
55
55
  },
56
56
  };
57
57
 
@@ -33,6 +33,12 @@ const meta: Meta<typeof Popover> = {
33
33
  },
34
34
  table: { defaultValue: { summary: true } },
35
35
  },
36
+ closeOnBeyondTargetHover: {
37
+ control: {
38
+ type: 'boolean',
39
+ },
40
+ table: { defaultValue: { summary: true } },
41
+ },
36
42
  closeOnEsc: {
37
43
  control: {
38
44
  type: 'boolean',
@@ -62,6 +68,7 @@ const meta: Meta<typeof Popover> = {
62
68
  placement: 'bottom',
63
69
  trigger: 'click',
64
70
  closeOnOverlayClick: true,
71
+ closeOnBeyondTargetHover: true,
65
72
  closeOnEsc: true,
66
73
  isFocusTrapped: true,
67
74
  skidding: 0,
@@ -51,7 +51,7 @@ const meta: Meta<StoryDropdownProps> = {
51
51
  closeOnEsc: true,
52
52
  isFocusTrapped: true,
53
53
  skidding: 0,
54
- distance: 6,
54
+ distance: 0,
55
55
  },
56
56
  };
57
57
 
@@ -51,7 +51,7 @@ const meta: Meta<StoryDropdownProps> = {
51
51
  closeOnEsc: true,
52
52
  isFocusTrapped: true,
53
53
  skidding: 0,
54
- distance: 6,
54
+ distance: 0,
55
55
  },
56
56
  };
57
57
 
@@ -62,6 +62,7 @@ export var dropdownRoot = function dropdownRoot(Root) {
62
62
  placement: getPlacements(placement),
63
63
  trigger: trigger,
64
64
  closeOnOverlayClick: closeOnOverlayClick,
65
+ closeOnBeyondTargetHover: false,
65
66
  closeOnEsc: closeOnEsc,
66
67
  isFocusTrapped: isFocusTrapped,
67
68
  frame: frame
@@ -86,7 +87,7 @@ export var dropdownConfig = {
86
87
  }
87
88
  },
88
89
  defaults: {
89
- view: 'primary',
90
+ view: 'default',
90
91
  size: 'm'
91
92
  }
92
93
  };
@@ -1,5 +1,5 @@
1
1
  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); }
2
- var _excluded = ["target", "children", "isOpen", "trigger", "hasArrow", "frame", "className", "placement", "offset", "zIndex", "isFocusTrapped", "closeOnOverlayClick", "closeOnEsc", "preventOverflow", "usePortal", "view", "onToggle"];
2
+ var _excluded = ["target", "children", "isOpen", "trigger", "hasArrow", "frame", "className", "placement", "offset", "zIndex", "isFocusTrapped", "closeOnEsc", "preventOverflow", "usePortal", "view", "onToggle"];
3
3
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
4
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
5
5
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -30,33 +30,41 @@ export var POPOVER_PORTAL_ID = 'plasma-popover-root';
30
30
  * и вызова по клику либо ховеру.
31
31
  */
32
32
  export var popoverRoot = function popoverRoot(Root) {
33
- return /*#__PURE__*/forwardRef(function (_ref, outerRootRef) {
34
- var target = _ref.target,
35
- children = _ref.children,
36
- isOpen = _ref.isOpen,
37
- trigger = _ref.trigger,
38
- hasArrow = _ref.hasArrow,
39
- _ref$frame = _ref.frame,
40
- frame = _ref$frame === void 0 ? 'document' : _ref$frame,
41
- className = _ref.className,
42
- _ref$placement = _ref.placement,
43
- placement = _ref$placement === void 0 ? 'auto' : _ref$placement,
44
- _ref$offset = _ref.offset,
45
- offset = _ref$offset === void 0 ? [0, 0] : _ref$offset,
46
- zIndex = _ref.zIndex,
47
- _ref$isFocusTrapped = _ref.isFocusTrapped,
48
- isFocusTrapped = _ref$isFocusTrapped === void 0 ? true : _ref$isFocusTrapped,
49
- _ref$closeOnOverlayCl = _ref.closeOnOverlayClick,
50
- closeOnOverlayClick = _ref$closeOnOverlayCl === void 0 ? true : _ref$closeOnOverlayCl,
51
- _ref$closeOnEsc = _ref.closeOnEsc,
52
- closeOnEsc = _ref$closeOnEsc === void 0 ? true : _ref$closeOnEsc,
53
- _ref$preventOverflow = _ref.preventOverflow,
54
- preventOverflow = _ref$preventOverflow === void 0 ? true : _ref$preventOverflow,
55
- _ref$usePortal = _ref.usePortal,
56
- usePortal = _ref$usePortal === void 0 ? false : _ref$usePortal,
57
- view = _ref.view,
58
- onToggle = _ref.onToggle,
59
- rest = _objectWithoutProperties(_ref, _excluded);
33
+ return /*#__PURE__*/forwardRef(function (props, outerRootRef) {
34
+ var _placement$;
35
+ var target = props.target,
36
+ children = props.children,
37
+ isOpen = props.isOpen,
38
+ _props$trigger = props.trigger,
39
+ trigger = _props$trigger === void 0 ? 'click' : _props$trigger,
40
+ hasArrow = props.hasArrow,
41
+ _props$frame = props.frame,
42
+ frame = _props$frame === void 0 ? 'document' : _props$frame,
43
+ className = props.className,
44
+ _props$placement = props.placement,
45
+ placement = _props$placement === void 0 ? 'auto' : _props$placement,
46
+ _props$offset = props.offset,
47
+ offset = _props$offset === void 0 ? [0, 0] : _props$offset,
48
+ zIndex = props.zIndex,
49
+ _props$isFocusTrapped = props.isFocusTrapped,
50
+ isFocusTrapped = _props$isFocusTrapped === void 0 ? true : _props$isFocusTrapped,
51
+ _props$closeOnEsc = props.closeOnEsc,
52
+ closeOnEsc = _props$closeOnEsc === void 0 ? true : _props$closeOnEsc,
53
+ _props$preventOverflo = props.preventOverflow,
54
+ preventOverflow = _props$preventOverflo === void 0 ? true : _props$preventOverflo,
55
+ _props$usePortal = props.usePortal,
56
+ usePortal = _props$usePortal === void 0 ? false : _props$usePortal,
57
+ view = props.view,
58
+ onToggle = props.onToggle,
59
+ rest = _objectWithoutProperties(props, _excluded);
60
+ var closeOnOverlayClick = true;
61
+ var closeOnBeyondTargetHover = true;
62
+ if (props.trigger === 'click' && props.closeOnOverlayClick === false) {
63
+ closeOnOverlayClick = false;
64
+ }
65
+ if (props.trigger === 'hover' && props.closeOnBeyondTargetHover === false) {
66
+ closeOnBeyondTargetHover = false;
67
+ }
60
68
  var rootRef = useRef(null);
61
69
  var popoverRef = useRef(null);
62
70
  var handleRef = useForkRef(rootRef, outerRootRef);
@@ -77,7 +85,9 @@ export var popoverRoot = function popoverRoot(Root) {
77
85
  opacity: isOpen ? 1 : 0
78
86
  };
79
87
  var _usePopper = usePopper(rootRef.current, popoverRef.current, {
80
- placement: isAutoArray ? 'auto' : placement,
88
+ // TODO: #1121
89
+ // eslint-disable-next-line no-nested-ternary
90
+ placement: isAutoArray ? (_placement$ = placement[0]) !== null && _placement$ !== void 0 && _placement$.endsWith('start') ? 'auto-start' : 'auto' : placement,
81
91
  modifiers: [{
82
92
  name: 'preventOverflow',
83
93
  options: {
@@ -213,10 +223,15 @@ export var popoverRoot = function popoverRoot(Root) {
213
223
  }, target), children && portalRef.current && /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/React.createElement(Root, _extends({
214
224
  view: view,
215
225
  className: className
216
- }, rest), /*#__PURE__*/React.createElement(StyledPopover, _extends({}, attributes.popper, {
226
+ }, rest, {
227
+ onMouseEnter: closeOnBeyondTargetHover ? undefined : onMouseEnter,
228
+ onMouseLeave: closeOnBeyondTargetHover ? undefined : onMouseEnter
229
+ }), /*#__PURE__*/React.createElement(StyledPopover, _extends({}, attributes.popper, {
217
230
  className: classes.root,
218
231
  ref: popoverForkRef,
219
- style: _objectSpread(_objectSpread({}, styles.popper), initialStyles),
232
+ style: _objectSpread(_objectSpread(_objectSpread({}, styles.popper), {
233
+ display: isOpen ? 'block' : 'none'
234
+ }), initialStyles),
220
235
  zIndex: zIndex
221
236
  }), hasArrow && /*#__PURE__*/React.createElement(StyledArrow, _extends({
222
237
  className: classes.arrow,
@@ -51,7 +51,7 @@ const meta: Meta<StoryDropdownProps> = {
51
51
  closeOnEsc: true,
52
52
  isFocusTrapped: true,
53
53
  skidding: 0,
54
- distance: 6,
54
+ distance: 0,
55
55
  },
56
56
  };
57
57
 
@@ -51,7 +51,7 @@ const meta: Meta<StoryDropdownProps> = {
51
51
  closeOnEsc: true,
52
52
  isFocusTrapped: true,
53
53
  skidding: 0,
54
- distance: 6,
54
+ distance: 0,
55
55
  },
56
56
  };
57
57
 
@@ -33,6 +33,12 @@ const meta: Meta<typeof Popover> = {
33
33
  },
34
34
  table: { defaultValue: { summary: true } },
35
35
  },
36
+ closeOnBeyondTargetHover: {
37
+ control: {
38
+ type: 'boolean',
39
+ },
40
+ table: { defaultValue: { summary: true } },
41
+ },
36
42
  closeOnEsc: {
37
43
  control: {
38
44
  type: 'boolean',
@@ -62,6 +68,7 @@ const meta: Meta<typeof Popover> = {
62
68
  placement: 'bottom',
63
69
  trigger: 'click',
64
70
  closeOnOverlayClick: true,
71
+ closeOnBeyondTargetHover: true,
65
72
  closeOnEsc: true,
66
73
  isFocusTrapped: true,
67
74
  skidding: 0,
@@ -51,7 +51,7 @@ const meta: Meta<StoryDropdownProps> = {
51
51
  closeOnEsc: true,
52
52
  isFocusTrapped: true,
53
53
  skidding: 0,
54
- distance: 6,
54
+ distance: 0,
55
55
  },
56
56
  };
57
57
 
@@ -51,7 +51,7 @@ const meta: Meta<StoryDropdownProps> = {
51
51
  closeOnEsc: true,
52
52
  isFocusTrapped: true,
53
53
  skidding: 0,
54
- distance: 6,
54
+ distance: 0,
55
55
  },
56
56
  };
57
57
 
@@ -3,11 +3,17 @@ export declare const StyledRoot: import("@linaria/react").StyledComponent<import
3
3
  export declare const StyledCombobox: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
4
4
  export declare const StyledPopover: import("@linaria/react").StyledComponent<{
5
5
  selectWidth?: number | undefined;
6
- } & import("../../engines/types").PropsType<{
6
+ } & (import("../../engines/types").PropsType<{
7
7
  view: {
8
8
  css: import("@linaria/core").LinariaClassName;
9
9
  };
10
- }> & import("react").HTMLAttributes<HTMLDivElement> & import("../Popover/Popover.types").CustomPopoverProps & import("react").RefAttributes<HTMLDivElement>>;
10
+ }> & ((import("react").HTMLAttributes<HTMLDivElement> & import("../Popover/Popover.types").CustomPopoverProps & {
11
+ trigger?: "click" | undefined;
12
+ closeOnOverlayClick?: boolean | undefined;
13
+ } & import("react").RefAttributes<HTMLDivElement>) | (import("react").HTMLAttributes<HTMLDivElement> & import("../Popover/Popover.types").CustomPopoverProps & {
14
+ trigger?: "hover" | undefined;
15
+ closeOnBeyondTargetHover?: boolean | undefined;
16
+ } & import("react").RefAttributes<HTMLDivElement>)))>;
11
17
  export declare const ComboboxItemNotFound: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
12
18
  export declare const StyledNativeSelect: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLSelectElement> & import("react").SelectHTMLAttributes<HTMLSelectElement> & Record<never, unknown>>;
13
19
  //# sourceMappingURL=Combobox.styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Combobox.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/Combobox.styles.ts"],"names":[],"mappings":";AAOA,eAAO,MAAM,UAAU,qKAGtB,CAAC;AAEF,eAAO,MAAM,cAAc,qKAY1B,CAAC;AAKF,eAAO,MAAM,aAAa;;;;;;4JAMzB,CAAC;AAEF,eAAO,MAAM,oBAAoB,qKAUhC,CAAC;AAEF,eAAO,MAAM,kBAAkB,iLAY9B,CAAC"}
1
+ {"version":3,"file":"Combobox.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/Combobox.styles.ts"],"names":[],"mappings":";AAOA,eAAO,MAAM,UAAU,qKAGtB,CAAC;AAEF,eAAO,MAAM,cAAc,qKAY1B,CAAC;AAKF,eAAO,MAAM,aAAa;;;;;;;;;;;;qDAMzB,CAAC;AAEF,eAAO,MAAM,oBAAoB,qKAUhC,CAAC;AAEF,eAAO,MAAM,kBAAkB,iLAY9B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../../../src/components/Dropdown/Dropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAGlD,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAM1C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD;;GAEG;AACH,eAAO,MAAM,YAAY,SAAU,UAAU,cAAc,EAAE,aAAa,CAAC,iKA6DtE,CAAC;AAEN,eAAO,MAAM,cAAc;;;mBA/DQ,UAAU,cAAc,EAAE,aAAa,CAAC;;;;;;;;;;;;;;CAgF1E,CAAC"}
1
+ {"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../../../src/components/Dropdown/Dropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAGlD,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAM1C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD;;GAEG;AACH,eAAO,MAAM,YAAY,SAAU,UAAU,cAAc,EAAE,aAAa,CAAC,iKA8DtE,CAAC;AAEN,eAAO,MAAM,cAAc;;;mBAhEQ,UAAU,cAAc,EAAE,aAAa,CAAC;;;;;;;;;;;;;;CAiF1E,CAAC"}
@@ -3,6 +3,12 @@ export declare const StyledPopover: import("@linaria/react").StyledMeta & import
3
3
  view: {
4
4
  css: import("@linaria/core").LinariaClassName;
5
5
  };
6
- }> & import("react").HTMLAttributes<HTMLDivElement> & import("../Popover/Popover.types").CustomPopoverProps & import("react").RefAttributes<HTMLDivElement>>;
6
+ }> & ((import("react").HTMLAttributes<HTMLDivElement> & import("../Popover/Popover.types").CustomPopoverProps & {
7
+ trigger?: "click" | undefined;
8
+ closeOnOverlayClick?: boolean | undefined;
9
+ } & import("react").RefAttributes<HTMLDivElement>) | (import("react").HTMLAttributes<HTMLDivElement> & import("../Popover/Popover.types").CustomPopoverProps & {
10
+ trigger?: "hover" | undefined;
11
+ closeOnBeyondTargetHover?: boolean | undefined;
12
+ } & import("react").RefAttributes<HTMLDivElement>))>;
7
13
  export declare const StyledDropdown: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
8
14
  //# sourceMappingURL=Dropdown.styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Dropdown.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Dropdown/Dropdown.styles.ts"],"names":[],"mappings":";AAUA,eAAO,MAAM,aAAa;;;;4JAIzB,CAAC;AAEF,eAAO,MAAM,cAAc,qKAY1B,CAAC"}
1
+ {"version":3,"file":"Dropdown.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Dropdown/Dropdown.styles.ts"],"names":[],"mappings":";AAUA,eAAO,MAAM,aAAa;;;;;;;;;;oDAIzB,CAAC;AAEF,eAAO,MAAM,cAAc,qKAY1B,CAAC"}
@@ -7,11 +7,11 @@ export declare const POPOVER_PORTAL_ID = "plasma-popover-root";
7
7
  * Всплывающее окно с возможностью позиционирования
8
8
  * и вызова по клику либо ховеру.
9
9
  */
10
- export declare const popoverRoot: (Root: RootProps<HTMLDivElement, PopoverProps>) => React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & import("./Popover.types").CustomPopoverProps & React.RefAttributes<HTMLDivElement>>;
10
+ export declare const popoverRoot: (Root: RootProps<HTMLDivElement, PopoverProps>) => React.ForwardRefExoticComponent<PopoverProps & React.RefAttributes<HTMLDivElement>>;
11
11
  export declare const popoverConfig: {
12
12
  name: string;
13
13
  tag: string;
14
- layout: (Root: RootProps<HTMLDivElement, PopoverProps>) => React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & import("./Popover.types").CustomPopoverProps & React.RefAttributes<HTMLDivElement>>;
14
+ layout: (Root: RootProps<HTMLDivElement, PopoverProps>) => React.ForwardRefExoticComponent<PopoverProps & React.RefAttributes<HTMLDivElement>>;
15
15
  base: string;
16
16
  variations: {
17
17
  view: {
@@ -1 +1 @@
1
- {"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../src/components/Popover/Popover.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+D,MAAM,OAAO,CAAC;AAMpF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAIrD,OAAO,KAAK,EAAoB,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAItE,eAAO,MAAM,cAAc,KAAK,CAAC;AACjC,eAAO,MAAM,iBAAiB,wBAAwB,CAAC;AAEvD;;;GAGG;AACH,eAAO,MAAM,WAAW,SAAU,UAAU,cAAc,EAAE,YAAY,CAAC,+JAgPpE,CAAC;AAEN,eAAO,MAAM,aAAa;;;mBAlPQ,UAAU,cAAc,EAAE,YAAY,CAAC;;;;;;;;;;CA+PxE,CAAC"}
1
+ {"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../src/components/Popover/Popover.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+D,MAAM,OAAO,CAAC;AAMpF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAIrD,OAAO,KAAK,EAAoB,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAItE,eAAO,MAAM,cAAc,KAAK,CAAC;AACjC,eAAO,MAAM,iBAAiB,wBAAwB,CAAC;AAEvD;;;GAGG;AACH,eAAO,MAAM,WAAW,SAAU,UAAU,cAAc,EAAE,YAAY,CAAC,wFAsQnE,CAAC;AAEP,eAAO,MAAM,aAAa;;;mBAxQQ,UAAU,cAAc,EAAE,YAAY,CAAC;;;;;;;;;;CAqRxE,CAAC"}
@@ -1,6 +1,5 @@
1
1
  import { Placement, ComputedPlacement } from '@popperjs/core';
2
2
  import type { HTMLAttributes, ReactNode, SyntheticEvent } from 'react';
3
- export declare type PopoverTrigger = 'hover' | 'click';
4
3
  export declare type PopoverPlacementBasic = ComputedPlacement;
5
4
  export declare type PopoverPlacement = Placement;
6
5
  export declare type CustomPopoverProps = {
@@ -8,12 +7,6 @@ export declare type CustomPopoverProps = {
8
7
  * Всплывающее окно раскрыто или нет.
9
8
  */
10
9
  isOpen?: boolean;
11
- /**
12
- * Способ открытия всплывающего окна - наведение или клик мышью.
13
- * @default
14
- * click
15
- */
16
- trigger?: PopoverTrigger;
17
10
  /**
18
11
  * Сторона открытия окна относительно target элемента.
19
12
  * @default
@@ -60,12 +53,6 @@ export declare type CustomPopoverProps = {
60
53
  * Событие сворачивания/разворачивания всплывающего окна.
61
54
  */
62
55
  onToggle?: (isOpen: boolean, event: SyntheticEvent | Event) => void;
63
- /**
64
- * Закрывать окно при нажатии вне области окна.
65
- * @default
66
- * true
67
- */
68
- closeOnOverlayClick?: boolean;
69
56
  /**
70
57
  * Закрывать окно при нажатии ESC.
71
58
  * @default
@@ -80,5 +67,23 @@ export declare type CustomPopoverProps = {
80
67
  usePortal?: boolean;
81
68
  view?: string;
82
69
  };
83
- export declare type PopoverProps = HTMLAttributes<HTMLDivElement> & CustomPopoverProps;
70
+ export declare type PopoverTrigger = {
71
+ /**
72
+ * Способ открытия всплывающего окна - наведение или клик мышью.
73
+ * @default
74
+ * click
75
+ */
76
+ trigger?: 'click';
77
+ /**
78
+ * Закрывать окно при нажатии вне области окна. (Если trigger === 'click')
79
+ */
80
+ closeOnOverlayClick?: boolean;
81
+ } | {
82
+ trigger?: 'hover';
83
+ /**
84
+ * Закрывать окно при наведении вне области target-элемента. (Если trigger === 'hover')
85
+ */
86
+ closeOnBeyondTargetHover?: boolean;
87
+ };
88
+ export declare type PopoverProps = HTMLAttributes<HTMLDivElement> & CustomPopoverProps & PopoverTrigger;
84
89
  //# sourceMappingURL=Popover.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Popover.types.d.ts","sourceRoot":"","sources":["../../../src/components/Popover/Popover.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEvE,oBAAY,cAAc,GAAG,OAAO,GAAG,OAAO,CAAC;AAE/C,oBAAY,qBAAqB,GAAG,iBAAiB,CAAC;AACtD,oBAAY,gBAAgB,GAAG,SAAS,CAAC;AAEzC,oBAAY,kBAAkB,GAAG;IAC7B;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB;;;;OAIG;IACH,SAAS,CAAC,EAAE,gBAAgB,GAAG,KAAK,CAAC,qBAAqB,CAAC,CAAC;IAC5D;;;;OAIG;IACH,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1B;;OAEG;IACH,KAAK,CAAC,EAAE,UAAU,GAAG,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IAC3D;;OAEG;IACH,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;;OAIG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,cAAc,GAAG,KAAK,KAAK,IAAI,CAAC;IACpE;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,oBAAY,YAAY,GAAG,cAAc,CAAC,cAAc,CAAC,GAAG,kBAAkB,CAAC"}
1
+ {"version":3,"file":"Popover.types.d.ts","sourceRoot":"","sources":["../../../src/components/Popover/Popover.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEvE,oBAAY,qBAAqB,GAAG,iBAAiB,CAAC;AACtD,oBAAY,gBAAgB,GAAG,SAAS,CAAC;AAEzC,oBAAY,kBAAkB,GAAG;IAC7B;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,SAAS,CAAC,EAAE,gBAAgB,GAAG,KAAK,CAAC,qBAAqB,CAAC,CAAC;IAC5D;;;;OAIG;IACH,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1B;;OAEG;IACH,KAAK,CAAC,EAAE,UAAU,GAAG,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IAC3D;;OAEG;IACH,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;;OAIG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,cAAc,GAAG,KAAK,KAAK,IAAI,CAAC;IACpE;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,oBAAY,cAAc,GACpB;IACI;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;CACjC,GACD;IACI,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;CACtC,CAAC;AAER,oBAAY,YAAY,GAAG,cAAc,CAAC,cAAc,CAAC,GAAG,kBAAkB,GAAG,cAAc,CAAC"}
@@ -3,10 +3,16 @@ export declare const StyledRoot: import("@linaria/react").StyledComponent<import
3
3
  export declare const StyledSelect: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
4
4
  export declare const StyledPopover: import("@linaria/react").StyledComponent<{
5
5
  selectWidth?: number | undefined;
6
- } & import("../../engines/types").PropsType<{
6
+ } & (import("../../engines/types").PropsType<{
7
7
  view: {
8
8
  css: import("@linaria/core").LinariaClassName;
9
9
  };
10
- }> & import("react").HTMLAttributes<HTMLDivElement> & import("../Popover/Popover.types").CustomPopoverProps & import("react").RefAttributes<HTMLDivElement>>;
10
+ }> & ((import("react").HTMLAttributes<HTMLDivElement> & import("../Popover/Popover.types").CustomPopoverProps & {
11
+ trigger?: "click" | undefined;
12
+ closeOnOverlayClick?: boolean | undefined;
13
+ } & import("react").RefAttributes<HTMLDivElement>) | (import("react").HTMLAttributes<HTMLDivElement> & import("../Popover/Popover.types").CustomPopoverProps & {
14
+ trigger?: "hover" | undefined;
15
+ closeOnBeyondTargetHover?: boolean | undefined;
16
+ } & import("react").RefAttributes<HTMLDivElement>)))>;
11
17
  export declare const StyledNativeSelect: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLSelectElement> & import("react").SelectHTMLAttributes<HTMLSelectElement> & Record<never, unknown>>;
12
18
  //# sourceMappingURL=Select.styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Select.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.styles.ts"],"names":[],"mappings":";AASA,eAAO,MAAM,UAAU,qKAOtB,CAAC;AAEF,eAAO,MAAM,YAAY,qKAaxB,CAAC;AAKF,eAAO,MAAM,aAAa;;;;;;4JAMzB,CAAC;AAEF,eAAO,MAAM,kBAAkB,iLAwB9B,CAAC"}
1
+ {"version":3,"file":"Select.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.styles.ts"],"names":[],"mappings":";AASA,eAAO,MAAM,UAAU,qKAOtB,CAAC;AAEF,eAAO,MAAM,YAAY,qKAaxB,CAAC;AAKF,eAAO,MAAM,aAAa;;;;;;;;;;;;qDAMzB,CAAC;AAEF,eAAO,MAAM,kBAAkB,iLAwB9B,CAAC"}
@@ -4,5 +4,11 @@ export declare const Popover: import("react").FunctionComponent<import("../../..
4
4
  view: {
5
5
  default: import("@linaria/core").LinariaClassName;
6
6
  };
7
- }> & import("react").HTMLAttributes<HTMLDivElement> & import("../../../../components/Popover/Popover.types").CustomPopoverProps & import("react").RefAttributes<HTMLDivElement>>;
7
+ }> & ((import("react").HTMLAttributes<HTMLDivElement> & import("../../../../components/Popover/Popover.types").CustomPopoverProps & {
8
+ trigger?: "click" | undefined;
9
+ closeOnOverlayClick?: boolean | undefined;
10
+ } & import("react").RefAttributes<HTMLDivElement>) | (import("react").HTMLAttributes<HTMLDivElement> & import("../../../../components/Popover/Popover.types").CustomPopoverProps & {
11
+ trigger?: "hover" | undefined;
12
+ closeOnBeyondTargetHover?: boolean | undefined;
13
+ } & import("react").RefAttributes<HTMLDivElement>))>;
8
14
  //# sourceMappingURL=Popover.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/Popover/Popover.ts"],"names":[],"mappings":";AAKA,YAAY,EAAE,YAAY,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAIlF,eAAO,MAAM,OAAO;;;;gLAA0B,CAAC"}
1
+ {"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/Popover/Popover.ts"],"names":[],"mappings":";AAKA,YAAY,EAAE,YAAY,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAIlF,eAAO,MAAM,OAAO;;;;;;;;;;oDAA0B,CAAC"}
@@ -4,5 +4,11 @@ export declare const Popover: import("react").FunctionComponent<import("../../..
4
4
  view: {
5
5
  default: import("@linaria/core").LinariaClassName;
6
6
  };
7
- }> & import("react").HTMLAttributes<HTMLDivElement> & import("../../../../components/Popover/Popover.types").CustomPopoverProps & import("react").RefAttributes<HTMLDivElement>>;
7
+ }> & ((import("react").HTMLAttributes<HTMLDivElement> & import("../../../../components/Popover/Popover.types").CustomPopoverProps & {
8
+ trigger?: "click" | undefined;
9
+ closeOnOverlayClick?: boolean | undefined;
10
+ } & import("react").RefAttributes<HTMLDivElement>) | (import("react").HTMLAttributes<HTMLDivElement> & import("../../../../components/Popover/Popover.types").CustomPopoverProps & {
11
+ trigger?: "hover" | undefined;
12
+ closeOnBeyondTargetHover?: boolean | undefined;
13
+ } & import("react").RefAttributes<HTMLDivElement>))>;
8
14
  //# sourceMappingURL=Popover.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_web/components/Popover/Popover.ts"],"names":[],"mappings":";AAKA,YAAY,EAAE,YAAY,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAIlF,eAAO,MAAM,OAAO;;;;gLAA0B,CAAC"}
1
+ {"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_web/components/Popover/Popover.ts"],"names":[],"mappings":";AAKA,YAAY,EAAE,YAAY,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAIlF,eAAO,MAAM,OAAO;;;;;;;;;;oDAA0B,CAAC"}
@@ -4,5 +4,11 @@ export declare const Popover: import("react").FunctionComponent<import("../../..
4
4
  view: {
5
5
  default: import("@linaria/core").LinariaClassName;
6
6
  };
7
- }> & import("react").HTMLAttributes<HTMLDivElement> & import("../../../../components/Popover/Popover.types").CustomPopoverProps & import("react").RefAttributes<HTMLDivElement>>;
7
+ }> & ((import("react").HTMLAttributes<HTMLDivElement> & import("../../../../components/Popover/Popover.types").CustomPopoverProps & {
8
+ trigger?: "click" | undefined;
9
+ closeOnOverlayClick?: boolean | undefined;
10
+ } & import("react").RefAttributes<HTMLDivElement>) | (import("react").HTMLAttributes<HTMLDivElement> & import("../../../../components/Popover/Popover.types").CustomPopoverProps & {
11
+ trigger?: "hover" | undefined;
12
+ closeOnBeyondTargetHover?: boolean | undefined;
13
+ } & import("react").RefAttributes<HTMLDivElement>))>;
8
14
  //# sourceMappingURL=Popover.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../../../src/examples/sds_engineer/components/Popover/Popover.ts"],"names":[],"mappings":";AAKA,YAAY,EAAE,YAAY,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAIlF,eAAO,MAAM,OAAO;;;;gLAA0B,CAAC"}
1
+ {"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../../../src/examples/sds_engineer/components/Popover/Popover.ts"],"names":[],"mappings":";AAKA,YAAY,EAAE,YAAY,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAIlF,eAAO,MAAM,OAAO;;;;;;;;;;oDAA0B,CAAC"}