@tamagui/floating 1.2.9 → 1.2.10

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.
@@ -0,0 +1,2 @@
1
+ export * from "@floating-ui/react-dom";
2
+ //# sourceMappingURL=Floating.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/Floating.tsx"],
4
+ "sourcesContent": ["export * from '@floating-ui/react-dom'\n"],
5
+ "mappings": "AAAA,cAAc;",
6
+ "names": []
7
+ }
@@ -0,0 +1,2 @@
1
+ export * from "@floating-ui/react-native";
2
+ //# sourceMappingURL=Floating.native.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/Floating.native.tsx"],
4
+ "sourcesContent": ["import { ComputePositionReturn } from '@floating-ui/react-native'\nimport { RefObject } from 'react'\n\nexport * from '@floating-ui/react-native'\n\nexport declare type UseFloatingReturn = Data & {\n update: () => void\n offsetParent: (node: any) => void\n floating: (node: any) => void\n reference: (node: any) => void\n refs: {\n reference: RefObject<any>\n floating: RefObject<any>\n offsetParent: RefObject<any>\n setReference: (node: any) => void\n setFloating: (node: any) => void\n setOffsetParent: (node: any) => void\n }\n elements: {\n reference: any\n floating: any\n offsetParent: any\n }\n scrollProps: {\n onScroll: (event: {\n nativeEvent: {\n contentOffset: {\n x: number\n y: number\n }\n }\n }) => void\n scrollEventThrottle: 16\n }\n}\n\ntype Data = Omit<ComputePositionReturn, 'x' | 'y'> & {\n x: number | null\n y: number | null\n}\n"],
5
+ "mappings": "AAGA,cAAc;",
6
+ "names": []
7
+ }
@@ -0,0 +1,10 @@
1
+ export * from "./Floating";
2
+ import {
3
+ useFloating,
4
+ FloatingOverrideContext
5
+ } from "./useFloating";
6
+ export {
7
+ FloatingOverrideContext,
8
+ useFloating
9
+ };
10
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/index.tsx"],
4
+ "sourcesContent": ["export * from './Floating'\nexport {\n useFloating,\n FloatingOverrideContext,\n type UseFloatingProps,\n type UseFloatingReturn,\n type UseFloatingFn,\n} from './useFloating'\n"],
5
+ "mappings": "AAAA,cAAc;AACd;AAAA,EACE;AAAA,EACA;AAAA,OAIK;",
6
+ "names": []
7
+ }
@@ -0,0 +1,13 @@
1
+ import { useContext, createContext } from "react";
2
+ import * as Floating from "./Floating";
3
+ const FloatingOverrideContext = createContext(null);
4
+ const useFloating = (props) => {
5
+ var _a;
6
+ const context = useContext(FloatingOverrideContext);
7
+ return (_a = context || Floating.useFloating) == null ? void 0 : _a(props);
8
+ };
9
+ export {
10
+ FloatingOverrideContext,
11
+ useFloating
12
+ };
13
+ //# sourceMappingURL=useFloating.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/useFloating.tsx"],
4
+ "sourcesContent": ["import { useContext, createContext } from 'react';\nimport * as Floating from './Floating'\n\nexport type UseFloatingFn = typeof Floating.useFloating;\n\ntype InferFloatingProps = UseFloatingFn extends (props: infer Props) => any\n ? Props\n : never\n\nexport type UseFloatingProps = InferFloatingProps & {\n sameScrollView?: boolean\n}\n\nexport type UseFloatingReturn = Floating.UseFloatingReturn & {\n context?: any\n getFloatingProps?: (props: { ref: any; [key: string]: any }) => any\n getReferenceProps?: (props: { ref: any; [key: string]: any }) => any\n}\n\nexport const FloatingOverrideContext = createContext<UseFloatingFn | null>(null)\n\nexport const useFloating = (props: UseFloatingProps):UseFloatingReturn => {\n const context = useContext(FloatingOverrideContext)\n return (context || Floating.useFloating)?.(props)\n}"],
5
+ "mappings": "AAAA,SAAS,YAAY,qBAAqB;AAC1C,YAAY,cAAc;AAkBnB,MAAM,0BAA0B,cAAoC,IAAI;AAExE,MAAM,cAAc,CAAC,UAA8C;AArB1E;AAsBE,QAAM,UAAU,WAAW,uBAAuB;AAClD,UAAQ,gBAAW,SAAS,gBAApB,mBAAmC;AAC7C;",
6
+ "names": []
7
+ }
@@ -0,0 +1,2 @@
1
+ export * from "@floating-ui/react-dom";
2
+ //# sourceMappingURL=Floating.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/Floating.tsx"],
4
+ "sourcesContent": ["export * from '@floating-ui/react-dom'\n"],
5
+ "mappings": "AAAA,cAAc;",
6
+ "names": []
7
+ }
@@ -0,0 +1,2 @@
1
+ export * from "@floating-ui/react-native";
2
+ //# sourceMappingURL=Floating.native.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/Floating.native.tsx"],
4
+ "sourcesContent": ["import { ComputePositionReturn } from '@floating-ui/react-native'\nimport { RefObject } from 'react'\n\nexport * from '@floating-ui/react-native'\n\nexport declare type UseFloatingReturn = Data & {\n update: () => void\n offsetParent: (node: any) => void\n floating: (node: any) => void\n reference: (node: any) => void\n refs: {\n reference: RefObject<any>\n floating: RefObject<any>\n offsetParent: RefObject<any>\n setReference: (node: any) => void\n setFloating: (node: any) => void\n setOffsetParent: (node: any) => void\n }\n elements: {\n reference: any\n floating: any\n offsetParent: any\n }\n scrollProps: {\n onScroll: (event: {\n nativeEvent: {\n contentOffset: {\n x: number\n y: number\n }\n }\n }) => void\n scrollEventThrottle: 16\n }\n}\n\ntype Data = Omit<ComputePositionReturn, 'x' | 'y'> & {\n x: number | null\n y: number | null\n}\n"],
5
+ "mappings": "AAGA,cAAc;",
6
+ "names": []
7
+ }
@@ -0,0 +1,10 @@
1
+ export * from "./Floating";
2
+ import {
3
+ useFloating,
4
+ FloatingOverrideContext
5
+ } from "./useFloating";
6
+ export {
7
+ FloatingOverrideContext,
8
+ useFloating
9
+ };
10
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/index.tsx"],
4
+ "sourcesContent": ["export * from './Floating'\nexport {\n useFloating,\n FloatingOverrideContext,\n type UseFloatingProps,\n type UseFloatingReturn,\n type UseFloatingFn,\n} from './useFloating'\n"],
5
+ "mappings": "AAAA,cAAc;AACd;AAAA,EACE;AAAA,EACA;AAAA,OAIK;",
6
+ "names": []
7
+ }
@@ -0,0 +1,12 @@
1
+ import { useContext, createContext } from "react";
2
+ import * as Floating from "./Floating";
3
+ const FloatingOverrideContext = createContext(null);
4
+ const useFloating = (props) => {
5
+ const context = useContext(FloatingOverrideContext);
6
+ return (context || Floating.useFloating)?.(props);
7
+ };
8
+ export {
9
+ FloatingOverrideContext,
10
+ useFloating
11
+ };
12
+ //# sourceMappingURL=useFloating.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/useFloating.tsx"],
4
+ "sourcesContent": ["import { useContext, createContext } from 'react';\nimport * as Floating from './Floating'\n\nexport type UseFloatingFn = typeof Floating.useFloating;\n\ntype InferFloatingProps = UseFloatingFn extends (props: infer Props) => any\n ? Props\n : never\n\nexport type UseFloatingProps = InferFloatingProps & {\n sameScrollView?: boolean\n}\n\nexport type UseFloatingReturn = Floating.UseFloatingReturn & {\n context?: any\n getFloatingProps?: (props: { ref: any; [key: string]: any }) => any\n getReferenceProps?: (props: { ref: any; [key: string]: any }) => any\n}\n\nexport const FloatingOverrideContext = createContext<UseFloatingFn | null>(null)\n\nexport const useFloating = (props: UseFloatingProps):UseFloatingReturn => {\n const context = useContext(FloatingOverrideContext)\n return (context || Floating.useFloating)?.(props)\n}"],
5
+ "mappings": "AAAA,SAAS,YAAY,qBAAqB;AAC1C,YAAY,cAAc;AAkBnB,MAAM,0BAA0B,cAAoC,IAAI;AAExE,MAAM,cAAc,CAAC,UAA8C;AACxE,QAAM,UAAU,WAAW,uBAAuB;AAClD,UAAQ,WAAW,SAAS,eAAe,KAAK;AAClD;",
6
+ "names": []
7
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/floating",
3
- "version": "1.2.9",
3
+ "version": "1.2.10",
4
4
  "sideEffects": true,
5
5
  "source": "src/index.ts",
6
6
  "types": "./types/index.d.ts",
@@ -16,7 +16,7 @@
16
16
  "./package.json": "./package.json",
17
17
  ".": {
18
18
  "types": "./types/index.d.ts",
19
- "import": "./dist/esm/index.js",
19
+ "import": "./dist/esm/index.mjs",
20
20
  "require": "./dist/cjs/index.js"
21
21
  }
22
22
  },
@@ -40,7 +40,7 @@
40
40
  "@floating-ui/react-native": "0.8.0"
41
41
  },
42
42
  "devDependencies": {
43
- "@tamagui/build": "^1.2.9",
43
+ "@tamagui/build": "^1.2.10",
44
44
  "@types/react-dom": "^18.0.3",
45
45
  "react": "^18.2.0",
46
46
  "react-dom": "^18.2.0",