@tamagui/use-direction 1.111.7 → 1.111.9
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/esm/index.native.js +2 -2
- package/dist/esm/index.native.js.map +1 -6
- package/dist/esm/useDirection.native.js +13 -13
- package/dist/esm/useDirection.native.js.map +1 -6
- package/package.json +3 -3
- package/dist/esm/index.native.mjs +0 -2
- package/dist/esm/index.native.mjs.map +0 -1
- package/dist/esm/useDirection.native.mjs +0 -20
- package/dist/esm/useDirection.native.mjs.map +0 -1
package/dist/esm/index.native.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./useDirection";
|
|
2
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
export * from "./useDirection.native.js";
|
|
2
|
+
//# sourceMappingURL=index.native.js.map
|
|
@@ -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__ */
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
+
};
|
|
10
14
|
function useDirection(localDir) {
|
|
11
15
|
var globalDir = React.useContext(DirectionContext);
|
|
12
16
|
return localDir || globalDir || "ltr";
|
|
13
17
|
}
|
|
14
18
|
var Provider = DirectionProvider;
|
|
15
|
-
export {
|
|
16
|
-
|
|
17
|
-
Provider,
|
|
18
|
-
useDirection
|
|
19
|
-
};
|
|
20
|
-
//# sourceMappingURL=useDirection.js.map
|
|
19
|
+
export { DirectionProvider, Provider, useDirection };
|
|
20
|
+
//# sourceMappingURL=useDirection.native.js.map
|
|
@@ -1,6 +1 @@
|
|
|
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
|
-
}
|
|
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":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/use-direction",
|
|
3
|
-
"version": "1.111.
|
|
3
|
+
"version": "1.111.9",
|
|
4
4
|
"types": "./types/index.d.ts",
|
|
5
5
|
"main": "dist/cjs",
|
|
6
6
|
"module": "dist/esm",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"exports": {
|
|
21
21
|
"./package.json": "./package.json",
|
|
22
22
|
".": {
|
|
23
|
-
"react-native-import": "./dist/esm/index.native.
|
|
23
|
+
"react-native-import": "./dist/esm/index.native.js",
|
|
24
24
|
"react-native": "./dist/cjs/index.native.js",
|
|
25
25
|
"types": "./types/index.d.ts",
|
|
26
26
|
"import": "./dist/esm/index.mjs",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@tamagui/build": "1.111.
|
|
31
|
+
"@tamagui/build": "1.111.9",
|
|
32
32
|
"react": "^18.2.0 || ^19.0.0"
|
|
33
33
|
},
|
|
34
34
|
"publishConfig": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,cAAc","ignoreList":[]}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
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
|
-
};
|
|
14
|
-
function useDirection(localDir) {
|
|
15
|
-
var globalDir = React.useContext(DirectionContext);
|
|
16
|
-
return localDir || globalDir || "ltr";
|
|
17
|
-
}
|
|
18
|
-
var Provider = DirectionProvider;
|
|
19
|
-
export { DirectionProvider, Provider, useDirection };
|
|
20
|
-
//# sourceMappingURL=useDirection.native.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
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":[]}
|