@tamagui/use-controllable-state
Advanced tools
Comparing version 1.0.1-beta.72 to 1.0.1-beta.73
@@ -5,3 +5,2 @@ var __defProp = Object.defineProperty; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __name = (target, value) => __defProp(target, "name", { value, configurable: true }); | ||
var __export = (target, all) => { | ||
@@ -53,4 +52,3 @@ for (var name in all) | ||
} | ||
__name(useControllableState, "useControllableState"); | ||
const getNextStateWithCallback = /* @__PURE__ */ __name((prev, next, handleChange) => { | ||
const getNextStateWithCallback = (prev, next, handleChange) => { | ||
if (prev === next || next === void 0) { | ||
@@ -61,3 +59,3 @@ return prev; | ||
return next; | ||
}, "getNextStateWithCallback"); | ||
}; | ||
// Annotate the CommonJS export names for ESM import in node: | ||
@@ -64,0 +62,0 @@ 0 && (module.exports = { |
@@ -1,3 +0,1 @@ | ||
var __defProp = Object.defineProperty; | ||
var __name = (target, value) => __defProp(target, "name", { value, configurable: true }); | ||
import { useCallbackRef } from "@radix-ui/react-use-callback-ref"; | ||
@@ -31,4 +29,3 @@ import { useCallback, useEffect, useRef, useState } from "react"; | ||
} | ||
__name(useControllableState, "useControllableState"); | ||
const getNextStateWithCallback = /* @__PURE__ */ __name((prev, next, handleChange) => { | ||
const getNextStateWithCallback = (prev, next, handleChange) => { | ||
if (prev === next || next === void 0) { | ||
@@ -39,3 +36,3 @@ return prev; | ||
return next; | ||
}, "getNextStateWithCallback"); | ||
}; | ||
export { | ||
@@ -42,0 +39,0 @@ useControllableState |
@@ -1,3 +0,1 @@ | ||
var __defProp = Object.defineProperty; | ||
var __name = (target, value) => __defProp(target, "name", { value, configurable: true }); | ||
import { useCallbackRef } from "@radix-ui/react-use-callback-ref"; | ||
@@ -31,4 +29,3 @@ import { useCallback, useEffect, useRef, useState } from "react"; | ||
} | ||
__name(useControllableState, "useControllableState"); | ||
const getNextStateWithCallback = /* @__PURE__ */ __name((prev, next, handleChange) => { | ||
const getNextStateWithCallback = (prev, next, handleChange) => { | ||
if (prev === next || next === void 0) { | ||
@@ -39,5 +36,5 @@ return prev; | ||
return next; | ||
}, "getNextStateWithCallback"); | ||
}; | ||
export { | ||
useControllableState | ||
}; |
{ | ||
"name": "@tamagui/use-controllable-state", | ||
"version": "1.0.1-beta.72", | ||
"version": "1.0.1-beta.73", | ||
"sideEffects": false, | ||
@@ -29,3 +29,3 @@ "source": "src/index.ts", | ||
"devDependencies": { | ||
"@tamagui/build": "^1.0.1-beta.72", | ||
"@tamagui/build": "^1.0.1-beta.73", | ||
"react": "*", | ||
@@ -32,0 +32,0 @@ "react-dom": "*" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
14035
218