@hanzogui/context-menu 3.0.2 → 7.3.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/cjs/ContextMenu.cjs +142 -139
- package/dist/cjs/ContextMenu.native.js +172 -170
- package/dist/cjs/ContextMenu.native.js.map +1 -1
- package/dist/cjs/createNonNativeContextMenu.cjs +370 -344
- package/dist/cjs/createNonNativeContextMenu.native.js +391 -364
- package/dist/cjs/createNonNativeContextMenu.native.js.map +1 -1
- package/dist/cjs/index.cjs +24 -22
- package/dist/cjs/index.native.js +26 -24
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/esm/ContextMenu.mjs +114 -113
- package/dist/esm/ContextMenu.mjs.map +1 -1
- package/dist/esm/ContextMenu.native.js +141 -141
- package/dist/esm/ContextMenu.native.js.map +1 -1
- package/dist/esm/createNonNativeContextMenu.mjs +340 -316
- package/dist/esm/createNonNativeContextMenu.mjs.map +1 -1
- package/dist/esm/createNonNativeContextMenu.native.js +361 -336
- package/dist/esm/createNonNativeContextMenu.native.js.map +1 -1
- package/dist/jsx/ContextMenu.mjs +114 -113
- package/dist/jsx/ContextMenu.mjs.map +1 -1
- package/dist/jsx/ContextMenu.native.js +172 -170
- package/dist/jsx/ContextMenu.native.js.map +1 -1
- package/dist/jsx/createNonNativeContextMenu.mjs +340 -316
- package/dist/jsx/createNonNativeContextMenu.mjs.map +1 -1
- package/dist/jsx/createNonNativeContextMenu.native.js +391 -364
- package/dist/jsx/createNonNativeContextMenu.native.js.map +1 -1
- package/dist/jsx/index.native.js +26 -24
- package/dist/jsx/index.native.js.map +1 -1
- package/package.json +14 -12
- package/types/ContextMenu.d.ts +59 -59
- package/types/ContextMenu.d.ts.map +1 -0
- package/types/createNonNativeContextMenu.d.ts +53 -53
- package/types/createNonNativeContextMenu.d.ts.map +1 -0
- package/types/index.d.ts +59 -59
- package/types/index.d.ts.map +1 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type BaseMenuTypes from '@
|
|
2
|
-
import { createBaseMenu, type CreateBaseMenuProps } from '@
|
|
3
|
-
import { type GuiElement, type ViewProps } from '@
|
|
1
|
+
import type BaseMenuTypes from '@hanzogui/create-menu';
|
|
2
|
+
import { createBaseMenu, type CreateBaseMenuProps } from '@hanzogui/create-menu';
|
|
3
|
+
import { type GuiElement, type ViewProps } from '@hanzogui/web';
|
|
4
4
|
import React from 'react';
|
|
5
5
|
type Direction = 'ltr' | 'rtl';
|
|
6
6
|
export declare const CONTEXTMENU_CONTEXT = "ContextMenuContext";
|
|
@@ -43,136 +43,136 @@ interface ContextMenuSubProps extends BaseMenuTypes.MenuSubProps {
|
|
|
43
43
|
type ContextMenuSubTriggerProps = React.ComponentPropsWithoutRef<BaseMenu['SubTrigger']>;
|
|
44
44
|
type ContextMenuSubContentProps = React.ComponentPropsWithoutRef<BaseMenu['SubContent']>;
|
|
45
45
|
export declare function createNonNativeContextMenu(params: CreateBaseMenuProps): {
|
|
46
|
-
(props: ScopedProps<ContextMenuProps>):
|
|
46
|
+
(props: ScopedProps<ContextMenuProps>): React.JSX.Element;
|
|
47
47
|
displayName: string;
|
|
48
48
|
} & {
|
|
49
49
|
Root: {
|
|
50
|
-
(props: ScopedProps<ContextMenuProps>):
|
|
50
|
+
(props: ScopedProps<ContextMenuProps>): React.JSX.Element;
|
|
51
51
|
displayName: string;
|
|
52
52
|
};
|
|
53
|
-
Trigger: import("@
|
|
53
|
+
Trigger: import("@hanzogui/web").GuiComponent<Omit<ViewProps, "scope" | keyof ContextMenuTriggerProps> & ContextMenuTriggerProps & {
|
|
54
54
|
scope?: string;
|
|
55
|
-
}, GuiElement, import("@
|
|
55
|
+
}, GuiElement, import("@hanzogui/web").StackNonStyleProps & ContextMenuTriggerProps & {
|
|
56
56
|
scope?: string;
|
|
57
|
-
}, import("@
|
|
57
|
+
}, import("@hanzogui/web").StackStyleBase, {}, {}>;
|
|
58
58
|
Portal: {
|
|
59
|
-
(props: ScopedProps<ContextMenuPortalProps>):
|
|
59
|
+
(props: ScopedProps<ContextMenuPortalProps>): React.JSX.Element;
|
|
60
60
|
displayName: string;
|
|
61
61
|
};
|
|
62
62
|
Content: React.ForwardRefExoticComponent<ContextMenuContentProps & {
|
|
63
63
|
scope?: string;
|
|
64
|
-
} & React.RefAttributes<(HTMLElement & import("@
|
|
65
|
-
Group: import("@
|
|
64
|
+
} & React.RefAttributes<(HTMLElement & import("@hanzogui/web").GuiElementMethods) | import("react-native").View>>;
|
|
65
|
+
Group: import("@hanzogui/web").GuiComponent<Omit<import("@hanzogui/web").GetFinalProps<import("@hanzogui/web").StackNonStyleProps, import("@hanzogui/web").StackStyleBase, {
|
|
66
66
|
unstyled?: boolean | undefined;
|
|
67
|
-
}>, keyof BaseMenuTypes.MenuGroupProps> & BaseMenuTypes.MenuGroupProps, GuiElement, import("@
|
|
67
|
+
}>, keyof BaseMenuTypes.MenuGroupProps> & BaseMenuTypes.MenuGroupProps, GuiElement, import("@hanzogui/web").StackNonStyleProps & BaseMenuTypes.MenuGroupProps, import("@hanzogui/web").StackStyleBase, {
|
|
68
68
|
unstyled?: boolean | undefined;
|
|
69
|
-
}, import("@
|
|
70
|
-
Label: import("@
|
|
69
|
+
}, import("@hanzogui/web").StaticConfigPublic>;
|
|
70
|
+
Label: import("@hanzogui/web").GuiComponent<Omit<import("@hanzogui/web").GetFinalProps<import("@hanzogui/web").TextNonStyleProps, import("@hanzogui/web").TextStylePropsBase, {
|
|
71
71
|
unstyled?: boolean | undefined;
|
|
72
|
-
size?: import("@
|
|
73
|
-
}>, keyof BaseMenuTypes.MenuLabelProps> & BaseMenuTypes.MenuLabelProps, import("@
|
|
72
|
+
size?: import("@hanzogui/web").FontSizeTokens | undefined;
|
|
73
|
+
}>, keyof BaseMenuTypes.MenuLabelProps> & BaseMenuTypes.MenuLabelProps, import("@hanzogui/web").GuiTextElement, import("@hanzogui/web").TextNonStyleProps & BaseMenuTypes.MenuLabelProps, import("@hanzogui/web").TextStylePropsBase, {
|
|
74
74
|
unstyled?: boolean | undefined;
|
|
75
|
-
size?: import("@
|
|
76
|
-
}, import("@
|
|
77
|
-
Item: React.ForwardRefExoticComponent<Omit<Omit<import("@
|
|
75
|
+
size?: import("@hanzogui/web").FontSizeTokens | undefined;
|
|
76
|
+
}, import("@hanzogui/web").StaticConfigPublic>;
|
|
77
|
+
Item: React.ForwardRefExoticComponent<Omit<Omit<import("@hanzogui/web").GetFinalProps<import("@hanzogui/web").StackNonStyleProps, import("@hanzogui/web").StackStyleBase, {
|
|
78
78
|
unstyled?: boolean | undefined;
|
|
79
79
|
}>, "scope" | keyof BaseMenuTypes.MenuItemProps> & BaseMenuTypes.MenuItemProps & {
|
|
80
80
|
scope?: string;
|
|
81
81
|
} & React.RefAttributes<GuiElement>, "ref"> & {
|
|
82
82
|
scope?: string;
|
|
83
83
|
} & React.RefAttributes<GuiElement>>;
|
|
84
|
-
CheckboxItem: React.ForwardRefExoticComponent<Omit<Omit<import("@
|
|
84
|
+
CheckboxItem: React.ForwardRefExoticComponent<Omit<Omit<import("@hanzogui/web").GetFinalProps<import("@hanzogui/web").StackNonStyleProps, import("@hanzogui/web").StackStyleBase, {
|
|
85
85
|
unstyled?: boolean | undefined;
|
|
86
86
|
}>, "scope" | keyof BaseMenuTypes.MenuCheckboxItemProps> & BaseMenuTypes.MenuCheckboxItemProps & {
|
|
87
87
|
scope?: string;
|
|
88
88
|
} & React.RefAttributes<GuiElement>, "ref"> & {
|
|
89
89
|
scope?: string;
|
|
90
90
|
} & React.RefAttributes<GuiElement>>;
|
|
91
|
-
RadioGroup: React.ForwardRefExoticComponent<Omit<Omit<import("@
|
|
91
|
+
RadioGroup: React.ForwardRefExoticComponent<Omit<Omit<import("@hanzogui/web").GetFinalProps<import("@hanzogui/web").StackNonStyleProps, import("@hanzogui/web").StackStyleBase, {
|
|
92
92
|
unstyled?: boolean | undefined;
|
|
93
93
|
}>, "scope" | keyof BaseMenuTypes.MenuRadioGroupProps> & BaseMenuTypes.MenuRadioGroupProps & {
|
|
94
94
|
scope?: string;
|
|
95
95
|
} & React.RefAttributes<GuiElement>, "ref"> & {
|
|
96
96
|
scope?: string;
|
|
97
|
-
} & React.RefAttributes<(HTMLElement & import("@
|
|
98
|
-
RadioItem: React.ForwardRefExoticComponent<Omit<Omit<import("@
|
|
97
|
+
} & React.RefAttributes<(HTMLElement & import("@hanzogui/web").GuiElementMethods) | import("react-native").View>>;
|
|
98
|
+
RadioItem: React.ForwardRefExoticComponent<Omit<Omit<import("@hanzogui/web").GetFinalProps<import("@hanzogui/web").StackNonStyleProps, import("@hanzogui/web").StackStyleBase, {
|
|
99
99
|
unstyled?: boolean | undefined;
|
|
100
100
|
}>, "scope" | keyof BaseMenuTypes.MenuRadioItemProps> & BaseMenuTypes.MenuRadioItemProps & {
|
|
101
101
|
scope?: string;
|
|
102
102
|
} & React.RefAttributes<GuiElement>, "ref"> & {
|
|
103
103
|
scope?: string;
|
|
104
104
|
} & React.RefAttributes<GuiElement>>;
|
|
105
|
-
ItemIndicator: import("@
|
|
105
|
+
ItemIndicator: import("@hanzogui/web").GuiComponent<Omit<Omit<import("@hanzogui/web").GetFinalProps<import("@hanzogui/web").StackNonStyleProps, import("@hanzogui/web").StackStyleBase, {
|
|
106
106
|
unstyled?: boolean | undefined;
|
|
107
107
|
}>, "scope" | keyof BaseMenuTypes.MenuItemIndicatorProps> & BaseMenuTypes.MenuItemIndicatorProps & {
|
|
108
108
|
scope?: string;
|
|
109
|
-
}, "theme" | "debug" | `$${string}` | `$${number}` | `$group-${string}` | `$group-${number}` | `$group-${string}-hover` | `$group-${string}-press` | `$group-${string}-focus` | `$group-${string}-focusVisible` | `$group-${string}-focusWithin` | `$group-${number}-hover` | `$group-${number}-press` | `$group-${number}-focus` | `$group-${number}-focusVisible` | `$group-${number}-focusWithin` | `$theme-${string}` | `$theme-${number}` | "hitSlop" | "pointerEvents" | "display" | "children" | "target" | "htmlFor" | "asChild" | "dangerouslySetInnerHTML" | "disabled" | "className" | "themeShallow" | "unstyled" | "id" | "render" | "group" | "untilMeasured" | "componentName" | "tabIndex" | "role" | "disableOptimization" | "forceStyle" | "disableClassName" | "animatedBy" | "style" | "onFocus" | "onBlur" | "onPointerCancel" | "onPointerDown" | "onPointerMove" | "onPointerUp" | "needsOffscreenAlphaCompositing" | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "collapsableChildren" | "renderToHardwareTextureAndroid" | "focusable" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMoveCapture" | "onPointerCancelCapture" | "onPointerDownCapture" | "onPointerUpCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "aria-label" | "accessibilityRole" | "accessibilityState" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "accessibilityHint" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onAccessibilityAction" | "importantForAccessibility" | "aria-hidden" | "aria-modal" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "screenReaderFocusable" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "accessibilityRespondsToUserInteraction" | "position" | "x" | "y" | "perspective" | "scale" | "scaleX" | "scaleY" | "skewX" | "skewY" | "matrix" | "rotate" | "rotateY" | "rotateX" | "rotateZ" | "borderCurve" | "contain" | "cursor" | "outlineColor" | "outlineOffset" | "outlineStyle" | "outlineWidth" | "outline" | "userSelect" | "backdropFilter" | "background" | "backgroundImage" | "backgroundOrigin" | "backgroundPosition" | "backgroundRepeat" | "backgroundSize" | "boxShadow" | "border" | "overflowX" | "overflowY" | "transformOrigin" | "filter" | "backgroundClip" | "backgroundBlendMode" | "backgroundAttachment" | "clipPath" | "caretColor" | "transformStyle" | "mask" | "maskImage" | "textEmphasis" | "borderImage" | "float" | "content" | "overflowBlock" | "overflowInline" | "maskBorder" | "maskBorderMode" | "maskBorderOutset" | "maskBorderRepeat" | "maskBorderSlice" | "maskBorderSource" | "maskBorderWidth" | "maskClip" | "maskComposite" | "maskMode" | "maskOrigin" | "maskPosition" | "maskRepeat" | "maskSize" | "maskType" | "gridRow" | "gridRowEnd" | "gridRowGap" | "gridRowStart" | "gridColumn" | "gridColumnEnd" | "gridColumnGap" | "gridColumnStart" | "gridTemplateColumns" | "gridTemplateAreas" | "containerType" | "blockSize" | "inlineSize" | "minBlockSize" | "maxBlockSize" | "objectFit" | "verticalAlign" | "minInlineSize" | "maxInlineSize" | "borderInlineColor" | "borderInlineStartColor" | "borderInlineEndColor" | "borderBlockWidth" | "borderBlockStartWidth" | "borderBlockEndWidth" | "borderInlineWidth" | "borderInlineStartWidth" | "borderInlineEndWidth" | "borderBlockStyle" | "borderBlockStartStyle" | "borderBlockEndStyle" | "borderInlineStyle" | "borderInlineStartStyle" | "borderInlineEndStyle" | "marginBlock" | "marginBlockStart" | "marginBlockEnd" | "marginInline" | "marginInlineStart" | "marginInlineEnd" | "paddingBlock" | "paddingBlockStart" | "paddingBlockEnd" | "paddingInline" | "paddingInlineStart" | "paddingInlineEnd" | "inset" | "insetBlock" | "insetBlockStart" | "insetBlockEnd" | "insetInline" | "insetInlineStart" | "insetInlineEnd" | "transition" | "animateOnly" | "animatePresence" | "passThrough" | "backfaceVisibility" | "backgroundColor" | "borderBlockColor" | "borderBlockEndColor" | "borderBlockStartColor" | "borderBottomColor" | "borderBottomEndRadius" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderBottomStartRadius" | "borderColor" | "borderEndColor" | "borderEndEndRadius" | "borderEndStartRadius" | "borderLeftColor" | "borderRadius" | "borderRightColor" | "borderStartColor" | "borderStartEndRadius" | "borderStartStartRadius" | "borderStyle" | "borderTopColor" | "borderTopEndRadius" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderTopStartRadius" | "opacity" | "isolation" | "mixBlendMode" | "experimental_backgroundImage" | "alignContent" | "alignItems" | "alignSelf" | "aspectRatio" | "borderBottomWidth" | "borderEndWidth" | "borderLeftWidth" | "borderRightWidth" | "borderStartWidth" | "borderTopWidth" | "borderWidth" | "bottom" | "boxSizing" | "end" | "flex" | "flexBasis" | "flexDirection" | "rowGap" | "gap" | "columnGap" | "flexGrow" | "flexShrink" | "flexWrap" | "height" | "justifyContent" | "left" | "margin" | "marginBottom" | "marginEnd" | "marginHorizontal" | "marginLeft" | "marginRight" | "marginStart" | "marginTop" | "marginVertical" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "overflow" | "padding" | "paddingBottom" | "paddingEnd" | "paddingHorizontal" | "paddingLeft" | "paddingRight" | "paddingStart" | "paddingTop" | "paddingVertical" | "right" | "start" | "top" | "width" | "zIndex" | "direction" | "shadowColor" | "shadowOffset" | "shadowOpacity" | "shadowRadius" | "transform" | "transformMatrix" | "rotation" | "translateX" | "translateY" | "onPress" | "onLongPress" | "onPressIn" | "onPressOut" | "onMouseEnter" | "onMouseLeave" | "onMouseDown" | "onMouseUp" | "onMouseMove" | "onMouseOver" | "onMouseOut" | "onClick" | "onDoubleClick" | "onContextMenu" | "onWheel" | "onKeyDown" | "onKeyUp" | "onChange" | "onInput" | "onBeforeInput" | "onScroll" | "onCopy" | "onCut" | "onPaste" | "onDrag" | "onDragStart" | "onDragEnd" | "onDragEnter" | "onDragLeave" | "onDragOver" | "onDrop" | "hoverStyle" | "pressStyle" | "focusStyle" | "focusWithinStyle" | "focusVisibleStyle" | "disabledStyle" | "exitStyle" | "enterStyle" | "forceMount" | "scope" | "key"> & Omit<Omit<import("@
|
|
109
|
+
}, "theme" | "debug" | `$${string}` | `$${number}` | `$group-${string}` | `$group-${number}` | `$group-${string}-hover` | `$group-${string}-press` | `$group-${string}-focus` | `$group-${string}-focusVisible` | `$group-${string}-focusWithin` | `$group-${number}-hover` | `$group-${number}-press` | `$group-${number}-focus` | `$group-${number}-focusVisible` | `$group-${number}-focusWithin` | `$theme-${string}` | `$theme-${number}` | "hitSlop" | "pointerEvents" | "display" | "children" | "target" | "htmlFor" | "asChild" | "dangerouslySetInnerHTML" | "disabled" | "className" | "themeShallow" | "unstyled" | "id" | "render" | "group" | "untilMeasured" | "componentName" | "tabIndex" | "role" | "disableOptimization" | "forceStyle" | "disableClassName" | "animatedBy" | "style" | "onFocus" | "onBlur" | "onPointerCancel" | "onPointerDown" | "onPointerMove" | "onPointerUp" | "needsOffscreenAlphaCompositing" | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "collapsableChildren" | "renderToHardwareTextureAndroid" | "focusable" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMoveCapture" | "onPointerCancelCapture" | "onPointerDownCapture" | "onPointerUpCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "aria-label" | "accessibilityRole" | "accessibilityState" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "accessibilityHint" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onAccessibilityAction" | "importantForAccessibility" | "aria-hidden" | "aria-modal" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "screenReaderFocusable" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "accessibilityRespondsToUserInteraction" | "position" | "x" | "y" | "perspective" | "scale" | "scaleX" | "scaleY" | "skewX" | "skewY" | "matrix" | "rotate" | "rotateY" | "rotateX" | "rotateZ" | "borderCurve" | "contain" | "cursor" | "outlineColor" | "outlineOffset" | "outlineStyle" | "outlineWidth" | "outline" | "userSelect" | "backdropFilter" | "background" | "backgroundImage" | "backgroundOrigin" | "backgroundPosition" | "backgroundRepeat" | "backgroundSize" | "boxShadow" | "border" | "overflowX" | "overflowY" | "transformOrigin" | "filter" | "backgroundClip" | "backgroundBlendMode" | "backgroundAttachment" | "clipPath" | "caretColor" | "transformStyle" | "mask" | "maskImage" | "textEmphasis" | "borderImage" | "float" | "content" | "overflowBlock" | "overflowInline" | "maskBorder" | "maskBorderMode" | "maskBorderOutset" | "maskBorderRepeat" | "maskBorderSlice" | "maskBorderSource" | "maskBorderWidth" | "maskClip" | "maskComposite" | "maskMode" | "maskOrigin" | "maskPosition" | "maskRepeat" | "maskSize" | "maskType" | "gridRow" | "gridRowEnd" | "gridRowGap" | "gridRowStart" | "gridColumn" | "gridColumnEnd" | "gridColumnGap" | "gridColumnStart" | "gridTemplateColumns" | "gridTemplateAreas" | "containerType" | "blockSize" | "inlineSize" | "minBlockSize" | "maxBlockSize" | "objectFit" | "verticalAlign" | "minInlineSize" | "maxInlineSize" | "borderInlineColor" | "borderInlineStartColor" | "borderInlineEndColor" | "borderBlockWidth" | "borderBlockStartWidth" | "borderBlockEndWidth" | "borderInlineWidth" | "borderInlineStartWidth" | "borderInlineEndWidth" | "borderBlockStyle" | "borderBlockStartStyle" | "borderBlockEndStyle" | "borderInlineStyle" | "borderInlineStartStyle" | "borderInlineEndStyle" | "marginBlock" | "marginBlockStart" | "marginBlockEnd" | "marginInline" | "marginInlineStart" | "marginInlineEnd" | "paddingBlock" | "paddingBlockStart" | "paddingBlockEnd" | "paddingInline" | "paddingInlineStart" | "paddingInlineEnd" | "inset" | "insetBlock" | "insetBlockStart" | "insetBlockEnd" | "insetInline" | "insetInlineStart" | "insetInlineEnd" | "transition" | "animateOnly" | "animatePresence" | "passThrough" | "backfaceVisibility" | "backgroundColor" | "borderBlockColor" | "borderBlockEndColor" | "borderBlockStartColor" | "borderBottomColor" | "borderBottomEndRadius" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderBottomStartRadius" | "borderColor" | "borderEndColor" | "borderEndEndRadius" | "borderEndStartRadius" | "borderLeftColor" | "borderRadius" | "borderRightColor" | "borderStartColor" | "borderStartEndRadius" | "borderStartStartRadius" | "borderStyle" | "borderTopColor" | "borderTopEndRadius" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderTopStartRadius" | "opacity" | "isolation" | "mixBlendMode" | "experimental_backgroundImage" | "alignContent" | "alignItems" | "alignSelf" | "aspectRatio" | "borderBottomWidth" | "borderEndWidth" | "borderLeftWidth" | "borderRightWidth" | "borderStartWidth" | "borderTopWidth" | "borderWidth" | "bottom" | "boxSizing" | "end" | "flex" | "flexBasis" | "flexDirection" | "rowGap" | "gap" | "columnGap" | "flexGrow" | "flexShrink" | "flexWrap" | "height" | "justifyContent" | "left" | "margin" | "marginBottom" | "marginEnd" | "marginHorizontal" | "marginLeft" | "marginRight" | "marginStart" | "marginTop" | "marginVertical" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "overflow" | "padding" | "paddingBottom" | "paddingEnd" | "paddingHorizontal" | "paddingLeft" | "paddingRight" | "paddingStart" | "paddingTop" | "paddingVertical" | "right" | "start" | "top" | "width" | "zIndex" | "direction" | "shadowColor" | "shadowOffset" | "shadowOpacity" | "shadowRadius" | "transform" | "transformMatrix" | "rotation" | "translateX" | "translateY" | "onPress" | "onLongPress" | "onPressIn" | "onPressOut" | "onMouseEnter" | "onMouseLeave" | "onMouseDown" | "onMouseUp" | "onMouseMove" | "onMouseOver" | "onMouseOut" | "onClick" | "onDoubleClick" | "onContextMenu" | "onWheel" | "onKeyDown" | "onKeyUp" | "onChange" | "onInput" | "onBeforeInput" | "onScroll" | "onCopy" | "onCut" | "onPaste" | "onDrag" | "onDragStart" | "onDragEnd" | "onDragEnter" | "onDragLeave" | "onDragOver" | "onDrop" | "hoverStyle" | "pressStyle" | "focusStyle" | "focusWithinStyle" | "focusVisibleStyle" | "disabledStyle" | "exitStyle" | "enterStyle" | "forceMount" | "scope" | "key"> & Omit<Omit<import("@hanzogui/web").GetFinalProps<import("@hanzogui/web").StackNonStyleProps, import("@hanzogui/web").StackStyleBase, {
|
|
110
110
|
unstyled?: boolean | undefined;
|
|
111
111
|
}>, "scope" | keyof BaseMenuTypes.MenuItemIndicatorProps> & BaseMenuTypes.MenuItemIndicatorProps & {
|
|
112
112
|
scope?: string;
|
|
113
113
|
} & React.RefAttributes<GuiElement>, "ref"> & {
|
|
114
114
|
scope?: string;
|
|
115
|
-
}, GuiElement, import("@
|
|
115
|
+
}, GuiElement, import("@hanzogui/web").StackNonStyleProps & BaseMenuTypes.MenuItemIndicatorProps & {
|
|
116
116
|
scope?: string;
|
|
117
|
-
} & Omit<Omit<import("@
|
|
117
|
+
} & Omit<Omit<import("@hanzogui/web").GetFinalProps<import("@hanzogui/web").StackNonStyleProps, import("@hanzogui/web").StackStyleBase, {
|
|
118
118
|
unstyled?: boolean | undefined;
|
|
119
119
|
}>, "scope" | keyof BaseMenuTypes.MenuItemIndicatorProps> & BaseMenuTypes.MenuItemIndicatorProps & {
|
|
120
120
|
scope?: string;
|
|
121
121
|
} & React.RefAttributes<GuiElement>, "ref"> & {
|
|
122
122
|
scope?: string;
|
|
123
|
-
}, import("@
|
|
123
|
+
}, import("@hanzogui/web").StackStyleBase, {
|
|
124
124
|
unstyled?: boolean | undefined;
|
|
125
|
-
}, import("@
|
|
126
|
-
Separator: import("@
|
|
125
|
+
}, import("@hanzogui/web").StaticConfigPublic>;
|
|
126
|
+
Separator: import("@hanzogui/web").GuiComponent<Omit<import("@hanzogui/web").GetFinalProps<import("@hanzogui/web").StackNonStyleProps, import("@hanzogui/web").StackStyleBase, {
|
|
127
127
|
unstyled?: boolean | undefined;
|
|
128
|
-
}>, keyof BaseMenuTypes.MenuSeparatorProps> & BaseMenuTypes.MenuSeparatorProps, GuiElement, import("@
|
|
128
|
+
}>, keyof BaseMenuTypes.MenuSeparatorProps> & BaseMenuTypes.MenuSeparatorProps, GuiElement, import("@hanzogui/web").StackNonStyleProps & BaseMenuTypes.MenuSeparatorProps, import("@hanzogui/web").StackStyleBase, {
|
|
129
129
|
unstyled?: boolean | undefined;
|
|
130
|
-
}, import("@
|
|
130
|
+
}, import("@hanzogui/web").StaticConfigPublic>;
|
|
131
131
|
Arrow: React.ForwardRefExoticComponent<Omit<BaseMenuTypes.MenuArrowProps & React.RefAttributes<GuiElement>, "ref"> & {
|
|
132
132
|
scope?: string;
|
|
133
133
|
} & React.RefAttributes<GuiElement>>;
|
|
134
134
|
Sub: {
|
|
135
|
-
(props: ScopedProps<ContextMenuSubProps>):
|
|
135
|
+
(props: ScopedProps<ContextMenuSubProps>): React.JSX.Element;
|
|
136
136
|
displayName: string;
|
|
137
137
|
};
|
|
138
|
-
SubTrigger: import("@
|
|
138
|
+
SubTrigger: import("@hanzogui/web").GuiComponent<Omit<ViewProps, "scope" | "key" | keyof BaseMenuTypes.MenuSubTriggerProps> & Omit<BaseMenuTypes.MenuSubTriggerProps & {
|
|
139
139
|
scope?: string;
|
|
140
140
|
} & React.RefAttributes<GuiElement>, "ref"> & {
|
|
141
141
|
scope?: string;
|
|
142
|
-
}, GuiElement, import("@
|
|
142
|
+
}, GuiElement, import("@hanzogui/web").StackNonStyleProps & Omit<BaseMenuTypes.MenuSubTriggerProps & {
|
|
143
143
|
scope?: string;
|
|
144
144
|
} & React.RefAttributes<GuiElement>, "ref"> & {
|
|
145
145
|
scope?: string;
|
|
146
|
-
}, import("@
|
|
147
|
-
SubContent: React.ForwardRefExoticComponent<Omit<Omit<import("@
|
|
148
|
-
size?: import("@
|
|
146
|
+
}, import("@hanzogui/web").StackStyleBase, {}, {}>;
|
|
147
|
+
SubContent: React.ForwardRefExoticComponent<Omit<Omit<import("@hanzogui/web").GetFinalProps<import("@hanzogui/core").RNViewNonStyleProps, import("@hanzogui/web").StackStyleBase, {
|
|
148
|
+
size?: import("@hanzogui/web").SizeTokens | undefined;
|
|
149
149
|
unstyled?: boolean | undefined;
|
|
150
|
-
elevation?: number | import("@
|
|
150
|
+
elevation?: number | import("@hanzogui/web").SizeTokens | undefined;
|
|
151
151
|
fullscreen?: boolean | undefined;
|
|
152
152
|
}>, keyof BaseMenuTypes.MenuSubContentProps> & BaseMenuTypes.MenuSubContentProps & {
|
|
153
153
|
scope?: string;
|
|
154
154
|
} & React.RefAttributes<GuiElement>, "ref"> & {
|
|
155
155
|
scope?: string;
|
|
156
|
-
} & React.RefAttributes<(HTMLElement & import("@
|
|
157
|
-
ItemTitle: import("@
|
|
156
|
+
} & React.RefAttributes<(HTMLElement & import("@hanzogui/web").GuiElementMethods) | import("react-native").View>>;
|
|
157
|
+
ItemTitle: import("@hanzogui/web").GuiComponent<Omit<import("@hanzogui/web").GetFinalProps<import("@hanzogui/web").TextNonStyleProps, import("@hanzogui/web").TextStylePropsBase, {
|
|
158
158
|
unstyled?: boolean | undefined;
|
|
159
|
-
size?: import("@
|
|
160
|
-
}>, keyof BaseMenuTypes.MenuItemTitleProps> & BaseMenuTypes.MenuItemTitleProps, import("@
|
|
159
|
+
size?: import("@hanzogui/web").FontSizeTokens | undefined;
|
|
160
|
+
}>, keyof BaseMenuTypes.MenuItemTitleProps> & BaseMenuTypes.MenuItemTitleProps, import("@hanzogui/web").GuiTextElement, import("@hanzogui/web").TextNonStyleProps & BaseMenuTypes.MenuItemTitleProps, import("@hanzogui/web").TextStylePropsBase, {
|
|
161
161
|
unstyled?: boolean | undefined;
|
|
162
|
-
size?: import("@
|
|
163
|
-
}, import("@
|
|
164
|
-
ItemSubtitle: import("@
|
|
162
|
+
size?: import("@hanzogui/web").FontSizeTokens | undefined;
|
|
163
|
+
}, import("@hanzogui/web").StaticConfigPublic>;
|
|
164
|
+
ItemSubtitle: import("@hanzogui/web").GuiComponent<Omit<import("@hanzogui/web").GetFinalProps<import("@hanzogui/web").TextNonStyleProps, import("@hanzogui/web").TextStylePropsBase, {
|
|
165
165
|
unstyled?: boolean | undefined;
|
|
166
|
-
size?: import("@
|
|
167
|
-
}>, keyof BaseMenuTypes.MenuItemSubTitleProps> & BaseMenuTypes.MenuItemSubTitleProps, import("@
|
|
166
|
+
size?: import("@hanzogui/web").FontSizeTokens | undefined;
|
|
167
|
+
}>, keyof BaseMenuTypes.MenuItemSubTitleProps> & BaseMenuTypes.MenuItemSubTitleProps, import("@hanzogui/web").GuiTextElement, import("@hanzogui/web").TextNonStyleProps & BaseMenuTypes.MenuItemSubTitleProps, import("@hanzogui/web").TextStylePropsBase, {
|
|
168
168
|
unstyled?: boolean | undefined;
|
|
169
|
-
size?: import("@
|
|
170
|
-
}, import("@
|
|
171
|
-
ItemIcon: import("@
|
|
169
|
+
size?: import("@hanzogui/web").FontSizeTokens | undefined;
|
|
170
|
+
}, import("@hanzogui/web").StaticConfigPublic>;
|
|
171
|
+
ItemIcon: import("@hanzogui/web").GuiComponent<Omit<import("@hanzogui/web").GetFinalProps<import("@hanzogui/web").StackNonStyleProps, import("@hanzogui/web").StackStyleBase, {
|
|
172
172
|
unstyled?: boolean | undefined;
|
|
173
|
-
}>, `$${string}` | `$${number}` | import("@
|
|
173
|
+
}>, `$${string}` | `$${number}` | import("@hanzogui/web").GroupMediaKeys | `$theme-${string}` | `$theme-${number}` | keyof import("@hanzogui/web").StackStyleBase | keyof import("@hanzogui/web").StackNonStyleProps | keyof import("@hanzogui/web").WithPseudoProps<import("@hanzogui/web").WithThemeValues<import("@hanzogui/web").StackStyleBase> & import("@hanzogui/web").WithShorthands<import("@hanzogui/web").WithThemeValues<import("@hanzogui/web").StackStyleBase>>>> & import("@hanzogui/web").StackNonStyleProps & import("@hanzogui/web").WithThemeValues<import("@hanzogui/web").StackStyleBase> & import("@hanzogui/web").WithShorthands<import("@hanzogui/web").WithThemeValues<import("@hanzogui/web").StackStyleBase>> & import("@hanzogui/web").WithPseudoProps<import("@hanzogui/web").WithThemeValues<import("@hanzogui/web").StackStyleBase> & import("@hanzogui/web").WithShorthands<import("@hanzogui/web").WithThemeValues<import("@hanzogui/web").StackStyleBase>>> & import("@hanzogui/web").WithMediaProps<import("@hanzogui/web").WithThemeShorthandsAndPseudos<import("@hanzogui/web").StackStyleBase, {}>>, GuiElement, import("@hanzogui/web").StackNonStyleProps & import("@hanzogui/web").WithThemeValues<import("@hanzogui/web").StackStyleBase> & import("@hanzogui/web").WithShorthands<import("@hanzogui/web").WithThemeValues<import("@hanzogui/web").StackStyleBase>> & import("@hanzogui/web").WithPseudoProps<import("@hanzogui/web").WithThemeValues<import("@hanzogui/web").StackStyleBase> & import("@hanzogui/web").WithShorthands<import("@hanzogui/web").WithThemeValues<import("@hanzogui/web").StackStyleBase>>> & import("@hanzogui/web").WithMediaProps<import("@hanzogui/web").WithThemeShorthandsAndPseudos<import("@hanzogui/web").StackStyleBase, {}>>, import("@hanzogui/web").StackStyleBase, {
|
|
174
174
|
unstyled?: boolean | undefined;
|
|
175
|
-
}, import("@
|
|
175
|
+
}, import("@hanzogui/web").StaticConfigPublic>;
|
|
176
176
|
ItemImage: React.ForwardRefExoticComponent<import("react-native").ImageProps & React.RefAttributes<import("react-native").Image>>;
|
|
177
177
|
Preview: () => null;
|
|
178
178
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createNonNativeContextMenu.d.ts","sourceRoot":"","sources":["../src/createNonNativeContextMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,aAAa,MAAM,uBAAuB,CAAA;AACtD,OAAO,EAAE,cAAc,EAAE,KAAK,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAEhF,OAAO,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