UNPKG

@dndbuilder.com/react

Version:

Drag and drop builder for React

30 lines (29 loc) 1.19 kB
"use client"; import { jsx as e } from "react/jsx-runtime"; import * as i from "react"; import { Root as r, Indicator as c } from "../../../../../node_modules/.pnpm/@radix-ui_react-checkbox@1.1.4_@types_react-dom@19.0.4_@types_react@19.0.10__@types_react@19._aormroeiwncfsjk5mraxevmc5m/node_modules/@radix-ui/react-checkbox/dist/index.js"; import { classNames as t } from "../../../../../utils.js"; import { FiCheck as d } from "../../../../../node_modules/.pnpm/react-icons@5.5.0_react@19.0.0/node_modules/react-icons/fi/index.js"; const m = i.forwardRef(({ className: a, ...s }, o) => /* @__PURE__ */ e( r, { ref: o, className: t( "focus-visible:outline-hidden h-4 w-4 shrink-0 rounded-sm border focus-visible:ring-0 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-gray-700 data-[state=checked]:text-gray-700", a ), ...s, children: /* @__PURE__ */ e( c, { className: t("flex items-center justify-center text-current"), children: /* @__PURE__ */ e(d, { className: " text-white" }) } ) } )); m.displayName = r.displayName; export { m as Checkbox }; //# sourceMappingURL=checkbox.js.map