@photoroom/ui 0.1.288 → 0.1.289
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/index.mjs +15 -15
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -30407,24 +30407,24 @@ var CB = ({ value: e, defaultValue: t, onValueChange: n }) => {
|
|
|
30407
30407
|
let r = n.includes(e), a = t === void 0 ? !r : t;
|
|
30408
30408
|
return a === r ? n : a ? [...n, e].slice(-Math.abs(i ?? 0)) : n.filter((t) => t !== e);
|
|
30409
30409
|
});
|
|
30410
|
-
}, [i, c])
|
|
30411
|
-
|
|
30412
|
-
return {
|
|
30413
|
-
...o,
|
|
30414
|
-
...e,
|
|
30415
|
-
defaultChecked: n?.includes(t),
|
|
30416
|
-
onCheckedChange: (e) => l(t, !!e)
|
|
30417
|
-
};
|
|
30418
|
-
}, [
|
|
30419
|
-
o,
|
|
30420
|
-
n,
|
|
30421
|
-
l
|
|
30422
|
-
]);
|
|
30423
|
-
return /* @__PURE__ */ t(wB.Provider, {
|
|
30410
|
+
}, [i, c]);
|
|
30411
|
+
return /* @__PURE__ */ t(wB, {
|
|
30424
30412
|
value: {
|
|
30425
30413
|
groupValue: s,
|
|
30426
30414
|
setGroupValue: c,
|
|
30427
|
-
checkboxProps:
|
|
30415
|
+
checkboxProps: B((e) => {
|
|
30416
|
+
let t = e?.value;
|
|
30417
|
+
return {
|
|
30418
|
+
...o,
|
|
30419
|
+
...e,
|
|
30420
|
+
defaultChecked: n?.includes(t),
|
|
30421
|
+
onCheckedChange: (e) => l(t, !!e)
|
|
30422
|
+
};
|
|
30423
|
+
}, [
|
|
30424
|
+
o,
|
|
30425
|
+
n,
|
|
30426
|
+
l
|
|
30427
|
+
])
|
|
30428
30428
|
},
|
|
30429
30429
|
children: a
|
|
30430
30430
|
});
|