@aivex/ui 1.1.0-dev.11 → 1.1.0-dev.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -6483,28 +6483,34 @@ function da({ className: e, label: t, size: n = "md", indeterminate: r = !1, dis
6483
6483
  }
6484
6484
  //#endregion
6485
6485
  //#region src/components/Checkbox/ChipsCheckbox.tsx
6486
- function fa({ className: e, disabled: t, checked: n, defaultChecked: r, onChange: i, id: a, ref: c, ...l }) {
6487
- let u = n !== void 0, [d, f] = h(!!r), p = u ? !!n : d;
6486
+ function fa({ className: e, disabled: t, checked: n, defaultChecked: r, onChange: i, onClick: a, id: c, ref: l, ...u }) {
6487
+ let d = n !== void 0, [f, p] = h(!!r), m = d ? !!n : f;
6488
6488
  return /* @__PURE__ */ s("label", {
6489
- className: x("aivex:relative aivex:inline-flex aivex:items-center aivex:justify-center", "aivex:h-8 aivex:w-8 aivex:rounded-lg aivex:border aivex:cursor-pointer aivex:select-none aivex:transition-colors", p ? "aivex:bg-bg-brand-subtle aivex:border-border-brand-subtle" : "aivex:bg-bg-tertiary aivex:border-border-default", t && "aivex:opacity-disable aivex:pointer-events-none", e),
6490
- children: [/* @__PURE__ */ o("input", {
6491
- ref: c,
6492
- id: a,
6493
- type: "checkbox",
6494
- disabled: t,
6495
- checked: p,
6496
- onChange: (e) => {
6497
- u || f(e.target.checked), i?.(e);
6498
- },
6499
- className: "aivex:sr-only",
6500
- ...l
6501
- }), /* @__PURE__ */ s("span", {
6502
- className: "aivex:relative aivex:inline-flex aivex:items-center aivex:justify-center aivex:w-5 aivex:h-5 aivex:shrink-0",
6503
- children: [/* @__PURE__ */ o("span", { className: x("aivex:w-4 aivex:h-4 aivex:rounded-xs aivex:border aivex:transition-colors", p ? "aivex:bg-bg-brand aivex:border-transparent" : "aivex:bg-bg-primary aivex:border-border-default") }), p && /* @__PURE__ */ o("span", {
6504
- className: "aivex:absolute aivex:inset-0 aivex:flex aivex:items-center aivex:justify-center aivex:text-white aivex:pointer-events-none",
6505
- children: /* @__PURE__ */ o(Me, { size: "sm" })
6506
- })]
6507
- })]
6489
+ onClick: a,
6490
+ className: x("aivex:relative aivex:overflow-hidden aivex:group aivex:inline-flex aivex:items-center aivex:justify-center", "aivex:h-8 aivex:w-8 aivex:shrink-0 aivex:rounded-lg aivex:border aivex:cursor-pointer aivex:select-none aivex:transition-colors", m ? "aivex:bg-bg-brand-subtle aivex:border-border-brand-subtle" : "aivex:bg-bg-tertiary aivex:border-border-default", t && "aivex:opacity-disable aivex:pointer-events-none", e),
6491
+ children: [
6492
+ /* @__PURE__ */ o(C, {}),
6493
+ /* @__PURE__ */ o("input", {
6494
+ ref: l,
6495
+ id: c,
6496
+ type: "checkbox",
6497
+ disabled: t,
6498
+ checked: m,
6499
+ onChange: (e) => {
6500
+ d || p(e.target.checked), i?.(e);
6501
+ },
6502
+ onClick: (e) => e.stopPropagation(),
6503
+ className: "aivex:sr-only",
6504
+ ...u
6505
+ }),
6506
+ /* @__PURE__ */ s("span", {
6507
+ className: "aivex:relative aivex:inline-flex aivex:items-center aivex:justify-center aivex:w-5 aivex:h-5 aivex:shrink-0",
6508
+ children: [/* @__PURE__ */ o("span", { className: x("aivex:w-4 aivex:h-4 aivex:rounded-xs aivex:border aivex:transition-colors", m ? "aivex:bg-bg-brand aivex:border-transparent" : "aivex:bg-bg-primary aivex:border-border-default") }), m && /* @__PURE__ */ o("span", {
6509
+ className: "aivex:absolute aivex:inset-0 aivex:flex aivex:items-center aivex:justify-center aivex:text-white aivex:pointer-events-none",
6510
+ children: /* @__PURE__ */ o(Me, { size: "sm" })
6511
+ })]
6512
+ })
6513
+ ]
6508
6514
  });
6509
6515
  }
6510
6516
  //#endregion