@tamagui/popper 1.0.1-rc.1.2 → 1.0.1-rc.1.4
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/package.json +9 -9
- package/types/Popper.d.ts +19 -19
- package/types/useFloating.d.ts +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/popper",
|
|
3
|
-
"version": "1.0.1-rc.1.
|
|
3
|
+
"version": "1.0.1-rc.1.4",
|
|
4
4
|
"sideEffects": [
|
|
5
5
|
"*.css"
|
|
6
6
|
],
|
|
@@ -23,13 +23,13 @@
|
|
|
23
23
|
"clean:build": "tamagui-build clean:build"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@floating-ui/react-dom": "^1.0.
|
|
27
|
-
"@floating-ui/react-native": "^0.8.
|
|
28
|
-
"@tamagui/compose-refs": "^1.0.1-rc.1.
|
|
29
|
-
"@tamagui/core": "^1.0.1-rc.1.
|
|
30
|
-
"@tamagui/create-context": "^1.0.1-rc.1.
|
|
31
|
-
"@tamagui/stacks": "^1.0.1-rc.1.
|
|
32
|
-
"@tamagui/use-controllable-state": "^1.0.1-rc.1.
|
|
26
|
+
"@floating-ui/react-dom": "^1.0.1",
|
|
27
|
+
"@floating-ui/react-native": "^0.8.2",
|
|
28
|
+
"@tamagui/compose-refs": "^1.0.1-rc.1.4",
|
|
29
|
+
"@tamagui/core": "^1.0.1-rc.1.4",
|
|
30
|
+
"@tamagui/create-context": "^1.0.1-rc.1.4",
|
|
31
|
+
"@tamagui/stacks": "^1.0.1-rc.1.4",
|
|
32
|
+
"@tamagui/use-controllable-state": "^1.0.1-rc.1.4"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"react": ">=18",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"react-native": "*"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@tamagui/build": "^1.0.1-rc.1.
|
|
40
|
+
"@tamagui/build": "^1.0.1-rc.1.4",
|
|
41
41
|
"@types/react-native": "^0.69.2",
|
|
42
42
|
"react": ">=18",
|
|
43
43
|
"react-dom": ">=18",
|
package/types/Popper.d.ts
CHANGED
|
@@ -5,10 +5,10 @@ import * as React from 'react';
|
|
|
5
5
|
import { View } from 'react-native';
|
|
6
6
|
import { Coords, Placement, Strategy, flip, shift } from './floating';
|
|
7
7
|
import { UseFloatingReturn } from './useFloating';
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
type ShiftProps = typeof shift extends (options: infer Opts) => void ? Opts : never;
|
|
9
|
+
type FlipProps = typeof flip extends (options: infer Opts) => void ? Opts : never;
|
|
10
10
|
export declare const createPopperScope: import("@tamagui/create-context").CreateScope;
|
|
11
|
-
|
|
11
|
+
type PopperContextValue = UseFloatingReturn & {
|
|
12
12
|
isMounted: boolean;
|
|
13
13
|
anchorRef: any;
|
|
14
14
|
size?: SizeTokens;
|
|
@@ -20,7 +20,7 @@ declare type PopperContextValue = UseFloatingReturn & {
|
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
22
|
declare const usePopperContext: (consumerName: string, scope: Scope<PopperContextValue | undefined>) => PopperContextValue;
|
|
23
|
-
export
|
|
23
|
+
export type PopperProps = {
|
|
24
24
|
size?: SizeTokens;
|
|
25
25
|
children?: React.ReactNode;
|
|
26
26
|
placement?: Placement;
|
|
@@ -29,25 +29,25 @@ export declare type PopperProps = {
|
|
|
29
29
|
strategy?: Strategy;
|
|
30
30
|
};
|
|
31
31
|
export declare const Popper: React.FC<PopperProps>;
|
|
32
|
-
|
|
33
|
-
export
|
|
32
|
+
type PopperAnchorRef = HTMLElement | View;
|
|
33
|
+
export type PopperAnchorProps = YStackProps & {
|
|
34
34
|
virtualRef?: React.RefObject<any>;
|
|
35
35
|
};
|
|
36
|
-
export declare const PopperAnchor: React.ForwardRefExoticComponent<Omit<import("
|
|
36
|
+
export declare const PopperAnchor: React.ForwardRefExoticComponent<Omit<import("react-native").ViewProps, "children" | "display"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{}, "elevation" | "fullscreen"> & {
|
|
37
37
|
readonly fullscreen?: boolean | undefined;
|
|
38
38
|
readonly elevation?: SizeTokens | undefined;
|
|
39
|
-
} & import("@tamagui/core").MediaProps<Partial<Omit<import("
|
|
39
|
+
} & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").ViewProps, "children" | "display"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{}, "elevation" | "fullscreen"> & {
|
|
40
40
|
readonly fullscreen?: boolean | undefined;
|
|
41
41
|
readonly elevation?: SizeTokens | undefined;
|
|
42
|
-
}>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("
|
|
42
|
+
}>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").ViewProps, "children" | "display"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{}, "elevation" | "fullscreen"> & {
|
|
43
43
|
readonly fullscreen?: boolean | undefined;
|
|
44
44
|
readonly elevation?: SizeTokens | undefined;
|
|
45
45
|
}>> & {
|
|
46
46
|
virtualRef?: React.RefObject<any> | undefined;
|
|
47
47
|
} & React.RefAttributes<PopperAnchorRef>>;
|
|
48
|
-
|
|
49
|
-
export
|
|
50
|
-
export declare const PopperContent: React.ForwardRefExoticComponent<Omit<import("
|
|
48
|
+
type PopperContentElement = HTMLElement | View;
|
|
49
|
+
export type PopperContentProps = SizableStackProps;
|
|
50
|
+
export declare const PopperContent: React.ForwardRefExoticComponent<Omit<import("react-native").ViewProps, "children" | "display"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
|
|
51
51
|
readonly fullscreen?: boolean | undefined;
|
|
52
52
|
readonly elevation?: SizeTokens | undefined;
|
|
53
53
|
}, "size" | "fontFamily" | "hoverTheme" | "pressTheme" | "focusTheme" | "circular" | "elevate" | "bordered"> & {
|
|
@@ -59,7 +59,7 @@ export declare const PopperContent: React.ForwardRefExoticComponent<Omit<import(
|
|
|
59
59
|
readonly elevate?: boolean | undefined;
|
|
60
60
|
readonly bordered?: number | boolean | undefined;
|
|
61
61
|
readonly size?: SizeTokens | undefined;
|
|
62
|
-
} & import("@tamagui/core").MediaProps<Partial<Omit<import("
|
|
62
|
+
} & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").ViewProps, "children" | "display"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
|
|
63
63
|
readonly fullscreen?: boolean | undefined;
|
|
64
64
|
readonly elevation?: SizeTokens | undefined;
|
|
65
65
|
}, "size" | "fontFamily" | "hoverTheme" | "pressTheme" | "focusTheme" | "circular" | "elevate" | "bordered"> & {
|
|
@@ -71,7 +71,7 @@ export declare const PopperContent: React.ForwardRefExoticComponent<Omit<import(
|
|
|
71
71
|
readonly elevate?: boolean | undefined;
|
|
72
72
|
readonly bordered?: number | boolean | undefined;
|
|
73
73
|
readonly size?: SizeTokens | undefined;
|
|
74
|
-
}>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("
|
|
74
|
+
}>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").ViewProps, "children" | "display"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
|
|
75
75
|
readonly fullscreen?: boolean | undefined;
|
|
76
76
|
readonly elevation?: SizeTokens | undefined;
|
|
77
77
|
}, "size" | "fontFamily" | "hoverTheme" | "pressTheme" | "focusTheme" | "circular" | "elevate" | "bordered"> & {
|
|
@@ -84,18 +84,18 @@ export declare const PopperContent: React.ForwardRefExoticComponent<Omit<import(
|
|
|
84
84
|
readonly bordered?: number | boolean | undefined;
|
|
85
85
|
readonly size?: SizeTokens | undefined;
|
|
86
86
|
}>> & React.RefAttributes<PopperContentElement>>;
|
|
87
|
-
|
|
88
|
-
export
|
|
87
|
+
type PopperArrowElement = HTMLElement | View;
|
|
88
|
+
export type PopperArrowProps = YStackProps & {
|
|
89
89
|
offset?: number;
|
|
90
90
|
size?: SizeTokens;
|
|
91
91
|
};
|
|
92
|
-
export declare const PopperArrow: React.ForwardRefExoticComponent<Omit<import("
|
|
92
|
+
export declare const PopperArrow: React.ForwardRefExoticComponent<Omit<import("react-native").ViewProps, "children" | "display"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{}, "elevation" | "fullscreen"> & {
|
|
93
93
|
readonly fullscreen?: boolean | undefined;
|
|
94
94
|
readonly elevation?: SizeTokens | undefined;
|
|
95
|
-
} & import("@tamagui/core").MediaProps<Partial<Omit<import("
|
|
95
|
+
} & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").ViewProps, "children" | "display"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{}, "elevation" | "fullscreen"> & {
|
|
96
96
|
readonly fullscreen?: boolean | undefined;
|
|
97
97
|
readonly elevation?: SizeTokens | undefined;
|
|
98
|
-
}>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("
|
|
98
|
+
}>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").ViewProps, "children" | "display"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{}, "elevation" | "fullscreen"> & {
|
|
99
99
|
readonly fullscreen?: boolean | undefined;
|
|
100
100
|
readonly elevation?: SizeTokens | undefined;
|
|
101
101
|
}>> & {
|
package/types/useFloating.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import * as Floating from './floating';
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
export
|
|
3
|
+
export type UseFloatingFn = typeof Floating.useFloating;
|
|
4
|
+
type UseFloatingProps = UseFloatingFn extends (props: infer Props) => any ? Props : never;
|
|
5
|
+
export type UseFloatingReturn = Floating.UseFloatingReturn & {
|
|
6
6
|
context?: any;
|
|
7
7
|
getFloatingProps?: (props: {
|
|
8
8
|
ref: any;
|