@hanzogui/context-menu 2.0.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 +182 -0
- package/dist/cjs/ContextMenu.native.js +191 -0
- package/dist/cjs/ContextMenu.native.js.map +1 -0
- package/dist/cjs/createNonNativeContextMenu.cjs +417 -0
- package/dist/cjs/createNonNativeContextMenu.native.js +443 -0
- package/dist/cjs/createNonNativeContextMenu.native.js.map +1 -0
- package/dist/cjs/index.cjs +39 -0
- package/dist/cjs/index.native.js +42 -0
- package/dist/cjs/index.native.js.map +1 -0
- package/dist/esm/ContextMenu.mjs +148 -0
- package/dist/esm/ContextMenu.mjs.map +1 -0
- package/dist/esm/ContextMenu.native.js +154 -0
- package/dist/esm/ContextMenu.native.js.map +1 -0
- package/dist/esm/createNonNativeContextMenu.mjs +382 -0
- package/dist/esm/createNonNativeContextMenu.mjs.map +1 -0
- package/dist/esm/createNonNativeContextMenu.native.js +405 -0
- package/dist/esm/createNonNativeContextMenu.native.js.map +1 -0
- package/dist/esm/index.js +15 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/index.mjs +15 -0
- package/dist/esm/index.mjs.map +1 -0
- package/dist/esm/index.native.js +15 -0
- package/dist/esm/index.native.js.map +1 -0
- package/dist/jsx/ContextMenu.mjs +148 -0
- package/dist/jsx/ContextMenu.mjs.map +1 -0
- package/dist/jsx/ContextMenu.native.js +191 -0
- package/dist/jsx/ContextMenu.native.js.map +1 -0
- package/dist/jsx/createNonNativeContextMenu.mjs +382 -0
- package/dist/jsx/createNonNativeContextMenu.mjs.map +1 -0
- package/dist/jsx/createNonNativeContextMenu.native.js +443 -0
- package/dist/jsx/createNonNativeContextMenu.native.js.map +1 -0
- package/dist/jsx/index.js +15 -0
- package/dist/jsx/index.js.map +1 -0
- package/dist/jsx/index.mjs +15 -0
- package/dist/jsx/index.mjs.map +1 -0
- package/dist/jsx/index.native.js +42 -0
- package/dist/jsx/index.native.js.map +1 -0
- package/package.json +53 -0
- package/src/ContextMenu.tsx +187 -0
- package/src/createNonNativeContextMenu.tsx +641 -0
- package/src/index.tsx +17 -0
- package/types/ContextMenu.d.ts +134 -0
- package/types/createNonNativeContextMenu.d.ts +180 -0
- package/types/index.d.ts +132 -0
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import type { CreateBaseMenuProps } from '@gui/create-menu';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export declare function createContextMenu(param: CreateBaseMenuProps): React.FC<import("./createNonNativeContextMenu").ContextMenuProps & {
|
|
4
|
+
scope?: string;
|
|
5
|
+
} & Partial<Omit<import("@gui/create-menu").NativeMenuProps, keyof import("./createNonNativeContextMenu").ContextMenuProps>>> & {
|
|
6
|
+
Trigger: React.FC<Omit<import("@gui/web").ViewProps, "scope" | keyof import("./createNonNativeContextMenu").ContextMenuTriggerProps> & import("./createNonNativeContextMenu").ContextMenuTriggerProps & {
|
|
7
|
+
scope?: string;
|
|
8
|
+
} & React.RefAttributes<import("@gui/web").GuiElement> & Partial<Omit<import("@gui/create-menu").MenuTriggerProps, "scope" | keyof React.RefAttributes<import("@gui/web").GuiElement> | keyof import("./createNonNativeContextMenu").ContextMenuTriggerProps>>>;
|
|
9
|
+
Portal: React.FC<import("@gui/create-menu").MenuPortalProps & {
|
|
10
|
+
scope?: string;
|
|
11
|
+
} & {
|
|
12
|
+
scope?: string;
|
|
13
|
+
} & Partial<Omit<React.FragmentProps, keyof import("@gui/create-menu").MenuPortalProps | "scope">>>;
|
|
14
|
+
Content: React.FC<import("./createNonNativeContextMenu").ContextMenuContentProps & {
|
|
15
|
+
scope?: string;
|
|
16
|
+
} & React.RefAttributes<(HTMLElement & import("@gui/web").GuiElementMethods) | import("react-native").View> & Partial<Omit<import("@gui/create-menu").NativeMenuContentProps, "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" | "onStartShouldSetResponder" | "onScrollShouldSetResponder" | "onScrollShouldSetResponderCapture" | "onSelectionChangeShouldSetResponder" | "onSelectionChangeShouldSetResponderCapture" | "onLayout" | "elevationAndroid" | "rel" | "download" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "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" | "elevation" | "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" | "size" | "transparent" | "circular" | "hoverStyle" | "pressStyle" | "focusStyle" | "focusWithinStyle" | "focusVisibleStyle" | "disabledStyle" | "exitStyle" | "enterStyle" | "forceMount" | "ref" | "scope" | "fullscreen" | "elevate" | "bordered" | "chromeless" | "animatePosition" | "enableAnimationForPositionChange" | "onCloseAutoFocus" | "loop" | "onEscapeKeyDown" | "onPointerDownOutside" | "onFocusOutside" | "onInteractOutside" | "key">>>;
|
|
17
|
+
Group: React.FC<Omit<import("@gui/web").GetFinalProps<import("@gui/web").StackNonStyleProps, import("@gui/web").StackStyleBase, {
|
|
18
|
+
unstyled?: boolean | undefined;
|
|
19
|
+
}>, keyof import("@gui/create-menu").MenuGroupProps> & import("@gui/create-menu").MenuGroupProps & React.RefAttributes<import("@gui/web").GuiElement> & Partial<Omit<import("@gui/create-menu").NativeMenuGroupProps, keyof React.RefAttributes<import("@gui/web").GuiElement> | keyof import("@gui/create-menu").MenuGroupProps>>>;
|
|
20
|
+
Label: React.FC<Omit<import("@gui/web").GetFinalProps<import("@gui/web").TextNonStyleProps, import("@gui/web").TextStylePropsBase, {
|
|
21
|
+
unstyled?: boolean | undefined;
|
|
22
|
+
size?: import("@gui/web").FontSizeTokens | undefined;
|
|
23
|
+
}>, keyof import("@gui/create-menu").MenuLabelProps> & import("@gui/create-menu").MenuLabelProps & React.RefAttributes<import("@gui/web").GuiTextElement> & Partial<Omit<import("@gui/create-menu").NativeMenuLabelProps, "elevation" | "fontFamily" | "fontSize" | "color" | "textShadowColor" | "lineHeight" | "fontWeight" | "letterSpacing" | "size" | "allowFontScaling" | "ellipsizeMode" | "lineBreakMode" | "numberOfLines" | "maxFontSizeMultiplier" | "minimumFontScale" | "pressRetentionOffset" | "adjustsFontSizeToFit" | "dynamicTypeRamp" | "suppressHighlighting" | "lineBreakStrategyIOS" | "selectable" | "selectionColor" | "textBreakStrategy" | "dataDetectorType" | "android_hyphenationFrequency" | "fontStyle" | "textAlign" | "textDecorationLine" | "textDecorationStyle" | "textDecorationColor" | "textShadowOffset" | "textShadowRadius" | "textTransform" | "fontVariant" | "writingDirection" | "textAlignVertical" | "includeFontPadding" | "ellipsis" | "textDecorationDistance" | "textOverflow" | "whiteSpace" | "wordWrap" | "textShadow" | keyof import("@gui/create-menu").MenuLabelProps | keyof React.RefAttributes<import("@gui/web").GuiTextElement>>>>;
|
|
24
|
+
Item: React.FC<Omit<Omit<import("@gui/web").GetFinalProps<import("@gui/web").StackNonStyleProps, import("@gui/web").StackStyleBase, {
|
|
25
|
+
unstyled?: boolean | undefined;
|
|
26
|
+
}>, "scope" | keyof import("@gui/create-menu").MenuItemProps> & import("@gui/create-menu").MenuItemProps & {
|
|
27
|
+
scope?: string;
|
|
28
|
+
} & React.RefAttributes<import("@gui/web").GuiElement>, "ref"> & {
|
|
29
|
+
scope?: string;
|
|
30
|
+
} & React.RefAttributes<import("@gui/web").GuiElement> & Partial<Omit<{
|
|
31
|
+
children: React.ReactNode;
|
|
32
|
+
textValue?: string;
|
|
33
|
+
onSelect?: (event?: Event) => void;
|
|
34
|
+
} & {
|
|
35
|
+
disabled?: boolean;
|
|
36
|
+
hidden?: boolean;
|
|
37
|
+
destructive?: boolean;
|
|
38
|
+
key: string;
|
|
39
|
+
}, "scope" | keyof React.RefAttributes<import("@gui/web").GuiElement> | keyof import("@gui/create-menu").MenuItemProps>>>;
|
|
40
|
+
CheckboxItem: React.FC<Omit<Omit<import("@gui/web").GetFinalProps<import("@gui/web").StackNonStyleProps, import("@gui/web").StackStyleBase, {
|
|
41
|
+
unstyled?: boolean | undefined;
|
|
42
|
+
}>, "scope" | keyof import("@gui/create-menu").MenuCheckboxItemProps> & import("@gui/create-menu").MenuCheckboxItemProps & {
|
|
43
|
+
scope?: string;
|
|
44
|
+
} & React.RefAttributes<import("@gui/web").GuiElement>, "ref"> & {
|
|
45
|
+
scope?: string;
|
|
46
|
+
} & React.RefAttributes<import("@gui/web").GuiElement> & Partial<Omit<Omit<import("@gui/create-menu").NativeMenuItemProps, "onSelect"> & {
|
|
47
|
+
checked?: boolean;
|
|
48
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
49
|
+
value?: "mixed" | "on" | "off" | boolean;
|
|
50
|
+
onValueChange?: (state: "mixed" | "on" | "off", prevState: "mixed" | "on" | "off") => void;
|
|
51
|
+
key: string;
|
|
52
|
+
}, "scope" | keyof React.RefAttributes<import("@gui/web").GuiElement> | keyof import("@gui/create-menu").MenuCheckboxItemProps>>>;
|
|
53
|
+
RadioGroup: React.FC<Omit<Omit<import("@gui/web").GetFinalProps<import("@gui/web").StackNonStyleProps, import("@gui/web").StackStyleBase, {
|
|
54
|
+
unstyled?: boolean | undefined;
|
|
55
|
+
}>, "scope" | keyof import("@gui/create-menu").MenuRadioGroupProps> & import("@gui/create-menu").MenuRadioGroupProps & {
|
|
56
|
+
scope?: string;
|
|
57
|
+
} & React.RefAttributes<import("@gui/web").GuiElement>, "ref"> & {
|
|
58
|
+
scope?: string;
|
|
59
|
+
} & React.RefAttributes<(HTMLElement & import("@gui/web").GuiElementMethods) | import("react-native").View> & Partial<Omit<unknown, "scope" | keyof import("@gui/create-menu").MenuRadioGroupProps | keyof React.RefAttributes<(HTMLElement & import("@gui/web").GuiElementMethods) | import("react-native").View>>>>;
|
|
60
|
+
RadioItem: React.FC<Omit<Omit<import("@gui/web").GetFinalProps<import("@gui/web").StackNonStyleProps, import("@gui/web").StackStyleBase, {
|
|
61
|
+
unstyled?: boolean | undefined;
|
|
62
|
+
}>, "scope" | keyof import("@gui/create-menu").MenuRadioItemProps> & import("@gui/create-menu").MenuRadioItemProps & {
|
|
63
|
+
scope?: string;
|
|
64
|
+
} & React.RefAttributes<import("@gui/web").GuiElement>, "ref"> & {
|
|
65
|
+
scope?: string;
|
|
66
|
+
} & React.RefAttributes<import("@gui/web").GuiElement> & Partial<Omit<any, "scope" | keyof React.RefAttributes<import("@gui/web").GuiElement> | keyof import("@gui/create-menu").MenuRadioItemProps>>>;
|
|
67
|
+
ItemIndicator: React.FC<Omit<Omit<import("@gui/web").GetFinalProps<import("@gui/web").StackNonStyleProps, import("@gui/web").StackStyleBase, {
|
|
68
|
+
unstyled?: boolean | undefined;
|
|
69
|
+
}>, "scope" | keyof import("@gui/create-menu").MenuItemIndicatorProps> & import("@gui/create-menu").MenuItemIndicatorProps & {
|
|
70
|
+
scope?: string;
|
|
71
|
+
}, "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("@gui/web").GetFinalProps<import("@gui/web").StackNonStyleProps, import("@gui/web").StackStyleBase, {
|
|
72
|
+
unstyled?: boolean | undefined;
|
|
73
|
+
}>, "scope" | keyof import("@gui/create-menu").MenuItemIndicatorProps> & import("@gui/create-menu").MenuItemIndicatorProps & {
|
|
74
|
+
scope?: string;
|
|
75
|
+
} & React.RefAttributes<import("@gui/web").GuiElement>, "ref"> & {
|
|
76
|
+
scope?: string;
|
|
77
|
+
} & React.RefAttributes<import("@gui/web").GuiElement> & Partial<Omit<import("@gui/create-menu").NativeMenuItemIndicatorProps, "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" | keyof React.RefAttributes<import("@gui/web").GuiElement>>>>;
|
|
78
|
+
Separator: React.FC<Omit<import("@gui/web").GetFinalProps<import("@gui/web").StackNonStyleProps, import("@gui/web").StackStyleBase, {
|
|
79
|
+
unstyled?: boolean | undefined;
|
|
80
|
+
}>, keyof import("@gui/create-menu").MenuSeparatorProps> & import("@gui/create-menu").MenuSeparatorProps & React.RefAttributes<import("@gui/web").GuiElement> & Partial<Omit<import("@gui/create-menu").NativeMenuSeparatorProps, keyof React.RefAttributes<import("@gui/web").GuiElement> | keyof import("@gui/create-menu").MenuSeparatorProps>>>;
|
|
81
|
+
Arrow: React.FC<Omit<import("@gui/create-menu").MenuArrowProps & React.RefAttributes<import("@gui/web").GuiElement>, "ref"> & {
|
|
82
|
+
scope?: string;
|
|
83
|
+
} & React.RefAttributes<import("@gui/web").GuiElement> & Partial<Omit<import("@gui/create-menu").NativeMenuArrowProps, "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" | "onStartShouldSetResponder" | "onScrollShouldSetResponder" | "onScrollShouldSetResponderCapture" | "onSelectionChangeShouldSetResponder" | "onSelectionChangeShouldSetResponderCapture" | "onLayout" | "elevationAndroid" | "rel" | "download" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "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" | "elevation" | "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" | "size" | "hoverStyle" | "pressStyle" | "focusStyle" | "focusWithinStyle" | "focusVisibleStyle" | "disabledStyle" | "exitStyle" | "enterStyle" | "scope" | "fullscreen" | "animatePosition" | keyof React.RefAttributes<import("@gui/web").GuiElement> | "offset">>>;
|
|
84
|
+
Sub: React.FC<import("./createNonNativeContextMenu").ContextMenuSubProps & {
|
|
85
|
+
scope?: string;
|
|
86
|
+
} & Partial<Omit<import("@gui/create-menu").NativeMenuSubProps, keyof import("./createNonNativeContextMenu").ContextMenuSubProps>>>;
|
|
87
|
+
SubTrigger: React.FC<Omit<import("@gui/create-menu").MenuSubTriggerProps & {
|
|
88
|
+
scope?: string;
|
|
89
|
+
} & React.RefAttributes<import("@gui/web").GuiElement>, "ref"> & {
|
|
90
|
+
children: React.ReactNode;
|
|
91
|
+
textValue?: string;
|
|
92
|
+
onSelect?: (event?: Event) => void;
|
|
93
|
+
} & {
|
|
94
|
+
disabled?: boolean;
|
|
95
|
+
hidden?: boolean;
|
|
96
|
+
destructive?: boolean;
|
|
97
|
+
key: string;
|
|
98
|
+
} & {
|
|
99
|
+
key: string;
|
|
100
|
+
}>;
|
|
101
|
+
SubContent: React.FC<Omit<Omit<import("@gui/web").GetFinalProps<import("@gui/core").RNGuiViewNonStyleProps, import("@gui/web").StackStyleBase, {
|
|
102
|
+
size?: import("@gui/web").SizeTokens | undefined;
|
|
103
|
+
unstyled?: boolean | undefined;
|
|
104
|
+
elevation?: number | import("@gui/web").SizeTokens | undefined;
|
|
105
|
+
fullscreen?: boolean | undefined;
|
|
106
|
+
}>, keyof import("@gui/create-menu").MenuSubContentProps> & import("@gui/create-menu").MenuSubContentProps & {
|
|
107
|
+
scope?: string;
|
|
108
|
+
} & React.RefAttributes<import("@gui/web").GuiElement>, "ref"> & {
|
|
109
|
+
scope?: string;
|
|
110
|
+
} & React.RefAttributes<(HTMLElement & import("@gui/web").GuiElementMethods) | import("react-native").View> & Partial<Omit<import("@gui/create-menu").NativeMenuSubContentProps, keyof import("@gui/create-menu").MenuSubContentProps | keyof React.RefAttributes<(HTMLElement & import("@gui/web").GuiElementMethods) | import("react-native").View>>>>;
|
|
111
|
+
ItemTitle: React.FC<Omit<import("@gui/web").GetFinalProps<import("@gui/web").TextNonStyleProps, import("@gui/web").TextStylePropsBase, {
|
|
112
|
+
unstyled?: boolean | undefined;
|
|
113
|
+
size?: import("@gui/web").FontSizeTokens | undefined;
|
|
114
|
+
}>, keyof import("@gui/create-menu").MenuItemTitleProps> & import("@gui/create-menu").MenuItemTitleProps & React.RefAttributes<import("@gui/web").GuiTextElement> & Partial<Omit<import("@gui/create-menu").NativeMenuItemTitleProps, "size" | keyof import("@gui/create-menu").MenuItemTitleProps | keyof React.RefAttributes<import("@gui/web").GuiTextElement>>>>;
|
|
115
|
+
ItemSubtitle: React.FC<Omit<import("@gui/web").GetFinalProps<import("@gui/web").TextNonStyleProps, import("@gui/web").TextStylePropsBase, {
|
|
116
|
+
unstyled?: boolean | undefined;
|
|
117
|
+
size?: import("@gui/web").FontSizeTokens | undefined;
|
|
118
|
+
}>, keyof import("@gui/create-menu").MenuItemSubTitleProps> & import("@gui/create-menu").MenuItemSubTitleProps & React.RefAttributes<import("@gui/web").GuiTextElement> & Partial<Omit<import("@gui/create-menu").NativeMenuItemSubtitleProps, "size" | keyof import("@gui/create-menu").MenuItemSubTitleProps | keyof React.RefAttributes<import("@gui/web").GuiTextElement>>>>;
|
|
119
|
+
ItemIcon: React.FC<Omit<Omit<import("@gui/web").GetFinalProps<import("@gui/web").StackNonStyleProps, import("@gui/web").StackStyleBase, {
|
|
120
|
+
unstyled?: boolean | undefined;
|
|
121
|
+
}>, `$${string}` | `$${number}` | import("@gui/web").GroupMediaKeys | `$theme-${string}` | `$theme-${number}` | keyof import("@gui/web").StackStyleBase | keyof import("@gui/web").StackNonStyleProps | keyof import("@gui/web").WithPseudoProps<import("@gui/web").WithThemeValues<import("@gui/web").StackStyleBase> & import("@gui/web").WithShorthands<import("@gui/web").WithThemeValues<import("@gui/web").StackStyleBase>>>> & import("@gui/web").StackNonStyleProps & import("@gui/web").WithThemeValues<import("@gui/web").StackStyleBase> & import("@gui/web").WithShorthands<import("@gui/web").WithThemeValues<import("@gui/web").StackStyleBase>> & import("@gui/web").WithPseudoProps<import("@gui/web").WithThemeValues<import("@gui/web").StackStyleBase> & import("@gui/web").WithShorthands<import("@gui/web").WithThemeValues<import("@gui/web").StackStyleBase>>> & import("@gui/web").WithMediaProps<import("@gui/web").WithThemeShorthandsAndPseudos<import("@gui/web").StackStyleBase, {}>> & React.RefAttributes<import("@gui/web").GuiElement>, "ref"> & import("@gui/create-menu").NativeMenuItemCommonProps>;
|
|
122
|
+
ItemImage: React.FC<import("react-native").ImageProps & React.RefAttributes<import("react-native").Image> & Partial<Omit<import("@gui/create-menu").NativeMenuItemCommonProps & {
|
|
123
|
+
source: import("react-native").ImageProps["source"];
|
|
124
|
+
ios?: {
|
|
125
|
+
style?: {
|
|
126
|
+
tint?: string;
|
|
127
|
+
};
|
|
128
|
+
lazy?: boolean;
|
|
129
|
+
};
|
|
130
|
+
}, keyof import("react-native").ImageProps | keyof React.RefAttributes<import("react-native").Image>>>>;
|
|
131
|
+
Preview: React.FC<Partial<Omit<import("@gui/create-menu").ContextMenuPreviewProps, never>>>;
|
|
132
|
+
};
|
|
133
|
+
export type { ContextMenuArrowProps, ContextMenuCheckboxItemProps, ContextMenuContentProps, ContextMenuGroupProps, ContextMenuItemIconProps, ContextMenuItemImageProps, ContextMenuItemIndicatorProps, ContextMenuItemProps, ContextMenuProps, ContextMenuRadioGroupProps, ContextMenuRadioItemProps, ContextMenuSeparatorProps, ContextMenuSubContentProps, ContextMenuSubProps, ContextMenuSubTriggerProps, ContextMenuTriggerProps, } from './createNonNativeContextMenu';
|
|
134
|
+
//# sourceMappingURL=ContextMenu.d.ts.map
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import type BaseMenuTypes from '@gui/create-menu';
|
|
2
|
+
import { createBaseMenu, type CreateBaseMenuProps } from '@gui/create-menu';
|
|
3
|
+
import { type GuiElement, type ViewProps } from '@gui/web';
|
|
4
|
+
import React from 'react';
|
|
5
|
+
type Direction = 'ltr' | 'rtl';
|
|
6
|
+
export declare const CONTEXTMENU_CONTEXT = "ContextMenuContext";
|
|
7
|
+
type ScopedProps<P> = P & {
|
|
8
|
+
scope?: string;
|
|
9
|
+
};
|
|
10
|
+
type BaseMenu = ReturnType<typeof createBaseMenu>['Menu'];
|
|
11
|
+
type ContextMenuOpenChangeEvent = {
|
|
12
|
+
preventDefault(): void;
|
|
13
|
+
defaultPrevented: boolean;
|
|
14
|
+
};
|
|
15
|
+
interface ContextMenuProps extends BaseMenuTypes.MenuProps {
|
|
16
|
+
children?: React.ReactNode;
|
|
17
|
+
onOpenChange?(open: boolean, event?: ContextMenuOpenChangeEvent): void;
|
|
18
|
+
dir?: Direction;
|
|
19
|
+
modal?: boolean;
|
|
20
|
+
}
|
|
21
|
+
interface ContextMenuTriggerProps extends ViewProps {
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
}
|
|
24
|
+
type ContextMenuPortalProps = React.ComponentPropsWithoutRef<BaseMenu['Portal']>;
|
|
25
|
+
interface ContextMenuContentProps extends Omit<React.ComponentPropsWithoutRef<BaseMenu['Content']>, 'onEntryFocus' | 'side' | 'sideOffset' | 'align'> {
|
|
26
|
+
}
|
|
27
|
+
type ContextMenuGroupProps = React.ComponentPropsWithoutRef<BaseMenu['Group']>;
|
|
28
|
+
type ContextMenuItemProps = React.ComponentPropsWithoutRef<BaseMenu['Item']>;
|
|
29
|
+
type ContextMenuItemImageProps = React.ComponentPropsWithoutRef<BaseMenu['ItemImage']>;
|
|
30
|
+
type ContextMenuItemIconProps = React.ComponentPropsWithoutRef<BaseMenu['ItemIcon']>;
|
|
31
|
+
type ContextMenuCheckboxItemProps = React.ComponentPropsWithoutRef<BaseMenu['CheckboxItem']>;
|
|
32
|
+
type ContextMenuRadioGroupProps = React.ComponentPropsWithoutRef<BaseMenu['RadioGroup']>;
|
|
33
|
+
type ContextMenuRadioItemProps = React.ComponentPropsWithoutRef<BaseMenu['RadioItem']>;
|
|
34
|
+
type ContextMenuItemIndicatorProps = React.ComponentPropsWithoutRef<BaseMenu['ItemIndicator']>;
|
|
35
|
+
type ContextMenuSeparatorProps = React.ComponentPropsWithoutRef<BaseMenu['Separator']>;
|
|
36
|
+
type ContextMenuArrowProps = React.ComponentPropsWithoutRef<BaseMenu['Arrow']>;
|
|
37
|
+
interface ContextMenuSubProps extends BaseMenuTypes.MenuSubProps {
|
|
38
|
+
children?: React.ReactNode;
|
|
39
|
+
open?: boolean;
|
|
40
|
+
defaultOpen?: boolean;
|
|
41
|
+
onOpenChange?(open: boolean): void;
|
|
42
|
+
}
|
|
43
|
+
type ContextMenuSubTriggerProps = React.ComponentPropsWithoutRef<BaseMenu['SubTrigger']>;
|
|
44
|
+
type ContextMenuSubContentProps = React.ComponentPropsWithoutRef<BaseMenu['SubContent']>;
|
|
45
|
+
export declare function createNonNativeContextMenu(params: CreateBaseMenuProps): {
|
|
46
|
+
(props: ScopedProps<ContextMenuProps>): import("react/jsx-runtime").JSX.Element;
|
|
47
|
+
displayName: string;
|
|
48
|
+
} & {
|
|
49
|
+
Root: {
|
|
50
|
+
(props: ScopedProps<ContextMenuProps>): import("react/jsx-runtime").JSX.Element;
|
|
51
|
+
displayName: string;
|
|
52
|
+
};
|
|
53
|
+
Trigger: import("@gui/web").GuiComponent<Omit<ViewProps, "scope" | keyof ContextMenuTriggerProps> & ContextMenuTriggerProps & {
|
|
54
|
+
scope?: string;
|
|
55
|
+
}, GuiElement, import("@gui/web").StackNonStyleProps & ContextMenuTriggerProps & {
|
|
56
|
+
scope?: string;
|
|
57
|
+
}, import("@gui/web").StackStyleBase, {}, {}>;
|
|
58
|
+
Portal: {
|
|
59
|
+
(props: ScopedProps<ContextMenuPortalProps>): import("react/jsx-runtime").JSX.Element;
|
|
60
|
+
displayName: string;
|
|
61
|
+
};
|
|
62
|
+
Content: React.ForwardRefExoticComponent<ContextMenuContentProps & {
|
|
63
|
+
scope?: string;
|
|
64
|
+
} & React.RefAttributes<(HTMLElement & import("@gui/web").GuiElementMethods) | import("react-native").View>>;
|
|
65
|
+
Group: import("@gui/web").GuiComponent<Omit<import("@gui/web").GetFinalProps<import("@gui/web").StackNonStyleProps, import("@gui/web").StackStyleBase, {
|
|
66
|
+
unstyled?: boolean | undefined;
|
|
67
|
+
}>, keyof BaseMenuTypes.MenuGroupProps> & BaseMenuTypes.MenuGroupProps, GuiElement, import("@gui/web").StackNonStyleProps & BaseMenuTypes.MenuGroupProps, import("@gui/web").StackStyleBase, {
|
|
68
|
+
unstyled?: boolean | undefined;
|
|
69
|
+
}, import("@gui/web").StaticConfigPublic>;
|
|
70
|
+
Label: import("@gui/web").GuiComponent<Omit<import("@gui/web").GetFinalProps<import("@gui/web").TextNonStyleProps, import("@gui/web").TextStylePropsBase, {
|
|
71
|
+
unstyled?: boolean | undefined;
|
|
72
|
+
size?: import("@gui/web").FontSizeTokens | undefined;
|
|
73
|
+
}>, keyof BaseMenuTypes.MenuLabelProps> & BaseMenuTypes.MenuLabelProps, import("@gui/web").GuiTextElement, import("@gui/web").TextNonStyleProps & BaseMenuTypes.MenuLabelProps, import("@gui/web").TextStylePropsBase, {
|
|
74
|
+
unstyled?: boolean | undefined;
|
|
75
|
+
size?: import("@gui/web").FontSizeTokens | undefined;
|
|
76
|
+
}, import("@gui/web").StaticConfigPublic>;
|
|
77
|
+
Item: React.ForwardRefExoticComponent<Omit<Omit<import("@gui/web").GetFinalProps<import("@gui/web").StackNonStyleProps, import("@gui/web").StackStyleBase, {
|
|
78
|
+
unstyled?: boolean | undefined;
|
|
79
|
+
}>, "scope" | keyof BaseMenuTypes.MenuItemProps> & BaseMenuTypes.MenuItemProps & {
|
|
80
|
+
scope?: string;
|
|
81
|
+
} & React.RefAttributes<GuiElement>, "ref"> & {
|
|
82
|
+
scope?: string;
|
|
83
|
+
} & React.RefAttributes<GuiElement>>;
|
|
84
|
+
CheckboxItem: React.ForwardRefExoticComponent<Omit<Omit<import("@gui/web").GetFinalProps<import("@gui/web").StackNonStyleProps, import("@gui/web").StackStyleBase, {
|
|
85
|
+
unstyled?: boolean | undefined;
|
|
86
|
+
}>, "scope" | keyof BaseMenuTypes.MenuCheckboxItemProps> & BaseMenuTypes.MenuCheckboxItemProps & {
|
|
87
|
+
scope?: string;
|
|
88
|
+
} & React.RefAttributes<GuiElement>, "ref"> & {
|
|
89
|
+
scope?: string;
|
|
90
|
+
} & React.RefAttributes<GuiElement>>;
|
|
91
|
+
RadioGroup: React.ForwardRefExoticComponent<Omit<Omit<import("@gui/web").GetFinalProps<import("@gui/web").StackNonStyleProps, import("@gui/web").StackStyleBase, {
|
|
92
|
+
unstyled?: boolean | undefined;
|
|
93
|
+
}>, "scope" | keyof BaseMenuTypes.MenuRadioGroupProps> & BaseMenuTypes.MenuRadioGroupProps & {
|
|
94
|
+
scope?: string;
|
|
95
|
+
} & React.RefAttributes<GuiElement>, "ref"> & {
|
|
96
|
+
scope?: string;
|
|
97
|
+
} & React.RefAttributes<(HTMLElement & import("@gui/web").GuiElementMethods) | import("react-native").View>>;
|
|
98
|
+
RadioItem: React.ForwardRefExoticComponent<Omit<Omit<import("@gui/web").GetFinalProps<import("@gui/web").StackNonStyleProps, import("@gui/web").StackStyleBase, {
|
|
99
|
+
unstyled?: boolean | undefined;
|
|
100
|
+
}>, "scope" | keyof BaseMenuTypes.MenuRadioItemProps> & BaseMenuTypes.MenuRadioItemProps & {
|
|
101
|
+
scope?: string;
|
|
102
|
+
} & React.RefAttributes<GuiElement>, "ref"> & {
|
|
103
|
+
scope?: string;
|
|
104
|
+
} & React.RefAttributes<GuiElement>>;
|
|
105
|
+
ItemIndicator: import("@gui/web").GuiComponent<Omit<Omit<import("@gui/web").GetFinalProps<import("@gui/web").StackNonStyleProps, import("@gui/web").StackStyleBase, {
|
|
106
|
+
unstyled?: boolean | undefined;
|
|
107
|
+
}>, "scope" | keyof BaseMenuTypes.MenuItemIndicatorProps> & BaseMenuTypes.MenuItemIndicatorProps & {
|
|
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("@gui/web").GetFinalProps<import("@gui/web").StackNonStyleProps, import("@gui/web").StackStyleBase, {
|
|
110
|
+
unstyled?: boolean | undefined;
|
|
111
|
+
}>, "scope" | keyof BaseMenuTypes.MenuItemIndicatorProps> & BaseMenuTypes.MenuItemIndicatorProps & {
|
|
112
|
+
scope?: string;
|
|
113
|
+
} & React.RefAttributes<GuiElement>, "ref"> & {
|
|
114
|
+
scope?: string;
|
|
115
|
+
}, GuiElement, import("@gui/web").StackNonStyleProps & BaseMenuTypes.MenuItemIndicatorProps & {
|
|
116
|
+
scope?: string;
|
|
117
|
+
} & Omit<Omit<import("@gui/web").GetFinalProps<import("@gui/web").StackNonStyleProps, import("@gui/web").StackStyleBase, {
|
|
118
|
+
unstyled?: boolean | undefined;
|
|
119
|
+
}>, "scope" | keyof BaseMenuTypes.MenuItemIndicatorProps> & BaseMenuTypes.MenuItemIndicatorProps & {
|
|
120
|
+
scope?: string;
|
|
121
|
+
} & React.RefAttributes<GuiElement>, "ref"> & {
|
|
122
|
+
scope?: string;
|
|
123
|
+
}, import("@gui/web").StackStyleBase, {
|
|
124
|
+
unstyled?: boolean | undefined;
|
|
125
|
+
}, import("@gui/web").StaticConfigPublic>;
|
|
126
|
+
Separator: import("@gui/web").GuiComponent<Omit<import("@gui/web").GetFinalProps<import("@gui/web").StackNonStyleProps, import("@gui/web").StackStyleBase, {
|
|
127
|
+
unstyled?: boolean | undefined;
|
|
128
|
+
}>, keyof BaseMenuTypes.MenuSeparatorProps> & BaseMenuTypes.MenuSeparatorProps, GuiElement, import("@gui/web").StackNonStyleProps & BaseMenuTypes.MenuSeparatorProps, import("@gui/web").StackStyleBase, {
|
|
129
|
+
unstyled?: boolean | undefined;
|
|
130
|
+
}, import("@gui/web").StaticConfigPublic>;
|
|
131
|
+
Arrow: React.ForwardRefExoticComponent<Omit<BaseMenuTypes.MenuArrowProps & React.RefAttributes<GuiElement>, "ref"> & {
|
|
132
|
+
scope?: string;
|
|
133
|
+
} & React.RefAttributes<GuiElement>>;
|
|
134
|
+
Sub: {
|
|
135
|
+
(props: ScopedProps<ContextMenuSubProps>): import("react/jsx-runtime").JSX.Element;
|
|
136
|
+
displayName: string;
|
|
137
|
+
};
|
|
138
|
+
SubTrigger: import("@gui/web").GuiComponent<Omit<ViewProps, "scope" | "key" | keyof BaseMenuTypes.MenuSubTriggerProps> & Omit<BaseMenuTypes.MenuSubTriggerProps & {
|
|
139
|
+
scope?: string;
|
|
140
|
+
} & React.RefAttributes<GuiElement>, "ref"> & {
|
|
141
|
+
scope?: string;
|
|
142
|
+
}, GuiElement, import("@gui/web").StackNonStyleProps & Omit<BaseMenuTypes.MenuSubTriggerProps & {
|
|
143
|
+
scope?: string;
|
|
144
|
+
} & React.RefAttributes<GuiElement>, "ref"> & {
|
|
145
|
+
scope?: string;
|
|
146
|
+
}, import("@gui/web").StackStyleBase, {}, {}>;
|
|
147
|
+
SubContent: React.ForwardRefExoticComponent<Omit<Omit<import("@gui/web").GetFinalProps<import("@gui/core").RNGuiViewNonStyleProps, import("@gui/web").StackStyleBase, {
|
|
148
|
+
size?: import("@gui/web").SizeTokens | undefined;
|
|
149
|
+
unstyled?: boolean | undefined;
|
|
150
|
+
elevation?: number | import("@gui/web").SizeTokens | undefined;
|
|
151
|
+
fullscreen?: boolean | undefined;
|
|
152
|
+
}>, keyof BaseMenuTypes.MenuSubContentProps> & BaseMenuTypes.MenuSubContentProps & {
|
|
153
|
+
scope?: string;
|
|
154
|
+
} & React.RefAttributes<GuiElement>, "ref"> & {
|
|
155
|
+
scope?: string;
|
|
156
|
+
} & React.RefAttributes<(HTMLElement & import("@gui/web").GuiElementMethods) | import("react-native").View>>;
|
|
157
|
+
ItemTitle: import("@gui/web").GuiComponent<Omit<import("@gui/web").GetFinalProps<import("@gui/web").TextNonStyleProps, import("@gui/web").TextStylePropsBase, {
|
|
158
|
+
unstyled?: boolean | undefined;
|
|
159
|
+
size?: import("@gui/web").FontSizeTokens | undefined;
|
|
160
|
+
}>, keyof BaseMenuTypes.MenuItemTitleProps> & BaseMenuTypes.MenuItemTitleProps, import("@gui/web").GuiTextElement, import("@gui/web").TextNonStyleProps & BaseMenuTypes.MenuItemTitleProps, import("@gui/web").TextStylePropsBase, {
|
|
161
|
+
unstyled?: boolean | undefined;
|
|
162
|
+
size?: import("@gui/web").FontSizeTokens | undefined;
|
|
163
|
+
}, import("@gui/web").StaticConfigPublic>;
|
|
164
|
+
ItemSubtitle: import("@gui/web").GuiComponent<Omit<import("@gui/web").GetFinalProps<import("@gui/web").TextNonStyleProps, import("@gui/web").TextStylePropsBase, {
|
|
165
|
+
unstyled?: boolean | undefined;
|
|
166
|
+
size?: import("@gui/web").FontSizeTokens | undefined;
|
|
167
|
+
}>, keyof BaseMenuTypes.MenuItemSubTitleProps> & BaseMenuTypes.MenuItemSubTitleProps, import("@gui/web").GuiTextElement, import("@gui/web").TextNonStyleProps & BaseMenuTypes.MenuItemSubTitleProps, import("@gui/web").TextStylePropsBase, {
|
|
168
|
+
unstyled?: boolean | undefined;
|
|
169
|
+
size?: import("@gui/web").FontSizeTokens | undefined;
|
|
170
|
+
}, import("@gui/web").StaticConfigPublic>;
|
|
171
|
+
ItemIcon: import("@gui/web").GuiComponent<Omit<import("@gui/web").GetFinalProps<import("@gui/web").StackNonStyleProps, import("@gui/web").StackStyleBase, {
|
|
172
|
+
unstyled?: boolean | undefined;
|
|
173
|
+
}>, `$${string}` | `$${number}` | import("@gui/web").GroupMediaKeys | `$theme-${string}` | `$theme-${number}` | keyof import("@gui/web").StackStyleBase | keyof import("@gui/web").StackNonStyleProps | keyof import("@gui/web").WithPseudoProps<import("@gui/web").WithThemeValues<import("@gui/web").StackStyleBase> & import("@gui/web").WithShorthands<import("@gui/web").WithThemeValues<import("@gui/web").StackStyleBase>>>> & import("@gui/web").StackNonStyleProps & import("@gui/web").WithThemeValues<import("@gui/web").StackStyleBase> & import("@gui/web").WithShorthands<import("@gui/web").WithThemeValues<import("@gui/web").StackStyleBase>> & import("@gui/web").WithPseudoProps<import("@gui/web").WithThemeValues<import("@gui/web").StackStyleBase> & import("@gui/web").WithShorthands<import("@gui/web").WithThemeValues<import("@gui/web").StackStyleBase>>> & import("@gui/web").WithMediaProps<import("@gui/web").WithThemeShorthandsAndPseudos<import("@gui/web").StackStyleBase, {}>>, GuiElement, import("@gui/web").StackNonStyleProps & import("@gui/web").WithThemeValues<import("@gui/web").StackStyleBase> & import("@gui/web").WithShorthands<import("@gui/web").WithThemeValues<import("@gui/web").StackStyleBase>> & import("@gui/web").WithPseudoProps<import("@gui/web").WithThemeValues<import("@gui/web").StackStyleBase> & import("@gui/web").WithShorthands<import("@gui/web").WithThemeValues<import("@gui/web").StackStyleBase>>> & import("@gui/web").WithMediaProps<import("@gui/web").WithThemeShorthandsAndPseudos<import("@gui/web").StackStyleBase, {}>>, import("@gui/web").StackStyleBase, {
|
|
174
|
+
unstyled?: boolean | undefined;
|
|
175
|
+
}, import("@gui/web").StaticConfigPublic>;
|
|
176
|
+
ItemImage: React.ForwardRefExoticComponent<import("react-native").ImageProps & React.RefAttributes<import("react-native").Image>>;
|
|
177
|
+
Preview: () => null;
|
|
178
|
+
};
|
|
179
|
+
export type { ContextMenuArrowProps, ContextMenuCheckboxItemProps, ContextMenuOpenChangeEvent, ContextMenuContentProps, ContextMenuGroupProps, ContextMenuItemIconProps, ContextMenuItemImageProps, ContextMenuItemIndicatorProps, ContextMenuItemProps, ContextMenuPortalProps, ContextMenuProps, ContextMenuRadioGroupProps, ContextMenuRadioItemProps, ContextMenuSeparatorProps, ContextMenuSubContentProps, ContextMenuSubProps, ContextMenuSubTriggerProps, ContextMenuTriggerProps, };
|
|
180
|
+
//# sourceMappingURL=createNonNativeContextMenu.d.ts.map
|