first commit

This commit is contained in:
2026-03-10 16:18:05 +00:00
commit 11f9c069b5
31635 changed files with 3187747 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
import type { BadgeProps, IconProps, LabelProps, VectorIconProps } from './types';
export declare function Badge(props: BadgeProps): null;
export declare function Icon(props: IconProps): null;
/**
* Helper component for loading vector icons.
*
* Prefer using the `md` and `sf` props on `Icon` rather than using this component directly.
* Only use this component when you need to load a specific icon from a vector icon family.
*
* @example
* ```tsx
* import { Icon, VectorIcon } from 'expo-router';
* import MaterialCommunityIcons from '@expo/vector-icons/MaterialCommunityIcons';
*
* <Icon src={<VectorIcon family={MaterialCommunityIcons} name="home" />} />
* ```
*/
export declare function VectorIcon<const NameT extends string>(props: VectorIconProps<NameT>): null;
export declare function Label(props: LabelProps): null;
//# sourceMappingURL=elements.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"elements.d.ts","sourceRoot":"","sources":["../../src/primitives/elements.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAElF,wBAAgB,KAAK,CAAC,KAAK,EAAE,UAAU,QAEtC;AAED,wBAAgB,IAAI,CAAC,KAAK,EAAE,SAAS,QAEpC;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,UAAU,CAAC,KAAK,CAAC,KAAK,SAAS,MAAM,EAAE,KAAK,EAAE,eAAe,CAAC,KAAK,CAAC,QAEnF;AAED,wBAAgB,KAAK,CAAC,KAAK,EAAE,UAAU,QAEtC"}

33
node_modules/expo-router/build/primitives/elements.js generated vendored Normal file
View File

@@ -0,0 +1,33 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Badge = Badge;
exports.Icon = Icon;
exports.VectorIcon = VectorIcon;
exports.Label = Label;
function Badge(props) {
return null;
}
function Icon(props) {
return null;
}
/**
* Helper component for loading vector icons.
*
* Prefer using the `md` and `sf` props on `Icon` rather than using this component directly.
* Only use this component when you need to load a specific icon from a vector icon family.
*
* @example
* ```tsx
* import { Icon, VectorIcon } from 'expo-router';
* import MaterialCommunityIcons from '@expo/vector-icons/MaterialCommunityIcons';
*
* <Icon src={<VectorIcon family={MaterialCommunityIcons} name="home" />} />
* ```
*/
function VectorIcon(props) {
return null;
}
function Label(props) {
return null;
}
//# sourceMappingURL=elements.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"elements.js","sourceRoot":"","sources":["../../src/primitives/elements.tsx"],"names":[],"mappings":";;AAEA,sBAEC;AAED,oBAEC;AAgBD,gCAEC;AAED,sBAEC;AA5BD,SAAgB,KAAK,CAAC,KAAiB;IACrC,OAAO,IAAI,CAAC;AACd,CAAC;AAED,SAAgB,IAAI,CAAC,KAAgB;IACnC,OAAO,IAAI,CAAC;AACd,CAAC;AAED;;;;;;;;;;;;;GAaG;AACH,SAAgB,UAAU,CAA6B,KAA6B;IAClF,OAAO,IAAI,CAAC;AACd,CAAC;AAED,SAAgB,KAAK,CAAC,KAAiB;IACrC,OAAO,IAAI,CAAC;AACd,CAAC","sourcesContent":["import type { BadgeProps, IconProps, LabelProps, VectorIconProps } from './types';\n\nexport function Badge(props: BadgeProps) {\n return null;\n}\n\nexport function Icon(props: IconProps) {\n return null;\n}\n\n/**\n * Helper component for loading vector icons.\n *\n * Prefer using the `md` and `sf` props on `Icon` rather than using this component directly.\n * Only use this component when you need to load a specific icon from a vector icon family.\n *\n * @example\n * ```tsx\n * import { Icon, VectorIcon } from 'expo-router';\n * import MaterialCommunityIcons from '@expo/vector-icons/MaterialCommunityIcons';\n *\n * <Icon src={<VectorIcon family={MaterialCommunityIcons} name=\"home\" />} />\n * ```\n */\nexport function VectorIcon<const NameT extends string>(props: VectorIconProps<NameT>) {\n return null;\n}\n\nexport function Label(props: LabelProps) {\n return null;\n}\n"]}

4
node_modules/expo-router/build/primitives/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,4 @@
export { Screen, Group } from './navigation';
export * from './types';
export * from './elements';
//# sourceMappingURL=index.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/primitives/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAC7C,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC"}

23
node_modules/expo-router/build/primitives/index.js generated vendored Normal file
View File

@@ -0,0 +1,23 @@
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Group = exports.Screen = void 0;
var navigation_1 = require("./navigation");
Object.defineProperty(exports, "Screen", { enumerable: true, get: function () { return navigation_1.Screen; } });
Object.defineProperty(exports, "Group", { enumerable: true, get: function () { return navigation_1.Group; } });
__exportStar(require("./types"), exports);
__exportStar(require("./elements"), exports);
//# sourceMappingURL=index.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/primitives/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,2CAA6C;AAApC,oGAAA,MAAM,OAAA;AAAE,mGAAA,KAAK,OAAA;AACtB,0CAAwB;AACxB,6CAA2B","sourcesContent":["export { Screen, Group } from './navigation';\nexport * from './types';\nexport * from './elements';\n"]}

