"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.Group = Group;
var _react = _interopRequireDefault(require("react"));
var _styledComponents = _interopRequireDefault(require("styled-components"));
var _ = require("../../..");
var _excluded = ["label", "children"];
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
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; }
var NormalizedUl = _styledComponents.default.ul.withConfig({
  displayName: "Group__NormalizedUl",
  componentId: "sc-d7fb4u-0"
})(["list-style-type:none;padding:0;margin:0;"]);
var StyledTypography = (0, _styledComponents.default)(_.Typography).withConfig({
  displayName: "Group__StyledTypography",
  componentId: "sc-d7fb4u-1"
})(["padding:", ";display:inline-block;"], function (p) {
  return "".concat(p.theme.spacing.unit(2), "px\n    ").concat(p.theme.spacing.unit(3), "px\n    ").concat(p.theme.spacing.unit(1), "px\n    ").concat(p.theme.spacing.unit(3), "px\n    ");
});
function Group(props) {
  var label = props.label,
    children = props.children,
    rest = _objectWithoutProperties(props, _excluded);
  return _react.default.createElement("li", rest, _react.default.createElement(StyledTypography, {
    type: "tertiary",
    color: function color(t) {
      return t.colorTokens.neutral.text_weak;
    }
  }, label), _react.default.createElement(NormalizedUl, null, children));
}