@marktiderman/genesis-ui-native 2.3.1 → 2.4.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/{chunk-H4Q7COTI.js → chunk-6TLBCRS6.js} +3 -3
- package/dist/{chunk-H4Q7COTI.js.map → chunk-6TLBCRS6.js.map} +1 -1
- package/dist/{chunk-Q445I7WO.js → chunk-7VSW3XWJ.js} +37 -4
- package/dist/chunk-7VSW3XWJ.js.map +1 -0
- package/dist/{chunk-W2UBJ56D.js → chunk-BPD5DCFP.js} +10 -2
- package/dist/chunk-BPD5DCFP.js.map +1 -0
- package/dist/components/index.d.ts +17 -3
- package/dist/components/index.js +2 -2
- package/dist/icons/lucide.d.ts +1 -1
- package/dist/icons/lucide.js +9 -1
- package/dist/icons/lucide.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -3
- package/dist/layouts/index.js +2 -2
- package/dist/{native-modules-BGO2MnFF.d.ts → native-modules-_Q5vIbd5.d.ts} +8 -0
- package/package.json +1 -1
- package/src/__tests__/native-modules-lists.test.tsx +1 -0
- package/src/components/__tests__/full-screen-modal.test.tsx +52 -0
- package/src/components/full-screen-modal.tsx +70 -0
- package/src/components/index.ts +3 -0
- package/src/icon-names.ts +8 -0
- package/src/icons/lucide.ts +16 -0
- package/dist/chunk-Q445I7WO.js.map +0 -1
- package/dist/chunk-W2UBJ56D.js.map +0 -1
|
@@ -96,6 +96,7 @@ var SF_SYMBOLS = {
|
|
|
96
96
|
bell: "bell",
|
|
97
97
|
calendar: "calendar",
|
|
98
98
|
camera: "camera",
|
|
99
|
+
"camera-flip": "arrow.triangle.2.circlepath.camera",
|
|
99
100
|
check: "checkmark",
|
|
100
101
|
"chevron-down": "chevron.down",
|
|
101
102
|
"chevron-left": "chevron.left",
|
|
@@ -105,8 +106,10 @@ var SF_SYMBOLS = {
|
|
|
105
106
|
close: "xmark",
|
|
106
107
|
compose: "square.and.pencil",
|
|
107
108
|
copy: "doc.on.doc",
|
|
109
|
+
download: "square.and.arrow.down",
|
|
108
110
|
edit: "pencil",
|
|
109
111
|
error: "xmark.circle",
|
|
112
|
+
expand: "arrow.up.left.and.arrow.down.right",
|
|
110
113
|
"external-link": "arrow.up.right.square",
|
|
111
114
|
file: "doc",
|
|
112
115
|
filter: "line.3.horizontal.decrease",
|
|
@@ -132,10 +135,15 @@ var SF_SYMBOLS = {
|
|
|
132
135
|
search: "magnifyingglass",
|
|
133
136
|
settings: "gearshape",
|
|
134
137
|
share: "square.and.arrow.up",
|
|
138
|
+
smile: "face.smiling",
|
|
135
139
|
star: "star",
|
|
140
|
+
stop: "stop.fill",
|
|
136
141
|
success: "checkmark.circle",
|
|
137
142
|
trash: "trash",
|
|
138
143
|
user: "person",
|
|
144
|
+
video: "video",
|
|
145
|
+
volume: "speaker.wave.2.fill",
|
|
146
|
+
"volume-off": "speaker.slash.fill",
|
|
139
147
|
warning: "exclamationmark.triangle"
|
|
140
148
|
};
|
|
141
149
|
var NATIVE_ICON_NAMES = Object.keys(SF_SYMBOLS);
|
|
@@ -266,5 +274,5 @@ function NativeRefreshControl({ tintColor, colors, testID, ...rest }) {
|
|
|
266
274
|
}
|
|
267
275
|
|
|
268
276
|
export { NATIVE_ICON_NAMES, NativeEmptyState, NativeIcon, NativeListItem, NativeListItemDivider, NativeRefreshControl, NativeSectionListHeader, SF_SYMBOLS };
|
|
269
|
-
//# sourceMappingURL=chunk-
|
|
270
|
-
//# sourceMappingURL=chunk-
|
|
277
|
+
//# sourceMappingURL=chunk-BPD5DCFP.js.map
|
|
278
|
+
//# sourceMappingURL=chunk-BPD5DCFP.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/empty-state.tsx","../src/icon-names.ts","../src/components/icon.tsx","../src/components/list-item.tsx","../src/components/section-list.tsx","../src/components/refresh-control.tsx"],"names":["jsx","View","jsxs","Text","Platform"],"mappings":";;;;;;AAwEA,IAAM,QAAA,GAA6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EACA;AACF,CAAA,EAAiC;AAC/B,EAAA,uBACEC,IAAAA;AAAA,IAACD,IAAAA;AAAA,IAAA;AAAA,MACC,QAAQ,MAAA,IAAU,uBAAA;AAAA,MAClB,iBAAA,EAAkB,QAAA;AAAA,MAClB,SAAA,EAAW,EAAA;AAAA,QACT,iFAAA;AAAA,QACA;AAAA,OACF;AAAA,MAEA,QAAA,EAAA;AAAA,wBAAAD,GAAAA,CAACG,IAAAA,EAAA,EAAK,SAAA,EAAU,wEACb,QAAA,EAAA,KAAA,EACH,CAAA;AAAA,QACC;AAAA;AAAA;AAAA,GACH;AAEJ;ACnBO,SAAS,qBAAqB,EAAE,SAAA,EAAW,QAAQ,MAAA,EAAQ,GAAG,MAAK,EAA8B;AACtG,EAAA,MAAM,IAAA,GAAO,eAAc,CAAE,IAAA;AAC7B,EAAA,MAAM,cAAc,OAAO,IAAA,KAAS,QAAA,GAAW,CAAC,IAAI,CAAA,GAAI,MAAA;AACxD,EAAA,uBAAOH,GAAAA,CAAC,cAAA,EAAA,EAAgB,GAAG,IAAA,EAAM,SAAA,EAAW,SAAA,IAAc,IAAA,EAAiB,MAAA,EAAQ,MAAA,IAAU,WAAA,EAAa,MAAA,EAAQ,UAAU,wBAAA,EAA0B,CAAA;AACxJ","file":"chunk-BPD5DCFP.js","sourcesContent":["/**\n * EmptyState — what to show when a list / screen has no data.\n *\n * Three semantic variants drive default messaging:\n * - \"first-run\": user has never had data here. Optimistic.\n * - \"no-results\": user filtered/searched and got nothing. Suggest reset.\n * - \"error\": fetching failed. Suggest retry.\n *\n * The variant only sets sensible defaults for `title` and tone — pass\n * your own `title`, `body`, `primaryAction`, `secondaryAction`, etc. to\n * override. Mirrors the @marktiderman/genesis-ui web `<EmptyState>` API where\n * possible (illustration vs icon slot, primary/secondary actions).\n *\n * @stability Beta\n */\nimport { Text, View } from \"react-native\";\nimport { cn } from \"../utils\";\n\nexport type NativeEmptyStateVariant = \"first-run\" | \"no-results\" | \"error\";\n\n/**\n * Action descriptor for primary/secondary CTAs. Either pass a structured\n * object (renders a Pressable button via the consumer's button slot) or\n * pass an arbitrary node via `action` for maximum flexibility.\n */\nexport interface NativeEmptyStateAction {\n label: string;\n onPress: () => void;\n testID?: string;\n}\n\nexport interface NativeEmptyStateProps {\n /** Variant drives default tone + default title. Default \"first-run\". */\n variant?: NativeEmptyStateVariant;\n /** Headline. Falls back to a variant-specific default. */\n title?: string;\n /** Body copy shown below the title. (Alias: `description`.) */\n body?: string;\n /**\n * @deprecated Prefer `body`. `description` remains for back-compat with\n * the original C3 API; both are accepted but `body` wins if both passed.\n */\n description?: string;\n /** Optional illustration (artwork node) above the title. */\n illustration?: React.ReactNode;\n /** Optional icon node above the title (use either icon or illustration). */\n icon?: React.ReactNode;\n /**\n * Primary CTA. When provided, the consumer is responsible for rendering\n * the button itself (we accept a node, not a label) so brand + token\n * styling is honored. The web API takes a `{label, onPress}` descriptor;\n * on native, prefer to pass a `<NativeButton>` directly to avoid\n * cross-package coupling.\n */\n primaryAction?: React.ReactNode;\n /** Secondary CTA, rendered below the primary. */\n secondaryAction?: React.ReactNode;\n /**\n * Free-form action slot. Equivalent to `primaryAction`; accepted for\n * back-compat with the C3 API. If both `action` and `primaryAction` are\n * passed, `primaryAction` wins.\n */\n action?: React.ReactNode;\n /**\n * Developer-facing error details. Only rendered when __DEV__ is true at\n * runtime (we infer by reading `process.env.NODE_ENV !== \"production\"`).\n */\n details?: string;\n className?: string;\n testID?: string;\n}\n\nconst defaults: Record<NativeEmptyStateVariant, { title: string; tone: string }> = {\n \"first-run\": { title: \"Nothing here yet\", tone: \"text-muted-foreground\" },\n \"no-results\": { title: \"No results\", tone: \"text-muted-foreground\" },\n error: { title: \"Something went wrong\", tone: \"text-destructive\" },\n};\n\nexport function NativeEmptyState({\n variant = \"first-run\",\n title,\n body,\n description,\n illustration,\n icon,\n primaryAction,\n secondaryAction,\n action,\n details,\n className,\n testID,\n}: NativeEmptyStateProps) {\n const meta = defaults[variant];\n const resolvedBody = body ?? description;\n const resolvedPrimary = primaryAction ?? action;\n // Read NODE_ENV defensively — some bundlers don't define `process` at\n // runtime (e.g., RN classic), so we guard via globalThis. The `details`\n // slot is dev-only; we explicitly enumerate non-production values so an\n // undefined NODE_ENV doesn't accidentally leak diagnostic strings.\n const proc = (globalThis as { process?: { env?: { NODE_ENV?: string } } })\n .process;\n const nodeEnv = proc?.env?.NODE_ENV;\n const isDev = nodeEnv === \"development\" || nodeEnv === \"test\";\n\n return (\n <View\n testID={testID ?? `empty-state-${variant}`}\n accessibilityRole=\"summary\"\n className={cn(\n \"items-center justify-center gap-3 px-8 py-12\",\n className\n )}\n >\n {illustration ? <View accessibilityElementsHidden>{illustration}</View> : null}\n {icon && !illustration ? (\n <View accessibilityElementsHidden>{icon}</View>\n ) : null}\n <Text\n testID={testID ? `${testID}-title` : undefined}\n className={cn(\n \"text-center text-lg font-semibold\",\n variant === \"error\" ? \"text-destructive\" : \"text-foreground\"\n )}\n >\n {title ?? meta.title}\n </Text>\n {resolvedBody ? (\n <Text\n testID={testID ? `${testID}-body` : undefined}\n className={cn(\"max-w-sm text-center text-sm\", meta.tone)}\n >\n {resolvedBody}\n </Text>\n ) : null}\n {resolvedPrimary ? (\n <View\n testID={testID ? `${testID}-primary-action` : undefined}\n className=\"mt-2\"\n >\n {resolvedPrimary}\n </View>\n ) : null}\n {secondaryAction ? (\n <View\n testID={testID ? `${testID}-secondary-action` : undefined}\n className=\"mt-1\"\n >\n {secondaryAction}\n </View>\n ) : null}\n {details && isDev ? (\n <Text\n testID={testID ? `${testID}-details` : undefined}\n className=\"mt-2 max-w-sm text-center text-xs text-muted-foreground\"\n >\n {details}\n </Text>\n ) : null}\n </View>\n );\n}\n","/**\n * The semantic icon names Genesis components ask for, and the SF Symbol each\n * one draws on iOS. Components say \"settings\" or \"bell\", never a library's\n * own name; `lucideIcons` (`/icons/lucide`) maps the same names for Android,\n * web and the SF Symbol fallback.\n *\n * @stability Beta\n */\nexport const SF_SYMBOLS = {\n \"arrow-left\": \"arrow.left\",\n \"arrow-up\": \"arrow.up\",\n bell: \"bell\",\n calendar: \"calendar\",\n camera: \"camera\",\n \"camera-flip\": \"arrow.triangle.2.circlepath.camera\",\n check: \"checkmark\",\n \"chevron-down\": \"chevron.down\",\n \"chevron-left\": \"chevron.left\",\n \"chevron-right\": \"chevron.right\",\n \"chevron-up\": \"chevron.up\",\n clock: \"clock\",\n close: \"xmark\",\n compose: \"square.and.pencil\",\n copy: \"doc.on.doc\",\n download: \"square.and.arrow.down\",\n edit: \"pencil\",\n error: \"xmark.circle\",\n expand: \"arrow.up.left.and.arrow.down.right\",\n \"external-link\": \"arrow.up.right.square\",\n file: \"doc\",\n filter: \"line.3.horizontal.decrease\",\n heart: \"heart\",\n home: \"house\",\n image: \"photo\",\n info: \"info.circle\",\n lock: \"lock\",\n \"log-out\": \"rectangle.portrait.and.arrow.right\",\n mail: \"envelope\",\n menu: \"line.3.horizontal\",\n message: \"bubble.left\",\n mic: \"mic\",\n minus: \"minus\",\n more: \"ellipsis\",\n paperclip: \"paperclip\",\n pause: \"pause.fill\",\n pin: \"pin\",\n play: \"play.fill\",\n plus: \"plus\",\n refresh: \"arrow.clockwise\",\n reply: \"arrowshape.turn.up.left\",\n search: \"magnifyingglass\",\n settings: \"gearshape\",\n share: \"square.and.arrow.up\",\n smile: \"face.smiling\",\n star: \"star\",\n stop: \"stop.fill\",\n success: \"checkmark.circle\",\n trash: \"trash\",\n user: \"person\",\n video: \"video\",\n volume: \"speaker.wave.2.fill\",\n \"volume-off\": \"speaker.slash.fill\",\n warning: \"exclamationmark.triangle\",\n} as const;\n\n/** A semantic icon name: what the icon is for. */\nexport type NativeIconName = keyof typeof SF_SYMBOLS;\n\n/** Every semantic icon name. */\nexport const NATIVE_ICON_NAMES = Object.keys(SF_SYMBOLS) as NativeIconName[];\n","/**\n * NativeIcon — an icon by what it is for (\"settings\", \"bell\"), not by a\n * library's name. On iOS it draws the SF Symbol (expo-symbols' `SymbolView`,\n * passed as `modules.symbol`); on Android and web, and as the SF Symbol's\n * fallback, it draws the icon set given as `modules.icons` (`lucideIcons`\n * from `@marktiderman/genesis-ui-native/icons/lucide`). With neither, it\n * keeps the icon's space empty and warns once in development.\n *\n * Decorative by default (hidden from screen readers). Give `label` when the\n * icon carries meaning on its own, such as an icon-only button's content.\n *\n * @stability Beta\n */\nimport { Platform, View, type ColorValue } from \"react-native\";\nimport { useThemeRoles } from \"../hooks/use-theme-roles\";\nimport { SF_SYMBOLS, type NativeIconName } from \"../icon-names\";\nimport { useGenesisModules } from \"../native-modules\";\n\nexport interface NativeIconProps {\n name: NativeIconName;\n /** Points. Default 20. */\n size?: number;\n /** Default the theme's label color. */\n color?: ColorValue;\n /** iOS SF Symbol weight. */\n weight?: \"ultraLight\" | \"thin\" | \"light\" | \"regular\" | \"medium\" | \"semibold\" | \"bold\" | \"heavy\" | \"black\";\n /** Read by screen readers. Without it the icon is decorative and hidden from them. */\n label?: string;\n testID?: string;\n}\n\ndeclare const __DEV__: boolean | undefined;\nconst warned = new Set<string>();\n\nfunction warnOnce(name: string) {\n if (typeof __DEV__ === \"undefined\" || !__DEV__ || warned.has(name)) return;\n warned.add(name);\n console.warn(\n `[genesis] NativeIcon \"${name}\" has nothing to draw with: pass modules.icons (lucideIcons from \"@marktiderman/genesis-ui-native/icons/lucide\") and, for SF Symbols on iOS, modules.symbol (SymbolView from \"expo-symbols\") to GenesisModulesProvider.`,\n );\n}\n\nexport function NativeIcon({ name, size = 20, color, weight, label, testID }: NativeIconProps) {\n const { symbol: SymbolView, icons } = useGenesisModules();\n const roles = useThemeRoles();\n const tint = color ?? roles.label;\n const a11y = label\n ? { accessible: true, accessibilityRole: \"image\" as const, accessibilityLabel: label }\n : { accessible: false, accessibilityElementsHidden: true, importantForAccessibility: \"no-hide-descendants\" as const };\n const Fallback = icons?.[name];\n const fallback = Fallback ? <Fallback size={size} color={tint} testID={testID ? `${testID}-fallback` : undefined} /> : null;\n\n if (Platform.OS === \"ios\" && SymbolView) {\n return (\n <View {...a11y} testID={testID} style={{ width: size, height: size }}>\n <SymbolView name={SF_SYMBOLS[name]} size={size} tintColor={tint} weight={weight} fallback={fallback} style={{ width: size, height: size }} />\n </View>\n );\n }\n if (!fallback) warnOnce(name);\n return (\n <View {...a11y} testID={testID} style={{ width: size, height: size, alignItems: \"center\", justifyContent: \"center\" }}>\n {fallback}\n </View>\n );\n}\n","/**\n * ListItem — recurring row in a list (settings, contacts, results).\n *\n * Slots: leading (avatar / icon), title, subtitle, trailing\n * (chevron / accessory / action). Supports pressable variants with\n * automatic divider rendering between adjacent items via a wrapper\n * pattern (see <NativeListItemDivider>).\n *\n * For platform-default chevrons, pass `showChevron`; the chevron uses\n * the muted-foreground token.\n *\n * @stability Beta\n */\nimport { Platform, Pressable, Text, View } from \"react-native\";\nimport { cn } from \"../utils\";\nimport { useThemeRoles } from \"../hooks/use-theme-roles\";\nimport { useGenesisModules } from \"../native-modules\";\nimport { NativeIcon } from \"./icon\";\n\nexport interface NativeListItemProps {\n title: string;\n subtitle?: string;\n /** Slot rendered to the left of the title (avatar / icon). */\n leading?: React.ReactNode;\n /** Slot rendered to the right of the title (badge / accessory). */\n trailing?: React.ReactNode;\n /** When true, renders a chevron-right at the end. */\n showChevron?: boolean;\n /** When provided, the row becomes pressable. */\n onPress?: () => void;\n disabled?: boolean;\n className?: string;\n testID?: string;\n}\n\nexport function NativeListItem({\n title,\n subtitle,\n leading,\n trailing,\n showChevron,\n onPress,\n disabled,\n className,\n testID,\n}: NativeListItemProps) {\n const inner = (\n <>\n {leading ? <View className=\"mr-3\">{leading}</View> : null}\n <View className=\"flex-1\">\n <Text className=\"text-base text-foreground\" numberOfLines={1}>\n {title}\n </Text>\n {subtitle ? (\n <Text\n className=\"mt-0.5 text-xs text-muted-foreground\"\n numberOfLines={2}\n >\n {subtitle}\n </Text>\n ) : null}\n </View>\n {trailing ? <View className=\"ml-3\">{trailing}</View> : null}\n {showChevron ? <Chevron /> : null}\n </>\n );\n\n if (onPress) {\n return (\n <Pressable\n testID={testID ?? \"native-list-item\"}\n accessibilityRole=\"button\"\n accessibilityLabel={subtitle ? `${title}, ${subtitle}` : title}\n accessibilityState={{ disabled }}\n disabled={disabled}\n onPress={onPress}\n className={cn(\n \"min-h-[44px] flex-row items-center bg-background px-4 py-3\",\n disabled && \"opacity-50\",\n className\n )}\n >\n {inner}\n </Pressable>\n );\n }\n\n return (\n <View\n testID={testID ?? \"native-list-item\"}\n accessibilityLabel={subtitle ? `${title}, ${subtitle}` : title}\n className={cn(\n \"min-h-[44px] flex-row items-center bg-background px-4 py-3\",\n className\n )}\n >\n {inner}\n </View>\n );\n}\n\n/**\n * The drill-in chevron: an SF Symbol on iOS or the app's icon set\n * (`modules.symbol` / `modules.icons`) when given, else a text \"›\".\n */\nfunction Chevron() {\n const { symbol, icons } = useGenesisModules();\n const roles = useThemeRoles();\n if ((Platform.OS === \"ios\" && symbol) || icons?.[\"chevron-right\"]) {\n return (\n <View className=\"ml-2\">\n <NativeIcon name=\"chevron-right\" size={14} weight=\"semibold\" color={roles.tertiaryLabel} testID=\"native-list-item-chevron\" />\n </View>\n );\n }\n return (\n <Text\n accessibilityElementsHidden\n className=\"ml-2 text-base text-muted-foreground\"\n >\n ›\n </Text>\n );\n}\n\nexport function NativeListItemDivider({ className }: { className?: string }) {\n return <View className={cn(\"h-px bg-border\", className)} />;\n}\n","/**\n * SectionList header pattern — opinionated header style for\n * react-native SectionList rows.\n *\n * The full SectionList API stays with React Native; Genesis ships the\n * header component so consumers can pass it as `renderSectionHeader`\n * and get a consistent visual: muted background, uppercase tracking,\n * sticky-friendly padding.\n *\n * Pattern:\n *\n * <SectionList\n * sections={...}\n * renderItem={({ item }) => <NativeListItem title={item.label} />}\n * renderSectionHeader={({ section }) => (\n * <NativeSectionListHeader title={section.title} />\n * )}\n * />\n *\n * @stability Beta\n */\nimport { Text, View } from \"react-native\";\nimport { cn } from \"../utils\";\n\nexport interface NativeSectionListHeaderProps {\n title: string;\n /** Optional trailing content (e.g., a count badge). */\n trailing?: React.ReactNode;\n className?: string;\n testID?: string;\n}\n\nexport function NativeSectionListHeader({\n title,\n trailing,\n className,\n testID,\n}: NativeSectionListHeaderProps) {\n return (\n <View\n testID={testID ?? \"native-section-header\"}\n accessibilityRole=\"header\"\n className={cn(\n \"flex-row items-center justify-between border-b border-border bg-muted px-4 py-2\",\n className\n )}\n >\n <Text className=\"text-xs font-semibold uppercase tracking-wider text-muted-foreground\">\n {title}\n </Text>\n {trailing}\n </View>\n );\n}\n","/**\n * RefreshControl wrapper — token-aware tint over RN's RefreshControl.\n *\n * Use as the `refreshControl` prop on ScrollView / FlatList / SectionList.\n * The tint defaults to the theme's `tint` role; consumers can override\n * per-call. We re-export RN's\n * RefreshControl shape so the API mirrors what consumers already know.\n *\n * @stability Beta\n */\nimport { RefreshControl } from \"react-native\";\nimport { useThemeRoles } from \"../hooks/use-theme-roles\";\n\nexport interface NativeRefreshControlProps {\n refreshing: boolean;\n onRefresh: () => void;\n /** Hex / RGB color override. Falls back to the theme primary. */\n tintColor?: string;\n /** Title shown under the iOS spinner. */\n title?: string;\n /** Color of the iOS title text. */\n titleColor?: string;\n /** Android colors prop (an array of progress colors). */\n colors?: string[];\n /** Android progress background. */\n progressBackgroundColor?: string;\n testID?: string;\n}\n\n/**\n * Pull to refresh, tinted with the theme's `tint` role. Works under any Genesis root.\n */\n// The tint comes from `useThemeRoles`, not `useGenesisTheme` from `providers/native`: that is\n// another context, which the native app shell's `GenesisThemeProvider` never mounts, so it threw there.\nexport function NativeRefreshControl({ tintColor, colors, testID, ...rest }: NativeRefreshControlProps) {\n const tint = useThemeRoles().tint;\n const androidTint = typeof tint === \"string\" ? [tint] : undefined;\n return <RefreshControl {...rest} tintColor={tintColor ?? (tint as string)} colors={colors ?? androidTint} testID={testID ?? \"native-refresh-control\"} />;\n}\n"]}
|
|
@@ -3,8 +3,8 @@ import react__default, { ReactNode } from 'react';
|
|
|
3
3
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
4
4
|
import { VariantProps } from 'class-variance-authority';
|
|
5
5
|
import { TextProps, ScrollViewProps, TextInputProps, ViewProps, SwitchProps, ColorValue } from 'react-native';
|
|
6
|
-
import { o as NativeIconName, b as GenesisGlassModule } from '../native-modules-
|
|
7
|
-
export { G as GenesisDatePickerComponent, a as GenesisDatePickerProps, c as GenesisIconComponent, d as GenesisIconSet, e as GenesisImageComponent, f as GenesisImageProps, g as GenesisListComponent, h as GenesisListProps, i as GenesisModules, j as GenesisModulesProvider, k as GenesisModulesProviderProps, l as GenesisReanimatedModule, m as GenesisSymbolComponent, n as GenesisSymbolProps, N as NATIVE_ICON_NAMES, S as SF_SYMBOLS, u as useGenesisModules } from '../native-modules-
|
|
6
|
+
import { o as NativeIconName, b as GenesisGlassModule } from '../native-modules-_Q5vIbd5.js';
|
|
7
|
+
export { G as GenesisDatePickerComponent, a as GenesisDatePickerProps, c as GenesisIconComponent, d as GenesisIconSet, e as GenesisImageComponent, f as GenesisImageProps, g as GenesisListComponent, h as GenesisListProps, i as GenesisModules, j as GenesisModulesProvider, k as GenesisModulesProviderProps, l as GenesisReanimatedModule, m as GenesisSymbolComponent, n as GenesisSymbolProps, N as NATIVE_ICON_NAMES, S as SF_SYMBOLS, u as useGenesisModules } from '../native-modules-_Q5vIbd5.js';
|
|
8
8
|
|
|
9
9
|
declare const textVariants: (props?: ({
|
|
10
10
|
preset?: "h1" | "h2" | "h3" | "h4" | "body" | "body-sm" | "caption" | "label" | null | undefined;
|
|
@@ -181,6 +181,20 @@ declare function NativeSheet(props: NativeSheetProps): react.JSX.Element;
|
|
|
181
181
|
*/
|
|
182
182
|
declare function NativeSheetScrollView({ style, ...props }: ScrollViewProps): react.JSX.Element;
|
|
183
183
|
|
|
184
|
+
interface NativeFullScreenModalProps {
|
|
185
|
+
open: boolean;
|
|
186
|
+
/** Fired with false on Android back and the VoiceOver escape gesture. Set `open` false in it. */
|
|
187
|
+
onOpenChange: (open: boolean) => void;
|
|
188
|
+
/** `"dark"` (default): black, for photos and video. `"app"`: the theme's background. `"none"`: the content draws its own. */
|
|
189
|
+
tone?: "dark" | "app" | "none";
|
|
190
|
+
children: ReactNode;
|
|
191
|
+
testID?: string;
|
|
192
|
+
}
|
|
193
|
+
/** The dark tone's backdrop: media reads best on true black in light and dark mode alike. */
|
|
194
|
+
declare const FULL_SCREEN_DARK = "#000000";
|
|
195
|
+
/** @stability Beta */
|
|
196
|
+
declare function NativeFullScreenModal({ open, onOpenChange, tone, children, testID }: NativeFullScreenModalProps): react.JSX.Element;
|
|
197
|
+
|
|
184
198
|
interface NativePopoverProps {
|
|
185
199
|
open?: boolean;
|
|
186
200
|
defaultOpen?: boolean;
|
|
@@ -1042,4 +1056,4 @@ interface NativeGlassSurfaceProps {
|
|
|
1042
1056
|
}
|
|
1043
1057
|
declare function NativeGlassSurface({ children, className, fallbackClassName, radius, tintColor, interactive, glassEffectStyle, testID, }: NativeGlassSurfaceProps): react.JSX.Element;
|
|
1044
1058
|
|
|
1045
|
-
export { Box, type BoxBackground, type BoxProps, type FlexAlign, type FlexJustify, GenesisGlassModule, Grid, type GridProps, Inline, type InlineProps, NativeAccordion, NativeAccordionContent, type NativeAccordionContentProps, NativeAccordionItem, type NativeAccordionItemProps, type NativeAccordionProps, NativeAccordionTrigger, type NativeAccordionTriggerProps, type NativeAccordionType, NativeAlert, NativeAlertDescription, type NativeAlertDescriptionProps, type NativeAlertProps, NativeAlertTitle, type NativeAlertTitleProps, NativeAvatar, type NativeAvatarProps, NativeBadge, type NativeBadgeProps, NativeBanner, type NativeBannerProps, NativeButton, type NativeButtonProps, NativeCard, NativeCardContent, NativeCardDescription, NativeCardFooter, NativeCardHeader, type NativeCardProps, NativeCardTitle, type NativeCardTitleProps, NativeCheckbox, type NativeCheckboxProps, NativeChip, NativeChipGroup, type NativeChipGroupMode, type NativeChipGroupProps, type NativeChipProps, NativeCombobox, type NativeComboboxOption, type NativeComboboxProps, NativeDatePicker, type NativeDatePickerProps, NativeDialog, NativeDialogContent, type NativeDialogContentProps, NativeDialogDescription, type NativeDialogDescriptionProps, NativeDialogFooter, type NativeDialogFooterProps, NativeDialogHeader, type NativeDialogHeaderProps, type NativeDialogProps, NativeDialogTitle, type NativeDialogTitleProps, NativeDrawer, type NativeDrawerProps, NativeDropdownMenu, NativeDropdownMenuContent, type NativeDropdownMenuContentProps, NativeDropdownMenuItem, type NativeDropdownMenuItemProps, type NativeDropdownMenuProps, NativeDropdownMenuTrigger, type NativeDropdownMenuTriggerProps, NativeEmptyState, type NativeEmptyStateProps, type NativeEmptyStateVariant, NativeGlassSurface, type NativeGlassSurfaceProps, NativeHeaderCard, type NativeHeaderCardProps, NativeIcon, NativeIconName, type NativeIconProps, NativeImage, type NativeImageProps, NativeInlineAlert, type NativeInlineAlertProps, type NativeInlineAlertVariant, NativeInput, type NativeInputProps, NativeLabel, type NativeLabelProps, NativeListItem, NativeListItemDivider, type NativeListItemProps, NativeNumberInput, type NativeNumberInputProps, NativePagination, type NativePaginationProps, NativePopover, NativePopoverContent, type NativePopoverContentProps, type NativePopoverProps, NativePopoverTrigger, type NativePopoverTriggerProps, NativeProgress, type NativeProgressProps, NativeRadioGroup, NativeRadioGroupItem, type NativeRadioGroupItemProps, type NativeRadioGroupProps, NativeRangeSlider, type NativeRangeSliderProps, NativeRefreshControl, type NativeRefreshControlProps, NativeSearchBar, type NativeSearchBarProps, NativeSectionListHeader, type NativeSectionListHeaderProps, NativeSegmentedControl, type NativeSegmentedControlOption, type NativeSegmentedControlProps, NativeSelect, NativeSelectContent, type NativeSelectContentProps, NativeSelectItem, type NativeSelectItemProps, type NativeSelectProps, NativeSelectTrigger, type NativeSelectTriggerProps, NativeSeparator, type NativeSeparatorProps, NativeSheet, type NativeSheetLibrary, type NativeSheetProps, NativeSheetProvider, type NativeSheetProviderProps, NativeSheetScrollView, NativeSkeleton, type NativeSkeletonProps, NativeSlider, type NativeSliderProps, NativeStepper, type NativeStepperProps, type NativeStepperStep, NativeSwitch, type NativeSwitchProps, NativeTabs, NativeTabsContent, type NativeTabsContentProps, NativeTabsList, type NativeTabsListProps, type NativeTabsProps, NativeTabsTrigger, type NativeTabsTriggerProps, NativeText, type NativeTextProps, NativeTextarea, type NativeTextareaProps, NativeTimePicker, type NativeTimePickerProps, type NativeToastOptions, NativeToastProvider, type NativeToastProviderProps, type NativeToastVariant, NativeToggle, type NativeToggleProps, NativeTooltip, NativeTooltipContent, type NativeTooltipContentProps, type NativeTooltipProps, NativeTooltipTrigger, type NativeTooltipTriggerProps, type SpaceToken, type SpacingPrefix, Stack, type StackProps, type TextPreset, alertVariants, badgeTextVariants, badgeVariants, buttonTextVariants, buttonVariants, spaceScale, spacingClass, textVariants, toggleVariants, useLiquidGlass, useReduceTransparency, useToast };
|
|
1059
|
+
export { Box, type BoxBackground, type BoxProps, FULL_SCREEN_DARK, type FlexAlign, type FlexJustify, GenesisGlassModule, Grid, type GridProps, Inline, type InlineProps, NativeAccordion, NativeAccordionContent, type NativeAccordionContentProps, NativeAccordionItem, type NativeAccordionItemProps, type NativeAccordionProps, NativeAccordionTrigger, type NativeAccordionTriggerProps, type NativeAccordionType, NativeAlert, NativeAlertDescription, type NativeAlertDescriptionProps, type NativeAlertProps, NativeAlertTitle, type NativeAlertTitleProps, NativeAvatar, type NativeAvatarProps, NativeBadge, type NativeBadgeProps, NativeBanner, type NativeBannerProps, NativeButton, type NativeButtonProps, NativeCard, NativeCardContent, NativeCardDescription, NativeCardFooter, NativeCardHeader, type NativeCardProps, NativeCardTitle, type NativeCardTitleProps, NativeCheckbox, type NativeCheckboxProps, NativeChip, NativeChipGroup, type NativeChipGroupMode, type NativeChipGroupProps, type NativeChipProps, NativeCombobox, type NativeComboboxOption, type NativeComboboxProps, NativeDatePicker, type NativeDatePickerProps, NativeDialog, NativeDialogContent, type NativeDialogContentProps, NativeDialogDescription, type NativeDialogDescriptionProps, NativeDialogFooter, type NativeDialogFooterProps, NativeDialogHeader, type NativeDialogHeaderProps, type NativeDialogProps, NativeDialogTitle, type NativeDialogTitleProps, NativeDrawer, type NativeDrawerProps, NativeDropdownMenu, NativeDropdownMenuContent, type NativeDropdownMenuContentProps, NativeDropdownMenuItem, type NativeDropdownMenuItemProps, type NativeDropdownMenuProps, NativeDropdownMenuTrigger, type NativeDropdownMenuTriggerProps, NativeEmptyState, type NativeEmptyStateProps, type NativeEmptyStateVariant, NativeFullScreenModal, type NativeFullScreenModalProps, NativeGlassSurface, type NativeGlassSurfaceProps, NativeHeaderCard, type NativeHeaderCardProps, NativeIcon, NativeIconName, type NativeIconProps, NativeImage, type NativeImageProps, NativeInlineAlert, type NativeInlineAlertProps, type NativeInlineAlertVariant, NativeInput, type NativeInputProps, NativeLabel, type NativeLabelProps, NativeListItem, NativeListItemDivider, type NativeListItemProps, NativeNumberInput, type NativeNumberInputProps, NativePagination, type NativePaginationProps, NativePopover, NativePopoverContent, type NativePopoverContentProps, type NativePopoverProps, NativePopoverTrigger, type NativePopoverTriggerProps, NativeProgress, type NativeProgressProps, NativeRadioGroup, NativeRadioGroupItem, type NativeRadioGroupItemProps, type NativeRadioGroupProps, NativeRangeSlider, type NativeRangeSliderProps, NativeRefreshControl, type NativeRefreshControlProps, NativeSearchBar, type NativeSearchBarProps, NativeSectionListHeader, type NativeSectionListHeaderProps, NativeSegmentedControl, type NativeSegmentedControlOption, type NativeSegmentedControlProps, NativeSelect, NativeSelectContent, type NativeSelectContentProps, NativeSelectItem, type NativeSelectItemProps, type NativeSelectProps, NativeSelectTrigger, type NativeSelectTriggerProps, NativeSeparator, type NativeSeparatorProps, NativeSheet, type NativeSheetLibrary, type NativeSheetProps, NativeSheetProvider, type NativeSheetProviderProps, NativeSheetScrollView, NativeSkeleton, type NativeSkeletonProps, NativeSlider, type NativeSliderProps, NativeStepper, type NativeStepperProps, type NativeStepperStep, NativeSwitch, type NativeSwitchProps, NativeTabs, NativeTabsContent, type NativeTabsContentProps, NativeTabsList, type NativeTabsListProps, type NativeTabsProps, NativeTabsTrigger, type NativeTabsTriggerProps, NativeText, type NativeTextProps, NativeTextarea, type NativeTextareaProps, NativeTimePicker, type NativeTimePickerProps, type NativeToastOptions, NativeToastProvider, type NativeToastProviderProps, type NativeToastVariant, NativeToggle, type NativeToggleProps, NativeTooltip, NativeTooltipContent, type NativeTooltipContentProps, type NativeTooltipProps, NativeTooltipTrigger, type NativeTooltipTriggerProps, type SpaceToken, type SpacingPrefix, Stack, type StackProps, type TextPreset, alertVariants, badgeTextVariants, badgeVariants, buttonTextVariants, buttonVariants, spaceScale, spacingClass, textVariants, toggleVariants, useLiquidGlass, useReduceTransparency, useToast };
|
package/dist/components/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { Box, Grid, Inline, NativeAccordion, NativeAccordionContent, NativeAccordionItem, NativeAccordionTrigger, NativeAvatar, NativeBanner, NativeChip, NativeChipGroup, NativeCombobox, NativeDatePicker, NativeDialog, NativeDialogContent, NativeDialogDescription, NativeDialogFooter, NativeDialogHeader, NativeDialogTitle, NativeDrawer, NativeDropdownMenu, NativeDropdownMenuContent, NativeDropdownMenuItem, NativeDropdownMenuTrigger, NativeGlassSurface, NativeHeaderCard, NativeImage, NativeInlineAlert, NativeNumberInput, NativePagination, NativePopover, NativePopoverContent, NativePopoverTrigger, NativeProgress, NativeRadioGroup, NativeRadioGroupItem, NativeRangeSlider, NativeSearchBar, NativeSegmentedControl, NativeSheet, NativeSheetProvider, NativeSheetScrollView, NativeSlider, NativeStepper, NativeTabs, NativeTabsContent, NativeTabsList, NativeTabsTrigger, NativeTimePicker, NativeToastProvider, NativeToggle, NativeTooltip, NativeTooltipContent, NativeTooltipTrigger, Stack, spaceScale, spacingClass, toggleVariants, useLiquidGlass, useReduceTransparency, useToast } from '../chunk-
|
|
1
|
+
export { Box, FULL_SCREEN_DARK, Grid, Inline, NativeAccordion, NativeAccordionContent, NativeAccordionItem, NativeAccordionTrigger, NativeAvatar, NativeBanner, NativeChip, NativeChipGroup, NativeCombobox, NativeDatePicker, NativeDialog, NativeDialogContent, NativeDialogDescription, NativeDialogFooter, NativeDialogHeader, NativeDialogTitle, NativeDrawer, NativeDropdownMenu, NativeDropdownMenuContent, NativeDropdownMenuItem, NativeDropdownMenuTrigger, NativeFullScreenModal, NativeGlassSurface, NativeHeaderCard, NativeImage, NativeInlineAlert, NativeNumberInput, NativePagination, NativePopover, NativePopoverContent, NativePopoverTrigger, NativeProgress, NativeRadioGroup, NativeRadioGroupItem, NativeRangeSlider, NativeSearchBar, NativeSegmentedControl, NativeSheet, NativeSheetProvider, NativeSheetScrollView, NativeSlider, NativeStepper, NativeTabs, NativeTabsContent, NativeTabsList, NativeTabsTrigger, NativeTimePicker, NativeToastProvider, NativeToggle, NativeTooltip, NativeTooltipContent, NativeTooltipTrigger, Stack, spaceScale, spacingClass, toggleVariants, useLiquidGlass, useReduceTransparency, useToast } from '../chunk-7VSW3XWJ.js';
|
|
2
2
|
export { NativeAlert, NativeAlertDescription, NativeAlertTitle, NativeCard, NativeCardContent, NativeCardDescription, NativeCardFooter, NativeCardHeader, NativeCardTitle, NativeCheckbox, NativeLabel, NativeSelect, NativeSelectContent, NativeSelectItem, NativeSelectTrigger, NativeSeparator, NativeSkeleton, NativeSwitch, NativeTextarea, alertVariants } from '../chunk-FIITITXO.js';
|
|
3
3
|
import '../chunk-7PCWEY6R.js';
|
|
4
|
-
export { NATIVE_ICON_NAMES, NativeEmptyState, NativeIcon, NativeListItem, NativeListItemDivider, NativeRefreshControl, NativeSectionListHeader, SF_SYMBOLS } from '../chunk-
|
|
4
|
+
export { NATIVE_ICON_NAMES, NativeEmptyState, NativeIcon, NativeListItem, NativeListItemDivider, NativeRefreshControl, NativeSectionListHeader, SF_SYMBOLS } from '../chunk-BPD5DCFP.js';
|
|
5
5
|
export { GenesisModulesProvider, NativeBadge, NativeButton, NativeInput, NativeText, badgeTextVariants, badgeVariants, buttonTextVariants, buttonVariants, textVariants, useGenesisModules } from '../chunk-EFXCJ5AN.js';
|
|
6
6
|
import '../chunk-Z3AQYVUA.js';
|
|
7
7
|
import '../chunk-OHZD7KRO.js';
|
package/dist/icons/lucide.d.ts
CHANGED
package/dist/icons/lucide.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../chunk-DGUM43GV.js';
|
|
2
|
-
import { TriangleAlert, User, Trash2, CircleCheck, Star, Share, Settings, Search, Reply, RefreshCw, Plus, Play, Pin, Pause, Paperclip, Ellipsis, Minus, Mic, MessageCircle, Menu, Mail, LogOut, Lock, Info, Image, House, Heart, Funnel, File, ExternalLink, CircleX, Pencil, Copy, SquarePen, X, Clock, ChevronUp, ChevronRight, ChevronLeft, ChevronDown, Check, Camera, Calendar, Bell, ArrowUp, ArrowLeft } from 'lucide-react-native';
|
|
2
|
+
import { TriangleAlert, VolumeX, Volume2, Video, User, Trash2, CircleCheck, Square, Star, Smile, Share, Settings, Search, Reply, RefreshCw, Plus, Play, Pin, Pause, Paperclip, Ellipsis, Minus, Mic, MessageCircle, Menu, Mail, LogOut, Lock, Info, Image, House, Heart, Funnel, File, ExternalLink, Maximize2, CircleX, Pencil, Download, Copy, SquarePen, X, Clock, ChevronUp, ChevronRight, ChevronLeft, ChevronDown, Check, SwitchCamera, Camera, Calendar, Bell, ArrowUp, ArrowLeft } from 'lucide-react-native';
|
|
3
3
|
|
|
4
4
|
var lucideIcons = {
|
|
5
5
|
"arrow-left": ArrowLeft,
|
|
@@ -7,6 +7,7 @@ var lucideIcons = {
|
|
|
7
7
|
bell: Bell,
|
|
8
8
|
calendar: Calendar,
|
|
9
9
|
camera: Camera,
|
|
10
|
+
"camera-flip": SwitchCamera,
|
|
10
11
|
check: Check,
|
|
11
12
|
"chevron-down": ChevronDown,
|
|
12
13
|
"chevron-left": ChevronLeft,
|
|
@@ -16,8 +17,10 @@ var lucideIcons = {
|
|
|
16
17
|
close: X,
|
|
17
18
|
compose: SquarePen,
|
|
18
19
|
copy: Copy,
|
|
20
|
+
download: Download,
|
|
19
21
|
edit: Pencil,
|
|
20
22
|
error: CircleX,
|
|
23
|
+
expand: Maximize2,
|
|
21
24
|
"external-link": ExternalLink,
|
|
22
25
|
file: File,
|
|
23
26
|
filter: Funnel,
|
|
@@ -43,10 +46,15 @@ var lucideIcons = {
|
|
|
43
46
|
search: Search,
|
|
44
47
|
settings: Settings,
|
|
45
48
|
share: Share,
|
|
49
|
+
smile: Smile,
|
|
46
50
|
star: Star,
|
|
51
|
+
stop: Square,
|
|
47
52
|
success: CircleCheck,
|
|
48
53
|
trash: Trash2,
|
|
49
54
|
user: User,
|
|
55
|
+
video: Video,
|
|
56
|
+
volume: Volume2,
|
|
57
|
+
"volume-off": VolumeX,
|
|
50
58
|
warning: TriangleAlert
|
|
51
59
|
// The cast widens lucide's declared `color: string` to `ColorValue`. On iOS
|
|
52
60
|
// NativeIcon passes theme roles as `PlatformColor` objects; lucide hands
|
package/dist/icons/lucide.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/icons/lucide.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"sources":["../../src/icons/lucide.ts"],"names":[],"mappings":";;;AAqEO,IAAM,WAAA,GAA4D;AAAA,EACvE,YAAA,EAAc,SAAA;AAAA,EACd,UAAA,EAAY,OAAA;AAAA,EACZ,IAAA,EAAM,IAAA;AAAA,EACN,QAAA,EAAU,QAAA;AAAA,EACV,MAAA,EAAQ,MAAA;AAAA,EACR,aAAA,EAAe,YAAA;AAAA,EACf,KAAA,EAAO,KAAA;AAAA,EACP,cAAA,EAAgB,WAAA;AAAA,EAChB,cAAA,EAAgB,WAAA;AAAA,EAChB,eAAA,EAAiB,YAAA;AAAA,EACjB,YAAA,EAAc,SAAA;AAAA,EACd,KAAA,EAAO,KAAA;AAAA,EACP,KAAA,EAAO,CAAA;AAAA,EACP,OAAA,EAAS,SAAA;AAAA,EACT,IAAA,EAAM,IAAA;AAAA,EACN,QAAA,EAAU,QAAA;AAAA,EACV,IAAA,EAAM,MAAA;AAAA,EACN,KAAA,EAAO,OAAA;AAAA,EACP,MAAA,EAAQ,SAAA;AAAA,EACR,eAAA,EAAiB,YAAA;AAAA,EACjB,IAAA,EAAM,IAAA;AAAA,EACN,MAAA,EAAQ,MAAA;AAAA,EACR,KAAA,EAAO,KAAA;AAAA,EACP,IAAA,EAAM,KAAA;AAAA,EACN,KAAA,EAAO,KAAA;AAAA,EACP,IAAA,EAAM,IAAA;AAAA,EACN,IAAA,EAAM,IAAA;AAAA,EACN,SAAA,EAAW,MAAA;AAAA,EACX,IAAA,EAAM,IAAA;AAAA,EACN,IAAA,EAAM,IAAA;AAAA,EACN,OAAA,EAAS,aAAA;AAAA,EACT,GAAA,EAAK,GAAA;AAAA,EACL,KAAA,EAAO,KAAA;AAAA,EACP,IAAA,EAAM,QAAA;AAAA,EACN,SAAA,EAAW,SAAA;AAAA,EACX,KAAA,EAAO,KAAA;AAAA,EACP,GAAA,EAAK,GAAA;AAAA,EACL,IAAA,EAAM,IAAA;AAAA,EACN,IAAA,EAAM,IAAA;AAAA,EACN,OAAA,EAAS,SAAA;AAAA,EACT,KAAA,EAAO,KAAA;AAAA,EACP,MAAA,EAAQ,MAAA;AAAA,EACR,QAAA,EAAU,QAAA;AAAA,EACV,KAAA,EAAO,KAAA;AAAA,EACP,KAAA,EAAO,KAAA;AAAA,EACP,IAAA,EAAM,IAAA;AAAA,EACN,IAAA,EAAM,MAAA;AAAA,EACN,OAAA,EAAS,WAAA;AAAA,EACT,KAAA,EAAO,MAAA;AAAA,EACP,IAAA,EAAM,IAAA;AAAA,EACN,KAAA,EAAO,KAAA;AAAA,EACP,MAAA,EAAQ,OAAA;AAAA,EACR,YAAA,EAAc,OAAA;AAAA,EACd,OAAA,EAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAMX","file":"lucide.js","sourcesContent":["/**\n * `lucideIcons` — the lucide-react-native icon for every semantic name, the\n * icon set `NativeIcon` draws on Android and web (and on iOS when an SF\n * Symbol can't be drawn). Opt in by importing this subpath and passing it as\n * `modules.icons`; the rest of the package never imports lucide.\n *\n * Needs lucide-react-native 0.475 or later (the names below).\n *\n * @stability Beta\n */\nimport {\n ArrowLeft,\n ArrowUp,\n Bell,\n Calendar,\n Camera,\n Check,\n ChevronDown,\n ChevronLeft,\n ChevronRight,\n ChevronUp,\n CircleCheck,\n CircleX,\n Clock,\n Copy,\n Download,\n Ellipsis,\n ExternalLink,\n File,\n Funnel,\n Heart,\n House,\n Image,\n Info,\n Maximize2,\n Lock,\n LogOut,\n Mail,\n Menu,\n MessageCircle,\n Mic,\n Minus,\n Paperclip,\n Pause,\n Pencil,\n Pin,\n Play,\n Plus,\n RefreshCw,\n Reply,\n Search,\n Square,\n SwitchCamera,\n Settings,\n Share,\n Smile,\n SquarePen,\n Star,\n Trash2,\n TriangleAlert,\n User,\n Video,\n Volume2,\n VolumeX,\n X,\n} from \"lucide-react-native\";\nimport type { NativeIconName } from \"../icon-names\";\nimport type { GenesisIconComponent } from \"../native-modules\";\n\nexport const lucideIcons: Record<NativeIconName, GenesisIconComponent> = {\n \"arrow-left\": ArrowLeft,\n \"arrow-up\": ArrowUp,\n bell: Bell,\n calendar: Calendar,\n camera: Camera,\n \"camera-flip\": SwitchCamera,\n check: Check,\n \"chevron-down\": ChevronDown,\n \"chevron-left\": ChevronLeft,\n \"chevron-right\": ChevronRight,\n \"chevron-up\": ChevronUp,\n clock: Clock,\n close: X,\n compose: SquarePen,\n copy: Copy,\n download: Download,\n edit: Pencil,\n error: CircleX,\n expand: Maximize2,\n \"external-link\": ExternalLink,\n file: File,\n filter: Funnel,\n heart: Heart,\n home: House,\n image: Image,\n info: Info,\n lock: Lock,\n \"log-out\": LogOut,\n mail: Mail,\n menu: Menu,\n message: MessageCircle,\n mic: Mic,\n minus: Minus,\n more: Ellipsis,\n paperclip: Paperclip,\n pause: Pause,\n pin: Pin,\n play: Play,\n plus: Plus,\n refresh: RefreshCw,\n reply: Reply,\n search: Search,\n settings: Settings,\n share: Share,\n smile: Smile,\n star: Star,\n stop: Square,\n success: CircleCheck,\n trash: Trash2,\n user: User,\n video: Video,\n volume: Volume2,\n \"volume-off\": VolumeX,\n warning: TriangleAlert,\n // The cast widens lucide's declared `color: string` to `ColorValue`. On iOS\n // NativeIcon passes theme roles as `PlatformColor` objects; lucide hands\n // `color` to react-native-svg's stroke, whose extractBrush resolves\n // PlatformColor and DynamicColorIOS objects (react-native-svg 15,\n // src/lib/extract/extractBrush.ts).\n} as Record<NativeIconName, GenesisIconComponent>;\n"]}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { Box, BoxBackground, BoxProps, FlexAlign, FlexJustify, Grid, GridProps, Inline, InlineProps, NativeAccordion, NativeAccordionContent, NativeAccordionContentProps, NativeAccordionItem, NativeAccordionItemProps, NativeAccordionProps, NativeAccordionTrigger, NativeAccordionTriggerProps, NativeAccordionType, NativeAlert, NativeAlertDescription, NativeAlertDescriptionProps, NativeAlertProps, NativeAlertTitle, NativeAlertTitleProps, NativeAvatar, NativeAvatarProps, NativeBadge, NativeBadgeProps, NativeBanner, NativeBannerProps, NativeButton, NativeButtonProps, NativeCard, NativeCardContent, NativeCardDescription, NativeCardFooter, NativeCardHeader, NativeCardProps, NativeCardTitle, NativeCardTitleProps, NativeCheckbox, NativeCheckboxProps, NativeChip, NativeChipGroup, NativeChipGroupMode, NativeChipGroupProps, NativeChipProps, NativeCombobox, NativeComboboxOption, NativeComboboxProps, NativeDatePicker, NativeDatePickerProps, NativeDialog, NativeDialogContent, NativeDialogContentProps, NativeDialogDescription, NativeDialogDescriptionProps, NativeDialogFooter, NativeDialogFooterProps, NativeDialogHeader, NativeDialogHeaderProps, NativeDialogProps, NativeDialogTitle, NativeDialogTitleProps, NativeDrawer, NativeDrawerProps, NativeDropdownMenu, NativeDropdownMenuContent, NativeDropdownMenuContentProps, NativeDropdownMenuItem, NativeDropdownMenuItemProps, NativeDropdownMenuProps, NativeDropdownMenuTrigger, NativeDropdownMenuTriggerProps, NativeEmptyState, NativeEmptyStateProps, NativeEmptyStateVariant, NativeGlassSurface, NativeGlassSurfaceProps, NativeHeaderCard, NativeHeaderCardProps, NativeIcon, NativeIconProps, NativeImage, NativeImageProps, NativeInlineAlert, NativeInlineAlertProps, NativeInlineAlertVariant, NativeInput, NativeInputProps, NativeLabel, NativeLabelProps, NativeListItem, NativeListItemDivider, NativeListItemProps, NativeNumberInput, NativeNumberInputProps, NativePagination, NativePaginationProps, NativePopover, NativePopoverContent, NativePopoverContentProps, NativePopoverProps, NativePopoverTrigger, NativePopoverTriggerProps, NativeProgress, NativeProgressProps, NativeRadioGroup, NativeRadioGroupItem, NativeRadioGroupItemProps, NativeRadioGroupProps, NativeRangeSlider, NativeRangeSliderProps, NativeRefreshControl, NativeRefreshControlProps, NativeSearchBar, NativeSearchBarProps, NativeSectionListHeader, NativeSectionListHeaderProps, NativeSegmentedControl, NativeSegmentedControlOption, NativeSegmentedControlProps, NativeSelect, NativeSelectContent, NativeSelectContentProps, NativeSelectItem, NativeSelectItemProps, NativeSelectProps, NativeSelectTrigger, NativeSelectTriggerProps, NativeSeparator, NativeSeparatorProps, NativeSheet, NativeSheetLibrary, NativeSheetProps, NativeSheetProvider, NativeSheetProviderProps, NativeSheetScrollView, NativeSkeleton, NativeSkeletonProps, NativeSlider, NativeSliderProps, NativeStepper, NativeStepperProps, NativeStepperStep, NativeSwitch, NativeSwitchProps, NativeTabs, NativeTabsContent, NativeTabsContentProps, NativeTabsList, NativeTabsListProps, NativeTabsProps, NativeTabsTrigger, NativeTabsTriggerProps, NativeText, NativeTextProps, NativeTextarea, NativeTextareaProps, NativeTimePicker, NativeTimePickerProps, NativeToastOptions, NativeToastProvider, NativeToastProviderProps, NativeToastVariant, NativeToggle, NativeToggleProps, NativeTooltip, NativeTooltipContent, NativeTooltipContentProps, NativeTooltipProps, NativeTooltipTrigger, NativeTooltipTriggerProps, SpaceToken, SpacingPrefix, Stack, StackProps, TextPreset, alertVariants, badgeTextVariants, badgeVariants, buttonTextVariants, buttonVariants, spaceScale, spacingClass, textVariants, toggleVariants, useLiquidGlass, useReduceTransparency, useToast } from './components/index.js';
|
|
2
|
-
export { G as GenesisDatePickerComponent, a as GenesisDatePickerProps, b as GenesisGlassModule, c as GenesisIconComponent, d as GenesisIconSet, e as GenesisImageComponent, f as GenesisImageProps, g as GenesisListComponent, h as GenesisListProps, i as GenesisModules, j as GenesisModulesProvider, k as GenesisModulesProviderProps, l as GenesisReanimatedModule, m as GenesisSymbolComponent, n as GenesisSymbolProps, N as NATIVE_ICON_NAMES, o as NativeIconName, S as SF_SYMBOLS, u as useGenesisModules } from './native-modules-
|
|
1
|
+
export { Box, BoxBackground, BoxProps, FULL_SCREEN_DARK, FlexAlign, FlexJustify, Grid, GridProps, Inline, InlineProps, NativeAccordion, NativeAccordionContent, NativeAccordionContentProps, NativeAccordionItem, NativeAccordionItemProps, NativeAccordionProps, NativeAccordionTrigger, NativeAccordionTriggerProps, NativeAccordionType, NativeAlert, NativeAlertDescription, NativeAlertDescriptionProps, NativeAlertProps, NativeAlertTitle, NativeAlertTitleProps, NativeAvatar, NativeAvatarProps, NativeBadge, NativeBadgeProps, NativeBanner, NativeBannerProps, NativeButton, NativeButtonProps, NativeCard, NativeCardContent, NativeCardDescription, NativeCardFooter, NativeCardHeader, NativeCardProps, NativeCardTitle, NativeCardTitleProps, NativeCheckbox, NativeCheckboxProps, NativeChip, NativeChipGroup, NativeChipGroupMode, NativeChipGroupProps, NativeChipProps, NativeCombobox, NativeComboboxOption, NativeComboboxProps, NativeDatePicker, NativeDatePickerProps, NativeDialog, NativeDialogContent, NativeDialogContentProps, NativeDialogDescription, NativeDialogDescriptionProps, NativeDialogFooter, NativeDialogFooterProps, NativeDialogHeader, NativeDialogHeaderProps, NativeDialogProps, NativeDialogTitle, NativeDialogTitleProps, NativeDrawer, NativeDrawerProps, NativeDropdownMenu, NativeDropdownMenuContent, NativeDropdownMenuContentProps, NativeDropdownMenuItem, NativeDropdownMenuItemProps, NativeDropdownMenuProps, NativeDropdownMenuTrigger, NativeDropdownMenuTriggerProps, NativeEmptyState, NativeEmptyStateProps, NativeEmptyStateVariant, NativeFullScreenModal, NativeFullScreenModalProps, NativeGlassSurface, NativeGlassSurfaceProps, NativeHeaderCard, NativeHeaderCardProps, NativeIcon, NativeIconProps, NativeImage, NativeImageProps, NativeInlineAlert, NativeInlineAlertProps, NativeInlineAlertVariant, NativeInput, NativeInputProps, NativeLabel, NativeLabelProps, NativeListItem, NativeListItemDivider, NativeListItemProps, NativeNumberInput, NativeNumberInputProps, NativePagination, NativePaginationProps, NativePopover, NativePopoverContent, NativePopoverContentProps, NativePopoverProps, NativePopoverTrigger, NativePopoverTriggerProps, NativeProgress, NativeProgressProps, NativeRadioGroup, NativeRadioGroupItem, NativeRadioGroupItemProps, NativeRadioGroupProps, NativeRangeSlider, NativeRangeSliderProps, NativeRefreshControl, NativeRefreshControlProps, NativeSearchBar, NativeSearchBarProps, NativeSectionListHeader, NativeSectionListHeaderProps, NativeSegmentedControl, NativeSegmentedControlOption, NativeSegmentedControlProps, NativeSelect, NativeSelectContent, NativeSelectContentProps, NativeSelectItem, NativeSelectItemProps, NativeSelectProps, NativeSelectTrigger, NativeSelectTriggerProps, NativeSeparator, NativeSeparatorProps, NativeSheet, NativeSheetLibrary, NativeSheetProps, NativeSheetProvider, NativeSheetProviderProps, NativeSheetScrollView, NativeSkeleton, NativeSkeletonProps, NativeSlider, NativeSliderProps, NativeStepper, NativeStepperProps, NativeStepperStep, NativeSwitch, NativeSwitchProps, NativeTabs, NativeTabsContent, NativeTabsContentProps, NativeTabsList, NativeTabsListProps, NativeTabsProps, NativeTabsTrigger, NativeTabsTriggerProps, NativeText, NativeTextProps, NativeTextarea, NativeTextareaProps, NativeTimePicker, NativeTimePickerProps, NativeToastOptions, NativeToastProvider, NativeToastProviderProps, NativeToastVariant, NativeToggle, NativeToggleProps, NativeTooltip, NativeTooltipContent, NativeTooltipContentProps, NativeTooltipProps, NativeTooltipTrigger, NativeTooltipTriggerProps, SpaceToken, SpacingPrefix, Stack, StackProps, TextPreset, alertVariants, badgeTextVariants, badgeVariants, buttonTextVariants, buttonVariants, spaceScale, spacingClass, textVariants, toggleVariants, useLiquidGlass, useReduceTransparency, useToast } from './components/index.js';
|
|
2
|
+
export { G as GenesisDatePickerComponent, a as GenesisDatePickerProps, b as GenesisGlassModule, c as GenesisIconComponent, d as GenesisIconSet, e as GenesisImageComponent, f as GenesisImageProps, g as GenesisListComponent, h as GenesisListProps, i as GenesisModules, j as GenesisModulesProvider, k as GenesisModulesProviderProps, l as GenesisReanimatedModule, m as GenesisSymbolComponent, n as GenesisSymbolProps, N as NATIVE_ICON_NAMES, o as NativeIconName, S as SF_SYMBOLS, u as useGenesisModules } from './native-modules-_Q5vIbd5.js';
|
|
3
3
|
export { BrandExtensionsProvider, BrandExtensionsProviderProps, BrandExtensionsValue, ThemeMode, ThemeRoleColors, UseThemeRolesOptions, useGenesisExtension, useReducedMotion, useThemeMode, useThemeRoles } from './hooks/index.js';
|
|
4
4
|
export { AppleButtonModuleLike, AppleProviderOptions, AppleSignInButton, AppleSignInButtonProps, AuthBranding, AuthBrandingProps, AuthForm, AuthFormProps, AuthFormValues, AuthScreen, AuthScreenProps, AuthScreenSlotMap, ForgotPasswordLink, GoogleProviderOptions, InboxItem, InboxPage, InboxPageProps, InboxPageSlotMap, InboxSwipeAction, KEYBOARD_TOOLBAR_HEIGHT, KeyboardScrollProps, KeyboardScrollProvider, KeyboardToolbarProps, NavBarSaveButton, NavBarSaveButtonProps, NavBarSearchBar, NavBarSearchBarProps, NavBarTitle, NavBarTitleProps, NotificationItem, NotificationsPage, NotificationsPageProps, NotificationsPageSlotMap, SafeAreaEdge, ScreenContainer, ScreenContainerProps, ScreenHeaderProps, ScrollEdgeBehavior, SettingsPage, SettingsPageDangerousAction, SettingsPageProps, SettingsPageRow, SettingsPageSection, SettingsPageSlotMap, SettingsSubPage, SettingsSubPageProps, SocialAuthProvider, SocialAuthRow, SocialAuthRowProps, ThreadAttachment, ThreadComposer, ThreadLabels, ThreadMessage, ThreadPage, ThreadPageProps, ThreadPageSlotMap, appleProvider, composeHeaderOptions, confirmDiscardChanges, defaultStickyHeaderOffset, formatInboxTime, getInboxPageStackOptions, getNotificationsPageStackOptions, getSettingsPageStackOptions, getSettingsSubPageStackOptions, getThreadPageStackOptions, googleProvider, iosCompactNavigationBarHeight, readReceiptFor, showInboxActions, useKeyboardScroll, useKeyboardToolbar } from './layouts/index.js';
|
|
5
5
|
export { cn } from './utils.js';
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { Box, Grid, Inline, NativeAccordion, NativeAccordionContent, NativeAccordionItem, NativeAccordionTrigger, NativeAvatar, NativeBanner, NativeChip, NativeChipGroup, NativeCombobox, NativeDatePicker, NativeDialog, NativeDialogContent, NativeDialogDescription, NativeDialogFooter, NativeDialogHeader, NativeDialogTitle, NativeDrawer, NativeDropdownMenu, NativeDropdownMenuContent, NativeDropdownMenuItem, NativeDropdownMenuTrigger, NativeGlassSurface, NativeHeaderCard, NativeImage, NativeInlineAlert, NativeNumberInput, NativePagination, NativePopover, NativePopoverContent, NativePopoverTrigger, NativeProgress, NativeRadioGroup, NativeRadioGroupItem, NativeRangeSlider, NativeSearchBar, NativeSegmentedControl, NativeSheet, NativeSheetProvider, NativeSheetScrollView, NativeSlider, NativeStepper, NativeTabs, NativeTabsContent, NativeTabsList, NativeTabsTrigger, NativeTimePicker, NativeToastProvider, NativeToggle, NativeTooltip, NativeTooltipContent, NativeTooltipTrigger, Stack, spaceScale, spacingClass, toggleVariants, useLiquidGlass, useReduceTransparency, useToast } from './chunk-
|
|
1
|
+
export { Box, FULL_SCREEN_DARK, Grid, Inline, NativeAccordion, NativeAccordionContent, NativeAccordionItem, NativeAccordionTrigger, NativeAvatar, NativeBanner, NativeChip, NativeChipGroup, NativeCombobox, NativeDatePicker, NativeDialog, NativeDialogContent, NativeDialogDescription, NativeDialogFooter, NativeDialogHeader, NativeDialogTitle, NativeDrawer, NativeDropdownMenu, NativeDropdownMenuContent, NativeDropdownMenuItem, NativeDropdownMenuTrigger, NativeFullScreenModal, NativeGlassSurface, NativeHeaderCard, NativeImage, NativeInlineAlert, NativeNumberInput, NativePagination, NativePopover, NativePopoverContent, NativePopoverTrigger, NativeProgress, NativeRadioGroup, NativeRadioGroupItem, NativeRangeSlider, NativeSearchBar, NativeSegmentedControl, NativeSheet, NativeSheetProvider, NativeSheetScrollView, NativeSlider, NativeStepper, NativeTabs, NativeTabsContent, NativeTabsList, NativeTabsTrigger, NativeTimePicker, NativeToastProvider, NativeToggle, NativeTooltip, NativeTooltipContent, NativeTooltipTrigger, Stack, spaceScale, spacingClass, toggleVariants, useLiquidGlass, useReduceTransparency, useToast } from './chunk-7VSW3XWJ.js';
|
|
2
2
|
export { NativeAlert, NativeAlertDescription, NativeAlertTitle, NativeCard, NativeCardContent, NativeCardDescription, NativeCardFooter, NativeCardHeader, NativeCardTitle, NativeCheckbox, NativeLabel, NativeSelect, NativeSelectContent, NativeSelectItem, NativeSelectTrigger, NativeSeparator, NativeSkeleton, NativeSwitch, NativeTextarea, alertVariants } from './chunk-FIITITXO.js';
|
|
3
3
|
export { BrandExtensionsProvider, useGenesisExtension } from './chunk-D5RKSPMH.js';
|
|
4
4
|
export { useReducedMotion } from './chunk-7PCWEY6R.js';
|
|
5
|
-
export { AppleSignInButton, AuthBranding, AuthForm, AuthScreen, ForgotPasswordLink, InboxPage, KEYBOARD_TOOLBAR_HEIGHT, KeyboardScrollProvider, NavBarSaveButton, NavBarSearchBar, NavBarTitle, NotificationsPage, ScreenContainer, SettingsPage, SettingsSubPage, SocialAuthRow, ThreadPage, appleProvider, composeHeaderOptions, confirmDiscardChanges, defaultStickyHeaderOffset, formatInboxTime, getInboxPageStackOptions, getNotificationsPageStackOptions, getSettingsPageStackOptions, getSettingsSubPageStackOptions, getThreadPageStackOptions, googleProvider, iosCompactNavigationBarHeight, readReceiptFor, showInboxActions, useKeyboardScroll, useKeyboardToolbar } from './chunk-
|
|
6
|
-
export { NATIVE_ICON_NAMES, NativeEmptyState, NativeIcon, NativeListItem, NativeListItemDivider, NativeRefreshControl, NativeSectionListHeader, SF_SYMBOLS } from './chunk-
|
|
5
|
+
export { AppleSignInButton, AuthBranding, AuthForm, AuthScreen, ForgotPasswordLink, InboxPage, KEYBOARD_TOOLBAR_HEIGHT, KeyboardScrollProvider, NavBarSaveButton, NavBarSearchBar, NavBarTitle, NotificationsPage, ScreenContainer, SettingsPage, SettingsSubPage, SocialAuthRow, ThreadPage, appleProvider, composeHeaderOptions, confirmDiscardChanges, defaultStickyHeaderOffset, formatInboxTime, getInboxPageStackOptions, getNotificationsPageStackOptions, getSettingsPageStackOptions, getSettingsSubPageStackOptions, getThreadPageStackOptions, googleProvider, iosCompactNavigationBarHeight, readReceiptFor, showInboxActions, useKeyboardScroll, useKeyboardToolbar } from './chunk-6TLBCRS6.js';
|
|
6
|
+
export { NATIVE_ICON_NAMES, NativeEmptyState, NativeIcon, NativeListItem, NativeListItemDivider, NativeRefreshControl, NativeSectionListHeader, SF_SYMBOLS } from './chunk-BPD5DCFP.js';
|
|
7
7
|
export { GenesisModulesProvider, NativeBadge, NativeButton, NativeInput, NativeText, badgeTextVariants, badgeVariants, buttonTextVariants, buttonVariants, textVariants, useGenesisModules } from './chunk-EFXCJ5AN.js';
|
|
8
8
|
export { useThemeMode, useThemeRoles } from './chunk-Z3AQYVUA.js';
|
|
9
9
|
export { cn } from './chunk-OHZD7KRO.js';
|
package/dist/layouts/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { AppleSignInButton, AuthBranding, AuthForm, AuthScreen, ForgotPasswordLink, InboxPage, KEYBOARD_TOOLBAR_HEIGHT, KeyboardScrollProvider, NavBarSaveButton, NavBarSearchBar, NavBarTitle, NotificationsPage, ScreenContainer, SettingsPage, SettingsSubPage, SocialAuthRow, ThreadPage, appleProvider, composeHeaderOptions, confirmDiscardChanges, defaultStickyHeaderOffset, formatInboxTime, getInboxPageStackOptions, getNotificationsPageStackOptions, getSettingsPageStackOptions, getSettingsSubPageStackOptions, getThreadPageStackOptions, googleProvider, iosCompactNavigationBarHeight, readReceiptFor, showInboxActions, useKeyboardScroll, useKeyboardToolbar } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { AppleSignInButton, AuthBranding, AuthForm, AuthScreen, ForgotPasswordLink, InboxPage, KEYBOARD_TOOLBAR_HEIGHT, KeyboardScrollProvider, NavBarSaveButton, NavBarSearchBar, NavBarTitle, NotificationsPage, ScreenContainer, SettingsPage, SettingsSubPage, SocialAuthRow, ThreadPage, appleProvider, composeHeaderOptions, confirmDiscardChanges, defaultStickyHeaderOffset, formatInboxTime, getInboxPageStackOptions, getNotificationsPageStackOptions, getSettingsPageStackOptions, getSettingsSubPageStackOptions, getThreadPageStackOptions, googleProvider, iosCompactNavigationBarHeight, readReceiptFor, showInboxActions, useKeyboardScroll, useKeyboardToolbar } from '../chunk-6TLBCRS6.js';
|
|
2
|
+
import '../chunk-BPD5DCFP.js';
|
|
3
3
|
import '../chunk-EFXCJ5AN.js';
|
|
4
4
|
import '../chunk-Z3AQYVUA.js';
|
|
5
5
|
import '../chunk-OHZD7KRO.js';
|
|
@@ -16,6 +16,7 @@ declare const SF_SYMBOLS: {
|
|
|
16
16
|
readonly bell: "bell";
|
|
17
17
|
readonly calendar: "calendar";
|
|
18
18
|
readonly camera: "camera";
|
|
19
|
+
readonly "camera-flip": "arrow.triangle.2.circlepath.camera";
|
|
19
20
|
readonly check: "checkmark";
|
|
20
21
|
readonly "chevron-down": "chevron.down";
|
|
21
22
|
readonly "chevron-left": "chevron.left";
|
|
@@ -25,8 +26,10 @@ declare const SF_SYMBOLS: {
|
|
|
25
26
|
readonly close: "xmark";
|
|
26
27
|
readonly compose: "square.and.pencil";
|
|
27
28
|
readonly copy: "doc.on.doc";
|
|
29
|
+
readonly download: "square.and.arrow.down";
|
|
28
30
|
readonly edit: "pencil";
|
|
29
31
|
readonly error: "xmark.circle";
|
|
32
|
+
readonly expand: "arrow.up.left.and.arrow.down.right";
|
|
30
33
|
readonly "external-link": "arrow.up.right.square";
|
|
31
34
|
readonly file: "doc";
|
|
32
35
|
readonly filter: "line.3.horizontal.decrease";
|
|
@@ -52,10 +55,15 @@ declare const SF_SYMBOLS: {
|
|
|
52
55
|
readonly search: "magnifyingglass";
|
|
53
56
|
readonly settings: "gearshape";
|
|
54
57
|
readonly share: "square.and.arrow.up";
|
|
58
|
+
readonly smile: "face.smiling";
|
|
55
59
|
readonly star: "star";
|
|
60
|
+
readonly stop: "stop.fill";
|
|
56
61
|
readonly success: "checkmark.circle";
|
|
57
62
|
readonly trash: "trash";
|
|
58
63
|
readonly user: "person";
|
|
64
|
+
readonly video: "video";
|
|
65
|
+
readonly volume: "speaker.wave.2.fill";
|
|
66
|
+
readonly "volume-off": "speaker.slash.fill";
|
|
59
67
|
readonly warning: "exclamationmark.triangle";
|
|
60
68
|
};
|
|
61
69
|
/** A semantic icon name: what the icon is for. */
|
package/package.json
CHANGED
|
@@ -30,6 +30,7 @@ vi.mock("lucide-react-native", () => {
|
|
|
30
30
|
"CircleX", "Clock", "Ellipsis", "ExternalLink", "Funnel", "Heart", "House", "Info", "Lock", "LogOut", "Mail", "Menu",
|
|
31
31
|
"Minus", "Pencil", "Plus", "RefreshCw", "Search", "Settings", "Share", "Star", "Trash2", "TriangleAlert", "User", "X",
|
|
32
32
|
"ArrowUp", "Camera", "Copy", "File", "Image", "MessageCircle", "Mic", "Paperclip", "Pause", "Pin", "Play", "Reply", "SquarePen",
|
|
33
|
+
"Download", "Smile", "Maximize2", "Square", "SwitchCamera", "Video", "Volume2", "VolumeX",
|
|
33
34
|
];
|
|
34
35
|
return Object.fromEntries(names.map((n) => [n, icon(n)]));
|
|
35
36
|
});
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/** NativeFullScreenModal: the whole screen, faded in, black for media, closed by back and escape. */
|
|
2
|
+
import { fireEvent, render, screen } from "@testing-library/react";
|
|
3
|
+
import { describe, expect, it, vi } from "vitest";
|
|
4
|
+
import { NativeText } from "../text";
|
|
5
|
+
import { FULL_SCREEN_DARK, NativeFullScreenModal } from "../full-screen-modal";
|
|
6
|
+
|
|
7
|
+
describe("NativeFullScreenModal", () => {
|
|
8
|
+
it("covers the whole screen (not a page sheet), faded in, on black by default", () => {
|
|
9
|
+
render(
|
|
10
|
+
<NativeFullScreenModal open onOpenChange={() => undefined} testID="fs">
|
|
11
|
+
<NativeText>Inside</NativeText>
|
|
12
|
+
</NativeFullScreenModal>,
|
|
13
|
+
);
|
|
14
|
+
const modal = screen.getByTestId("fs");
|
|
15
|
+
expect(modal.getAttribute("data-presentation-style")).toBe("overFullScreen");
|
|
16
|
+
expect(modal.getAttribute("data-animation-type")).toBe("fade");
|
|
17
|
+
expect(modal.getAttribute("data-transparent")).toBe("true");
|
|
18
|
+
expect(modal.getAttribute("data-status-bar-translucent")).toBe("true");
|
|
19
|
+
expect(JSON.parse((screen.getByTestId("fs-body") as HTMLElement).dataset.style!).backgroundColor).toBe("#000000");
|
|
20
|
+
expect(FULL_SCREEN_DARK).toBe("#000000");
|
|
21
|
+
expect(screen.getByText("Inside")).toBeTruthy();
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
it("draws no backdrop with tone none, for content that draws its own", () => {
|
|
25
|
+
render(
|
|
26
|
+
<NativeFullScreenModal open tone="none" onOpenChange={() => undefined} testID="fs">
|
|
27
|
+
<NativeText>Inside</NativeText>
|
|
28
|
+
</NativeFullScreenModal>,
|
|
29
|
+
);
|
|
30
|
+
expect(JSON.parse((screen.getByTestId("fs-body") as HTMLElement).dataset.style!).backgroundColor).toBe("transparent");
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
it("renders nothing while closed", () => {
|
|
34
|
+
render(
|
|
35
|
+
<NativeFullScreenModal open={false} onOpenChange={() => undefined} testID="fs">
|
|
36
|
+
<NativeText>Inside</NativeText>
|
|
37
|
+
</NativeFullScreenModal>,
|
|
38
|
+
);
|
|
39
|
+
expect(screen.queryByTestId("fs")).toBeNull();
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
it("asks to close on Android back (onRequestClose)", () => {
|
|
43
|
+
const onOpenChange = vi.fn();
|
|
44
|
+
render(
|
|
45
|
+
<NativeFullScreenModal open onOpenChange={onOpenChange} testID="fs">
|
|
46
|
+
<NativeText>Inside</NativeText>
|
|
47
|
+
</NativeFullScreenModal>,
|
|
48
|
+
);
|
|
49
|
+
fireEvent.keyDown(screen.getByTestId("fs"), { key: "Escape" });
|
|
50
|
+
expect(onOpenChange).toHaveBeenCalledWith(false);
|
|
51
|
+
});
|
|
52
|
+
});
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* FullScreenModal — content that takes the whole screen over the app: a
|
|
3
|
+
* photo or video viewer, a camera, a scanner.
|
|
4
|
+
*
|
|
5
|
+
* React Native's `Modal`, over the whole screen on both platforms
|
|
6
|
+
* (`overFullScreen` on iOS; under the system bars on Android), faded in (no
|
|
7
|
+
* animation with Reduce Motion). `tone="dark"` (the default) is a black
|
|
8
|
+
* backdrop with light status bar content, for media; `tone="app"` is the
|
|
9
|
+
* theme's background; `tone="none"` draws no backdrop, for content that
|
|
10
|
+
* draws its own (a viewer that fades to show the app as it's dragged away,
|
|
11
|
+
* with `FULL_SCREEN_DARK` behind it). Content
|
|
12
|
+
* gets its own safe area (`useSafeAreaInsets` inside is the modal's) and
|
|
13
|
+
* places its own close control: Android back and the VoiceOver escape
|
|
14
|
+
* gesture call `onOpenChange(false)`.
|
|
15
|
+
*
|
|
16
|
+
* For a short task over the app, use <NativeSheet>; for a confirmation,
|
|
17
|
+
* <NativeDialog>.
|
|
18
|
+
*
|
|
19
|
+
* @stability Beta
|
|
20
|
+
*/
|
|
21
|
+
import type { ReactNode } from "react";
|
|
22
|
+
import { Modal, StatusBar, View } from "react-native";
|
|
23
|
+
import { SafeAreaProvider } from "react-native-safe-area-context";
|
|
24
|
+
import { useReducedMotion } from "../hooks/use-reduced-motion";
|
|
25
|
+
import { useThemeRoles } from "../hooks/use-theme-roles";
|
|
26
|
+
|
|
27
|
+
export interface NativeFullScreenModalProps {
|
|
28
|
+
open: boolean;
|
|
29
|
+
/** Fired with false on Android back and the VoiceOver escape gesture. Set `open` false in it. */
|
|
30
|
+
onOpenChange: (open: boolean) => void;
|
|
31
|
+
/** `"dark"` (default): black, for photos and video. `"app"`: the theme's background. `"none"`: the content draws its own. */
|
|
32
|
+
tone?: "dark" | "app" | "none";
|
|
33
|
+
children: ReactNode;
|
|
34
|
+
testID?: string;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/** The dark tone's backdrop: media reads best on true black in light and dark mode alike. */
|
|
38
|
+
export const FULL_SCREEN_DARK = "#000000";
|
|
39
|
+
|
|
40
|
+
/** @stability Beta */
|
|
41
|
+
export function NativeFullScreenModal({ open, onOpenChange, tone = "dark", children, testID = "native-full-screen-modal" }: NativeFullScreenModalProps) {
|
|
42
|
+
const reducedMotion = useReducedMotion();
|
|
43
|
+
const roles = useThemeRoles();
|
|
44
|
+
const background = tone === "dark" ? FULL_SCREEN_DARK : tone === "app" ? roles.background : "transparent";
|
|
45
|
+
const close = () => onOpenChange(false);
|
|
46
|
+
return (
|
|
47
|
+
<Modal
|
|
48
|
+
visible={open}
|
|
49
|
+
animationType={reducedMotion ? "none" : "fade"}
|
|
50
|
+
transparent
|
|
51
|
+
presentationStyle="overFullScreen"
|
|
52
|
+
statusBarTranslucent
|
|
53
|
+
navigationBarTranslucent
|
|
54
|
+
onRequestClose={close}
|
|
55
|
+
testID={testID}
|
|
56
|
+
>
|
|
57
|
+
{tone !== "app" ? <StatusBar barStyle="light-content" animated /> : null}
|
|
58
|
+
<SafeAreaProvider>
|
|
59
|
+
<View
|
|
60
|
+
testID={`${testID}-body`}
|
|
61
|
+
accessibilityViewIsModal
|
|
62
|
+
onAccessibilityEscape={close}
|
|
63
|
+
style={{ flex: 1, backgroundColor: background }}
|
|
64
|
+
>
|
|
65
|
+
{children}
|
|
66
|
+
</View>
|
|
67
|
+
</SafeAreaProvider>
|
|
68
|
+
</Modal>
|
|
69
|
+
);
|
|
70
|
+
}
|
package/src/components/index.ts
CHANGED
|
@@ -29,6 +29,9 @@ export type {
|
|
|
29
29
|
export { NativeSheet, NativeSheetProvider, NativeSheetScrollView } from "./sheet";
|
|
30
30
|
export type { NativeSheetLibrary, NativeSheetProps, NativeSheetProviderProps } from "./sheet";
|
|
31
31
|
|
|
32
|
+
export { NativeFullScreenModal, FULL_SCREEN_DARK } from "./full-screen-modal";
|
|
33
|
+
export type { NativeFullScreenModalProps } from "./full-screen-modal";
|
|
34
|
+
|
|
32
35
|
export {
|
|
33
36
|
NativePopover,
|
|
34
37
|
NativePopoverTrigger,
|
package/src/icon-names.ts
CHANGED
|
@@ -12,6 +12,7 @@ export const SF_SYMBOLS = {
|
|
|
12
12
|
bell: "bell",
|
|
13
13
|
calendar: "calendar",
|
|
14
14
|
camera: "camera",
|
|
15
|
+
"camera-flip": "arrow.triangle.2.circlepath.camera",
|
|
15
16
|
check: "checkmark",
|
|
16
17
|
"chevron-down": "chevron.down",
|
|
17
18
|
"chevron-left": "chevron.left",
|
|
@@ -21,8 +22,10 @@ export const SF_SYMBOLS = {
|
|
|
21
22
|
close: "xmark",
|
|
22
23
|
compose: "square.and.pencil",
|
|
23
24
|
copy: "doc.on.doc",
|
|
25
|
+
download: "square.and.arrow.down",
|
|
24
26
|
edit: "pencil",
|
|
25
27
|
error: "xmark.circle",
|
|
28
|
+
expand: "arrow.up.left.and.arrow.down.right",
|
|
26
29
|
"external-link": "arrow.up.right.square",
|
|
27
30
|
file: "doc",
|
|
28
31
|
filter: "line.3.horizontal.decrease",
|
|
@@ -48,10 +51,15 @@ export const SF_SYMBOLS = {
|
|
|
48
51
|
search: "magnifyingglass",
|
|
49
52
|
settings: "gearshape",
|
|
50
53
|
share: "square.and.arrow.up",
|
|
54
|
+
smile: "face.smiling",
|
|
51
55
|
star: "star",
|
|
56
|
+
stop: "stop.fill",
|
|
52
57
|
success: "checkmark.circle",
|
|
53
58
|
trash: "trash",
|
|
54
59
|
user: "person",
|
|
60
|
+
video: "video",
|
|
61
|
+
volume: "speaker.wave.2.fill",
|
|
62
|
+
"volume-off": "speaker.slash.fill",
|
|
55
63
|
warning: "exclamationmark.triangle",
|
|
56
64
|
} as const;
|
|
57
65
|
|
package/src/icons/lucide.ts
CHANGED
|
@@ -23,6 +23,7 @@ import {
|
|
|
23
23
|
CircleX,
|
|
24
24
|
Clock,
|
|
25
25
|
Copy,
|
|
26
|
+
Download,
|
|
26
27
|
Ellipsis,
|
|
27
28
|
ExternalLink,
|
|
28
29
|
File,
|
|
@@ -31,6 +32,7 @@ import {
|
|
|
31
32
|
House,
|
|
32
33
|
Image,
|
|
33
34
|
Info,
|
|
35
|
+
Maximize2,
|
|
34
36
|
Lock,
|
|
35
37
|
LogOut,
|
|
36
38
|
Mail,
|
|
@@ -47,13 +49,19 @@ import {
|
|
|
47
49
|
RefreshCw,
|
|
48
50
|
Reply,
|
|
49
51
|
Search,
|
|
52
|
+
Square,
|
|
53
|
+
SwitchCamera,
|
|
50
54
|
Settings,
|
|
51
55
|
Share,
|
|
56
|
+
Smile,
|
|
52
57
|
SquarePen,
|
|
53
58
|
Star,
|
|
54
59
|
Trash2,
|
|
55
60
|
TriangleAlert,
|
|
56
61
|
User,
|
|
62
|
+
Video,
|
|
63
|
+
Volume2,
|
|
64
|
+
VolumeX,
|
|
57
65
|
X,
|
|
58
66
|
} from "lucide-react-native";
|
|
59
67
|
import type { NativeIconName } from "../icon-names";
|
|
@@ -65,6 +73,7 @@ export const lucideIcons: Record<NativeIconName, GenesisIconComponent> = {
|
|
|
65
73
|
bell: Bell,
|
|
66
74
|
calendar: Calendar,
|
|
67
75
|
camera: Camera,
|
|
76
|
+
"camera-flip": SwitchCamera,
|
|
68
77
|
check: Check,
|
|
69
78
|
"chevron-down": ChevronDown,
|
|
70
79
|
"chevron-left": ChevronLeft,
|
|
@@ -74,8 +83,10 @@ export const lucideIcons: Record<NativeIconName, GenesisIconComponent> = {
|
|
|
74
83
|
close: X,
|
|
75
84
|
compose: SquarePen,
|
|
76
85
|
copy: Copy,
|
|
86
|
+
download: Download,
|
|
77
87
|
edit: Pencil,
|
|
78
88
|
error: CircleX,
|
|
89
|
+
expand: Maximize2,
|
|
79
90
|
"external-link": ExternalLink,
|
|
80
91
|
file: File,
|
|
81
92
|
filter: Funnel,
|
|
@@ -101,10 +112,15 @@ export const lucideIcons: Record<NativeIconName, GenesisIconComponent> = {
|
|
|
101
112
|
search: Search,
|
|
102
113
|
settings: Settings,
|
|
103
114
|
share: Share,
|
|
115
|
+
smile: Smile,
|
|
104
116
|
star: Star,
|
|
117
|
+
stop: Square,
|
|
105
118
|
success: CircleCheck,
|
|
106
119
|
trash: Trash2,
|
|
107
120
|
user: User,
|
|
121
|
+
video: Video,
|
|
122
|
+
volume: Volume2,
|
|
123
|
+
"volume-off": VolumeX,
|
|
108
124
|
warning: TriangleAlert,
|
|
109
125
|
// The cast widens lucide's declared `color: string` to `ColorValue`. On iOS
|
|
110
126
|
// NativeIcon passes theme roles as `PlatformColor` objects; lucide hands
|