@flodesk/grain 9.13.0 → 9.15.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.
|
@@ -28,7 +28,8 @@ export var Dropdown = function Dropdown(_ref) {
|
|
|
28
28
|
|
|
29
29
|
var ItemsRoot = hasPortal ? FloatingPortal : Fragment;
|
|
30
30
|
return ___EmotionJSX(Menu, null, function (_ref2) {
|
|
31
|
-
var open = _ref2.open
|
|
31
|
+
var open = _ref2.open,
|
|
32
|
+
close = _ref2.close;
|
|
32
33
|
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(Menu.Button, {
|
|
33
34
|
as: Fragment,
|
|
34
35
|
ref: reference
|
|
@@ -45,6 +46,11 @@ export var Dropdown = function Dropdown(_ref) {
|
|
|
45
46
|
if (option.type === 'divider') return ___EmotionJSX(MenuItemDivider, {
|
|
46
47
|
key: index
|
|
47
48
|
});
|
|
49
|
+
if (option.type === 'node') return ___EmotionJSX(Fragment, {
|
|
50
|
+
key: index
|
|
51
|
+
}, option.node({
|
|
52
|
+
requestClose: close
|
|
53
|
+
}));
|
|
48
54
|
return ___EmotionJSX(Menu.Item, {
|
|
49
55
|
key: index
|
|
50
56
|
}, function (_ref3) {
|