@tamagui/use-direction
Advanced tools
Comparing version 1.125.6 to 1.125.7
@@ -1,2 +0,2 @@ | ||
export * from "./useDirection"; | ||
//# sourceMappingURL=index.js.map | ||
export * from "./useDirection.native.js"; | ||
//# sourceMappingURL=index.native.js.map |
import { jsx as _jsx } from "react/jsx-runtime"; | ||
import * as React from "react"; | ||
var DirectionContext = /* @__PURE__ */ React.createContext(void 0), DirectionProvider = function(props) { | ||
var { dir, children } = props; | ||
return /* @__PURE__ */ _jsx(DirectionContext.Provider, { | ||
value: dir, | ||
children | ||
}); | ||
}; | ||
var DirectionContext = /* @__PURE__ */React.createContext(void 0), | ||
DirectionProvider = function (props) { | ||
var { | ||
dir, | ||
children | ||
} = props; | ||
return /* @__PURE__ */_jsx(DirectionContext.Provider, { | ||
value: dir, | ||
children | ||
}); | ||
}; | ||
function useDirection(localDir) { | ||
@@ -15,7 +19,3 @@ var globalDir = React.useContext(DirectionContext); | ||
var Provider = DirectionProvider; | ||
export { | ||
DirectionProvider, | ||
Provider, | ||
useDirection | ||
}; | ||
//# sourceMappingURL=useDirection.js.map | ||
export { DirectionProvider, Provider, useDirection }; | ||
//# sourceMappingURL=useDirection.native.js.map |
{ | ||
"name": "@tamagui/use-direction", | ||
"version": "1.125.6", | ||
"version": "1.125.7", | ||
"types": "./types/index.d.ts", | ||
@@ -34,3 +34,3 @@ "main": "dist/cjs", | ||
"devDependencies": { | ||
"@tamagui/build": "1.125.6", | ||
"@tamagui/build": "1.125.7", | ||
"react": "*" | ||
@@ -37,0 +37,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
19666
2