@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/components/Checkbox/ChipsCheckbox.d.ts +4 -3
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +27 -21
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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,
|
|
6487
|
-
let
|
|
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
|
-
|
|
6490
|
-
|
|
6491
|
-
|
|
6492
|
-
|
|
6493
|
-
|
|
6494
|
-
|
|
6495
|
-
|
|
6496
|
-
|
|
6497
|
-
|
|
6498
|
-
|
|
6499
|
-
|
|
6500
|
-
|
|
6501
|
-
|
|
6502
|
-
|
|
6503
|
-
|
|
6504
|
-
|
|
6505
|
-
|
|
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
|