var _excluded = ["label", "children"];
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 styled from 'styled-components';
import { Typography } from '../../..';
var NormalizedUl = styled.ul.withConfig({
  displayName: "Group__NormalizedUl",
  componentId: "sc-d7fb4u-0"
})(["list-style-type:none;padding:0;margin:0;"]);
var StyledTypography = styled(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    ");
});
export function Group(props) {
  var label = props.label,
    children = props.children,
    rest = _objectWithoutProperties(props, _excluded);
  return React.createElement("li", rest, React.createElement(StyledTypography, {
    type: "tertiary",
    color: function color(t) {
      return t.colorTokens.neutral.text_weak;
    }
  }, label), React.createElement(NormalizedUl, null, children));
}