@vvedantb/native-ui 0.20.0 → 0.20.1-next-087d13f7287a4717536dbcf3d549e46330cbee86

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/Switch.jsx CHANGED
@@ -2,6 +2,7 @@ import { c as _c } from "react/compiler-runtime";
2
2
  import * as React from "react";
3
3
  import { Switch as PrimitiveSwitch } from "./primitives/switch";
4
4
  import { cn } from "./cn";
5
+ import { selectionHaptic } from "./haptics";
5
6
  import { switchColors, switchSize, touchSlop } from "./controlStyles";
6
7
  import { useLargerText } from "./theme";
7
8
  import { useScheme } from "./useScheme";
@@ -62,6 +63,7 @@ const Switch = React.forwardRef((t0, ref) => {
62
63
  let t3;
63
64
  if ($[12] !== onCheckedChange || $[13] !== onValueChange) {
64
65
  t3 = nextValue => {
66
+ selectionHaptic();
65
67
  onCheckedChange?.(nextValue);
66
68
  onValueChange?.(nextValue);
67
69
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vvedantb/native-ui",
3
- "version": "0.20.0",
3
+ "version": "0.20.1-next-087d13f7287a4717536dbcf3d549e46330cbee86",
4
4
  "license": "MIT",
5
5
  "description": "Shared React Native / Expo UI primitives. Floating surfaces, forms, overlays, toasts, settings chrome, tab bar, AI chat parts, the family app marks, a NativeWind preset, the Expo web root and Clerk + Convex auth screens.",
6
6
  "type": "module",
package/src/Switch.tsx CHANGED
@@ -1,6 +1,7 @@
1
1
  import * as React from "react";
2
2
  import { Switch as PrimitiveSwitch } from "./primitives/switch";
3
3
  import { cn } from "./cn";
4
+ import { selectionHaptic } from "./haptics";
4
5
  import { switchColors, switchSize, touchSlop, type SwitchSize } from "./controlStyles";
5
6
  import { useLargerText } from "./theme";
6
7
  import { useScheme } from "./useScheme";
@@ -30,6 +31,7 @@ const Switch = React.forwardRef<
30
31
  const size = switchSize(useLargerText(), sizeName);
31
32
 
32
33
  const handleCheckedChange = (nextValue: boolean) => {
34
+ selectionHaptic();
33
35
  onCheckedChange?.(nextValue);
34
36
  onValueChange?.(nextValue);
35
37
  };