@photoroom/ui 0.1.287 → 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.
Files changed (2) hide show
  1. package/index.mjs +15 -15
  2. package/package.json +2 -2
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]), u = B((e) => {
30411
- let t = e?.value;
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: u
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
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@photoroom/ui",
3
- "version": "0.1.287",
3
+ "version": "0.1.289",
4
4
  "private": false,
5
5
  "description": "Photoroom design system components",
6
6
  "sideEffects": [
@@ -44,7 +44,7 @@
44
44
  "@radix-ui/react-compose-refs": "1.1.2",
45
45
  "@radix-ui/react-context-menu": "2.2.16",
46
46
  "@radix-ui/react-dialog": "1.1.15",
47
- "@radix-ui/react-direction": "^1.1.1",
47
+ "@radix-ui/react-direction": "1.1.1",
48
48
  "@radix-ui/react-dropdown-menu": "2.1.16",
49
49
  "@radix-ui/react-menu": "2.1.16",
50
50
  "@radix-ui/react-navigation-menu": "1.2.14",