Initial commit
This commit is contained in:
commit
78f8d225ee
21173 changed files with 2907774 additions and 0 deletions
19
node_modules/@radix-ui/react-direction/dist/index.mjs
generated
vendored
Normal file
19
node_modules/@radix-ui/react-direction/dist/index.mjs
generated
vendored
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
// packages/react/direction/src/direction.tsx
|
||||
import * as React from "react";
|
||||
import { jsx } from "react/jsx-runtime";
|
||||
var DirectionContext = React.createContext(void 0);
|
||||
var DirectionProvider = (props) => {
|
||||
const { dir, children } = props;
|
||||
return /* @__PURE__ */ jsx(DirectionContext.Provider, { value: dir, children });
|
||||
};
|
||||
function useDirection(localDir) {
|
||||
const globalDir = React.useContext(DirectionContext);
|
||||
return localDir || globalDir || "ltr";
|
||||
}
|
||||
var Provider = DirectionProvider;
|
||||
export {
|
||||
DirectionProvider,
|
||||
Provider,
|
||||
useDirection
|
||||
};
|
||||
//# sourceMappingURL=index.mjs.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue