'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});

var _react = require('react');

var _react2 = _interopRequireDefault(_react);

var _propTypes = require('prop-types');

var _propTypes2 = _interopRequireDefault(_propTypes);

var _styledComponents = require('styled-components');

var _styledComponents2 = _interopRequireDefault(_styledComponents);

var _ListItem = require('./ListItem');

var _ListItem2 = _interopRequireDefault(_ListItem);

var _theme = require('../../theme');

var _theme2 = _interopRequireDefault(_theme);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var OrderedList = _styledComponents2.default.ol.withConfig({ displayName: 'OrderedList' }).withConfig({
  displayName: 'OrderedList'
})(['margin:0 0 1em;padding:0;list-style:decimal outside;&:last-child{margin-bottom:0;}& > ol{list-style:lower-latin outside;margin:0 0 0 1em;}& ul li:first-child,& ol li:first-child{margin-top:0.5em;}']);

OrderedList.propTypes = {
  /**
   * Adds a class name to the element.
   */
  className: _propTypes2.default.string,
  /**
   * Adds an id to the element.
   */
  id: _propTypes2.default.string
};

OrderedList.defaultProps = {
  className: null,
  id: null
};

OrderedList.Item = _ListItem2.default;

/**
 * @component
 */
exports.default = OrderedList;