UNPKG

@mantine/core

Version:

React components library focused on usability, accessibility and developer experience

46 lines (45 loc) 1.46 kB
"use client"; require("../../_virtual/_rolldown/runtime.cjs"); const require_rem = require("../../core/utils/units-converters/rem.cjs"); let react_jsx_runtime = require("react/jsx-runtime"); //#region packages/@mantine/core/src/components/Checkbox/CheckIcon.tsx function CheckIcon({ size, style, ...others }) { return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", { viewBox: "0 0 10 7", fill: "none", xmlns: "http://www.w3.org/2000/svg", style: size !== void 0 ? { width: require_rem.rem(size), height: require_rem.rem(size), ...style } : style, "aria-hidden": true, ...others, children: /* @__PURE__ */ (0, react_jsx_runtime.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__ */ (0, react_jsx_runtime.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 6", "aria-hidden": true, ...others, children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("rect", { width: "32", height: "6", fill: "currentColor", rx: "3" }) }); return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CheckIcon, { ...others }); } //#endregion exports.CheckIcon = CheckIcon; exports.CheckboxIcon = CheckboxIcon; //# sourceMappingURL=CheckIcon.cjs.map