@dreamcommerce/aurora 3.0.0-149 → 3.0.0-150

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.
Files changed (22) hide show
  1. package/build/cjs/packages/aurora/src/components/action_list/action_list.js +32 -2
  2. package/build/cjs/packages/aurora/src/components/action_list/action_list.js.map +1 -1
  3. package/build/cjs/packages/aurora/src/components/action_list/components/action_list_content.js +9 -2
  4. package/build/cjs/packages/aurora/src/components/action_list/components/action_list_content.js.map +1 -1
  5. package/build/cjs/packages/aurora/src/components/action_list/components/action_list_sub_content.js +8 -1
  6. package/build/cjs/packages/aurora/src/components/action_list/components/action_list_sub_content.js.map +1 -1
  7. package/build/cjs/packages/aurora/src/components/action_list/context/action_list_context.js +18 -0
  8. package/build/cjs/packages/aurora/src/components/action_list/context/action_list_context.js.map +1 -0
  9. package/build/esm/packages/aurora/src/components/action_list/action_list.d.ts +2 -2
  10. package/build/esm/packages/aurora/src/components/action_list/action_list.js +33 -3
  11. package/build/esm/packages/aurora/src/components/action_list/action_list.js.map +1 -1
  12. package/build/esm/packages/aurora/src/components/action_list/action_list_types.d.ts +10 -0
  13. package/build/esm/packages/aurora/src/components/action_list/action_list_types.js +2 -0
  14. package/build/esm/packages/aurora/src/components/action_list/action_list_types.js.map +1 -0
  15. package/build/esm/packages/aurora/src/components/action_list/components/action_list_content.js +11 -4
  16. package/build/esm/packages/aurora/src/components/action_list/components/action_list_content.js.map +1 -1
  17. package/build/esm/packages/aurora/src/components/action_list/components/action_list_sub_content.js +10 -3
  18. package/build/esm/packages/aurora/src/components/action_list/components/action_list_sub_content.js.map +1 -1
  19. package/build/esm/packages/aurora/src/components/action_list/context/action_list_context.d.ts +3 -0
  20. package/build/esm/packages/aurora/src/components/action_list/context/action_list_context.js +10 -0
  21. package/build/esm/packages/aurora/src/components/action_list/context/action_list_context.js.map +1 -0
  22. package/package.json +1 -1
@@ -5,21 +5,51 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var React = require('react');
6
6
  var _rollupPluginBabelHelpers = require('../../../../../_virtual/_rollupPluginBabelHelpers.js');
7
7
  var DropdownMenuPrimitive = require('@radix-ui/react-dropdown-menu');
8
+ var action_list_context = require('./context/action_list_context.js');
8
9
 
9
10
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
10
11
 
11
12
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
12
13
 
13
- var _excluded = ["children", "onOpenChange"];
14
+ var _excluded = ["children", "onOpenChange", "portal", "$container"];
14
15
  var ActionList = function ActionList(_ref) {
15
16
  var children = _ref.children,
16
17
  handleOpenChange = _ref.onOpenChange,
18
+ portal = _ref.portal,
19
+ $container = _ref.$container,
17
20
  props = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
21
+ var _useContext = React.useContext(action_list_context.ActionListContext),
22
+ initialPointerEventsOnContainer = _useContext.initialPointerEventsOnContainer;
23
+ React.useEffect(function () {
24
+ var observer = new MutationObserver(function (mutations) {
25
+ mutations.forEach(function (_ref2) {
26
+ var _target$style;
27
+ var target = _ref2.target;
28
+ if (((_target$style = target.style) === null || _target$style === void 0 ? void 0 : _target$style.pointerEvents) === 'none') target.style.pointerEvents = initialPointerEventsOnContainer !== null && initialPointerEventsOnContainer !== void 0 ? initialPointerEventsOnContainer : '';
29
+ if (!target.getAttribute('style')) target.removeAttribute('style');
30
+ });
31
+ });
32
+ observer.observe(document.body, {
33
+ attributes: true,
34
+ attributeFilter: ['style']
35
+ });
36
+ return function () {
37
+ observer.disconnect();
38
+ };
39
+ }, []);
18
40
  return /*#__PURE__*/React__default['default'].createElement(DropdownMenuPrimitive.Root, _rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, props), {}, {
19
41
  onOpenChange: function onOpenChange(isOpen) {
42
+ console.log('isOpen', isOpen);
43
+ console.log('initialPointerEventsOnContainer', document.body.style.pointerEvents);
20
44
  handleOpenChange === null || handleOpenChange === void 0 ? void 0 : handleOpenChange(isOpen);
21
45
  }
22
- }), children);
46
+ }), /*#__PURE__*/React__default['default'].createElement(action_list_context.ActionListContext.Provider, {
47
+ value: {
48
+ portal: portal,
49
+ $container: $container,
50
+ initialPointerEventsOnContainer: document.body.style.pointerEvents
51
+ }
52
+ }, children));
23
53
  };
