@flodesk/grain 10.5.5 → 10.5.6
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.
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
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); }
|
|
2
|
+
|
|
1
3
|
import "core-js/modules/es.array.map.js";
|
|
4
|
+
import "core-js/modules/es.object.assign.js";
|
|
2
5
|
import PropTypes from 'prop-types';
|
|
3
6
|
import React, { Fragment, useEffect } from 'react';
|
|
4
7
|
import { Menu } from '@headlessui/react';
|
|
@@ -93,14 +96,14 @@ export var Dropdown = function Dropdown(_ref2) {
|
|
|
93
96
|
key: index
|
|
94
97
|
}, function (_ref4) {
|
|
95
98
|
var active = _ref4.active;
|
|
96
|
-
return ___EmotionJSX(MenuItem, {
|
|
99
|
+
return ___EmotionJSX(MenuItem, _extends({
|
|
97
100
|
icon: option.icon,
|
|
98
101
|
isActive: active,
|
|
99
102
|
onClick: handleMenuItemClick(option),
|
|
100
103
|
variant: option.variant,
|
|
101
104
|
hasEllipsis: true,
|
|
102
105
|
checkVariant: "none"
|
|
103
|
-
}, option.content);
|
|
106
|
+
}, option), option.content);
|
|
104
107
|
});
|
|
105
108
|
})))));
|
|
106
109
|
});
|