10
node_modules/expo-router/build/primitives/menu.d.ts generated vendored Normal file
View File

@@ -0,0 +1,10 @@
import type { MenuActionProps, MenuProps } from './types';
/**
* This component renders a context menu action for a link.
* It should only be used as a child of `Link.Menu` or `LinkMenu`.
*
* @platform ios
*/
export declare function MenuAction(props: MenuActionProps): null;
export declare function Menu(props: MenuProps): null;
//# sourceMappingURL=menu.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../src/primitives/menu.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAG1D;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,QAOhD;AAED,wBAAgB,IAAI,CAAC,KAAK,EAAE,SAAS,QAKpC"}

26
node_modules/expo-router/build/primitives/menu.js generated vendored Normal file
View File

@@ -0,0 +1,26 @@
"use strict";
'use client';
Object.defineProperty(exports, "__esModule", { value: true });
exports.MenuAction = MenuAction;
exports.Menu = Menu;
const react_1 = require("react");
const InternalLinkPreviewContext_1 = require("../link/InternalLinkPreviewContext");
/**
* This component renders a context menu action for a link.
* It should only be used as a child of `Link.Menu` or `LinkMenu`.
*
* @platform ios
*/
function MenuAction(props) {
if ((0, react_1.use)(InternalLinkPreviewContext_1.InternalLinkPreviewContext)) {
console.warn('<MenuAction> is currently not supported inside Link. Use Link.MenuAction instead.');
}
return null;
}
function Menu(props) {
if ((0, react_1.use)(InternalLinkPreviewContext_1.InternalLinkPreviewContext)) {
console.warn('Menu is currently not supported inside Link. Use Link.Menu instead.');
}
return null;
}
//# sourceMappingURL=menu.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"menu.js","sourceRoot":"","sources":["../../src/primitives/menu.tsx"],"names":[],"mappings":";AAAA,YAAY,CAAC;;AAab,gCAOC;AAED,oBAKC;AAzBD,iCAA4B;AAG5B,mFAAgF;AAEhF;;;;;GAKG;AACH,SAAgB,UAAU,CAAC,KAAsB;IAC/C,IAAI,IAAA,WAAG,EAAC,uDAA0B,CAAC,EAAE,CAAC;QACpC,OAAO,CAAC,IAAI,CACV,mFAAmF,CACpF,CAAC;IACJ,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED,SAAgB,IAAI,CAAC,KAAgB;IACnC,IAAI,IAAA,WAAG,EAAC,uDAA0B,CAAC,EAAE,CAAC;QACpC,OAAO,CAAC,IAAI,CAAC,qEAAqE,CAAC,CAAC;IACtF,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC","sourcesContent":["'use client';\n\nimport { use } from 'react';\n\nimport type { MenuActionProps, MenuProps } from './types';\nimport { InternalLinkPreviewContext } from '../link/InternalLinkPreviewContext';\n\n/**\n * This component renders a context menu action for a link.\n * It should only be used as a child of `Link.Menu` or `LinkMenu`.\n *\n * @platform ios\n */\nexport function MenuAction(props: MenuActionProps) {\n if (use(InternalLinkPreviewContext)) {\n console.warn(\n '<MenuAction> is currently not supported inside Link. Use Link.MenuAction instead.'\n );\n }\n return null;\n}\n\nexport function Menu(props: MenuProps) {\n if (use(InternalLinkPreviewContext)) {\n console.warn('Menu is currently not supported inside Link. Use Link.Menu instead.');\n }\n return null;\n}\n"]}

View File

@@ -0,0 +1,2 @@
export declare const Screen: any, Group: any;
//# sourceMappingURL=navigation.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"navigation.d.ts","sourceRoot":"","sources":["../../src/primitives/navigation.tsx"],"names":[],"mappings":"AAMA,eAAO,MAAQ,MAAM,OAAE,KAAK,KAAwC,CAAC"}

View File

@@ -0,0 +1,10 @@
"use strict";
'use client';
var _a;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Group = exports.Screen = void 0;
const native_1 = require("@react-navigation/native");
// `@react-navigation/native` does not expose the Screen or Group components directly, so we have to
// do this hack.
_a = (0, native_1.createNavigatorFactory)({})(), exports.Screen = _a.Screen, exports.Group = _a.Group;
//# sourceMappingURL=navigation.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"navigation.js","sourceRoot":"","sources":["../../src/primitives/navigation.tsx"],"names":[],"mappings":";AAAA,YAAY,CAAC;;;;AAEb,qDAAkE;AAElE,oGAAoG;AACpG,gBAAgB;AACH,KAAoB,IAAA,+BAAsB,EAAC,EAAS,CAAC,EAAE,EAArD,cAAM,cAAE,aAAK,YAAyC","sourcesContent":["'use client';\n\nimport { createNavigatorFactory } from '@react-navigation/native';\n\n// `@react-navigation/native` does not expose the Screen or Group components directly, so we have to\n// do this hack.\nexport const { Screen, Group } = createNavigatorFactory({} as any)();\n"]}

29
node_modules/expo-router/build/primitives/types.d.ts generated vendored Normal file
View File

@@ -0,0 +1,29 @@
import type { ColorValue, ImageSourcePropType } from 'react-native';
import type { StackToolbarBadgeProps, StackToolbarIconProps, StackToolbarLabelProps, StackToolbarMenuActionProps, StackToolbarMenuProps } from '../layouts/stack-utils';
import type { LinkMenuActionProps, LinkMenuProps } from '../link/elements';
import type { NativeTabsTriggerBadgeProps, NativeTabsTriggerIconProps, NativeTabsTriggerLabelProps } from '../native-tabs';
export type BadgeProps = NativeTabsTriggerBadgeProps | StackToolbarBadgeProps;
export type IconProps = NativeTabsTriggerIconProps | StackToolbarIconProps;
export interface VectorIconProps<NameT extends string> {
/**
* The family of the vector icon.
*
* @example
* ```tsx
* import MaterialCommunityIcons from '@expo/vector-icons/MaterialCommunityIcons';
* ```
*
* @hideType
*/
family: {
getImageSource: (name: NameT, size: number, color: ColorValue) => Promise<ImageSourcePropType | null>;
};
/**
* The name of the vector icon.
*/
name: NameT;
}
export type LabelProps = NativeTabsTriggerLabelProps | StackToolbarLabelProps;
export type MenuActionProps = LinkMenuActionProps | StackToolbarMenuActionProps;
export type MenuProps = LinkMenuProps | StackToolbarMenuProps;
//# sourceMappingURL=types.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/primitives/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAEpE,OAAO,KAAK,EACV,sBAAsB,EACtB,qBAAqB,EACrB,sBAAsB,EACtB,2BAA2B,EAC3B,qBAAqB,EACtB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAC3E,OAAO,KAAK,EACV,2BAA2B,EAC3B,0BAA0B,EAC1B,2BAA2B,EAC5B,MAAM,gBAAgB,CAAC;AAExB,MAAM,MAAM,UAAU,GAAG,2BAA2B,GAAG,sBAAsB,CAAC;AAE9E,MAAM,MAAM,SAAS,GAAG,0BAA0B,GAAG,qBAAqB,CAAC;AAE3E,MAAM,WAAW,eAAe,CAAC,KAAK,SAAS,MAAM;IACnD;;;;;;;;;OASG;IACH,MAAM,EAAE;QACN,cAAc,EAAE,CACd,IAAI,EAAE,KAAK,EACX,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,UAAU,KACd,OAAO,CAAC,mBAAmB,GAAG,IAAI,CAAC,CAAC;KAC1C,CAAC;IACF;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC;CACb;AAED,MAAM,MAAM,UAAU,GAAG,2BAA2B,GAAG,sBAAsB,CAAC;AAE9E,MAAM,MAAM,eAAe,GAAG,mBAAmB,GAAG,2BAA2B,CAAC;AAEhF,MAAM,MAAM,SAAS,GAAG,aAAa,GAAG,qBAAqB,CAAC"}

3
node_modules/expo-router/build/primitives/types.js generated vendored Normal file
View File

@@ -0,0 +1,3 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=types.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/primitives/types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ColorValue, ImageSourcePropType } from 'react-native';\n\nimport type {\n StackToolbarBadgeProps,\n StackToolbarIconProps,\n StackToolbarLabelProps,\n StackToolbarMenuActionProps,\n StackToolbarMenuProps,\n} from '../layouts/stack-utils';\nimport type { LinkMenuActionProps, LinkMenuProps } from '../link/elements';\nimport type {\n NativeTabsTriggerBadgeProps,\n NativeTabsTriggerIconProps,\n NativeTabsTriggerLabelProps,\n} from '../native-tabs';\n\nexport type BadgeProps = NativeTabsTriggerBadgeProps | StackToolbarBadgeProps;\n\nexport type IconProps = NativeTabsTriggerIconProps | StackToolbarIconProps;\n\nexport interface VectorIconProps<NameT extends string> {\n /**\n * The family of the vector icon.\n *\n * @example\n * ```tsx\n * import MaterialCommunityIcons from '@expo/vector-icons/MaterialCommunityIcons';\n * ```\n *\n * @hideType\n */\n family: {\n getImageSource: (\n name: NameT,\n size: number,\n color: ColorValue\n ) => Promise<ImageSourcePropType | null>;\n };\n /**\n * The name of the vector icon.\n */\n name: NameT;\n}\n\nexport type LabelProps = NativeTabsTriggerLabelProps | StackToolbarLabelProps;\n\nexport type MenuActionProps = LinkMenuActionProps | StackToolbarMenuActionProps;\n\nexport type MenuProps = LinkMenuProps | StackToolbarMenuProps;\n"]}