UNPKG

@atlaskit/icon

Version:

An icon is a symbol representing a command, device, directory, or common action.

49 lines (47 loc) 1.97 kB
/* svg.tsx generated by @compiled/babel-plugin v0.36.1 */ import "./svg.compiled.css"; import * as React from 'react'; import { ax, ix } from "@compiled/react/runtime"; import { memo } from 'react'; var sizeStyles = { small: "_1bsb7vkz _4t3i7vkz", medium: "_1bsb1tcg _4t3i1tcg", large: "_1bsbzwfg _4t3izwfg", xlarge: "_1bsbckbl _4t3ickbl" }; var svgStyles = null; /** * __SVG__ * * @deprecated Custom SVG is deprecated and will be removed from `atlaskit/icon` in an upcoming major release. Please use either an existing icon from @atlaskit/icon or @atlaskit/icon-lab, or contributing to @atlaskit/icon-lab directly. For third party logos, use an SVG element along with a label. * * An icon is used as a visual representation of common actions and commands to provide context. * * - [Examples](https://atlaskit.atlassian.com/packages/design-system/icon) * - [Code](https://atlaskit.atlassian.com/packages/design-system/icon/docs/custom-svgs) */ var SVG = /*#__PURE__*/memo(function SVG(_ref) { var _ref$size = _ref.size, size = _ref$size === void 0 ? 'medium' : _ref$size, label = _ref.label, _ref$primaryColor = _ref.primaryColor, primaryColor = _ref$primaryColor === void 0 ? 'currentColor' : _ref$primaryColor, secondaryColor = _ref.secondaryColor, testId = _ref.testId, children = _ref.children; return /*#__PURE__*/React.createElement("svg", { viewBox: "0 0 24 24", style: { color: primaryColor, // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766 fill: secondaryColor } // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766 , "data-testid": testId, "aria-label": label || undefined, role: label ? 'img' : 'presentation', className: ax(["_1reo15vq _18m915vq _lswuvuon _lcxvglyw _vc881r31", sizeStyles[size]]) }, children); }); export default SVG;