@tamagui/use-direction 1.113.0 → 1.113.2

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.
@@ -1,2 +1,2 @@
1
- export * from "./useDirection.native.js";
2
- //# sourceMappingURL=index.native.js.map
1
+ export * from "./useDirection";
2
+ //# sourceMappingURL=index.js.map
@@ -1 +1,6 @@
1
- {"version":3,"names":[],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,cAAc","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/Users/n8/tamagui/code/core/use-direction/src/index.ts"],
4
+ "mappings": "AAAA,cAAc;",
5
+ "names": []
6
+ }
@@ -1,20 +1,20 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import * as React from "react";
3
- var DirectionContext = /* @__PURE__ */React.createContext(void 0),
4
- DirectionProvider = function (props) {
5
- var {
6
- dir,
7
- children
8
- } = props;
9
- return /* @__PURE__ */_jsx(DirectionContext.Provider, {
10
- value: dir,
11
- children
12
- });
13
- };
3
+ var DirectionContext = /* @__PURE__ */ React.createContext(void 0), DirectionProvider = function(props) {
4
+ var { dir, children } = props;
5
+ return /* @__PURE__ */ _jsx(DirectionContext.Provider, {
6
+ value: dir,
7
+ children
8
+ });
9
+ };
14
10
  function useDirection(localDir) {
15
11
  var globalDir = React.useContext(DirectionContext);
16
12
  return localDir || globalDir || "ltr";
17
13
  }
18
14
  var Provider = DirectionProvider;
19
- export { DirectionProvider, Provider, useDirection };
20
- //# sourceMappingURL=useDirection.native.js.map
15
+ export {
16
+ DirectionProvider,
17
+ Provider,
18
+ useDirection
19
+ };
20
+ //# sourceMappingURL=useDirection.js.map
@@ -1 +1,6 @@
1
- {"version":3,"names":["jsx","_jsx","React","DirectionContext","createContext","DirectionProvider","props","dir","children","Provider","value","useDirection","localDir","globalDir","useContext"],"sources":["../../src/useDirection.tsx"],"sourcesContent":[null],"mappings":"AAEA,SAAAA,GAAY,IAAAC,IAAA,QAAW;AAYd,YAAAC,KAAA;AATT,IAAAC,gBAAM,kBAAyBD,KAAA,CAAqCE,aAOvD;EAAAC,iBAAiE,YAAAA,CAAAC,KAAA;IAC5E;MAAMC,GAAE;MAAAC;IAAK,IAASF,KAAI;IAC1B,OAAO,eAAAL,IAAC,CAAAE,gBAAiB,CAAAM,QAAA,EAAjB;MACVC,KAAA,EAAAH,GAAA;MAEOC;IACL;EACA;AACF,SAAAG,aAAAC,QAAA;EAEO,IAAMC,SAAA,GAAWX,KAAA,CAAAY,UAAA,CAAAX,gBAAA","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/Users/n8/tamagui/code/core/use-direction/src/useDirection.tsx"],
4
+ "mappings": ";AAEA,YAAYA,WAAW;AAGvB,IAAMC,mBAAmBD,sBAAME,cAAqCC,MAAAA,GAOvDC,oBAAsD,SAACC,OAAAA;AAClE,MAAM,EAAEC,KAAKC,SAAQ,IAAKF;AAC1B,SAAO,qBAACJ,iBAAiBO,UAAQ;IAACC,OAAOH;;;AAC3C;AAEO,SAASI,aAAaC,UAAoB;AAC/C,MAAMC,YAAYZ,MAAMa,WAAWZ,gBAAAA;AACnC,SAAOU,YAAYC,aAAa;AAClC;AAEO,IAAMJ,WAAWJ;",
5
+ "names": ["React", "DirectionContext", "createContext", "undefined", "DirectionProvider", "props", "dir", "children", "Provider", "value", "useDirection", "localDir", "globalDir", "useContext"]
6
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/use-direction",
3
- "version": "1.113.0",
3
+ "version": "1.113.2",
4
4
  "types": "./types/index.d.ts",
5
5
  "main": "dist/cjs",
6
6
  "module": "dist/esm",
@@ -28,7 +28,7 @@
28
28
  }
29
29
  },
30
30
  "devDependencies": {
31
- "@tamagui/build": "1.113.0",
31
+ "@tamagui/build": "1.113.2",
32
32
  "react": "^18.2.0 || ^19.0.0"
33
33
  },
34
34
  "publishConfig": {