@tamagui/floating 1.89.0-1706483140977 → 1.89.0
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/Floating.native.js +4 -26
- package/dist/esm/Floating.native.js.map +1 -1
- package/dist/esm/index.native.js +8 -28
- package/dist/esm/index.native.js.map +1 -1
- package/dist/esm/useFloating.native.js +6 -35
- package/dist/esm/useFloating.native.js.map +1 -1
- package/dist/jsx/Floating.native.js +4 -26
- package/dist/jsx/Floating.native.js.map +1 -1
- package/dist/jsx/index.native.js +8 -28
- package/dist/jsx/index.native.js.map +1 -1
- package/dist/jsx/useFloating.native.js +6 -35
- package/dist/jsx/useFloating.native.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,29 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
-
return to;
|
|
14
|
-
}, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
|
-
var Floating_native_exports = {};
|
|
17
|
-
__export(Floating_native_exports, {
|
|
18
|
-
autoUpdate: () => autoUpdate
|
|
19
|
-
});
|
|
20
|
-
module.exports = __toCommonJS(Floating_native_exports);
|
|
21
|
-
__reExport(Floating_native_exports, require("@floating-ui/react-native"), module.exports);
|
|
1
|
+
export * from "@floating-ui/react-native";
|
|
22
2
|
const autoUpdate = () => {
|
|
23
3
|
};
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
...require("@floating-ui/react-native")
|
|
28
|
-
});
|
|
4
|
+
export {
|
|
5
|
+
autoUpdate
|
|
6
|
+
};
|
|
29
7
|
//# sourceMappingURL=Floating.native.js.map
|
package/dist/esm/index.native.js
CHANGED
|
@@ -1,30 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
-
return to;
|
|
14
|
-
}, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
|
-
var src_exports = {};
|
|
17
|
-
__export(src_exports, {
|
|
18
|
-
FloatingOverrideContext: () => import_useFloating.FloatingOverrideContext,
|
|
19
|
-
useFloating: () => import_useFloating.useFloating
|
|
20
|
-
});
|
|
21
|
-
module.exports = __toCommonJS(src_exports);
|
|
22
|
-
__reExport(src_exports, require("./Floating"), module.exports);
|
|
23
|
-
var import_useFloating = require("./useFloating");
|
|
24
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
25
|
-
0 && (module.exports = {
|
|
26
|
-
FloatingOverrideContext,
|
|
1
|
+
export * from "./Floating";
|
|
2
|
+
import {
|
|
27
3
|
useFloating,
|
|
28
|
-
|
|
29
|
-
}
|
|
4
|
+
FloatingOverrideContext
|
|
5
|
+
} from "./useFloating";
|
|
6
|
+
export {
|
|
7
|
+
FloatingOverrideContext,
|
|
8
|
+
useFloating
|
|
9
|
+
};
|
|
30
10
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,40 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
10
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
return to;
|
|
15
|
-
};
|
|
16
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
17
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
18
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
19
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
20
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
21
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
22
|
-
mod
|
|
23
|
-
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
24
|
-
var useFloating_exports = {};
|
|
25
|
-
__export(useFloating_exports, {
|
|
26
|
-
FloatingOverrideContext: () => FloatingOverrideContext,
|
|
27
|
-
useFloating: () => useFloating
|
|
28
|
-
});
|
|
29
|
-
module.exports = __toCommonJS(useFloating_exports);
|
|
30
|
-
var import_react = require("react"), Floating = __toESM(require("./Floating"));
|
|
31
|
-
const FloatingOverrideContext = (0, import_react.createContext)(null), useFloating = (props) => {
|
|
1
|
+
import { createContext, useContext } from "react";
|
|
2
|
+
import * as Floating from "./Floating";
|
|
3
|
+
const FloatingOverrideContext = createContext(null), useFloating = (props) => {
|
|
32
4
|
var _a;
|
|
33
|
-
return (_a =
|
|
5
|
+
return (_a = useContext(FloatingOverrideContext) || Floating.useFloating) == null ? void 0 : _a(props);
|
|
34
6
|
};
|
|
35
|
-
|
|
36
|
-
0 && (module.exports = {
|
|
7
|
+
export {
|
|
37
8
|
FloatingOverrideContext,
|
|
38
9
|
useFloating
|
|
39
|
-
}
|
|
10
|
+
};
|
|
40
11
|
//# sourceMappingURL=useFloating.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/useFloating.tsx"],
|
|
4
|
-
"mappings": "
|
|
4
|
+
"mappings": "AAAA,SAAS,eAAe,kBAAkB;AAE1C,YAAY,cAAc;AAkBnB,MAAM,0BAA0B,cAAoC,IAAI,GAElE,cAAc,CAAC,UAA+C;AAtB3E;AAwBE,UAAQ,KADQ,WAAW,uBAAuB,KAC/B,SAAS,gBAApB,mBAAmC;AAC7C;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -1,29 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
-
return to;
|
|
14
|
-
}, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
|
-
var Floating_native_exports = {};
|
|
17
|
-
__export(Floating_native_exports, {
|
|
18
|
-
autoUpdate: () => autoUpdate
|
|
19
|
-
});
|
|
20
|
-
module.exports = __toCommonJS(Floating_native_exports);
|
|
21
|
-
__reExport(Floating_native_exports, require("@floating-ui/react-native"), module.exports);
|
|
1
|
+
export * from "@floating-ui/react-native";
|
|
22
2
|
const autoUpdate = () => {
|
|
23
3
|
};
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
...require("@floating-ui/react-native")
|
|
28
|
-
});
|
|
4
|
+
export {
|
|
5
|
+
autoUpdate
|
|
6
|
+
};
|
|
29
7
|
//# sourceMappingURL=Floating.native.js.map
|
package/dist/jsx/index.native.js
CHANGED
|
@@ -1,30 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
-
return to;
|
|
14
|
-
}, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
|
-
var src_exports = {};
|
|
17
|
-
__export(src_exports, {
|
|
18
|
-
FloatingOverrideContext: () => import_useFloating.FloatingOverrideContext,
|
|
19
|
-
useFloating: () => import_useFloating.useFloating
|
|
20
|
-
});
|
|
21
|
-
module.exports = __toCommonJS(src_exports);
|
|
22
|
-
__reExport(src_exports, require("./Floating"), module.exports);
|
|
23
|
-
var import_useFloating = require("./useFloating");
|
|
24
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
25
|
-
0 && (module.exports = {
|
|
26
|
-
FloatingOverrideContext,
|
|
1
|
+
export * from "./Floating";
|
|
2
|
+
import {
|
|
27
3
|
useFloating,
|
|
28
|
-
|
|
29
|
-
}
|
|
4
|
+
FloatingOverrideContext
|
|
5
|
+
} from "./useFloating";
|
|
6
|
+
export {
|
|
7
|
+
FloatingOverrideContext,
|
|
8
|
+
useFloating
|
|
9
|
+
};
|
|
30
10
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,40 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
10
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
return to;
|
|
15
|
-
};
|
|
16
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
17
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
18
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
19
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
20
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
21
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
22
|
-
mod
|
|
23
|
-
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
24
|
-
var useFloating_exports = {};
|
|
25
|
-
__export(useFloating_exports, {
|
|
26
|
-
FloatingOverrideContext: () => FloatingOverrideContext,
|
|
27
|
-
useFloating: () => useFloating
|
|
28
|
-
});
|
|
29
|
-
module.exports = __toCommonJS(useFloating_exports);
|
|
30
|
-
var import_react = require("react"), Floating = __toESM(require("./Floating"));
|
|
31
|
-
const FloatingOverrideContext = (0, import_react.createContext)(null), useFloating = (props) => {
|
|
1
|
+
import { createContext, useContext } from "react";
|
|
2
|
+
import * as Floating from "./Floating";
|
|
3
|
+
const FloatingOverrideContext = createContext(null), useFloating = (props) => {
|
|
32
4
|
var _a;
|
|
33
|
-
return (_a =
|
|
5
|
+
return (_a = useContext(FloatingOverrideContext) || Floating.useFloating) == null ? void 0 : _a(props);
|
|
34
6
|
};
|
|
35
|
-
|
|
36
|
-
0 && (module.exports = {
|
|
7
|
+
export {
|
|
37
8
|
FloatingOverrideContext,
|
|
38
9
|
useFloating
|
|
39
|
-
}
|
|
10
|
+
};
|
|
40
11
|
//# sourceMappingURL=useFloating.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/useFloating.tsx"],
|
|
4
|
-
"mappings": "
|
|
4
|
+
"mappings": "AAAA,SAAS,eAAe,kBAAkB;AAE1C,YAAY,cAAc;AAkBnB,MAAM,0BAA0B,cAAoC,IAAI,GAElE,cAAc,CAAC,UAA+C;AAtB3E;AAwBE,UAAQ,KADQ,WAAW,uBAAuB,KAC/B,SAAS,gBAApB,mBAAmC;AAC7C;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/floating",
|
|
3
|
-
"version": "1.89.0
|
|
3
|
+
"version": "1.89.0",
|
|
4
4
|
"sideEffects": true,
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"types": "./types/index.d.ts",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"react-dom": "^18.2.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@tamagui/build": "1.89.0
|
|
44
|
+
"@tamagui/build": "1.89.0",
|
|
45
45
|
"react": "^18.2.0",
|
|
46
46
|
"react-native": "^0.72.6"
|
|
47
47
|
}
|