UNPKG

@trellixio/roaster-coffee

Version:
37 lines (31 loc) 1.35 kB
'use strict'; var React = require('react'); var ActionList_context = require('./ActionList.context.js'); var ActionListDropdown = require('./components/ActionListDropdown.js'); var ActionListTrigger = require('./components/ActionListTrigger.js'); var useDropdown = require('./useDropdown.js'); var ActionListDivider = require('./components/ActionListDivider.js'); var ActionListItem = require('./components/ActionListItem.js'); var ActionListGroup = require('./components/ActionListGroup.js'); function _interopNamespaceDefault(e) { var n = Object.create(null); if (e) { for (var k in e) { n[k] = e[k]; } } n.default = e; return Object.freeze(n); } var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React); const ActionList = ({ children, ...restOptions }) => { const dropdown = useDropdown.useDropdown({ ...restOptions }); return /* @__PURE__ */ React__namespace.createElement(ActionList_context.ActionListProvider, { value: dropdown }, children); }; ActionList.Trigger = ActionListTrigger.ActionListTrigger; ActionList.Dropdown = ActionListDropdown.ActionListDropdown; ActionList.Group = ActionListGroup.ActionListGroup; ActionList.Divider = ActionListDivider.ActionListDivider; ActionList.Item = ActionListItem.ActionListItem; exports.ActionList = ActionList; //# sourceMappingURL=ActionList.js.map