24
54
 
25
55
  exports.ActionList = ActionList;
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
1
+ {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -6,6 +6,7 @@ var React = require('react');
6
6
  var _rollupPluginBabelHelpers = require('../../../../../../_virtual/_rollupPluginBabelHelpers.js');
7
7
  var cn = require('../../../utilities/cn.js');
8
8
  var DropdownMenuPrimitive = require('@radix-ui/react-dropdown-menu');
9
+ var action_list_context = require('../context/action_list_context.js');
9
10
 
10
11
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
11
12
 
@@ -17,12 +18,18 @@ var ActionListContent = /*#__PURE__*/React__default['default'].forwardRef(functi
17
18
  _ref$sideOffset = _ref.sideOffset,
18
19
  sideOffset = _ref$sideOffset === void 0 ? 4 : _ref$sideOffset,
19
20
  props = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
20
- return /*#__PURE__*/React__default['default'].createElement(DropdownMenuPrimitive.Portal, null, /*#__PURE__*/React__default['default'].createElement(DropdownMenuPrimitive.Content, _rollupPluginBabelHelpers.objectSpread2({
21
+ var _useContext = React.useContext(action_list_context.ActionListContext),
22
+ portal = _useContext.portal,
23
+ $container = _useContext.$container;
24
+ var content = /*#__PURE__*/React__default['default'].createElement(DropdownMenuPrimitive.Content, _rollupPluginBabelHelpers.objectSpread2({
21
25
  "data-test-el": "action-list-content",
22
26
  ref: ref,
23
27
  sideOffset: sideOffset,
24
28
  className: cn.cn('aurora-z-50 aurora-bg aurora-flex aurora-flex-col aurora-gap-1 aurora-overflow-hidden aurora-rounded-8 aurora-border aurora-p-2 aurora-shadow-m data-[state=open]:aurora-animate-in data-[state=closed]:aurora-animate-out data-[state=closed]:aurora-fade-out-0 data-[state=open]:aurora-fade-in-0 data-[state=closed]:aurora-zoom-out-95 data-[state=open]:aurora-zoom-in-95 data-[side=bottom]:aurora-slide-in-from-top-2 data-[side=left]:aurora-slide-in-from-right-2 data-[side=right]:aurora-slide-in-from-left-2 data-[side=top]:aurora-slide-in-from-bottom-2', className)
25
- }, props)));
29
+ }, props));
30
+ return portal ? /*#__PURE__*/React__default['default'].createElement(DropdownMenuPrimitive.Portal, {
31
+ container: $container
32
+ }, content) : content;
26
33
  });
27
34
  ActionListContent.displayName = 'ActionListContent';
