@aivex/ui 1.1.0-dev.10 → 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
@@ -6683,7 +6689,7 @@ var ba = n("aivex:flex aivex:w-full aivex:border aivex:bg-bg-primary aivex:trans
6683
6689
  layout: {
6684
6690
  inline: "aivex:items-center aivex:px-xl aivex:gap-xs",
6685
6691
  block: "aivex:items-start aivex:px-xl aivex:gap-xs",
6686
- wrap: "aivex:flex-wrap aivex:content-center aivex:px-md aivex:gap-xs"
6692
+ wrap: "aivex:flex-wrap aivex:items-center aivex:content-center aivex:px-md aivex:gap-xs"
6687
6693
  }
6688
6694
  },
6689
6695
  compoundVariants: [
@@ -6710,12 +6716,12 @@ var ba = n("aivex:flex aivex:w-full aivex:border aivex:bg-bg-primary aivex:trans
6710
6716
  {
6711
6717
  layout: "wrap",
6712
6718
  size: "sm",
6713
- class: "aivex:py-xs aivex:min-h-8"
6719
+ class: "aivex:py-2xs aivex:min-h-8"
6714
6720
  },
6715
6721
  {
6716
6722
  layout: "wrap",
6717
6723
  size: "md",
6718
- class: "aivex:py-xs aivex:min-h-10"
6724
+ class: "aivex:py-2xs aivex:min-h-10"
6719
6725
  }
6720
6726
  ],
6721
6727
  defaultVariants: {
@@ -10107,7 +10113,7 @@ function Id({ className: e, size: t = "sm", label: n, helperText: r, error: i, d
10107
10113
  onBlur: (e) => {
10108
10114
  P(!1), v?.(e), !M.current && A && ee(A);
10109
10115
  },
10110
- className: x("aivex:bg-transparent aivex:outline-none aivex:text-text-primary aivex:placeholder:text-text-tertiary aivex:min-w-[80px] aivex:flex-1", t === "sm" ? "aivex:text-body-md-regular" : "aivex:text-body-lg-regular"),
10116
+ className: x("aivex:bg-transparent aivex:outline-none aivex:text-text-primary aivex:placeholder:text-text-tertiary aivex:min-w-[80px] aivex:flex-1", t === "sm" ? "aivex:text-body-md-regular aivex:h-6" : "aivex:text-body-lg-regular aivex:h-8"),
10111
10117
  ...T
10112
10118
  })]
10113
10119
  });