UNPKG

@dnb/eufemia

Version:

DNB Eufemia Design System UI Library

37 lines 1.1 kB
import _extends from "@babel/runtime/helpers/esm/extends"; import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties"; const _excluded = ["direction", "layout"], _excluded2 = ["className", "children"]; import React from 'react'; import classnames from 'classnames'; import E from '../Element'; const Dl = _ref => { let { direction, layout } = _ref, props = _objectWithoutProperties(_ref, _excluded); if (layout || direction) { props.className = classnames(props.className, `dnb-dl__layout--${layout || direction}`); } return React.createElement(E, _extends({ as: "dl" }, props, { skeleton: false })); }; Dl.Item = _ref2 => { let { className, children } = _ref2, props = _objectWithoutProperties(_ref2, _excluded2); return React.createElement(React.Fragment, null, children, React.createElement(E, _extends({ as: "dd", "aria-hidden": true, className: classnames(className, 'dnb-dl__item') }, props))); }; Dl._supportsSpacingProps = true; export default Dl; //# sourceMappingURL=Dl.js.map