UNPKG

@payfit/unity-components

Version:

21 lines (20 loc) • 837 B
import { CheckboxIndicator as e } from "../../checkbox/parts/CheckboxIndicator.js"; import { Fragment as t, jsx as n, jsxs as r } from "react/jsx-runtime"; import { CheckboxButton as i, CheckboxField as a } from "react-aria-components/Checkbox"; //#region src/core/components/multi-select/parts/MultiSelectSelectAllCheckbox.tsx function o({ label: o, className: s, isSelected: c, isIndeterminate: l, isDisabled: u, onChange: d }) { return /* @__PURE__ */ n(a, { "aria-label": o, className: "uy:contents", isDisabled: u, isIndeterminate: l, isSelected: c, onChange: d, children: /* @__PURE__ */ n(i, { className: s, children: (i) => /* @__PURE__ */ r(t, { children: [/* @__PURE__ */ n(e, { ...i }), /* @__PURE__ */ n("span", { children: o })] }) }) }); } //#endregion export { o as MultiSelectSelectAllCheckbox };