UNPKG

@nitive/whitepaper-react

Version:

React components automatically generated by whitepaper-bem

211 lines (207 loc) 12.6 kB
function _extends() { _extends = Object.assign || 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); } function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } import React from 'react'; import PropTypes from 'prop-types'; import { Bem } from '../../_internal/bem'; import './_indent-a/decorator_indent-a_auto.post.css'; import './_indent-a/decorator_indent-a_l.post.css'; import './_indent-a/decorator_indent-a_m.post.css'; import './_indent-a/decorator_indent-a_s.post.css'; import './_indent-a/decorator_indent-a_xl.post.css'; import './_indent-a/decorator_indent-a_xs.post.css'; import './_indent-a/decorator_indent-a_xxl.post.css'; import './_indent-a/decorator_indent-a_xxs.post.css'; import './_indent-a/decorator_indent-a_xxxl.post.css'; import './_indent-a/decorator_indent-a_xxxs.post.css'; import './_indent-a/decorator_indent-a_xxxxl.post.css'; import './_indent-a/decorator_indent-a_xxxxxl.post.css'; import './_indent-a/decorator_indent-a_xxxxxxl.post.css'; import './_indent-b/decorator_indent-b_l.post.css'; import './_indent-b/decorator_indent-b_m.post.css'; import './_indent-b/decorator_indent-b_s.post.css'; import './_indent-b/decorator_indent-b_xl.post.css'; import './_indent-b/decorator_indent-b_xs.post.css'; import './_indent-b/decorator_indent-b_xxl.post.css'; import './_indent-b/decorator_indent-b_xxs.post.css'; import './_indent-b/decorator_indent-b_xxxl.post.css'; import './_indent-b/decorator_indent-b_xxxs.post.css'; import './_indent-b/decorator_indent-b_xxxxl.post.css'; import './_indent-b/decorator_indent-b_xxxxxl.post.css'; import './_indent-b/decorator_indent-b_xxxxxxl.post.css'; import './_indent-h/decorator_indent-h_auto.post.css'; import './_indent-h/decorator_indent-h_l.post.css'; import './_indent-h/decorator_indent-h_m.post.css'; import './_indent-h/decorator_indent-h_s.post.css'; import './_indent-h/decorator_indent-h_xl.post.css'; import './_indent-h/decorator_indent-h_xs.post.css'; import './_indent-h/decorator_indent-h_xxl.post.css'; import './_indent-h/decorator_indent-h_xxs.post.css'; import './_indent-h/decorator_indent-h_xxxl.post.css'; import './_indent-h/decorator_indent-h_xxxs.post.css'; import './_indent-h/decorator_indent-h_xxxxl.post.css'; import './_indent-h/decorator_indent-h_xxxxxl.post.css'; import './_indent-h/decorator_indent-h_xxxxxxl.post.css'; import './_indent-r/decorator_indent-r_l.post.css'; import './_indent-r/decorator_indent-r_m.post.css'; import './_indent-r/decorator_indent-r_s.post.css'; import './_indent-r/decorator_indent-r_xl.post.css'; import './_indent-r/decorator_indent-r_xs.post.css'; import './_indent-r/decorator_indent-r_xxl.post.css'; import './_indent-r/decorator_indent-r_xxs.post.css'; import './_indent-r/decorator_indent-r_xxxl.post.css'; import './_indent-r/decorator_indent-r_xxxxl.post.css'; import './_indent-r/decorator_indent-r_xxxs.post.css'; import './_indent-r/decorator_indent-r_xxxxxl.post.css'; import './_indent-r/decorator_indent-r_xxxxxxl.post.css'; import './_indent-l/decorator_indent-l_l.post.css'; import './_indent-l/decorator_indent-l_m.post.css'; import './_indent-l/decorator_indent-l_s.post.css'; import './_indent-l/decorator_indent-l_xl.post.css'; import './_indent-l/decorator_indent-l_xs.post.css'; import './_indent-l/decorator_indent-l_xxl.post.css'; import './_indent-l/decorator_indent-l_xxs.post.css'; import './_indent-l/decorator_indent-l_xxxl.post.css'; import './_indent-l/decorator_indent-l_xxxs.post.css'; import './_indent-l/decorator_indent-l_xxxxl.post.css'; import './_indent-l/decorator_indent-l_xxxxxl.post.css'; import './_indent-l/decorator_indent-l_xxxxxxl.post.css'; import './_indent-t/decorator_indent-t_l.post.css'; import './_indent-t/decorator_indent-t_s.post.css'; import './_indent-t/decorator_indent-t_m.post.css'; import './_indent-t/decorator_indent-t_xl.post.css'; import './_indent-t/decorator_indent-t_xs.post.css'; import './_indent-t/decorator_indent-t_xxs.post.css'; import './_indent-t/decorator_indent-t_xxxl.post.css'; import './_indent-t/decorator_indent-t_xxl.post.css'; import './_indent-t/decorator_indent-t_xxxs.post.css'; import './_indent-t/decorator_indent-t_xxxxl.post.css'; import './_indent-t/decorator_indent-t_xxxxxl.post.css'; import './_indent-t/decorator_indent-t_xxxxxxl.post.css'; import './_indent-v/decorator_indent-v_auto.post.css'; import './_indent-v/decorator_indent-v_l.post.css'; import './_indent-v/decorator_indent-v_m.post.css'; import './_indent-v/decorator_indent-v_s.post.css'; import './_indent-v/decorator_indent-v_xl.post.css'; import './_indent-v/decorator_indent-v_xs.post.css'; import './_indent-v/decorator_indent-v_xxl.post.css'; import './_indent-v/decorator_indent-v_xxs.post.css'; import './_indent-v/decorator_indent-v_xxxs.post.css'; import './_indent-v/decorator_indent-v_xxxl.post.css'; import './_indent-v/decorator_indent-v_xxxxxl.post.css'; import './_indent-v/decorator_indent-v_xxxxl.post.css'; import './_indent-v/decorator_indent-v_xxxxxxl.post.css'; import './_space-a/decorator_space-a_l.post.css'; import './_space-a/decorator_space-a_s.post.css'; import './_space-a/decorator_space-a_m.post.css'; import './_space-a/decorator_space-a_xl.post.css'; import './_space-a/decorator_space-a_xs.post.css'; import './_space-a/decorator_space-a_xxl.post.css'; import './_space-a/decorator_space-a_xxs.post.css'; import './_space-a/decorator_space-a_xxxl.post.css'; import './_space-a/decorator_space-a_xxxs.post.css'; import './_space-a/decorator_space-a_xxxxl.post.css'; import './_space-a/decorator_space-a_xxxxxl.post.css'; import './_space-a/decorator_space-a_xxxxxxl.post.css'; import './_space-b/decorator_space-b_l.post.css'; import './_space-b/decorator_space-b_m.post.css'; import './_space-b/decorator_space-b_s.post.css'; import './_space-b/decorator_space-b_xl.post.css'; import './_space-b/decorator_space-b_xs.post.css'; import './_space-b/decorator_space-b_xxl.post.css'; import './_space-b/decorator_space-b_xxs.post.css'; import './_space-b/decorator_space-b_xxxl.post.css'; import './_space-b/decorator_space-b_xxxs.post.css'; import './_space-b/decorator_space-b_xxxxl.post.css'; import './_space-b/decorator_space-b_xxxxxl.post.css'; import './_space-b/decorator_space-b_xxxxxxl.post.css'; import './_space-h/decorator_space-h_l.post.css'; import './_space-h/decorator_space-h_m.post.css'; import './_space-h/decorator_space-h_s.post.css'; import './_space-h/decorator_space-h_xl.post.css'; import './_space-h/decorator_space-h_xxl.post.css'; import './_space-h/decorator_space-h_xxs.post.css'; import './_space-h/decorator_space-h_xs.post.css'; import './_space-h/decorator_space-h_xxxl.post.css'; import './_space-h/decorator_space-h_xxxs.post.css'; import './_space-h/decorator_space-h_xxxxxl.post.css'; import './_space-h/decorator_space-h_xxxxl.post.css'; import './_space-h/decorator_space-h_xxxxxxl.post.css'; import './_space-l/decorator_space-l_l.post.css'; import './_space-l/decorator_space-l_m.post.css'; import './_space-l/decorator_space-l_s.post.css'; import './_space-l/decorator_space-l_xl.post.css'; import './_space-l/decorator_space-l_xs.post.css'; import './_space-l/decorator_space-l_xxl.post.css'; import './_space-l/decorator_space-l_xxs.post.css'; import './_space-l/decorator_space-l_xxxl.post.css'; import './_space-l/decorator_space-l_xxxs.post.css'; import './_space-l/decorator_space-l_xxxxl.post.css'; import './_space-l/decorator_space-l_xxxxxl.post.css'; import './_space-l/decorator_space-l_xxxxxxl.post.css'; import './_space-r/decorator_space-r_m.post.css'; import './_space-r/decorator_space-r_l.post.css'; import './_space-r/decorator_space-r_xl.post.css'; import './_space-r/decorator_space-r_s.post.css'; import './_space-r/decorator_space-r_xs.post.css'; import './_space-r/decorator_space-r_xxl.post.css'; import './_space-r/decorator_space-r_xxs.post.css'; import './_space-r/decorator_space-r_xxxl.post.css'; import './_space-r/decorator_space-r_xxxs.post.css'; import './_space-r/decorator_space-r_xxxxl.post.css'; import './_space-r/decorator_space-r_xxxxxl.post.css'; import './_space-r/decorator_space-r_xxxxxxl.post.css'; import './_space-t/decorator_space-t_l.post.css'; import './_space-t/decorator_space-t_m.post.css'; import './_space-t/decorator_space-t_s.post.css'; import './_space-t/decorator_space-t_xl.post.css'; import './_space-t/decorator_space-t_xs.post.css'; import './_space-t/decorator_space-t_xxl.post.css'; import './_space-t/decorator_space-t_xxs.post.css'; import './_space-t/decorator_space-t_xxxl.post.css'; import './_space-t/decorator_space-t_xxxs.post.css'; import './_space-t/decorator_space-t_xxxxl.post.css'; import './_space-t/decorator_space-t_xxxxxl.post.css'; import './_space-t/decorator_space-t_xxxxxxl.post.css'; import './_space-v/decorator_space-v_l.post.css'; import './_space-v/decorator_space-v_s.post.css'; import './_space-v/decorator_space-v_m.post.css'; import './_space-v/decorator_space-v_xl.post.css'; import './_space-v/decorator_space-v_xs.post.css'; import './_space-v/decorator_space-v_xxl.post.css'; import './_space-v/decorator_space-v_xxxl.post.css'; import './_space-v/decorator_space-v_xxs.post.css'; import './_space-v/decorator_space-v_xxxs.post.css'; import './_space-v/decorator_space-v_xxxxl.post.css'; import './_space-v/decorator_space-v_xxxxxl.post.css'; import './_space-v/decorator_space-v_xxxxxxl.post.css'; var modNames = ['indentA', 'indentH', 'indentB', 'indentL', 'indentR', 'indentT', 'indentV', 'spaceA', 'spaceB', 'spaceH', 'spaceL', 'spaceT', 'spaceR', 'spaceV']; export function Decorator(_ref) { var additionalModNames = _ref.modNames, props = _objectWithoutProperties(_ref, ["modNames"]); return React.createElement(Bem, _extends({ block: "decorator" }, props, { modNames: modNames.concat(additionalModNames || []), getHtml: undefined })); } Decorator.propTypes = { tag: PropTypes.string, className: PropTypes.string, modNames: PropTypes.arrayOf(PropTypes.string), indentA: PropTypes.oneOf(['auto', 'l', 'm', 'xl', 's', 'xs', 'xxl', 'xxs', 'xxxl', 'xxxs', 'xxxxl', 'xxxxxl', 'xxxxxxl']), indentH: PropTypes.oneOf(['auto', 'l', 'm', 'xl', 's', 'xs', 'xxl', 'xxs', 'xxxl', 'xxxs', 'xxxxl', 'xxxxxl', 'xxxxxxl']), indentB: PropTypes.oneOf(['l', 'm', 's', 'xl', 'xs', 'xxs', 'xxl', 'xxxl', 'xxxs', 'xxxxl', 'xxxxxl', 'xxxxxxl']), indentL: PropTypes.oneOf(['l', 'm', 's', 'xl', 'xs', 'xxl', 'xxs', 'xxxl', 'xxxs', 'xxxxl', 'xxxxxl', 'xxxxxxl']), indentR: PropTypes.oneOf(['l', 'm', 's', 'xl', 'xs', 'xxl', 'xxs', 'xxxl', 'xxxs', 'xxxxl', 'xxxxxl', 'xxxxxxl']), indentT: PropTypes.oneOf(['l', 'm', 's', 'xl', 'xs', 'xxl', 'xxs', 'xxxl', 'xxxs', 'xxxxl', 'xxxxxl', 'xxxxxxl']), indentV: PropTypes.oneOf(['auto', 'l', 'm', 's', 'xl', 'xs', 'xxl', 'xxs', 'xxxl', 'xxxs', 'xxxxl', 'xxxxxl', 'xxxxxxl']), spaceA: PropTypes.oneOf(['l', 'm', 's', 'xl', 'xxl', 'xxs', 'xxxl', 'xxxs', 'xxxxl', 'xxxxxl', 'xxxxxxl', 'xs']), spaceB: PropTypes.oneOf(['l', 'm', 's', 'xl', 'xs', 'xxl', 'xxs', 'xxxl', 'xxxs', 'xxxxl', 'xxxxxl', 'xxxxxxl']), spaceH: PropTypes.oneOf(['l', 'm', 's', 'xs', 'xl', 'xxl', 'xxs', 'xxxl', 'xxxs', 'xxxxl', 'xxxxxl', 'xxxxxxl']), spaceL: PropTypes.oneOf(['l', 'm', 's', 'xl', 'xs', 'xxl', 'xxs', 'xxxl', 'xxxs', 'xxxxl', 'xxxxxl', 'xxxxxxl']), spaceT: PropTypes.oneOf(['l', 'm', 's', 'xl', 'xs', 'xxl', 'xxs', 'xxxl', 'xxxs', 'xxxxl', 'xxxxxl', 'xxxxxxl']), spaceR: PropTypes.oneOf(['m', 's', 'xl', 'xs', 'xxl', 'xxs', 'xxxl', 'xxxs', 'xxxxl', 'xxxxxl', 'l', 'xxxxxxl']), spaceV: PropTypes.oneOf(['l', 'm', 's', 'xl', 'xs', 'xxl', 'xxs', 'xxxl', 'xxxs', 'xxxxl', 'xxxxxl', 'xxxxxxl']) };