UNPKG

@trellixio/roaster-coffee

Version:
22 lines (19 loc) 952 B
import * as React from 'react'; import { ActionListProvider } from './ActionList.context.js'; import { ActionListDropdown } from './components/ActionListDropdown.js'; import { ActionListTrigger } from './components/ActionListTrigger.js'; import { useDropdown } from './useDropdown.js'; import { ActionListDivider } from './components/ActionListDivider.js'; import { ActionListItem } from './components/ActionListItem.js'; import { ActionListGroup } from './components/ActionListGroup.js'; const ActionList = ({ children, ...restOptions }) => { const dropdown = useDropdown({ ...restOptions }); return /* @__PURE__ */ React.createElement(ActionListProvider, { value: dropdown }, children); }; ActionList.Trigger = ActionListTrigger; ActionList.Dropdown = ActionListDropdown; ActionList.Group = ActionListGroup; ActionList.Divider = ActionListDivider; ActionList.Item = ActionListItem; export { ActionList }; //# sourceMappingURL=ActionList.js.map