@atlaskit/dropdown-menu
Version:
A dropdown menu displays a list of actions or options to a user.
46 lines (45 loc) • 1.62 kB
JavaScript
/* checkbox-icon.tsx generated by @compiled/babel-plugin v2.0.0 */
import "./checkbox-icon.compiled.css";
import { ax, ix } from "@compiled/react/runtime";
import React from 'react';
const svgStyles = null;
/**
* __Checkbox icon__
*
* Used to visually represent the selected state in DropdownItemCheckbox
*
* @internal
*/
const CheckboxIcon = ({
checked
}) => {
return /*#__PURE__*/React.createElement("svg", {
width: 24,
height: 24,
viewBox: "0 0 24 24",
style: {
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
color: checked ? "var(--ds-background-selected-bold, #1868DB)" : "var(--ds-background-input, #FFFFFF)",
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
fill: checked ? "var(--ds-icon-inverse, #FFFFFF)" : 'transparent'
},
role: "presentation",
className: ax(["_1reo15vq _18m915vq _lswuvuon _lcxvglyw"])
}, /*#__PURE__*/React.createElement("g", {
fillRule: "evenodd"
}, /*#__PURE__*/React.createElement("rect", {
stroke: checked ? "var(--ds-border-selected, #1868DB)" : "var(--ds-border-input, #8C8F97)",
x: "5.5",
y: "5.5",
width: "13",
height: "13",
rx: "1.5",
fill: "currentColor"
}), /*#__PURE__*/React.createElement("path", {
fillRule: "evenodd",
clipRule: "evenodd",
d: "M16.3262 9.48011L15.1738 8.51984L10.75 13.8284L8.82616 11.5198L7.67383 12.4801L10.1738 15.4801C10.3163 15.6511 10.5274 15.75 10.75 15.75C10.9726 15.75 11.1837 15.6511 11.3262 15.4801L16.3262 9.48011Z",
fill: "inherit"
})));
};
export default CheckboxIcon;