@mantine/core
Version:
React components library focused on usability, accessibility and developer experience
44 lines (43 loc) • 1.21 kB
JavaScript
"use client";
import { rem } from "../../core/utils/units-converters/rem.mjs";
import { jsx } from "react/jsx-runtime";
//#region packages/@mantine/core/src/components/Checkbox/CheckIcon.tsx
function CheckIcon({ size, style, ...others }) {
return /* @__PURE__ */ jsx("svg", {
viewBox: "0 0 10 7",
fill: "none",
xmlns: "http://www.w3.org/2000/svg",
style: size !== void 0 ? {
width: rem(size),
height: rem(size),
...style
} : style,
"aria-hidden": true,
...others,
children: /* @__PURE__ */ jsx("path", {
d: "M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z",
fill: "currentColor",
fillRule: "evenodd",
clipRule: "evenodd"
})
});
}
function CheckboxIcon({ indeterminate, ...others }) {
if (indeterminate) return /* @__PURE__ */ jsx("svg", {
xmlns: "http://www.w3.org/2000/svg",
fill: "none",
viewBox: "0 0 32 6",
"aria-hidden": true,
...others,
children: /* @__PURE__ */ jsx("rect", {
width: "32",
height: "6",
fill: "currentColor",
rx: "3"
})
});
return /* @__PURE__ */ jsx(CheckIcon, { ...others });
}
//#endregion
export { CheckIcon, CheckboxIcon };
//# sourceMappingURL=CheckIcon.mjs.map