@activecollab/components
Version:
ActiveCollab Components
27 lines (26 loc) • 925 B
JavaScript
import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
const _excluded = ["children", "className"];
import React, { forwardRef } from "react";
import { ListItem } from "./ListItem";
import { ListSeparator } from "./ListSeparator";
import { StyledList } from "./Styles";
export const _List = /*#__PURE__*/forwardRef((_ref, ref) => {
let {
children,
className
} = _ref,
props = _objectWithoutPropertiesLoose(_ref, _excluded);
return /*#__PURE__*/React.createElement(StyledList, _extends({
className: className,
ref: ref,
tabIndex: -1
}, props), children);
});
_List.displayName = "List";
// https://github.com/DefinitelyTyped/DefinitelyTyped/issues/34757
export const List = Object.assign({}, _List, {
Item: ListItem,
Separator: ListSeparator
});
//# sourceMappingURL=List.js.map