28
35
 
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
1
+ {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -6,6 +6,7 @@ var React = require('react');
6
6
  var _rollupPluginBabelHelpers = require('../../../../../../_virtual/_rollupPluginBabelHelpers.js');
7
7
  var cn = require('../../../utilities/cn.js');
8
8
  var DropdownMenuPrimitive = require('@radix-ui/react-dropdown-menu');
9
+ var action_list_context = require('../context/action_list_context.js');
9
10
 
10
11
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
11
12
 
@@ -15,11 +16,17 @@ var _excluded = ["className"];
15
16
  var ActionListSubContent = /*#__PURE__*/React__default['default'].forwardRef(function (_ref, ref) {
16
17
  var className = _ref.className,
17
18
  props = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
18
- return /*#__PURE__*/React__default['default'].createElement(DropdownMenuPrimitive.SubContent, _rollupPluginBabelHelpers.objectSpread2({
19
+ var _useContext = React.useContext(action_list_context.ActionListContext),
20
+ $container = _useContext.$container,
21
+ portal = _useContext.portal;
22
+ var content = /*#__PURE__*/React__default['default'].createElement(DropdownMenuPrimitive.SubContent, _rollupPluginBabelHelpers.objectSpread2({
19
23
  ref: ref,
20
24
  "data-test-el": "action-list-sub-content",
21
25
  className: cn.cn('aurora-z-50 aurora-bg aurora-flex aurora-flex-col aurora-gap-1 aurora-min-w-[8rem] aurora-overflow-hidden aurora-rounded-8 aurora-border aurora-p-2 aurora-shadow-m data-[state=open]:aurora-animate-in data-[state=closed]:aurora-animate-out data-[state=closed]:aurora-fade-out-0 data-[state=open]:aurora-fade-in-0 data-[state=closed]:aurora-zoom-out-95 data-[state=open]:aurora-zoom-in-95 data-[side=bottom]:aurora-slide-in-from-top-2 data-[side=left]:aurora-slide-in-from-right-2 data-[side=right]:aurora-slide-in-from-left-2 data-[side=top]:aurora-slide-in-from-bottom-2', className)
22
26
  }, props));
27
+ return portal ? /*#__PURE__*/React__default['default'].createElement(DropdownMenuPrimitive.Portal, {
28
+ container: $container
29
+ }, content) : content;
23
30
  });
24
31
  ActionListSubContent.displayName = 'ActionListSubContent';
25
32
 
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
1
+ {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -0,0 +1,18 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var React = require('react');
6
+
7
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
+
9
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
10
+
11
+ var ActionListContext = /*#__PURE__*/React__default['default'].createContext({
12
+ portal: true,
13
+ $container: document.body,
14
+ initialPointerEventsOnContainer: ''
15
+ });
16
+
17
+ exports.ActionListContext = ActionListContext;
18
+ //# sourceMappingURL=action_list_context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import { PropsWithChildren } from 'react';
3
- import { DropdownMenuProps } from '@radix-ui/react-dropdown-menu';
4
- export declare const ActionList: ({ children, onOpenChange: handleOpenChange, ...props }: PropsWithChildren<DropdownMenuProps>) => React.JSX.Element;
3
+ import { TActionListProps } from "./action_list_types";
4
+ export declare const ActionList: ({ children, onOpenChange: handleOpenChange, portal, $container, ...props }: PropsWithChildren<TActionListProps>) => React.JSX.Element;
@@ -1,17 +1,47 @@
1
- import React from 'react';
1
+ import React, { useContext, useEffect } from 'react';
2
2
  import { objectWithoutProperties as _objectWithoutProperties, objectSpread2 as _objectSpread2 } from '../../../../../_virtual/_rollupPluginBabelHelpers.js';
3
3
  import { Root } from '@radix-ui/react-dropdown-menu';
4
+ import { ActionListContext } from './context/action_list_context.js';
4
5
 
5
- var _excluded = ["children", "onOpenChange"];
6
+ var _excluded = ["children", "onOpenChange", "portal", "$container"];
6
7
  var ActionList = function ActionList(_ref) {
7
8
  var children = _ref.children,
8
9
  handleOpenChange = _ref.onOpenChange,
10
+ portal = _ref.portal,
11
+ $container = _ref.$container,
9
12
  props = _objectWithoutProperties(_ref, _excluded);
13
+ var _useContext = useContext(ActionListContext),
14
+ initialPointerEventsOnContainer = _useContext.initialPointerEventsOnContainer;
15
+ useEffect(function () {
16
+ var observer = new MutationObserver(function (mutations) {
17
+ mutations.forEach(function (_ref2) {
18
+ var _target$style;
19
+ var target = _ref2.target;
20
+ if (((_target$style = target.style) === null || _target$style === void 0 ? void 0 : _target$style.pointerEvents) === 'none') target.style.pointerEvents = initialPointerEventsOnContainer !== null && initialPointerEventsOnContainer !== void 0 ? initialPointerEventsOnContainer : '';
21
+ if (!target.getAttribute('style')) target.removeAttribute('style');
22
+ });
23
+ });
24
+ observer.observe(document.body, {
25
+ attributes: true,
26
+ attributeFilter: ['style']
27
+ });
28
+ return function () {
29
+ observer.disconnect();
30
+ };
31
+ }, []);
10
32
  return /*#__PURE__*/React.createElement(Root, _objectSpread2(_objectSpread2({}, props), {}, {
11
33
  onOpenChange: function onOpenChange(isOpen) {
34
+ console.log('isOpen', isOpen);
35
+ console.log('initialPointerEventsOnContainer', document.body.style.pointerEvents);
12
36
  handleOpenChange === null || handleOpenChange === void 0 ? void 0 : handleOpenChange(isOpen);
13
37
  }
14
- }), children);
38
+ }), /*#__PURE__*/React.createElement(ActionListContext.Provider, {
39
+ value: {
40
+ portal: portal,
41
+ $container: $container,
42
+ initialPointerEventsOnContainer: document.body.style.pointerEvents
43
+ }
44
+ }, children));
15
45
  };
16
46
 
17
47
  export { ActionList };
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
1
+ {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -0,0 +1,10 @@
1
+ import { DropdownMenuPortalProps, DropdownMenuProps } from '@radix-ui/react-dropdown-menu';
2
+ export declare type TActionListProps = DropdownMenuProps & DropdownMenuPortalProps & {
3
+ portal?: boolean;
4
+ $container?: HTMLElement;
5
+ };
6
+ export declare type TActionListContext = {
7
+ portal?: boolean;
8
+ $container?: HTMLElement;
9
+ initialPointerEventsOnContainer?: string;
10
+ };
@@ -0,0 +1,2 @@
1
+ import '@radix-ui/react-dropdown-menu';
2
+ //# sourceMappingURL=action_list_types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"action_list_types.js","sourceRoot":"","sources":["../../../../../../../src/components/action_list/action_list_types.ts"],"names":[],"mappings":"AAAA,OAA2D,+BAA+B,CAAC"}
@@ -1,7 +1,8 @@
1
- import React from 'react';
1
+ import React, { useContext } from 'react';
2
2
  import { objectWithoutProperties as _objectWithoutProperties, objectSpread2 as _objectSpread2 } from '../../../../../../_virtual/_rollupPluginBabelHelpers.js';
3
3
  import { cn } from '../../../utilities/cn.js';
4
- import { Portal, Content } from '@radix-ui/react-dropdown-menu';
4
+ import { Content, Portal } from '@radix-ui/react-dropdown-menu';
5
+ import { ActionListContext } from '../context/action_list_context.js';
5
6
 
6
7
  var _excluded = ["className", "sideOffset"];
7
8
  var ActionListContent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
@@ -9,12 +10,18 @@ var ActionListContent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
9
10
  _ref$sideOffset = _ref.sideOffset,
10
11
  sideOffset = _ref$sideOffset === void 0 ? 4 : _ref$sideOffset,
11
12
  props = _objectWithoutProperties(_ref, _excluded);
12
- return /*#__PURE__*/React.createElement(Portal, null, /*#__PURE__*/React.createElement(Content, _objectSpread2({
13
+ var _useContext = useContext(ActionListContext),
14
+ portal = _useContext.portal,
15
+ $container = _useContext.$container;
16
+ var content = /*#__PURE__*/React.createElement(Content, _objectSpread2({
13
17
  "data-test-el": "action-list-content",
14
18
  ref: ref,
15
19
  sideOffset: sideOffset,
16
20
  className: cn('aurora-z-50 aurora-bg aurora-flex aurora-flex-col aurora-gap-1 aurora-overflow-hidden aurora-rounded-8 aurora-border aurora-p-2 aurora-shadow-m data-[state=open]:aurora-animate-in data-[state=closed]:aurora-animate-out data-[state=closed]:aurora-fade-out-0 data-[state=open]:aurora-fade-in-0 data-[state=closed]:aurora-zoom-out-95 data-[state=open]:aurora-zoom-in-95 data-[side=bottom]:aurora-slide-in-from-top-2 data-[side=left]:aurora-slide-in-from-right-2 data-[side=right]:aurora-slide-in-from-left-2 data-[side=top]:aurora-slide-in-from-bottom-2', className)
17
- }, props)));
21
+ }, props));
22
+ return portal ? /*#__PURE__*/React.createElement(Portal, {
23
+ container: $container
24
+ }, content) : content;
18
25
  });
19
26
  ActionListContent.displayName = 'ActionListContent';
20
27
 
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
1
+ {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -1,17 +1,24 @@
1
- import React from 'react';
1
+ import React, { useContext } from 'react';
2
2
  import { objectWithoutProperties as _objectWithoutProperties, objectSpread2 as _objectSpread2 } from '../../../../../../_virtual/_rollupPluginBabelHelpers.js';
3
3
  import { cn } from '../../../utilities/cn.js';
4
- import { SubContent } from '@radix-ui/react-dropdown-menu';
4
+ import { SubContent, Portal } from '@radix-ui/react-dropdown-menu';
5
+ import { ActionListContext } from '../context/action_list_context.js';
5
6
 
6
7
  var _excluded = ["className"];
7
8
  var ActionListSubContent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
8
9
  var className = _ref.className,
9
10
  props = _objectWithoutProperties(_ref, _excluded);
10
- return /*#__PURE__*/React.createElement(SubContent, _objectSpread2({
11
+ var _useContext = useContext(ActionListContext),
12
+ $container = _useContext.$container,
13
+ portal = _useContext.portal;
14
+ var content = /*#__PURE__*/React.createElement(SubContent, _objectSpread2({
11
15
  ref: ref,
12
16
  "data-test-el": "action-list-sub-content",
13
17
  className: cn('aurora-z-50 aurora-bg aurora-flex aurora-flex-col aurora-gap-1 aurora-min-w-[8rem] aurora-overflow-hidden aurora-rounded-8 aurora-border aurora-p-2 aurora-shadow-m data-[state=open]:aurora-animate-in data-[state=closed]:aurora-animate-out data-[state=closed]:aurora-fade-out-0 data-[state=open]:aurora-fade-in-0 data-[state=closed]:aurora-zoom-out-95 data-[state=open]:aurora-zoom-in-95 data-[side=bottom]:aurora-slide-in-from-top-2 data-[side=left]:aurora-slide-in-from-right-2 data-[side=right]:aurora-slide-in-from-left-2 data-[side=top]:aurora-slide-in-from-bottom-2', className)
14
18
  }, props));
19
+ return portal ? /*#__PURE__*/React.createElement(Portal, {
20
+ container: $container
21
+ }, content) : content;
15
22
  });
16
23
  ActionListSubContent.displayName = 'ActionListSubContent';
17
24
 
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
1
+ {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -0,0 +1,3 @@
1
+ import { TActionListContext } from "../action_list_types";
2
+ import React from 'react';
3
+ export declare const ActionListContext: React.Context<TActionListContext>;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+
3
+ var ActionListContext = /*#__PURE__*/React.createContext({
4
+ portal: true,
5
+ $container: document.body,
6
+ initialPointerEventsOnContainer: ''
7
+ });
8
+
9
+ export { ActionListContext };
10
+ //# sourceMappingURL=action_list_context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@dreamcommerce/aurora",
3
3
  "packageManager": "yarn@3.2.0",
4
4
  "sideEffects": false,
5
- "version": "3.0.0-149",
5
+ "version": "3.0.0-150",
6
6
  "description": "aurora",
7
7
  "author": "zefirek",
8
8
  "license": "MIT",