@hanzogui/popper 8.0.0 → 8.1.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/package.json +17 -11
- package/types/Popper.d.ts +20 -20
- package/types/Popper.d.ts.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hanzogui/popper",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.1.0",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"files": [
|
|
6
6
|
"src",
|
|
@@ -34,22 +34,28 @@
|
|
|
34
34
|
"clean:build": "hanzogui-build clean:build"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@hanzogui/compose-refs": "8.
|
|
38
|
-
"@hanzogui/constants": "8.
|
|
39
|
-
"@hanzogui/core": "8.
|
|
40
|
-
"@hanzogui/floating": "8.
|
|
41
|
-
"@hanzogui/get-token": "8.
|
|
42
|
-
"@hanzogui/stacks": "8.
|
|
43
|
-
"@hanzogui/start-transition": "8.
|
|
44
|
-
"@hanzogui/use-controllable-state": "8.
|
|
37
|
+
"@hanzogui/compose-refs": "8.1.0",
|
|
38
|
+
"@hanzogui/constants": "8.1.0",
|
|
39
|
+
"@hanzogui/core": "8.1.0",
|
|
40
|
+
"@hanzogui/floating": "8.1.0",
|
|
41
|
+
"@hanzogui/get-token": "8.1.0",
|
|
42
|
+
"@hanzogui/stacks": "8.1.0",
|
|
43
|
+
"@hanzogui/start-transition": "8.1.0",
|
|
44
|
+
"@hanzogui/use-controllable-state": "8.1.0",
|
|
45
|
+
"@hanzogui/web": "8.1.0"
|
|
45
46
|
},
|
|
46
47
|
"devDependencies": {
|
|
47
|
-
"@hanzogui/build": "8.
|
|
48
|
+
"@hanzogui/build": "8.1.0",
|
|
48
49
|
"react": ">=19",
|
|
49
50
|
"react-native": "0.83.2"
|
|
50
51
|
},
|
|
51
52
|
"peerDependencies": {
|
|
52
53
|
"react": ">=19"
|
|
53
54
|
},
|
|
54
|
-
"module:jsx": "dist/jsx"
|
|
55
|
+
"module:jsx": "dist/jsx",
|
|
56
|
+
"repository": {
|
|
57
|
+
"type": "git",
|
|
58
|
+
"url": "git+https://github.com/hanzoai/gui.git",
|
|
59
|
+
"directory": "pkgs/ui/popper"
|
|
60
|
+
}
|
|
55
61
|
}
|
package/types/Popper.d.ts
CHANGED
|
@@ -22,8 +22,8 @@ export type PopperContextShared = {
|
|
|
22
22
|
};
|
|
23
23
|
};
|
|
24
24
|
export type PopperContextValue = UseFloatingReturn & PopperContextShared;
|
|
25
|
-
export declare const PopperContextFast: import("@hanzogui/
|
|
26
|
-
export declare const PopperPositionContext: <VariantProps extends Record<string, any>>(defaultValues?: VariantProps, namespace?: string) => import("@hanzogui/
|
|
25
|
+
export declare const PopperContextFast: import("@hanzogui/web").StyledContext<PopperContextValue>;
|
|
26
|
+
export declare const PopperPositionContext: <VariantProps extends Record<string, any>>(defaultValues?: VariantProps, namespace?: string) => import("@hanzogui/web").StyledContext<VariantProps>;
|
|
27
27
|
export declare const usePopperContext: (scope?: string) => PopperContextValue, PopperProviderFast: React.Provider<PopperContextValue> & React.ProviderExoticComponent<Partial<PopperContextValue> & {
|
|
28
28
|
children?: React.ReactNode;
|
|
29
29
|
scope?: string;
|
|
@@ -33,7 +33,7 @@ export type PopperContextSlowValue = Pick<UseFloatingReturn, 'getReferenceProps'
|
|
|
33
33
|
onLeaveReference?: () => void;
|
|
34
34
|
triggerElements?: PopupTriggerMap;
|
|
35
35
|
};
|
|
36
|
-
export declare const PopperContextSlow: import("@hanzogui/
|
|
36
|
+
export declare const PopperContextSlow: import("@hanzogui/web").StyledContext<PopperContextSlowValue>;
|
|
37
37
|
export declare const usePopperContextSlow: (scope?: string) => PopperContextSlowValue, PopperProviderSlow: React.Provider<PopperContextSlowValue> & React.ProviderExoticComponent<Partial<PopperContextSlowValue> & {
|
|
38
38
|
children?: React.ReactNode;
|
|
39
39
|
scope?: string;
|
|
@@ -97,13 +97,13 @@ export type PopperAnchorExtraProps = {
|
|
|
97
97
|
scope?: string;
|
|
98
98
|
};
|
|
99
99
|
export type PopperAnchorProps = YStackProps;
|
|
100
|
-
export declare const PopperAnchor: import("@hanzogui/
|
|
100
|
+
export declare const PopperAnchor: import("@hanzogui/web").GuiComponent<Omit<import("@hanzogui/web").GetFinalProps<import("@hanzogui/core").RNGuiViewNonStyleProps, import("@hanzogui/web").StackStyleBase, {
|
|
101
101
|
elevation?: number | SizeTokens | undefined;
|
|
102
102
|
fullscreen?: boolean | undefined;
|
|
103
|
-
}>, keyof PopperAnchorExtraProps> & PopperAnchorExtraProps, GuiElement, import("@hanzogui/core").RNGuiViewNonStyleProps & PopperAnchorExtraProps, import("@hanzogui/
|
|
103
|
+
}>, keyof PopperAnchorExtraProps> & PopperAnchorExtraProps, GuiElement, import("@hanzogui/core").RNGuiViewNonStyleProps & PopperAnchorExtraProps, import("@hanzogui/web").StackStyleBase, {
|
|
104
104
|
elevation?: number | SizeTokens | undefined;
|
|
105
105
|
fullscreen?: boolean | undefined;
|
|
106
|
-
}, import("@hanzogui/
|
|
106
|
+
}, import("@hanzogui/web").StaticConfigPublic>;
|
|
107
107
|
export type PopperContentProps = SizableStackProps & {
|
|
108
108
|
scope?: string;
|
|
109
109
|
/**
|
|
@@ -114,36 +114,36 @@ export type PopperContentProps = SizableStackProps & {
|
|
|
114
114
|
enableAnimationForPositionChange?: boolean | 'even-when-repositioning';
|
|
115
115
|
passThrough?: boolean;
|
|
116
116
|
};
|
|
117
|
-
export declare const PopperContentFrame: import("@hanzogui/
|
|
117
|
+
export declare const PopperContentFrame: import("@hanzogui/web").GuiComponent<import("@hanzogui/web").TamaDefer, GuiElement, import("@hanzogui/core").RNGuiViewNonStyleProps, import("@hanzogui/web").StackStyleBase, {
|
|
118
118
|
size?: SizeTokens | undefined;
|
|
119
119
|
unstyled?: boolean | undefined;
|
|
120
120
|
elevation?: number | SizeTokens | undefined;
|
|
121
121
|
fullscreen?: boolean | undefined;
|
|
122
|
-
}, import("@hanzogui/
|
|
123
|
-
export declare const PopperContent: React.ForwardRefExoticComponent<Omit<import("@hanzogui/core").RNGuiViewNonStyleProps, "size" | "unstyled" | "elevation" | keyof import("@hanzogui/
|
|
124
|
-
size?: import("@hanzogui/
|
|
122
|
+
}, import("@hanzogui/web").StaticConfigPublic>;
|
|
123
|
+
export declare const PopperContent: React.ForwardRefExoticComponent<Omit<import("@hanzogui/core").RNGuiViewNonStyleProps, "size" | "unstyled" | "elevation" | keyof import("@hanzogui/web").StackStyleBase | "fullscreen" | "transparent" | "circular" | "elevate" | "bordered" | "chromeless"> & import("@hanzogui/web").WithThemeValues<import("@hanzogui/web").StackStyleBase> & {
|
|
124
|
+
size?: import("@hanzogui/web").SizeTokens | undefined;
|
|
125
125
|
unstyled?: boolean | undefined;
|
|
126
|
-
elevation?: number | import("@hanzogui/
|
|
126
|
+
elevation?: number | import("@hanzogui/web").SizeTokens | undefined;
|
|
127
127
|
transparent?: boolean | undefined;
|
|
128
128
|
fullscreen?: boolean | undefined;
|
|
129
129
|
circular?: boolean | undefined;
|
|
130
130
|
elevate?: boolean | undefined;
|
|
131
131
|
bordered?: boolean | undefined;
|
|
132
132
|
chromeless?: boolean | "all" | undefined;
|
|
133
|
-
} & import("@hanzogui/
|
|
134
|
-
size?: import("@hanzogui/
|
|
133
|
+
} & import("@hanzogui/web").WithShorthands<import("@hanzogui/web").WithThemeValues<import("@hanzogui/web").StackStyleBase>> & import("@hanzogui/web").WithPseudoProps<import("@hanzogui/web").WithThemeValues<import("@hanzogui/web").StackStyleBase> & {
|
|
134
|
+
size?: import("@hanzogui/web").SizeTokens | undefined;
|
|
135
135
|
unstyled?: boolean | undefined;
|
|
136
|
-
elevation?: number | import("@hanzogui/
|
|
136
|
+
elevation?: number | import("@hanzogui/web").SizeTokens | undefined;
|
|
137
137
|
transparent?: boolean | undefined;
|
|
138
138
|
fullscreen?: boolean | undefined;
|
|
139
139
|
circular?: boolean | undefined;
|
|
140
140
|
elevate?: boolean | undefined;
|
|
141
141
|
bordered?: boolean | undefined;
|
|
142
142
|
chromeless?: boolean | "all" | undefined;
|
|
143
|
-
} & import("@hanzogui/
|
|
144
|
-
size?: import("@hanzogui/
|
|
143
|
+
} & import("@hanzogui/web").WithShorthands<import("@hanzogui/web").WithThemeValues<import("@hanzogui/web").StackStyleBase>>> & import("@hanzogui/web").WithMediaProps<import("@hanzogui/web").WithThemeShorthandsAndPseudos<import("@hanzogui/web").StackStyleBase, {
|
|
144
|
+
size?: import("@hanzogui/web").SizeTokens | undefined;
|
|
145
145
|
unstyled?: boolean | undefined;
|
|
146
|
-
elevation?: number | import("@hanzogui/
|
|
146
|
+
elevation?: number | import("@hanzogui/web").SizeTokens | undefined;
|
|
147
147
|
transparent?: boolean | undefined;
|
|
148
148
|
fullscreen?: boolean | undefined;
|
|
149
149
|
circular?: boolean | undefined;
|
|
@@ -170,12 +170,12 @@ export type PopperArrowExtraProps = {
|
|
|
170
170
|
animatePosition?: boolean;
|
|
171
171
|
};
|
|
172
172
|
export type PopperArrowProps = YStackProps & PopperArrowExtraProps;
|
|
173
|
-
export declare const PopperArrowFrame: import("@hanzogui/
|
|
173
|
+
export declare const PopperArrowFrame: import("@hanzogui/web").GuiComponent<import("@hanzogui/web").TamaDefer, GuiElement, import("@hanzogui/core").RNGuiViewNonStyleProps, import("@hanzogui/web").StackStyleBase, {
|
|
174
174
|
unstyled?: boolean | undefined;
|
|
175
175
|
elevation?: number | SizeTokens | undefined;
|
|
176
176
|
fullscreen?: boolean | undefined;
|
|
177
|
-
}, import("@hanzogui/
|
|
178
|
-
export declare const PopperArrow: React.ForwardRefExoticComponent<Omit<import("@hanzogui/
|
|
177
|
+
}, import("@hanzogui/web").StaticConfigPublic>;
|
|
178
|
+
export declare const PopperArrow: React.ForwardRefExoticComponent<Omit<import("@hanzogui/web").GetFinalProps<import("@hanzogui/core").RNGuiViewNonStyleProps, import("@hanzogui/web").StackStyleBase, {
|
|
179
179
|
elevation?: number | SizeTokens | undefined;
|
|
180
180
|
fullscreen?: boolean | undefined;
|
|
181
181
|
}>, keyof import("@hanzogui/stacks").StackVariants> & import("@hanzogui/stacks").StackVariants & PopperArrowExtraProps & React.RefAttributes<GuiElement>>;
|
package/types/Popper.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Popper.d.ts","sourceRoot":"","sources":["../src/Popper.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAa,MAAM,gBAAgB,CAAA;AASvE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAEzD,OAAO,KAAK,EACV,MAAM,EAEN,aAAa,EACb,SAAS,EAGT,WAAW,EACX,QAAQ,EACR,iBAAiB,EAClB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EAEL,IAAI,EAIJ,KAAK,EAGN,MAAM,oBAAoB,CAAA;AAE3B,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAGtE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B,KAAK,UAAU,GAAG,OAAO,KAAK,SAAS,CAAC,OAAO,EAAE,MAAM,IAAI,KAAK,IAAI,GAAG,IAAI,GAAG,KAAK,CAAA;AACnF,KAAK,SAAS,GAAG,OAAO,IAAI,SAAS,CAAC,OAAO,EAAE,MAAM,IAAI,KAAK,IAAI,GAAG,IAAI,GAAG,KAAK,CAAA;AAMjF,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,OAAO,CAAA;IACb,IAAI,CAAC,EAAE,UAAU,CAAA;IACjB,WAAW,EAAE,OAAO,CAAA;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,GAAG;QAC7B,YAAY,EAAE,MAAM,CAAA;KACrB,CAAA;IACD,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,QAAQ,EAAE,G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