@hanzogui/context-menu 7.0.0 → 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 +185 -0
- package/dist/cjs/ContextMenu.native.js +193 -0
- package/dist/cjs/ContextMenu.native.js.map +1 -0
- package/dist/cjs/createNonNativeContextMenu.cjs +443 -0
- package/dist/cjs/createNonNativeContextMenu.native.js +470 -0
- package/dist/cjs/createNonNativeContextMenu.native.js.map +1 -0
- package/dist/cjs/index.cjs +41 -0
- package/dist/cjs/index.native.js +44 -0
- package/dist/cjs/index.native.js.map +1 -0
- package/dist/esm/ContextMenu.mjs +149 -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 +406 -0
- package/dist/esm/createNonNativeContextMenu.mjs.map +1 -0
- package/dist/esm/createNonNativeContextMenu.native.js +430 -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 +149 -0
- package/dist/jsx/ContextMenu.mjs.map +1 -0
- package/dist/jsx/ContextMenu.native.js +193 -0
- package/dist/jsx/ContextMenu.native.js.map +1 -0
- package/dist/jsx/createNonNativeContextMenu.mjs +406 -0
- package/dist/jsx/createNonNativeContextMenu.mjs.map +1 -0
- package/dist/jsx/createNonNativeContextMenu.native.js +470 -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 +44 -0
- package/dist/jsx/index.native.js.map +1 -0
- package/package.json +15 -13
- package/src/createNonNativeContextMenu.tsx +17 -17
- package/types/ContextMenu.d.ts +26 -26
- package/types/ContextMenu.d.ts.map +1 -0
- package/types/createNonNativeContextMenu.d.ts +41 -41
- package/types/createNonNativeContextMenu.d.ts.map +1 -0
- package/types/index.d.ts +26 -26
- package/types/index.d.ts.map +1 -0
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
isAndroid,
|
|
9
9
|
isWeb,
|
|
10
10
|
Slot,
|
|
11
|
-
type
|
|
11
|
+
type GuiElement,
|
|
12
12
|
View,
|
|
13
13
|
type ViewProps,
|
|
14
14
|
withStaticProperties,
|
|
@@ -35,7 +35,7 @@ type ContextMenuOpenChangeEvent = {
|
|
|
35
35
|
|
|
36
36
|
type ContextMenuContextValue = {
|
|
37
37
|
triggerId: string
|
|
38
|
-
triggerRef: React.RefObject<
|
|
38
|
+
triggerRef: React.RefObject<GuiElement | null>
|
|
39
39
|
contentId: string
|
|
40
40
|
open: boolean
|
|
41
41
|
onOpenChange(open: boolean, event?: ContextMenuOpenChangeEvent): void
|
|
@@ -105,7 +105,7 @@ export function createNonNativeContextMenu(params: CreateBaseMenuProps) {
|
|
|
105
105
|
const ContextMenuComp = (props: ScopedProps<ContextMenuProps>) => {
|
|
106
106
|
const { scope, children, onOpenChange, dir, modal = true, ...rest } = props
|
|
107
107
|
const [open, setOpen] = React.useState(false)
|
|
108
|
-
const triggerRef = React.useRef<
|
|
108
|
+
const triggerRef = React.useRef<GuiElement>(null)
|
|
109
109
|
|
|
110
110
|
const handleOpenChange = React.useCallback(
|
|
111
111
|
(open: boolean, event?: ContextMenuOpenChangeEvent) => {
|
|
@@ -359,7 +359,7 @@ export function createNonNativeContextMenu(params: CreateBaseMenuProps) {
|
|
|
359
359
|
const ITEM_NAME = 'ContextMenuItem'
|
|
360
360
|
|
|
361
361
|
const ContextMenuItem = React.forwardRef<
|
|
362
|
-
|
|
362
|
+
GuiElement,
|
|
363
363
|
ScopedProps<ContextMenuItemProps>
|
|
364
364
|
>((props, forwardedRef) => {
|
|
365
365
|
const { scope, ...itemProps } = props
|
|
@@ -382,7 +382,7 @@ export function createNonNativeContextMenu(params: CreateBaseMenuProps) {
|
|
|
382
382
|
const CHECKBOX_ITEM_NAME = 'ContextMenuCheckboxItem'
|
|
383
383
|
|
|
384
384
|
const ContextMenuCheckboxItem = React.forwardRef<
|
|
385
|
-
|
|
385
|
+
GuiElement,
|
|
386
386
|
ScopedProps<ContextMenuCheckboxItemProps>
|
|
387
387
|
>((props, forwardedRef) => {
|
|
388
388
|
const { scope, ...checkboxItemProps } = props
|
|
@@ -427,7 +427,7 @@ export function createNonNativeContextMenu(params: CreateBaseMenuProps) {
|
|
|
427
427
|
const RADIO_ITEM_NAME = 'ContextMenuRadioItem'
|
|
428
428
|
|
|
429
429
|
const ContextMenuRadioItem = React.forwardRef<
|
|
430
|
-
|
|
430
|
+
GuiElement,
|
|
431
431
|
ScopedProps<ContextMenuRadioItemProps>
|
|
432
432
|
>((props, forwardedRef) => {
|
|
433
433
|
const { scope, ...radioItemProps } = props
|
|
@@ -536,16 +536,16 @@ export function createNonNativeContextMenu(params: CreateBaseMenuProps) {
|
|
|
536
536
|
? {
|
|
537
537
|
...(props.style as object),
|
|
538
538
|
...({
|
|
539
|
-
'--
|
|
540
|
-
'var(--
|
|
541
|
-
'--
|
|
542
|
-
'var(--
|
|
543
|
-
'--
|
|
544
|
-
'var(--
|
|
545
|
-
'--
|
|
546
|
-
'var(--
|
|
547
|
-
'--
|
|
548
|
-
'var(--
|
|
539
|
+
'--gui-context-menu-content-transform-origin':
|
|
540
|
+
'var(--gui-popper-transform-origin)',
|
|
541
|
+
'--gui-context-menu-content-available-width':
|
|
542
|
+
'var(--gui-popper-available-width)',
|
|
543
|
+
'--gui-context-menu-content-available-height':
|
|
544
|
+
'var(--gui-popper-available-height)',
|
|
545
|
+
'--gui-context-menu-trigger-width':
|
|
546
|
+
'var(--gui-popper-anchor-width)',
|
|
547
|
+
'--gui-context-menu-trigger-height':
|
|
548
|
+
'var(--gui-popper-anchor-height)',
|
|
549
549
|
} as React.CSSProperties),
|
|
550
550
|
}
|
|
551
551
|
: null
|
|
@@ -563,7 +563,7 @@ export function createNonNativeContextMenu(params: CreateBaseMenuProps) {
|
|
|
563
563
|
const ARROW_NAME = 'ContextMenuArrow'
|
|
564
564
|
|
|
565
565
|
const ContextMenuArrow = React.forwardRef<
|
|
566
|
-
|
|
566
|
+
GuiElement,
|
|
567
567
|
ScopedProps<ContextMenuArrowProps>
|
|
568
568
|
>((props, forwardedRef) => {
|
|
569
569
|
const { scope, ...arrowProps } = props
|
package/types/ContextMenu.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export declare function createContextMenu(param: CreateBaseMenuProps): React.FC<
|
|
|
5
5
|
} & Partial<Omit<import("@hanzogui/create-menu").NativeMenuProps, keyof import("./createNonNativeContextMenu").ContextMenuProps>>> & {
|
|
6
6
|
Trigger: React.FC<Omit<import("@hanzogui/web").ViewProps, "scope" | keyof import("./createNonNativeContextMenu").ContextMenuTriggerProps> & import("./createNonNativeContextMenu").ContextMenuTriggerProps & {
|
|
7
7
|
scope?: string;
|
|
8
|
-
} & React.RefAttributes<import("@hanzogui/web").
|
|
8
|
+
} & React.RefAttributes<import("@hanzogui/web").GuiElement> & Partial<Omit<import("@hanzogui/create-menu").MenuTriggerProps, "scope" | keyof React.RefAttributes<import("@hanzogui/web").GuiElement> | keyof import("./createNonNativeContextMenu").ContextMenuTriggerProps>>>;
|
|
9
9
|
Portal: React.FC<import("@hanzogui/create-menu").MenuPortalProps & {
|
|
10
10
|
scope?: string;
|
|
11
11
|
} & {
|
|
@@ -13,21 +13,21 @@ export declare function createContextMenu(param: CreateBaseMenuProps): React.FC<
|
|
|
13
13
|
} & Partial<Omit<React.FragmentProps, keyof import("@hanzogui/create-menu").MenuPortalProps | "scope">>>;
|
|
14
14
|
Content: React.FC<import("./createNonNativeContextMenu").ContextMenuContentProps & {
|
|
15
15
|
scope?: string;
|
|
16
|
-
} & React.RefAttributes<(HTMLElement & import("@hanzogui/web").
|
|
16
|
+
} & React.RefAttributes<(HTMLElement & import("@hanzogui/web").GuiElementMethods) | import("react-native").View> & Partial<Omit<import("@hanzogui/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
17
|
Group: React.FC<Omit<import("@hanzogui/web").GetFinalProps<import("@hanzogui/web").StackNonStyleProps, import("@hanzogui/web").StackStyleBase, {
|
|
18
18
|
unstyled?: boolean | undefined;
|
|
19
|
-
}>, keyof import("@hanzogui/create-menu").MenuGroupProps> & import("@hanzogui/create-menu").MenuGroupProps & React.RefAttributes<import("@hanzogui/web").
|
|
19
|
+
}>, keyof import("@hanzogui/create-menu").MenuGroupProps> & import("@hanzogui/create-menu").MenuGroupProps & React.RefAttributes<import("@hanzogui/web").GuiElement> & Partial<Omit<import("@hanzogui/create-menu").NativeMenuGroupProps, keyof React.RefAttributes<import("@hanzogui/web").GuiElement> | keyof import("@hanzogui/create-menu").MenuGroupProps>>>;
|
|
20
20
|
Label: React.FC<Omit<import("@hanzogui/web").GetFinalProps<import("@hanzogui/web").TextNonStyleProps, import("@hanzogui/web").TextStylePropsBase, {
|
|
21
21
|
unstyled?: boolean | undefined;
|
|
22
22
|
size?: import("@hanzogui/web").FontSizeTokens | undefined;
|
|
23
|
-
}>, keyof import("@hanzogui/create-menu").MenuLabelProps> & import("@hanzogui/create-menu").MenuLabelProps & React.RefAttributes<import("@hanzogui/web").
|
|
23
|
+
}>, keyof import("@hanzogui/create-menu").MenuLabelProps> & import("@hanzogui/create-menu").MenuLabelProps & React.RefAttributes<import("@hanzogui/web").GuiTextElement> & Partial<Omit<import("@hanzogui/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("@hanzogui/create-menu").MenuLabelProps | keyof React.RefAttributes<import("@hanzogui/web").GuiTextElement>>>>;
|
|
24
24
|
Item: React.FC<Omit<Omit<import("@hanzogui/web").GetFinalProps<import("@hanzogui/web").StackNonStyleProps, import("@hanzogui/web").StackStyleBase, {
|
|
25
25
|
unstyled?: boolean | undefined;
|
|
26
26
|
}>, "scope" | keyof import("@hanzogui/create-menu").MenuItemProps> & import("@hanzogui/create-menu").MenuItemProps & {
|
|
27
27
|
scope?: string;
|
|
28
|
-
} & React.RefAttributes<import("@hanzogui/web").
|
|
28
|
+
} & React.RefAttributes<import("@hanzogui/web").GuiElement>, "ref"> & {
|
|
29
29
|
scope?: string;
|
|
30
|
-
} & React.RefAttributes<import("@hanzogui/web").
|
|
30
|
+
} & React.RefAttributes<import("@hanzogui/web").GuiElement> & Partial<Omit<{
|
|
31
31
|
children: React.ReactNode;
|
|
32
32
|
textValue?: string;
|
|
33
33
|
onSelect?: (event?: Event) => void;
|
|
@@ -36,34 +36,34 @@ export declare function createContextMenu(param: CreateBaseMenuProps): React.FC<
|
|
|
36
36
|
hidden?: boolean;
|
|
37
37
|
destructive?: boolean;
|
|
38
38
|
key: string;
|
|
39
|
-
}, "scope" | keyof React.RefAttributes<import("@hanzogui/web").
|
|
39
|
+
}, "scope" | keyof React.RefAttributes<import("@hanzogui/web").GuiElement> | keyof import("@hanzogui/create-menu").MenuItemProps>>>;
|
|
40
40
|
CheckboxItem: React.FC<Omit<Omit<import("@hanzogui/web").GetFinalProps<import("@hanzogui/web").StackNonStyleProps, import("@hanzogui/web").StackStyleBase, {
|
|
41
41
|
unstyled?: boolean | undefined;
|
|
42
42
|
}>, "scope" | keyof import("@hanzogui/create-menu").MenuCheckboxItemProps> & import("@hanzogui/create-menu").MenuCheckboxItemProps & {
|
|
43
43
|
scope?: string;
|
|
44
|
-
} & React.RefAttributes<import("@hanzogui/web").
|
|
44
|
+
} & React.RefAttributes<import("@hanzogui/web").GuiElement>, "ref"> & {
|
|
45
45
|
scope?: string;
|
|
46
|
-
} & React.RefAttributes<import("@hanzogui/web").
|
|
46
|
+
} & React.RefAttributes<import("@hanzogui/web").GuiElement> & Partial<Omit<Omit<import("@hanzogui/create-menu").NativeMenuItemProps, "onSelect"> & {
|
|
47
47
|
checked?: boolean;
|
|
48
48
|
onCheckedChange?: (checked: boolean) => void;
|
|
49
49
|
value?: "mixed" | "on" | "off" | boolean;
|
|
50
50
|
onValueChange?: (state: "mixed" | "on" | "off", prevState: "mixed" | "on" | "off") => void;
|
|
51
51
|
key: string;
|
|
52
|
-
}, "scope" | keyof React.RefAttributes<import("@hanzogui/web").
|
|
52
|
+
}, "scope" | keyof React.RefAttributes<import("@hanzogui/web").GuiElement> | keyof import("@hanzogui/create-menu").MenuCheckboxItemProps>>>;
|
|
53
53
|
RadioGroup: React.FC<Omit<Omit<import("@hanzogui/web").GetFinalProps<import("@hanzogui/web").StackNonStyleProps, import("@hanzogui/web").StackStyleBase, {
|
|
54
54
|
unstyled?: boolean | undefined;
|
|
55
55
|
}>, "scope" | keyof import("@hanzogui/create-menu").MenuRadioGroupProps> & import("@hanzogui/create-menu").MenuRadioGroupProps & {
|
|
56
56
|
scope?: string;
|
|
57
|
-
} & React.RefAttributes<import("@hanzogui/web").
|
|
57
|
+
} & React.RefAttributes<import("@hanzogui/web").GuiElement>, "ref"> & {
|
|
58
58
|
scope?: string;
|
|
59
|
-
} & React.RefAttributes<(HTMLElement & import("@hanzogui/web").
|
|
59
|
+
} & React.RefAttributes<(HTMLElement & import("@hanzogui/web").GuiElementMethods) | import("react-native").View> & Partial<Omit<unknown, "scope" | keyof import("@hanzogui/create-menu").MenuRadioGroupProps | keyof React.RefAttributes<(HTMLElement & import("@hanzogui/web").GuiElementMethods) | import("react-native").View>>>>;
|
|
60
60
|
RadioItem: React.FC<Omit<Omit<import("@hanzogui/web").GetFinalProps<import("@hanzogui/web").StackNonStyleProps, import("@hanzogui/web").StackStyleBase, {
|
|
61
61
|
unstyled?: boolean | undefined;
|
|
62
62
|
}>, "scope" | keyof import("@hanzogui/create-menu").MenuRadioItemProps> & import("@hanzogui/create-menu").MenuRadioItemProps & {
|
|
63
63
|
scope?: string;
|
|
64
|
-
} & React.RefAttributes<import("@hanzogui/web").
|
|
64
|
+
} & React.RefAttributes<import("@hanzogui/web").GuiElement>, "ref"> & {
|
|
65
65
|
scope?: string;
|
|
66
|
-
} & React.RefAttributes<import("@hanzogui/web").
|
|
66
|
+
} & React.RefAttributes<import("@hanzogui/web").GuiElement> & Partial<Omit<any, "scope" | keyof React.RefAttributes<import("@hanzogui/web").GuiElement> | keyof import("@hanzogui/create-menu").MenuRadioItemProps>>>;
|
|
67
67
|
ItemIndicator: React.FC<Omit<Omit<import("@hanzogui/web").GetFinalProps<import("@hanzogui/web").StackNonStyleProps, import("@hanzogui/web").StackStyleBase, {
|
|
68
68
|
unstyled?: boolean | undefined;
|
|
69
69
|
}>, "scope" | keyof import("@hanzogui/create-menu").MenuItemIndicatorProps> & import("@hanzogui/create-menu").MenuItemIndicatorProps & {
|
|
@@ -72,21 +72,21 @@ export declare function createContextMenu(param: CreateBaseMenuProps): React.FC<
|
|
|
72
72
|
unstyled?: boolean | undefined;
|
|
73
73
|
}>, "scope" | keyof import("@hanzogui/create-menu").MenuItemIndicatorProps> & import("@hanzogui/create-menu").MenuItemIndicatorProps & {
|
|
74
74
|
scope?: string;
|
|
75
|
-
} & React.RefAttributes<import("@hanzogui/web").
|
|
75
|
+
} & React.RefAttributes<import("@hanzogui/web").GuiElement>, "ref"> & {
|
|
76
76
|
scope?: string;
|
|
77
|
-
} & React.RefAttributes<import("@hanzogui/web").
|
|
77
|
+
} & React.RefAttributes<import("@hanzogui/web").GuiElement> & Partial<Omit<import("@hanzogui/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("@hanzogui/web").GuiElement>>>>;
|
|
78
78
|
Separator: React.FC<Omit<import("@hanzogui/web").GetFinalProps<import("@hanzogui/web").StackNonStyleProps, import("@hanzogui/web").StackStyleBase, {
|
|
79
79
|
unstyled?: boolean | undefined;
|
|
80
|
-
}>, keyof import("@hanzogui/create-menu").MenuSeparatorProps> & import("@hanzogui/create-menu").MenuSeparatorProps & React.RefAttributes<import("@hanzogui/web").
|
|
81
|
-
Arrow: React.FC<Omit<import("@hanzogui/create-menu").MenuArrowProps & React.RefAttributes<import("@hanzogui/web").
|
|
80
|
+
}>, keyof import("@hanzogui/create-menu").MenuSeparatorProps> & import("@hanzogui/create-menu").MenuSeparatorProps & React.RefAttributes<import("@hanzogui/web").GuiElement> & Partial<Omit<import("@hanzogui/create-menu").NativeMenuSeparatorProps, keyof React.RefAttributes<import("@hanzogui/web").GuiElement> | keyof import("@hanzogui/create-menu").MenuSeparatorProps>>>;
|
|
81
|
+
Arrow: React.FC<Omit<import("@hanzogui/create-menu").MenuArrowProps & React.RefAttributes<import("@hanzogui/web").GuiElement>, "ref"> & {
|
|
82
82
|
scope?: string;
|
|
83
|
-
} & React.RefAttributes<import("@hanzogui/web").
|
|
83
|
+
} & React.RefAttributes<import("@hanzogui/web").GuiElement> & Partial<Omit<import("@hanzogui/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("@hanzogui/web").GuiElement> | "offset">>>;
|
|
84
84
|
Sub: React.FC<import("./createNonNativeContextMenu").ContextMenuSubProps & {
|
|
85
85
|
scope?: string;
|
|
86
86
|
} & Partial<Omit<import("@hanzogui/create-menu").NativeMenuSubProps, keyof import("./createNonNativeContextMenu").ContextMenuSubProps>>>;
|
|
87
87
|
SubTrigger: React.FC<Omit<import("@hanzogui/create-menu").MenuSubTriggerProps & {
|
|
88
88
|
scope?: string;
|
|
89
|
-
} & React.RefAttributes<import("@hanzogui/web").
|
|
89
|
+
} & React.RefAttributes<import("@hanzogui/web").GuiElement>, "ref"> & {
|
|
90
90
|
children: React.ReactNode;
|
|
91
91
|
textValue?: string;
|
|
92
92
|
onSelect?: (event?: Event) => void;
|
|
@@ -98,27 +98,27 @@ export declare function createContextMenu(param: CreateBaseMenuProps): React.FC<
|
|
|
98
98
|
} & {
|
|
99
99
|
key: string;
|
|
100
100
|
}>;
|
|
101
|
-
SubContent: React.FC<Omit<Omit<import("@hanzogui/web").GetFinalProps<import("@hanzogui/core").
|
|
101
|
+
SubContent: React.FC<Omit<Omit<import("@hanzogui/web").GetFinalProps<import("@hanzogui/core").RNViewNonStyleProps, import("@hanzogui/web").StackStyleBase, {
|
|
102
102
|
size?: import("@hanzogui/web").SizeTokens | undefined;
|
|
103
103
|
unstyled?: boolean | undefined;
|
|
104
104
|
elevation?: number | import("@hanzogui/web").SizeTokens | undefined;
|
|
105
105
|
fullscreen?: boolean | undefined;
|
|
106
106
|
}>, keyof import("@hanzogui/create-menu").MenuSubContentProps> & import("@hanzogui/create-menu").MenuSubContentProps & {
|
|
107
107
|
scope?: string;
|
|
108
|
-
} & React.RefAttributes<import("@hanzogui/web").
|
|
108
|
+
} & React.RefAttributes<import("@hanzogui/web").GuiElement>, "ref"> & {
|
|
109
109
|
scope?: string;
|
|
110
|
-
} & React.RefAttributes<(HTMLElement & import("@hanzogui/web").
|
|
110
|
+
} & React.RefAttributes<(HTMLElement & import("@hanzogui/web").GuiElementMethods) | import("react-native").View> & Partial<Omit<import("@hanzogui/create-menu").NativeMenuSubContentProps, keyof import("@hanzogui/create-menu").MenuSubContentProps | keyof React.RefAttributes<(HTMLElement & import("@hanzogui/web").GuiElementMethods) | import("react-native").View>>>>;
|
|
111
111
|
ItemTitle: React.FC<Omit<import("@hanzogui/web").GetFinalProps<import("@hanzogui/web").TextNonStyleProps, import("@hanzogui/web").TextStylePropsBase, {
|
|
112
112
|
unstyled?: boolean | undefined;
|
|
113
113
|
size?: import("@hanzogui/web").FontSizeTokens | undefined;
|
|
114
|
-
}>, keyof import("@hanzogui/create-menu").MenuItemTitleProps> & import("@hanzogui/create-menu").MenuItemTitleProps & React.RefAttributes<import("@hanzogui/web").
|
|
114
|
+
}>, keyof import("@hanzogui/create-menu").MenuItemTitleProps> & import("@hanzogui/create-menu").MenuItemTitleProps & React.RefAttributes<import("@hanzogui/web").GuiTextElement> & Partial<Omit<import("@hanzogui/create-menu").NativeMenuItemTitleProps, "size" | keyof import("@hanzogui/create-menu").MenuItemTitleProps | keyof React.RefAttributes<import("@hanzogui/web").GuiTextElement>>>>;
|
|
115
115
|
ItemSubtitle: React.FC<Omit<import("@hanzogui/web").GetFinalProps<import("@hanzogui/web").TextNonStyleProps, import("@hanzogui/web").TextStylePropsBase, {
|
|
116
116
|
unstyled?: boolean | undefined;
|
|
117
117
|
size?: import("@hanzogui/web").FontSizeTokens | undefined;
|
|
118
|
-
}>, keyof import("@hanzogui/create-menu").MenuItemSubTitleProps> & import("@hanzogui/create-menu").MenuItemSubTitleProps & React.RefAttributes<import("@hanzogui/web").
|
|
118
|
+
}>, keyof import("@hanzogui/create-menu").MenuItemSubTitleProps> & import("@hanzogui/create-menu").MenuItemSubTitleProps & React.RefAttributes<import("@hanzogui/web").GuiTextElement> & Partial<Omit<import("@hanzogui/create-menu").NativeMenuItemSubtitleProps, "size" | keyof import("@hanzogui/create-menu").MenuItemSubTitleProps | keyof React.RefAttributes<import("@hanzogui/web").GuiTextElement>>>>;
|
|
119
119
|
ItemIcon: React.FC<Omit<Omit<import("@hanzogui/web").GetFinalProps<import("@hanzogui/web").StackNonStyleProps, import("@hanzogui/web").StackStyleBase, {
|
|
120
120
|
unstyled?: boolean | undefined;
|
|
121
|
-
}>, `$${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, {}>> & React.RefAttributes<import("@hanzogui/web").
|
|
121
|
+
}>, `$${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, {}>> & React.RefAttributes<import("@hanzogui/web").GuiElement>, "ref"> & import("@hanzogui/create-menu").NativeMenuItemCommonProps>;
|
|
122
122
|
ItemImage: React.FC<import("react-native").ImageProps & React.RefAttributes<import("react-native").Image> & Partial<Omit<import("@hanzogui/create-menu").NativeMenuItemCommonProps & {
|
|
123
123
|
source: import("react-native").ImageProps["source"];
|
|
124
124
|
ios?: {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContextMenu.d.ts","sourceRoot":"","sources":["../src/ContextMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EAGpB,MAAM,uBAAuB,CAAA;AAG9B,OAAO,KAAK,MAAM,OAAO,CAAA;AAczB,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBA8C1D,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBA0F2B,KAAK,CAAC,EAAE;;;;;yBA1FpC,CAAC;;;;;;;;MA0FuE;;;;;;;;;;;;;;;;;;;cAKhD,KAAK,CAAC,EAAE;;6sCAAkC;;;;iBA1CxD,CAAC;;;gBACH,CAAC;;;;EA8CV;AAED,YAAY,EACV,qBAAqB,EACrB,4BAA4B,EAC5B,uBAAuB,EACvB,qBAAqB,EACrB,wBAAwB,EACxB,yBAAyB,EACzB,6BAA6B,EAC7B,oBAAoB,EACpB,gBAAgB,EAChB,0BAA0B,EAC1B,yBAAyB,EACzB,yBAAyB,EACzB,0BAA0B,EAC1B,mBAAmB,EACnB,0BAA0B,EAC1B,uBAAuB,GACxB,MAAM,8BAA8B,CAAA"}
|