@xaui/native 0.9.1-alpha.39 → 0.9.1-alpha.40
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/{chunk-GJSFKH4L.js → chunk-2XPG2243.js} +16 -16
- package/dist/{chunk-TGMVEHV7.cjs → chunk-3E7CDKFO.cjs} +61 -61
- package/dist/{chunk-37L7YGZV.cjs → chunk-5R26NM4M.cjs} +11 -34
- package/dist/chunk-5VKYNBNA.js +607 -0
- package/dist/{chunk-S4QUM4EE.cjs → chunk-6DOLGZVV.cjs} +4 -4
- package/dist/{chunk-LIUO6D3D.js → chunk-6UEZJRVI.js} +75 -75
- package/dist/chunk-734MFAX4.js +27 -0
- package/dist/{chunk-VZK3NLBH.cjs → chunk-7YF5NAHQ.cjs} +7 -7
- package/dist/{chunk-SIP5J7HU.cjs → chunk-ABAGZTXZ.cjs} +15 -15
- package/dist/{chunk-USF6EWYR.js → chunk-BRRXFOBY.js} +7 -7
- package/dist/{chunk-4KSKQD37.cjs → chunk-C5YLPCFC.cjs} +5 -5
- package/dist/{chunk-54CWXA34.cjs → chunk-DA3OKXHV.cjs} +59 -59
- package/dist/{chunk-HA6BFY3A.js → chunk-DD4276RF.js} +6 -6
- package/dist/{chunk-SACDOFGF.js → chunk-DG2I4PJG.js} +15 -15
- package/dist/{chunk-FBCWNXZC.js → chunk-DHGLGSH6.js} +58 -58
- package/dist/{chunk-MXGER5PI.js → chunk-DIBUQ46Y.js} +5 -5
- package/dist/{chunk-XAFP5JLK.js → chunk-EZEYMLO3.js} +13 -36
- package/dist/{chunk-7KLBTMXV.cjs → chunk-G7P3ERYF.cjs} +5 -5
- package/dist/{chunk-QZ24MZRX.js → chunk-GA6PBWNT.js} +1 -1
- package/dist/{chunk-HOI5425P.cjs → chunk-GFUZ3MUT.cjs} +6 -6
- package/dist/chunk-GTR5X65M.cjs +27 -0
- package/dist/{chunk-EYD4H4X6.js → chunk-KCMYU7WF.js} +1 -1
- package/dist/{chunk-JKP4TPIL.js → chunk-LRN3RNDO.js} +16 -16
- package/dist/{chunk-XNMZQSY5.js → chunk-N3KTZMPG.js} +5 -5
- package/dist/{chunk-7TOG4TVU.cjs → chunk-NWGLP6JX.cjs} +15 -15
- package/dist/{chunk-NCCRQK3P.cjs → chunk-R73XQK7X.cjs} +5 -5
- package/dist/{chunk-76XDVA24.cjs → chunk-RU7JCMWC.cjs} +6 -6
- package/dist/chunk-T5FV5F7A.cjs +607 -0
- package/dist/{chunk-3JXI2IHV.cjs → chunk-TJ74XVZN.cjs} +8 -8
- package/dist/{chunk-URA25DU4.cjs → chunk-UAWBAD4E.cjs} +5 -5
- package/dist/{chunk-6CO6FM67.js → chunk-UFTCTTKK.js} +15 -15
- package/dist/{chunk-DY3SUG5P.js → chunk-XFPQFCEK.js} +6 -6
- package/dist/{chunk-66FOASTP.cjs → chunk-XV735BSA.cjs} +6 -6
- package/dist/{chunk-TRETQZEW.js → chunk-YGYYJ3LQ.js} +5 -5
- package/dist/{chunk-R7BU4CPS.js → chunk-YVHT2UVW.js} +1 -1
- package/dist/{chunk-AAVCMCJ3.cjs → chunk-ZFOOJK37.cjs} +2 -2
- package/dist/components/accordion/index.cjs +5 -5
- package/dist/components/accordion/index.js +4 -4
- package/dist/components/alert/index.cjs +6 -6
- package/dist/components/alert/index.js +5 -5
- package/dist/components/avatar/index.cjs +4 -4
- package/dist/components/avatar/index.js +3 -3
- package/dist/components/badge/index.cjs +4 -4
- package/dist/components/badge/index.js +3 -3
- package/dist/components/button/index.cjs +5 -5
- package/dist/components/button/index.js +4 -4
- package/dist/components/card/index.cjs +5 -5
- package/dist/components/card/index.js +4 -4
- package/dist/components/checkbox/index.cjs +5 -5
- package/dist/components/checkbox/index.js +4 -4
- package/dist/components/chip/index.cjs +6 -6
- package/dist/components/chip/index.js +5 -5
- package/dist/components/divider/index.cjs +4 -4
- package/dist/components/divider/index.js +3 -3
- package/dist/components/field-group/index.cjs +5 -5
- package/dist/components/field-group/index.js +4 -4
- package/dist/components/input-otp/index.cjs +4 -4
- package/dist/components/input-otp/index.js +3 -3
- package/dist/components/menu/index.cjs +49 -0
- package/dist/components/menu/index.d.cts +351 -0
- package/dist/components/menu/index.d.ts +351 -0
- package/dist/components/menu/index.js +49 -0
- package/dist/components/popover/index.cjs +6 -5
- package/dist/components/popover/index.js +5 -4
- package/dist/components/radio/index.cjs +5 -5
- package/dist/components/radio/index.js +4 -4
- package/dist/components/select/index.cjs +5 -5
- package/dist/components/select/index.d.cts +1 -1
- package/dist/components/select/index.d.ts +1 -1
- package/dist/components/select/index.js +4 -4
- package/dist/components/spinner/index.cjs +1 -1
- package/dist/components/spinner/index.js +1 -1
- package/dist/components/switch/index.cjs +5 -5
- package/dist/components/switch/index.js +4 -4
- package/dist/components/text-area/index.cjs +5 -5
- package/dist/components/text-area/index.js +4 -4
- package/dist/components/text-field/index.cjs +4 -4
- package/dist/components/text-field/index.js +3 -3
- package/dist/components/typography/index.cjs +4 -4
- package/dist/components/typography/index.js +3 -3
- package/dist/index.cjs +61 -28
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +78 -45
- package/dist/system/index.cjs +7 -7
- package/dist/system/index.js +7 -7
- package/package.json +11 -1
- package/dist/{chunk-S2WNWMNT.js → chunk-2NRZKJG7.js} +4 -4
- package/dist/{chunk-26OGEFQI.js → chunk-4CUZZWFW.js} +3 -3
- package/dist/{chunk-KSUV74BE.cjs → chunk-6L2TS2R3.cjs} +3 -3
- package/dist/{chunk-SZLXPF3G.js → chunk-73RKQC5X.js} +3 -3
- package/dist/{chunk-BNFIFRQA.cjs → chunk-AMCSSOJT.cjs} +3 -3
- package/dist/{chunk-346QBNUD.js → chunk-H7DS4IO7.js} +4 -4
- package/dist/{chunk-RKCWYUGA.cjs → chunk-HDVVZG4S.cjs} +3 -3
- package/dist/{chunk-A7YB7YWX.cjs → chunk-J3MB4PI5.cjs} +3 -3
|
@@ -7,13 +7,13 @@ import {
|
|
|
7
7
|
FieldGroupSuffix,
|
|
8
8
|
decoratorPadding,
|
|
9
9
|
useFieldGroup
|
|
10
|
-
} from "../../chunk-
|
|
11
|
-
import "../../chunk-
|
|
10
|
+
} from "../../chunk-GA6PBWNT.js";
|
|
11
|
+
import "../../chunk-2NRZKJG7.js";
|
|
12
12
|
import "../../chunk-FHUYHV6J.js";
|
|
13
|
-
import "../../chunk-K72UDPVN.js";
|
|
14
|
-
import "../../chunk-36PRYGAM.js";
|
|
15
13
|
import "../../chunk-4GTAZM2C.js";
|
|
16
14
|
import "../../chunk-A3EGFI6T.js";
|
|
15
|
+
import "../../chunk-K72UDPVN.js";
|
|
16
|
+
import "../../chunk-36PRYGAM.js";
|
|
17
17
|
import "../../chunk-M63GFNKV.js";
|
|
18
18
|
export {
|
|
19
19
|
FieldGroup,
|
|
@@ -8,13 +8,13 @@
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkABAGZTXZcjs = require('../../chunk-ABAGZTXZ.cjs');
|
|
12
12
|
require('../../chunk-7EIHHOHP.cjs');
|
|
13
13
|
require('../../chunk-EJQCQPET.cjs');
|
|
14
|
-
require('../../chunk-7GHM4GKL.cjs');
|
|
15
|
-
require('../../chunk-H4E4HDEP.cjs');
|
|
16
14
|
require('../../chunk-FNEUOBCV.cjs');
|
|
17
15
|
require('../../chunk-57SJ4LJF.cjs');
|
|
16
|
+
require('../../chunk-7GHM4GKL.cjs');
|
|
17
|
+
require('../../chunk-H4E4HDEP.cjs');
|
|
18
18
|
require('../../chunk-TK44VBIE.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
@@ -26,4 +26,4 @@ require('../../chunk-TK44VBIE.cjs');
|
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
exports.InputOTP =
|
|
29
|
+
exports.InputOTP = _chunkABAGZTXZcjs.InputOTP; exports.OTP_ALPHANUMERIC = _chunkABAGZTXZcjs.OTP_ALPHANUMERIC; exports.OTP_DIGITS = _chunkABAGZTXZcjs.OTP_DIGITS; exports.OTP_LETTERS = _chunkABAGZTXZcjs.OTP_LETTERS; exports.buildSlots = _chunkABAGZTXZcjs.buildSlots; exports.extractPastedCode = _chunkABAGZTXZcjs.extractPastedCode; exports.inputOTPRecipe = _chunkABAGZTXZcjs.inputOTPRecipe; exports.useInputOTP = _chunkABAGZTXZcjs.useInputOTP; exports.useInputOTPBox = _chunkABAGZTXZcjs.useInputOTPBox;
|
|
@@ -8,13 +8,13 @@ import {
|
|
|
8
8
|
inputOTPRecipe,
|
|
9
9
|
useInputOTP,
|
|
10
10
|
useInputOTPBox
|
|
11
|
-
} from "../../chunk-
|
|
11
|
+
} from "../../chunk-DG2I4PJG.js";
|
|
12
12
|
import "../../chunk-F6W3JQ7K.js";
|
|
13
13
|
import "../../chunk-EGLLDKN6.js";
|
|
14
|
-
import "../../chunk-K72UDPVN.js";
|
|
15
|
-
import "../../chunk-36PRYGAM.js";
|
|
16
14
|
import "../../chunk-4GTAZM2C.js";
|
|
17
15
|
import "../../chunk-A3EGFI6T.js";
|
|
16
|
+
import "../../chunk-K72UDPVN.js";
|
|
17
|
+
import "../../chunk-36PRYGAM.js";
|
|
18
18
|
import "../../chunk-M63GFNKV.js";
|
|
19
19
|
export {
|
|
20
20
|
InputOTP,
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
var _chunkT5FV5F7Acjs = require('../../chunk-T5FV5F7A.cjs');
|
|
18
|
+
require('../../chunk-GTR5X65M.cjs');
|
|
19
|
+
require('../../chunk-LUPCPLND.cjs');
|
|
20
|
+
require('../../chunk-WDDXU3OH.cjs');
|
|
21
|
+
require('../../chunk-EKS3W46M.cjs');
|
|
22
|
+
require('../../chunk-WFEMJCXO.cjs');
|
|
23
|
+
require('../../chunk-4KFKWBN5.cjs');
|
|
24
|
+
require('../../chunk-7EIHHOHP.cjs');
|
|
25
|
+
require('../../chunk-3E7CDKFO.cjs');
|
|
26
|
+
require('../../chunk-7DPL3ZDS.cjs');
|
|
27
|
+
require('../../chunk-EJQCQPET.cjs');
|
|
28
|
+
require('../../chunk-FNEUOBCV.cjs');
|
|
29
|
+
require('../../chunk-57SJ4LJF.cjs');
|
|
30
|
+
require('../../chunk-7GHM4GKL.cjs');
|
|
31
|
+
require('../../chunk-H4E4HDEP.cjs');
|
|
32
|
+
require('../../chunk-TK44VBIE.cjs');
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
exports.Menu = _chunkT5FV5F7Acjs.Menu2; exports.MenuContent = _chunkT5FV5F7Acjs.MenuContent; exports.MenuGroup = _chunkT5FV5F7Acjs.MenuGroup; exports.MenuItem = _chunkT5FV5F7Acjs.MenuItem; exports.MenuItemDescription = _chunkT5FV5F7Acjs.MenuItemDescription; exports.MenuItemIndicator = _chunkT5FV5F7Acjs.MenuItemIndicator; exports.MenuItemTitle = _chunkT5FV5F7Acjs.MenuItemTitle; exports.MenuLabel = _chunkT5FV5F7Acjs.MenuLabel; exports.MenuOverlay = _chunkT5FV5F7Acjs.MenuOverlay; exports.MenuRoot = _chunkT5FV5F7Acjs.Menu; exports.MenuSeparator = _chunkT5FV5F7Acjs.MenuSeparator; exports.MenuTrigger = _chunkT5FV5F7Acjs.MenuTrigger; exports.menuRecipe = _chunkT5FV5F7Acjs.menuRecipe; exports.useMenu = _chunkT5FV5F7Acjs.useMenu; exports.useMenuItem = _chunkT5FV5F7Acjs.useMenuItem;
|
|
@@ -0,0 +1,351 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import * as react_native from 'react-native';
|
|
4
|
+
import { StyleProp, ViewStyle, TextStyle, ViewProps, TextProps, PressableProps, View, Text } from 'react-native';
|
|
5
|
+
import { I as IconContextValue } from '../../icon.type-d_i9ma-i.cjs';
|
|
6
|
+
import { V as ViewStyleProps, T as TextStyleProps } from '../../style-props.type-CfnoGEP7.cjs';
|
|
7
|
+
import { R as RadiusKey } from '../../theme.type-C2gNHpEx.cjs';
|
|
8
|
+
import { P as Placement, A as Align, a as AnchoredWidth, I as Insets, b as Anchor } from '../../placement-DHa0Rrh1.cjs';
|
|
9
|
+
import { R as Recipe, a as StyleFn } from '../../create-recipe-dC7wMfnj.cjs';
|
|
10
|
+
|
|
11
|
+
type MenuSlot = 'trigger' | 'overlay' | 'content' | 'label' | 'separator' | 'group' | 'item' | 'itemTitle' | 'itemDescription' | 'itemIndicator';
|
|
12
|
+
type MenuPlacement = Placement;
|
|
13
|
+
type MenuAlign = Align;
|
|
14
|
+
type MenuWidth = AnchoredWidth;
|
|
15
|
+
type MenuInsets = Insets;
|
|
16
|
+
type MenuAnchor = Anchor;
|
|
17
|
+
/**
|
|
18
|
+
* A row's intent, and the only place a menu carries one. `danger` is not decoration: a
|
|
19
|
+
* list where "Supprimer" reads like "Renommer" is the list that gets misread.
|
|
20
|
+
*/
|
|
21
|
+
type MenuItemVariant = 'default' | 'danger';
|
|
22
|
+
type MenuOwnProps = {
|
|
23
|
+
children?: ReactNode;
|
|
24
|
+
radius?: RadiusKey;
|
|
25
|
+
isOpen?: boolean;
|
|
26
|
+
defaultOpen?: boolean;
|
|
27
|
+
onOpenChange?: (isOpen: boolean) => void;
|
|
28
|
+
isDisabled?: boolean;
|
|
29
|
+
};
|
|
30
|
+
/** The root renders **no node** — see `Menu.Trigger` for where `ref` and `style` live. */
|
|
31
|
+
type MenuProps = MenuOwnProps;
|
|
32
|
+
type MenuTriggerOwnProps = {
|
|
33
|
+
children?: ReactNode;
|
|
34
|
+
asChild?: boolean;
|
|
35
|
+
};
|
|
36
|
+
type MenuTriggerProps = MenuTriggerOwnProps & Omit<PressableProps, keyof MenuTriggerOwnProps> & Omit<ViewStyleProps, keyof MenuTriggerOwnProps | keyof PressableProps>;
|
|
37
|
+
type MenuOverlayOwnProps = {
|
|
38
|
+
children?: ReactNode;
|
|
39
|
+
isDismissable?: boolean;
|
|
40
|
+
};
|
|
41
|
+
type MenuOverlayProps = MenuOverlayOwnProps & Omit<ViewProps, keyof MenuOverlayOwnProps> & Omit<ViewStyleProps, keyof MenuOverlayOwnProps | keyof ViewProps>;
|
|
42
|
+
type MenuContentOwnProps = {
|
|
43
|
+
children?: ReactNode;
|
|
44
|
+
placement?: MenuPlacement;
|
|
45
|
+
align?: MenuAlign;
|
|
46
|
+
width?: MenuWidth;
|
|
47
|
+
offset?: number;
|
|
48
|
+
alignOffset?: number;
|
|
49
|
+
avoidCollisions?: boolean;
|
|
50
|
+
insets?: MenuInsets;
|
|
51
|
+
};
|
|
52
|
+
type MenuContentProps = MenuContentOwnProps & Omit<ViewProps, keyof MenuContentOwnProps> & Omit<ViewStyleProps, keyof MenuContentOwnProps | keyof ViewProps>;
|
|
53
|
+
type MenuTextOwnProps = {
|
|
54
|
+
children?: ReactNode;
|
|
55
|
+
};
|
|
56
|
+
type MenuLabelProps = MenuTextOwnProps & Omit<TextProps, keyof MenuTextOwnProps> & Omit<TextStyleProps, keyof MenuTextOwnProps | keyof TextProps>;
|
|
57
|
+
type MenuItemDescriptionProps = MenuLabelProps;
|
|
58
|
+
/** It draws a rule and holds nothing, so there is no `children`. */
|
|
59
|
+
type MenuSeparatorProps = Omit<ViewProps, 'children'> & ViewStyleProps;
|
|
60
|
+
type MenuGroupOwnProps = {
|
|
61
|
+
children?: ReactNode;
|
|
62
|
+
};
|
|
63
|
+
type MenuGroupProps = MenuGroupOwnProps & Omit<ViewProps, keyof MenuGroupOwnProps> & Omit<ViewStyleProps, keyof MenuGroupOwnProps | keyof ViewProps>;
|
|
64
|
+
/** What a row's render function is handed, so it can paint its own state. */
|
|
65
|
+
type MenuItemRenderState = {
|
|
66
|
+
isPressed: boolean;
|
|
67
|
+
isDisabled: boolean;
|
|
68
|
+
};
|
|
69
|
+
type MenuItemOwnProps = {
|
|
70
|
+
variant?: MenuItemVariant;
|
|
71
|
+
isDisabled?: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* Whether choosing this row closes the menu.
|
|
74
|
+
*
|
|
75
|
+
* @default true
|
|
76
|
+
*/
|
|
77
|
+
closesOnPress?: boolean;
|
|
78
|
+
children?: ReactNode | ((state: MenuItemRenderState) => ReactNode);
|
|
79
|
+
asChild?: boolean;
|
|
80
|
+
};
|
|
81
|
+
type MenuItemProps = MenuItemOwnProps & Omit<PressableProps, keyof MenuItemOwnProps> & Omit<ViewStyleProps, keyof MenuItemOwnProps | keyof PressableProps>;
|
|
82
|
+
/** The title takes the row's intent, so it is the one text that is not written by hand. */
|
|
83
|
+
type MenuItemTitleProps = MenuLabelProps;
|
|
84
|
+
type MenuItemIndicatorProps = MenuGroupProps;
|
|
85
|
+
/** R5 — resolved style ids and the state the slots read. */
|
|
86
|
+
type MenuContextValue = {
|
|
87
|
+
triggerStyle: StyleProp<ViewStyle>;
|
|
88
|
+
overlayStyle: StyleProp<ViewStyle>;
|
|
89
|
+
contentStyle: StyleProp<ViewStyle>;
|
|
90
|
+
labelStyle: StyleProp<TextStyle>;
|
|
91
|
+
separatorStyle: StyleProp<ViewStyle>;
|
|
92
|
+
groupStyle: StyleProp<ViewStyle>;
|
|
93
|
+
itemStyle: StyleProp<ViewStyle>;
|
|
94
|
+
itemPressedStyle: StyleProp<ViewStyle>;
|
|
95
|
+
itemTitleStyle: Record<MenuItemVariant, StyleProp<TextStyle>>;
|
|
96
|
+
itemDescriptionStyle: StyleProp<TextStyle>;
|
|
97
|
+
itemIndicatorStyle: StyleProp<ViewStyle>;
|
|
98
|
+
glyph: Record<MenuItemVariant, IconContextValue>;
|
|
99
|
+
isOpen: boolean;
|
|
100
|
+
isDisabled: boolean;
|
|
101
|
+
open: () => void;
|
|
102
|
+
close: () => void;
|
|
103
|
+
toggle: () => void;
|
|
104
|
+
anchor: MenuAnchor | null;
|
|
105
|
+
setAnchor: (anchor: MenuAnchor) => void;
|
|
106
|
+
};
|
|
107
|
+
/** One row's own state, for the slots inside it. */
|
|
108
|
+
type MenuItemContextValue = MenuItemRenderState & {
|
|
109
|
+
variant: MenuItemVariant;
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* A list of actions, anchored to whatever opened it.
|
|
114
|
+
*
|
|
115
|
+
* ```tsx
|
|
116
|
+
* <Menu>
|
|
117
|
+
* <Menu.Trigger asChild>
|
|
118
|
+
* <Button variant="tertiary">Actions</Button>
|
|
119
|
+
* </Menu.Trigger>
|
|
120
|
+
* <Menu.Overlay />
|
|
121
|
+
* <Menu.Content>
|
|
122
|
+
* <Menu.Item onPress={rename}>
|
|
123
|
+
* <Menu.ItemTitle>Renommer</Menu.ItemTitle>
|
|
124
|
+
* </Menu.Item>
|
|
125
|
+
* <Menu.Item variant="danger" onPress={remove}>
|
|
126
|
+
* <Menu.ItemTitle>Supprimer</Menu.ItemTitle>
|
|
127
|
+
* </Menu.Item>
|
|
128
|
+
* </Menu.Content>
|
|
129
|
+
* </Menu>
|
|
130
|
+
* ```
|
|
131
|
+
*
|
|
132
|
+
* **The root renders no node**, and its positioning is the `Popover`'s — the same measuring
|
|
133
|
+
* pass, the same host origin, the same keyframes. What is a menu's own is the row: a list
|
|
134
|
+
* of actions where one of them can be the destructive one.
|
|
135
|
+
*/
|
|
136
|
+
declare function Menu$1({ children, radius, isOpen: controlledOpen, defaultOpen, onOpenChange, isDisabled, }: MenuProps): react.JSX.Element;
|
|
137
|
+
declare namespace Menu$1 {
|
|
138
|
+
var displayName: string;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* The panel. It renders into the nearest `PortalHost`, so it escapes the clipping and the
|
|
143
|
+
* stacking of whatever container held the trigger.
|
|
144
|
+
*
|
|
145
|
+
* Its width defaults to `content-fit` rather than the `Select`'s `trigger`: a select's
|
|
146
|
+
* list belongs to the field it drops out of, and a menu belongs to nothing — matching
|
|
147
|
+
* the width of a word or an icon would give it no room at all.
|
|
148
|
+
*/
|
|
149
|
+
declare const MenuContent: react.ForwardRefExoticComponent<{
|
|
150
|
+
children?: react.ReactNode;
|
|
151
|
+
placement?: MenuPlacement;
|
|
152
|
+
align?: MenuAlign;
|
|
153
|
+
width?: MenuWidth;
|
|
154
|
+
offset?: number;
|
|
155
|
+
alignOffset?: number;
|
|
156
|
+
avoidCollisions?: boolean;
|
|
157
|
+
insets?: MenuInsets;
|
|
158
|
+
} & Omit<react_native.ViewProps, keyof {
|
|
159
|
+
children?: react.ReactNode;
|
|
160
|
+
placement?: MenuPlacement;
|
|
161
|
+
align?: MenuAlign;
|
|
162
|
+
width?: MenuWidth;
|
|
163
|
+
offset?: number;
|
|
164
|
+
alignOffset?: number;
|
|
165
|
+
avoidCollisions?: boolean;
|
|
166
|
+
insets?: MenuInsets;
|
|
167
|
+
}> & Omit<ViewStyleProps, "width" | "pointerEvents" | "style" | "children" | "hitSlop" | "id" | "needsOffscreenAlphaCompositing" | "onLayout" | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "collapsableChildren" | "onBlur" | "onFocus" | "renderToHardwareTextureAndroid" | "focusable" | "tabIndex" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "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" | "role" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "screenReaderFocusable" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "accessibilityRespondsToUserInteraction" | "offset" | "alignOffset" | "insets" | "placement" | "avoidCollisions" | "align"> & react.RefAttributes<View>>;
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* A run of rows under one heading, announced as a group.
|
|
171
|
+
*
|
|
172
|
+
* It draws nothing — no fill, no separator. What separates two groups is the heading over
|
|
173
|
+
* the second one, and a rule as well would be saying it twice.
|
|
174
|
+
*/
|
|
175
|
+
declare const MenuGroup: react.ForwardRefExoticComponent<{
|
|
176
|
+
children?: react.ReactNode;
|
|
177
|
+
} & Omit<react_native.ViewProps, "children"> & Omit<ViewStyleProps, keyof react_native.ViewProps> & react.RefAttributes<View>>;
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* One action.
|
|
181
|
+
*
|
|
182
|
+
* It closes the menu after the caller's `onPress` has run, and in that order: a handler
|
|
183
|
+
* that reads the menu's state has to run while there is still a menu. `closesOnPress`
|
|
184
|
+
* turns it off for a row that toggles something the reader will want to toggle again.
|
|
185
|
+
*/
|
|
186
|
+
declare const MenuItem: react.ForwardRefExoticComponent<{
|
|
187
|
+
variant?: MenuItemVariant;
|
|
188
|
+
isDisabled?: boolean;
|
|
189
|
+
closesOnPress?: boolean;
|
|
190
|
+
children?: react.ReactNode | ((state: MenuItemRenderState) => react.ReactNode);
|
|
191
|
+
asChild?: boolean;
|
|
192
|
+
} & Omit<react_native.PressableProps, keyof {
|
|
193
|
+
variant?: MenuItemVariant;
|
|
194
|
+
isDisabled?: boolean;
|
|
195
|
+
closesOnPress?: boolean;
|
|
196
|
+
children?: react.ReactNode | ((state: MenuItemRenderState) => react.ReactNode);
|
|
197
|
+
asChild?: boolean;
|
|
198
|
+
}> & Omit<ViewStyleProps, "pointerEvents" | "style" | "children" | "hitSlop" | "id" | "needsOffscreenAlphaCompositing" | "onLayout" | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "collapsableChildren" | "onBlur" | "onFocus" | "renderToHardwareTextureAndroid" | "focusable" | "tabIndex" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "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" | "role" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "screenReaderFocusable" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "accessibilityRespondsToUserInteraction" | "disabled" | "onPress" | "onPressIn" | "onPressOut" | "onLongPress" | "delayLongPress" | "variant" | "isDisabled" | "asChild" | "onHoverIn" | "onHoverOut" | "cancelable" | "delayHoverIn" | "delayHoverOut" | "pressRetentionOffset" | "android_disableSound" | "android_ripple" | "testOnly_pressed" | "unstable_pressDelay" | "closesOnPress"> & react.RefAttributes<View>>;
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* The second line of a row. It stays muted whatever the row's intent: a `danger` row says
|
|
202
|
+
* what it does in red once, and a red sentence under it says it twice.
|
|
203
|
+
*/
|
|
204
|
+
declare const MenuItemDescription: react.ForwardRefExoticComponent<{
|
|
205
|
+
children?: react.ReactNode;
|
|
206
|
+
} & Omit<react_native.TextProps, "children"> & Omit<TextStyleProps, keyof react_native.TextProps> & react.RefAttributes<Text>>;
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* A fixed box at either end of a row — a check, a glyph, a count. Its size does not depend
|
|
210
|
+
* on what is in it, so two rows whose indicators differ still line their titles up.
|
|
211
|
+
*
|
|
212
|
+
* It renders nothing on its own, unlike the `Select`'s: a menu has no selected row to mark,
|
|
213
|
+
* so what goes in the box is always the caller's.
|
|
214
|
+
*/
|
|
215
|
+
declare const MenuItemIndicator: react.ForwardRefExoticComponent<{
|
|
216
|
+
children?: react.ReactNode;
|
|
217
|
+
} & Omit<react_native.ViewProps, "children"> & Omit<ViewStyleProps, keyof react_native.ViewProps> & react.RefAttributes<View>>;
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* The row's text, and the one node that carries its intent — a `danger` row is a red
|
|
221
|
+
* label, not a red row. It takes the row's width so an indicator stays pinned to the end
|
|
222
|
+
* whatever the label's length.
|
|
223
|
+
*/
|
|
224
|
+
declare const MenuItemTitle: react.ForwardRefExoticComponent<{
|
|
225
|
+
children?: react.ReactNode;
|
|
226
|
+
} & Omit<react_native.TextProps, "children"> & Omit<TextStyleProps, keyof react_native.TextProps> & react.RefAttributes<Text>>;
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* A heading over a run of rows. Not a row: no press, and a screen reader announces it as a
|
|
230
|
+
* header so the group it opens is announced with it.
|
|
231
|
+
*/
|
|
232
|
+
declare const MenuLabel: react.ForwardRefExoticComponent<{
|
|
233
|
+
children?: react.ReactNode;
|
|
234
|
+
} & Omit<react_native.TextProps, "children"> & Omit<TextStyleProps, keyof react_native.TextProps> & react.RefAttributes<Text>>;
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* A rule between two runs of rows.
|
|
238
|
+
*
|
|
239
|
+
* **Placed by you, not drawn between every pair.** A menu of four related actions wants
|
|
240
|
+
* none; a menu whose last row is "Supprimer" wants exactly one, above it. Drawing them all
|
|
241
|
+
* and asking for the exceptions is the wrong way round — a menu is short enough that the
|
|
242
|
+
* one place a break belongs is obvious to whoever wrote it, and invisible to the component.
|
|
243
|
+
*
|
|
244
|
+
* It is not a `Divider`, and does not take that component's variants: this one is the
|
|
245
|
+
* menu's own trim, resolved on the menu's root with everything else the panel reads.
|
|
246
|
+
*/
|
|
247
|
+
declare const MenuSeparator: react.ForwardRefExoticComponent<Omit<react_native.ViewProps, "children"> & ViewStyleProps & react.RefAttributes<View>>;
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* The backdrop, and what closes the panel on a press outside it.
|
|
251
|
+
*
|
|
252
|
+
* **Optional, and that is the point.** Written, it captures the press outside and dims
|
|
253
|
+
* nothing unless a `backgroundColor` says so; omitted, the panel has no backdrop and a
|
|
254
|
+
* `Menu.Close` or the caller's own state is what closes it.
|
|
255
|
+
*/
|
|
256
|
+
declare const MenuOverlay: react.ForwardRefExoticComponent<{
|
|
257
|
+
children?: react.ReactNode;
|
|
258
|
+
isDismissable?: boolean;
|
|
259
|
+
} & Omit<react_native.ViewProps, keyof {
|
|
260
|
+
children?: react.ReactNode;
|
|
261
|
+
isDismissable?: boolean;
|
|
262
|
+
}> & Omit<ViewStyleProps, "pointerEvents" | "style" | "children" | "hitSlop" | "id" | "needsOffscreenAlphaCompositing" | "onLayout" | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "collapsableChildren" | "onBlur" | "onFocus" | "renderToHardwareTextureAndroid" | "focusable" | "tabIndex" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "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" | "role" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "screenReaderFocusable" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "accessibilityRespondsToUserInteraction" | "isDismissable"> & react.RefAttributes<View>>;
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* What opens the panel, and the rectangle it is anchored to.
|
|
266
|
+
*
|
|
267
|
+
* It paints nothing of its own: a menu's trigger is usually a `Button`, an `Icon` or a
|
|
268
|
+
* word in a sentence, and giving it a surface would put a second box around one of those.
|
|
269
|
+
* `asChild` is the normal way to write it.
|
|
270
|
+
*/
|
|
271
|
+
declare const MenuTrigger: react.ForwardRefExoticComponent<{
|
|
272
|
+
children?: react.ReactNode;
|
|
273
|
+
asChild?: boolean;
|
|
274
|
+
} & Omit<react_native.PressableProps, keyof {
|
|
275
|
+
children?: react.ReactNode;
|
|
276
|
+
asChild?: boolean;
|
|
277
|
+
}> & Omit<ViewStyleProps, "pointerEvents" | "style" | "children" | "hitSlop" | "id" | "needsOffscreenAlphaCompositing" | "onLayout" | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "collapsableChildren" | "onBlur" | "onFocus" | "renderToHardwareTextureAndroid" | "focusable" | "tabIndex" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "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" | "role" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "screenReaderFocusable" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "accessibilityRespondsToUserInteraction" | "disabled" | "onPress" | "onPressIn" | "onPressOut" | "onLongPress" | "delayLongPress" | "asChild" | "onHoverIn" | "onHoverOut" | "cancelable" | "delayHoverIn" | "delayHoverOut" | "pressRetentionOffset" | "android_disableSound" | "android_ripple" | "testOnly_pressed" | "unstable_pressDelay"> & react.RefAttributes<View>>;
|
|
278
|
+
|
|
279
|
+
declare const useMenu: () => MenuContextValue;
|
|
280
|
+
declare const useMenuItem: () => MenuItemContextValue;
|
|
281
|
+
|
|
282
|
+
declare const menuRecipe: Recipe<"label" | "overlay" | "separator" | "item" | "trigger" | "content" | "group" | "itemTitle" | "itemDescription" | "itemIndicator", MenuItemVariant, {
|
|
283
|
+
readonly radius: Record<RadiusKey, StyleFn<"content">>;
|
|
284
|
+
}>;
|
|
285
|
+
|
|
286
|
+
declare const Menu: typeof Menu$1 & {
|
|
287
|
+
Trigger: react.ForwardRefExoticComponent<{
|
|
288
|
+
children?: react.ReactNode;
|
|
289
|
+
asChild?: boolean;
|
|
290
|
+
} & Omit<react_native.PressableProps, keyof {
|
|
291
|
+
children?: react.ReactNode;
|
|
292
|
+
asChild?: boolean;
|
|
293
|
+
}> & Omit<ViewStyleProps, "pointerEvents" | "style" | "children" | "hitSlop" | "id" | "needsOffscreenAlphaCompositing" | "onLayout" | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "collapsableChildren" | "onBlur" | "onFocus" | "renderToHardwareTextureAndroid" | "focusable" | "tabIndex" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "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" | "role" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "screenReaderFocusable" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "accessibilityRespondsToUserInteraction" | "disabled" | "onPress" | "onPressIn" | "onPressOut" | "onLongPress" | "delayLongPress" | "asChild" | "onHoverIn" | "onHoverOut" | "cancelable" | "delayHoverIn" | "delayHoverOut" | "pressRetentionOffset" | "android_disableSound" | "android_ripple" | "testOnly_pressed" | "unstable_pressDelay"> & react.RefAttributes<react_native.View>>;
|
|
294
|
+
Overlay: react.ForwardRefExoticComponent<{
|
|
295
|
+
children?: react.ReactNode;
|
|
296
|
+
isDismissable?: boolean;
|
|
297
|
+
} & Omit<react_native.ViewProps, keyof {
|
|
298
|
+
children?: react.ReactNode;
|
|
299
|
+
isDismissable?: boolean;
|
|
300
|
+
}> & Omit<ViewStyleProps, "pointerEvents" | "style" | "children" | "hitSlop" | "id" | "needsOffscreenAlphaCompositing" | "onLayout" | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "collapsableChildren" | "onBlur" | "onFocus" | "renderToHardwareTextureAndroid" | "focusable" | "tabIndex" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "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" | "role" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "screenReaderFocusable" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "accessibilityRespondsToUserInteraction" | "isDismissable"> & react.RefAttributes<react_native.View>>;
|
|
301
|
+
Content: react.ForwardRefExoticComponent<{
|
|
302
|
+
children?: react.ReactNode;
|
|
303
|
+
placement?: MenuPlacement;
|
|
304
|
+
align?: MenuAlign;
|
|
305
|
+
width?: MenuWidth;
|
|
306
|
+
offset?: number;
|
|
307
|
+
alignOffset?: number;
|
|
308
|
+
avoidCollisions?: boolean;
|
|
309
|
+
insets?: MenuInsets;
|
|
310
|
+
} & Omit<react_native.ViewProps, keyof {
|
|
311
|
+
children?: react.ReactNode;
|
|
312
|
+
placement?: MenuPlacement;
|
|
313
|
+
align?: MenuAlign;
|
|
314
|
+
width?: MenuWidth;
|
|
315
|
+
offset?: number;
|
|
316
|
+
alignOffset?: number;
|
|
317
|
+
avoidCollisions?: boolean;
|
|
318
|
+
insets?: MenuInsets;
|
|
319
|
+
}> & Omit<ViewStyleProps, "width" | "pointerEvents" | "style" | "children" | "hitSlop" | "id" | "needsOffscreenAlphaCompositing" | "onLayout" | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "collapsableChildren" | "onBlur" | "onFocus" | "renderToHardwareTextureAndroid" | "focusable" | "tabIndex" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "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" | "role" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "screenReaderFocusable" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "accessibilityRespondsToUserInteraction" | "offset" | "alignOffset" | "insets" | "placement" | "avoidCollisions" | "align"> & react.RefAttributes<react_native.View>>;
|
|
320
|
+
Label: react.ForwardRefExoticComponent<{
|
|
321
|
+
children?: react.ReactNode;
|
|
322
|
+
} & Omit<react_native.TextProps, "children"> & Omit<TextStyleProps, keyof react_native.TextProps> & react.RefAttributes<react_native.Text>>;
|
|
323
|
+
Separator: react.ForwardRefExoticComponent<Omit<react_native.ViewProps, "children"> & ViewStyleProps & react.RefAttributes<react_native.View>>;
|
|
324
|
+
Group: react.ForwardRefExoticComponent<{
|
|
325
|
+
children?: react.ReactNode;
|
|
326
|
+
} & Omit<react_native.ViewProps, "children"> & Omit<ViewStyleProps, keyof react_native.ViewProps> & react.RefAttributes<react_native.View>>;
|
|
327
|
+
Item: react.ForwardRefExoticComponent<{
|
|
328
|
+
variant?: MenuItemVariant;
|
|
329
|
+
isDisabled?: boolean;
|
|
330
|
+
closesOnPress?: boolean;
|
|
331
|
+
children?: react.ReactNode | ((state: MenuItemRenderState) => react.ReactNode);
|
|
332
|
+
asChild?: boolean;
|
|
333
|
+
} & Omit<react_native.PressableProps, keyof {
|
|
334
|
+
variant?: MenuItemVariant;
|
|
335
|
+
isDisabled?: boolean;
|
|
336
|
+
closesOnPress?: boolean;
|
|
337
|
+
children?: react.ReactNode | ((state: MenuItemRenderState) => react.ReactNode);
|
|
338
|
+
asChild?: boolean;
|
|
339
|
+
}> & Omit<ViewStyleProps, "pointerEvents" | "style" | "children" | "hitSlop" | "id" | "needsOffscreenAlphaCompositing" | "onLayout" | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "collapsableChildren" | "onBlur" | "onFocus" | "renderToHardwareTextureAndroid" | "focusable" | "tabIndex" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "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" | "role" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "screenReaderFocusable" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "accessibilityRespondsToUserInteraction" | "disabled" | "onPress" | "onPressIn" | "onPressOut" | "onLongPress" | "delayLongPress" | "variant" | "isDisabled" | "asChild" | "onHoverIn" | "onHoverOut" | "cancelable" | "delayHoverIn" | "delayHoverOut" | "pressRetentionOffset" | "android_disableSound" | "android_ripple" | "testOnly_pressed" | "unstable_pressDelay" | "closesOnPress"> & react.RefAttributes<react_native.View>>;
|
|
340
|
+
ItemTitle: react.ForwardRefExoticComponent<{
|
|
341
|
+
children?: react.ReactNode;
|
|
342
|
+
} & Omit<react_native.TextProps, "children"> & Omit<TextStyleProps, keyof react_native.TextProps> & react.RefAttributes<react_native.Text>>;
|
|
343
|
+
ItemDescription: react.ForwardRefExoticComponent<{
|
|
344
|
+
children?: react.ReactNode;
|
|
345
|
+
} & Omit<react_native.TextProps, "children"> & Omit<TextStyleProps, keyof react_native.TextProps> & react.RefAttributes<react_native.Text>>;
|
|
346
|
+
ItemIndicator: react.ForwardRefExoticComponent<{
|
|
347
|
+
children?: react.ReactNode;
|
|
348
|
+
} & Omit<react_native.ViewProps, "children"> & Omit<ViewStyleProps, keyof react_native.ViewProps> & react.RefAttributes<react_native.View>>;
|
|
349
|
+
};
|
|
350
|
+
|
|
351
|
+
export { Menu, type MenuAlign, type MenuAnchor, MenuContent, type MenuContentProps, type MenuContextValue, MenuGroup, type MenuGroupProps, type MenuInsets, MenuItem, type MenuItemContextValue, MenuItemDescription, type MenuItemDescriptionProps, MenuItemIndicator, type MenuItemIndicatorProps, type MenuItemProps, type MenuItemRenderState, MenuItemTitle, type MenuItemTitleProps, type MenuItemVariant, MenuLabel, type MenuLabelProps, MenuOverlay, type MenuOverlayProps, type MenuPlacement, type MenuProps, Menu$1 as MenuRoot, MenuSeparator, type MenuSeparatorProps, type MenuSlot, MenuTrigger, type MenuTriggerProps, type MenuWidth, menuRecipe, useMenu, useMenuItem };
|