UNPKG

@activecollab/components

Version:

ActiveCollab Components

47 lines (46 loc) 1.78 kB
import _extends from "@babel/runtime/helpers/esm/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"; const _excluded = ["gradient"]; import React from "react"; import { GradientDefs } from "../../GradientDefs"; /** * @component GitRepositoryIcon * @description * Outline repository glyph (a stacked database cylinder) used as a * source-control / repository signifier. * * @prop {string} [gradient] - Optional CSS linear-gradient string applied to the stroke. * * @see https://design.activecollab.com/docs/foundations/icons */ const GitRepositoryIcon = /*#__PURE__*/React.forwardRef((_ref, ref) => { let gradient = _ref.gradient, props = _objectWithoutPropertiesLoose(_ref, _excluded); return /*#__PURE__*/React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", "data-testid": "GitRepositoryIcon", fill: "none", stroke: gradient ? "url(#icon-gradient)" : props != null && props.stroke ? props.stroke : "var(--color-theme-600)", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", focusable: false, ref: ref }, props), /*#__PURE__*/React.createElement(GradientDefs, { gradient: gradient }), /*#__PURE__*/React.createElement("path", { d: "M12 4m-8 0a8 2 0 1 0 16 0a8 2 0 1 0 -16 0" }), /*#__PURE__*/React.createElement("path", { d: "M4 4v5a8 2 0 0 0 16 0v-5" }), /*#__PURE__*/React.createElement("path", { d: "M4 9v5a8 2 0 0 0 16 0v-5" }), /*#__PURE__*/React.createElement("path", { d: "M4 14v5a8 2 0 0 0 16 0v-5" })); }); GitRepositoryIcon.displayName = "GitRepositoryIcon"; export default GitRepositoryIcon; //# sourceMappingURL=GitRepository.js.map